mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 21:38:32 +08:00
feat: Try support service mode for MacOS
This commit is contained in:
1 parent
9fc819a410
commit
e95808e6be
11 files changed
+158
-177
No files matched your search
@@ -331,7 +331,6 @@ pub fn exit_app(app_handle: tauri::AppHandle) {
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
#[cfg(any(windows, target_os = "linux"))]
|
||||
pub mod service {
|
||||
use super::*;
|
||||
use crate::core::service;
|
||||
@@ -352,24 +351,6 @@ pub mod service {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(any(windows, target_os = "linux")))]
|
||||
pub mod service {
|
||||
use super::*;
|
||||
|
||||
#[tauri::command]
|
||||
pub async fn check_service() -> CmdResult {
|
||||
Ok(())
|
||||
}
|
||||
#[tauri::command]
|
||||
pub async fn install_service() -> CmdResult {
|
||||
Ok(())
|
||||
}
|
||||
#[tauri::command]
|
||||
pub async fn uninstall_service() -> CmdResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(windows))]
|
||||
pub mod uwp {
|
||||
use super::*;
|
||||
|
||||
Reference in new issue
Block a user