Skip to content
Snippets Groups Projects
Unverified Commit 52658886 authored by GyDi's avatar GyDi
Browse files

fix: add target os linux

parent 8174ab76
No related branches found
No related tags found
No related merge requests found
...@@ -177,10 +177,10 @@ pub async fn restart_sidecar() -> CmdResult { ...@@ -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());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment