mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 06:43:44 +08:00
fix: service install path
This commit is contained in:
parent
605dda7b76
commit
41762be3a5
@ -102,7 +102,7 @@ pub async fn install_service() -> Result<()> {
|
|||||||
if !installer_path.exists() {
|
if !installer_path.exists() {
|
||||||
bail!("installer not found");
|
bail!("installer not found");
|
||||||
}
|
}
|
||||||
let shell = installer_path.to_string_lossy();
|
let shell = installer_path.to_string_lossy().replace(" ", "\\\\ ");
|
||||||
let command = format!(r#"do shell script "{shell}" with administrator privileges"#);
|
let command = format!(r#"do shell script "{shell}" with administrator privileges"#);
|
||||||
|
|
||||||
let status = StdCommand::new("osascript")
|
let status = StdCommand::new("osascript")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user