Fix keep-server-running on macOS: ignore SIGHUP, watchdog grace period, build script fixes

This commit is contained in:
James Pine
2026-03-15 08:22:35 -07:00
parent fc450e5024
commit a5269d23db
8 changed files with 46 additions and 20 deletions
+6
View File
@@ -64,6 +64,12 @@ class TauriLifecycle implements PlatformLifecycle {
// @ts-expect-error - accessing module-level variable from another module
const serverStartedByApp = window.__voiceboxServerStartedByApp ?? false;
console.log(
'[lifecycle] window-close-requested: keepRunning=%s, serverStartedByApp=%s',
keepRunning,
serverStartedByApp,
);
if (!keepRunning && serverStartedByApp) {
// Stop server before closing (only if we started it)
try {