Investigating Electron Startup Failures

This commit is contained in:
2026-05-31 16:24:14 +02:00
parent 33665ed896
commit 42a298925b
5 changed files with 28 additions and 27 deletions
+4 -5
View File
@@ -5,11 +5,10 @@
1. `src/main/main.ts` loads `appConfig` from `config/runtime-config.ts`.
2. Installs or refreshes the packaged NodeCG runtime in user data when needed (`nodecg/runtime-provisioner.ts`).
3. Creates windows (`windows/window-factory.ts`).
4. In packaged builds, relaunches once after a fresh runtime install so NodeCG starts from a settled user-data runtime.
5. Starts NodeCG with `nodecg/process-manager.ts`.
6. Waits for HTTP readiness and shows loading -> main dashboard.
7. Checks the configured Gitea latest-release endpoint for optional updates.
8. On shutdown, runs a single graceful-stop flow to avoid orphan processes.
4. Starts NodeCG with `nodecg/process-manager.ts`.
5. Waits for HTTP readiness and shows loading -> main dashboard.
6. Checks the configured Gitea latest-release endpoint for optional updates.
7. On shutdown, runs a single graceful-stop flow to avoid orphan processes.
## Main modules