From 7a95f3c9948fa9b982e680277f2af9012fd979a3 Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Tue, 11 Aug 2026 02:37:47 +0800 Subject: [PATCH] Conditionally compile tray module and imports for macOS and Windows targets --- src-tauri/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 89e277f..1e6d66e 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -11,6 +11,7 @@ mod core_config; mod core_runtime; mod management_api; mod provider_health; +#[cfg(any(target_os = "macos", target_os = "windows"))] mod tray; mod usage; @@ -66,6 +67,7 @@ use tauri::{Emitter, LogicalSize, Manager}; use tauri_plugin_autostart::ManagerExt as AutostartManagerExt; use tauri_plugin_opener::OpenerExt; use tokio_util::sync::CancellationToken; +#[cfg(any(target_os = "macos", target_os = "windows"))] use tray::*; use zip::ZipArchive;