From cbc2d2d7181e2fcaeba78116dc5b1d5c0ac5469a Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 30 Jan 2025 09:01:31 +0100 Subject: [PATCH] Fix build on Linux --- crates/gitbutler-tauri/Cargo.toml | 6 +++--- crates/tauri-plugin-traffic-lights/src/lib.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/gitbutler-tauri/Cargo.toml b/crates/gitbutler-tauri/Cargo.toml index a5dde8a1fa..236ede727e 100644 --- a/crates/gitbutler-tauri/Cargo.toml +++ b/crates/gitbutler-tauri/Cargo.toml @@ -43,9 +43,6 @@ tauri-plugin-store = "2.2.0" tauri-plugin-updater = "2.3.0" tauri-plugin-window-state = "2.2.0" -[target.'cfg(target_os = "macos")'.dependencies] -tauri-plugin-traffic-lights = { path = "../tauri-plugin-traffic-lights" } - parking_lot.workspace = true log = "^0.4" # The features here optimize for performance. @@ -86,6 +83,9 @@ url = "2.5.4" gix-testtools.workspace = true insta.workspace = true +[target.'cfg(target_os = "macos")'.dependencies] +tauri-plugin-traffic-lights = { path = "../tauri-plugin-traffic-lights" } + [lints.clippy] all = "deny" perf = "deny" diff --git a/crates/tauri-plugin-traffic-lights/src/lib.rs b/crates/tauri-plugin-traffic-lights/src/lib.rs index 964ef474ed..e28bf94a8b 100644 --- a/crates/tauri-plugin-traffic-lights/src/lib.rs +++ b/crates/tauri-plugin-traffic-lights/src/lib.rs @@ -1,3 +1,4 @@ +#[cfg(target_os = "macos")] use tauri::{LogicalPosition, Runtime, Window}; #[cfg(target_os = "macos")]