windows服务配置

This commit is contained in:
lubeilin
2023-05-28 21:11:47 +08:00
parent 78ae5f3036
commit cf7854906f
3 changed files with 8 additions and 2 deletions
+6 -1
View File
@@ -17,7 +17,12 @@ lazy_static! {
#[cfg(windows)]
pub fn get_win_server_home() -> PathBuf {
"./".into()
SWITCH_HOME_PATH.lock().as_ref().unwrap().clone()
}
#[cfg(windows)]
pub fn set_win_server_home(home:PathBuf) {
let _ = SWITCH_HOME_PATH.lock().insert(home);
}
pub struct StartConfig {