mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 11:58:43 +08:00
fix: service install path
This commit is contained in:
1 parent
a25b072bf6
commit
5ff776f90d
1 file changed
+1
-1
@@ -102,7 +102,7 @@ pub async fn install_service() -> Result<()> {
|
||||
if !installer_path.exists() {
|
||||
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 status = StdCommand::new("osascript")
|
||||
|
||||
Reference in new issue
Block a user