build: Try restart windows service after install (#395)

This commit is contained in:
MystiPanda
2024-02-18 10:19:54 +08:00
committed by GitHub
parent 69cf237d7a
commit 5106d77c77
5 changed files with 106 additions and 72 deletions

View File

@@ -92,14 +92,9 @@ pub fn clash_pid_path() -> Result<PathBuf> {
Ok(app_home_dir()?.join("clash.pid"))
}
#[cfg(windows)]
pub fn service_dir() -> Result<PathBuf> {
Ok(app_home_dir()?.join("service"))
}
#[cfg(windows)]
pub fn service_path() -> Result<PathBuf> {
Ok(service_dir()?.join("clash-verge-service.exe"))
Ok(app_resources_dir()?.join("clash-verge-service.exe"))
}
#[cfg(windows)]