From bfc46841fab137a2077b61c15ee1469ede3b72b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Sun, 5 Jul 2026 21:04:36 -0700 Subject: [PATCH] =?UTF-8?q?fix(ci):=20promote=5Fnested=5Fstandalone=5Fdir?= =?UTF-8?q?=20=E6=8C=89=E5=B9=B3=E5=8F=B0=E9=97=A8=E6=8E=A7=E6=B6=88?= =?UTF-8?q?=E9=99=A4=20Unix=20=E6=AD=BB=E4=BB=A3=E7=A0=81=E5=91=8A?= =?UTF-8?q?=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该函数的生产调用点仅在 Windows zip 解压路径(Unix 走 tar), Linux/macOS 的 clippy -D warnings 报 dead_code 导致 CI 失败。 用 cfg(any(windows, test)) 门控:保留跨平台单元测试覆盖。 Co-Authored-By: Claude Fable 5 --- src-tauri/src/commands/config.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/commands/config.rs b/src-tauri/src/commands/config.rs index 32922dc..64543cf 100644 --- a/src-tauri/src/commands/config.rs +++ b/src-tauri/src/commands/config.rs @@ -448,6 +448,8 @@ fn standalone_archive_ext() -> &'static str { } } +// 生产路径仅 Windows(zip 解压)调用;Unix 走 tar。test 门控保留跨平台单元测试 +#[cfg(any(target_os = "windows", test))] fn promote_nested_standalone_dir( install_dir: &std::path::Path, node_bin: &str,