Skip to content

Commit

Permalink
release-app revert again windows tray menu crash
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jan 8, 2025
1 parent 7ae5a14 commit 1936bee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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.9"
version = "0.23.0"
description = ""
authors = ["you"]
license = ""
Expand Down
16 changes: 10 additions & 6 deletions screenpipe-app-tauri/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1936bee

Please sign in to comment.