Skip to content

Commit

Permalink
release-app make tray menu icon change according to health status (on…
Browse files Browse the repository at this point in the history
…ly on macos because it crashes on windows)
  • Loading branch information
louis030195 committed Jan 7, 2025
1 parent 07f372b commit 1c48f4d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion screenpipe-app-tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
version = "0.22.7"
version = "0.22.8"
description = ""
authors = ["you"]
license = ""
Expand Down
17 changes: 10 additions & 7 deletions screenpipe-app-tauri/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c48f4d

Please sign in to comment.