diff --git a/release/0.1.11/SHA256SUMS.txt b/release/0.1.11/SHA256SUMS.txt index 86ccf11..16e8768 100644 --- a/release/0.1.11/SHA256SUMS.txt +++ b/release/0.1.11/SHA256SUMS.txt @@ -1,2 +1,2 @@ -e848c8ed53e9d599dee2e12d10cd5d380baaf6de6498fe33968fff105e3eedee Squid-Setup-0.1.11-win-x64.exe -e5edf6c6f26a1e5f62ea63147dd357425fb6dc5be24688e1230d329bee26bb4c Squid-0.1.11-portable-win-x64.zip +196d6382bded50d5d8dd0593240b016adf8c9cb5e2f95e610d8d1bf029a158be Squid-Setup-0.1.11-win-x64.exe +4349e178016a8596ce56c2ed0ab31013cfa7eefe13b0aac68b9eca8a7f022be5 Squid-0.1.11-portable-win-x64.zip diff --git a/release/0.1.11/Squid-0.1.11-portable-win-x64.zip b/release/0.1.11/Squid-0.1.11-portable-win-x64.zip index 7e6928b..de3c925 100644 Binary files a/release/0.1.11/Squid-0.1.11-portable-win-x64.zip and b/release/0.1.11/Squid-0.1.11-portable-win-x64.zip differ diff --git a/release/0.1.11/Squid-Setup-0.1.11-win-x64.exe b/release/0.1.11/Squid-Setup-0.1.11-win-x64.exe index 45453f8..2bed5d0 100644 Binary files a/release/0.1.11/Squid-Setup-0.1.11-win-x64.exe and b/release/0.1.11/Squid-Setup-0.1.11-win-x64.exe differ diff --git a/release/0.1.11/squid-update.json b/release/0.1.11/squid-update.json index 408a0a0..8a7fda3 100644 --- a/release/0.1.11/squid-update.json +++ b/release/0.1.11/squid-update.json @@ -6,8 +6,8 @@ "artifacts": { "windows": { "file": "Squid-Setup-0.1.11-win-x64.exe", - "sha256": "e848c8ed53e9d599dee2e12d10cd5d380baaf6de6498fe33968fff105e3eedee", - "size": 3851440 + "sha256": "196d6382bded50d5d8dd0593240b016adf8c9cb5e2f95e610d8d1bf029a158be", + "size": 3850501 } } } diff --git a/src-tauri/src/app.rs b/src-tauri/src/app.rs index 7ed61f1..d171361 100644 --- a/src-tauri/src/app.rs +++ b/src-tauri/src/app.rs @@ -1588,10 +1588,18 @@ pub fn reveal_path(app: AppHandle, path: String) -> Result<(), String> { } #[cfg(windows)] { - crate::process::command("explorer.exe") - .arg(format!("/select,{}", target.display())) - .status() - .map_err(|error| error.to_string())?; + use std::os::windows::process::CommandExt; + // Explorer only understands `/select,"C:\path with space\x"` — the + // quotes must sit *inside* the argument, around the path. Handing + // the whole `/select,` as one argument let Rust wrap it in + // one pair of quotes, Explorer failed to parse it and opened its + // default folder instead (定位 jumped to the wrong directory as + // soon as the path contained a space, e.g. Package Cache). + // `raw_arg` writes the argument verbatim, producing the exact + // command line Explorer documents. + let mut cmd = crate::process::command("explorer.exe"); + cmd.raw_arg(format!("/select,\"{}\"", target.display())); + cmd.status().map_err(|error| error.to_string())?; } #[cfg(not(any(target_os = "macos", windows)))] {