From 83be65c6b3ece74098e373e5997143b9b1e0dc91 Mon Sep 17 00:00:00 2001 From: 0xzion <0xzion.penx@gmail.com> Date: Sun, 23 Jun 2024 22:51:17 +0800 Subject: [PATCH] chore: disable windows.rs --- packages/tauri-plugin-jarvis/src/commands/system.rs | 4 ++++ packages/tauri-plugin-jarvis/src/syscmds/mod.rs | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/tauri-plugin-jarvis/src/commands/system.rs b/packages/tauri-plugin-jarvis/src/commands/system.rs index bb0f39469..cf1db6ad9 100644 --- a/packages/tauri-plugin-jarvis/src/commands/system.rs +++ b/packages/tauri-plugin-jarvis/src/commands/system.rs @@ -1,5 +1,9 @@ use applications::AppInfo; +#[cfg(target_os = "macos")] +use crate::syscmds::{CommonSystemCmds, SystemCmds}; + +#[cfg(target_os = "linux")] use crate::syscmds::{CommonSystemCmds, SystemCmds}; use super::utils::run_apple_script; diff --git a/packages/tauri-plugin-jarvis/src/syscmds/mod.rs b/packages/tauri-plugin-jarvis/src/syscmds/mod.rs index f5b15d617..d6b275965 100644 --- a/packages/tauri-plugin-jarvis/src/syscmds/mod.rs +++ b/packages/tauri-plugin-jarvis/src/syscmds/mod.rs @@ -8,8 +8,9 @@ mod mac; pub use mac::SystemCmds; #[cfg(target_os = "windows")] mod windows; -#[cfg(target_os = "windows")] -pub use windows::SystemCmds; + +// #[cfg(target_os = "windows")] +// pub use windows::SystemCmds; use anyhow::Result;