From a439b2cb34241c75b35279876308d536556e51b0 Mon Sep 17 00:00:00 2001 From: Linghong Date: Mon, 14 Sep 2026 22:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Linux=20CI=20=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=AD=96=E7=95=A5=E8=B7=AF=E5=BE=84=E5=BD=92=E4=B8=80?= =?UTF-8?q?=E5=8C=96=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 为非 Windows 平台补充 normalize_windows_policy_path 恒等实现,修复 Linux Rust 编译失败。 --- apps/ai-game-creator-shell/src-tauri/src/config.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/ai-game-creator-shell/src-tauri/src/config.rs b/apps/ai-game-creator-shell/src-tauri/src/config.rs index 1dd22bc08..ebbee916b 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/config.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/config.rs @@ -52,6 +52,11 @@ fn normalize_windows_policy_path(path: &Path) -> PathBuf { PathBuf::from(value.strip_prefix(r"\\?\").unwrap_or(&value)) } +#[cfg(not(windows))] +fn normalize_windows_policy_path(path: &Path) -> PathBuf { + path.to_path_buf() +} + #[cfg(windows)] pub(crate) fn register_game_creator_user_selected_path(path: &Path, is_directory: bool) { let Some(key) = normalize_user_selected_path_key(path) else {