mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
fix: add target os linux
This commit is contained in:
parent
8174ab7616
commit
52658886e7
|
@ -177,10 +177,10 @@ pub async fn restart_sidecar() -> CmdResult {
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn grant_permission(core: String) -> CmdResult {
|
pub fn grant_permission(core: String) -> CmdResult {
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
return wrap_err!(manager::grant_permission(core));
|
return wrap_err!(manager::grant_permission(core));
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
|
||||||
return Err("Unsupported target".into());
|
return Err("Unsupported target".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user