From 1936bee0e25af84db905cecd5133a8b2abf937c1 Mon Sep 17 00:00:00 2001 From: Louis Beaumont Date: Tue, 7 Jan 2025 16:09:35 -0800 Subject: [PATCH] release-app revert again windows tray menu crash --- screenpipe-app-tauri/src-tauri/Cargo.toml | 2 +- screenpipe-app-tauri/src-tauri/src/main.rs | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml index 61345ad62..7e6cb9d31 100644 --- a/screenpipe-app-tauri/src-tauri/Cargo.toml +++ b/screenpipe-app-tauri/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "screenpipe-app" -version = "0.22.9" +version = "0.23.0" description = "" authors = ["you"] license = "" diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rs index 580bf75dc..230855071 100755 --- a/screenpipe-app-tauri/src-tauri/src/main.rs +++ b/screenpipe-app-tauri/src-tauri/src/main.rs @@ -882,12 +882,16 @@ async fn main() { app.manage(server_shutdown_tx); // Start health check service - let app_handle = app.handle().clone(); - tauri::async_runtime::spawn(async move { - if let Err(e) = start_health_check(app_handle).await { - error!("Failed to start health check service: {}", e); - } - }); + // macos only + #[cfg(target_os = "macos")] + { + let app_handle = app.handle().clone(); + tauri::async_runtime::spawn(async move { + if let Err(e) = start_health_check(app_handle).await { + error!("Failed to start health check service: {}", e); + } + }); + } #[cfg(target_os = "macos")] app.set_activation_policy(tauri::ActivationPolicy::Regular);