From 3d81a536e57241e26c6d031a935399e5a425d10a Mon Sep 17 00:00:00 2001 From: Igor Katson Date: Mon, 12 Aug 2024 21:24:00 +0100 Subject: [PATCH] Try shorten powershell path --- crates/librqbit/build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/librqbit/build.rs b/crates/librqbit/build.rs index e76b53e..1276d33 100644 --- a/crates/librqbit/build.rs +++ b/crates/librqbit/build.rs @@ -11,10 +11,7 @@ fn main() { println!("cargo:rerun-if-changed={}", webui_src_dir.to_str().unwrap()); #[cfg(target_os = "windows")] - let (shell, shell_args) = ( - r#"C:\Program Files\PowerShell\7\pwsh.EXE"#, - ["-command"].as_slice(), - ); + let (shell, shell_args) = ("powershell", ["-command"].as_slice()); #[cfg(not(target_os = "windows"))] let (shell, shell_args) = ("bash", ["-c"].as_slice());