Try shorten powershell path

This commit is contained in:
Igor Katson 2024-08-12 21:24:00 +01:00
parent 32e40ca0c1
commit 3d81a536e5
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -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());