Skip to content

Fix main-process updater crash on broken pipe in dev mode - #107

Open
DocInTardis wants to merge 1 commit into
blueberrycongee:mainfrom
DocInTardis:fix/updater-broken-pipe
Open

Fix main-process updater crash on broken pipe in dev mode#107
DocInTardis wants to merge 1 commit into
blueberrycongee:mainfrom
DocInTardis:fix/updater-broken-pipe

Conversation

@DocInTardis

Copy link
Copy Markdown
Contributor

Summary

  • disable scheduled auto-update checks in dev mode
  • wrap electron-updater logging with an EPIPE-safe logger
  • add regression coverage for broken-pipe handling and dev-mode scheduling

Why

On Windows dev runs, electron-updater can log through a broken output pipe and throw EPIPE, which crashes the Electron main process and leaves the app partially unusable behind the system error dialog.

Validation

  • node --experimental-strip-types --test tests/auto-updater.test.ts
  • node node_modules/typescript/bin/tsc --noEmit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant