Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

release-app make tray menu icon change according to health status (only on macos because it crashes on windows)

Louis Beaumont1c48f4d1e6ed
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 3cbe5106a..bdd667189 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.7"
+version = "0.22.8"
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..7077767ec 100755
--- a/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -881,13 +881,16 @@ async fn main() {
let server_shutdown_tx = spawn_server(app.handle().clone(), 11435);
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);
- }
- });
+ // Start health check service, only on macos since it's crashing on windows
+ #[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);