also looking at this
fix(app): a settings.json this build cannot read no longer loops the app
#46
4 files
+130
-22
| @@ -51,7 +51,14 @@ function craftRuntime(): string { | ||
| 51 | 51 | return found |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | const agent = await startDesktopAgent({ version: pkg.version }) | |
| 54 | // Anything thrown in here happens before the menubar exists, and launchd's | |
| 55 | // KeepAlive restarts a non-zero exit, so the loop would be silent: the plist | |
| 56 | // sets no StandardErrorPath, and the rebinding above only catches what goes | |
| 57 | // through `console`. Exit the same way, having said why first. | |
| 58 | const agent = await startDesktopAgent({ version: pkg.version }).catch((error: unknown) => { | |
| 59 | console.error(`[uplink] could not start: ${error instanceof Error ? error.stack ?? error.message : String(error)}`) | |
| 60 | return process.exit(1) | |
| 61 | }) | |
| 55 | 62 | console.log(`[uplink] ${pkg.version} serving the menubar on 127.0.0.1:${agent.port}`) |
| 56 | 63 | |
| 57 | 64 | // --tray-popover: Craft hangs the page under the status item on the popover |