mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-19 20:05:42 +08:00
chore: update
This commit is contained in:
1 parent
9b2b447b8b
commit
12db69407e
2 files changed
+1
-3
No files matched your search
@@ -72,7 +72,6 @@ impl CoreManager {
|
||||
log::debug!("core is not running");
|
||||
return Ok(());
|
||||
}
|
||||
println!("stop core");
|
||||
|
||||
// 关闭tun模式
|
||||
let mut disable = Mapping::new();
|
||||
@@ -93,7 +92,6 @@ impl CoreManager {
|
||||
|
||||
/// 启动核心
|
||||
pub async fn start_core(&self) -> Result<()> {
|
||||
println!("start core");
|
||||
let mut running = self.running.lock().await;
|
||||
if *running {
|
||||
log::debug!("core is running");
|
||||
|
||||
@@ -150,7 +150,7 @@ pub async fn reinstall_service() -> Result<()> {
|
||||
let install_shell: String = installer_path.to_string_lossy().replace(" ", "\\\\ ");
|
||||
let uninstall_shell: String = uninstall_path.to_string_lossy().replace(" ", "\\\\ ");
|
||||
let command = format!(
|
||||
r#"do shell script "{uninstall_shell} && {install_shell}" with administrator privileges"#
|
||||
r#"do shell script "sudo {uninstall_shell} && sudo {install_shell}" with administrator privileges"#
|
||||
);
|
||||
|
||||
let status = StdCommand::new("osascript")
|
||||
|
||||
Reference in new issue
Block a user