fix: upgrade mihomo core failed (#5646)

* fix: upgrade mihomo core failed

* fix: upgrade core failed when run core by service

* fix: app freeze when restart core on windows

* deps: bump clash-verge-rev-ipc version lock

---------

Co-authored-by: Tunglies <77394545+Tunglies@users.noreply.github.com>
This commit is contained in:
oomeow
2025-12-03 21:48:30 +08:00
committed by GitHub
co-authored by Tunglies
parent 29cf57d4b9
commit 9388b73c1f
9 changed files with 40 additions and 61 deletions
+8 -2
View File
@@ -1,8 +1,8 @@
use super::{CoreManager, RunningMode};
use crate::{
AsyncHandler,
config::Config,
core::{handle, logger::CLASH_LOGGER, service},
config::{Config, IClashTemp},
core::{handle, manager::CLASH_LOGGER, service},
logging,
utils::{dirs, init::sidecar_writer},
};
@@ -39,6 +39,12 @@ impl CoreManager {
dirs::path_to_str(&config_dir)?,
"-f",
dirs::path_to_str(&config_file)?,
if cfg!(windows) {
"-ext-ctl-pipe"
} else {
"-ext-ctl-unix"
},
&IClashTemp::guard_external_controller_ipc(),
])
.spawn()?;