Skip to content

Add in-app update notifier#23

Merged
yarikleto merged 1 commit into
mainfrom
feat/update-notifier
Jun 16, 2026
Merged

Add in-app update notifier#23
yarikleto merged 1 commit into
mainfrom
feat/update-notifier

Conversation

@yarikleto

Copy link
Copy Markdown
Owner

Implements the chosen "in-app update notifier" approach.

How it works

  • On launch, the main process fetches releases/latest from the GitHub API (Node https, no new deps, sidesteps the renderer CSP) and compares the tag to app.getVersion().
  • If a newer version exists, it shows a dismissible banner ("Version X.Y.Z is available" + Update + ×) in the app's glass style. Update opens the releases page via shell.openExternal.
  • Best-effort and silent: offline / rate-limited / API errors just skip it. No banner when up to date.

Verified

  • Banner renders via the real preload→renderer IPC path (screenshotted), window auto-grows via the existing ResizeObserver.
  • Confirmed app.getVersion() reads package.json version in production (the dev script-launch returning the Electron version is a launch artifact only).
  • Unit tests for version comparison; lint + tests green (8/8).

Note: this only helps users from the next release onward — people on 1.0.2 don't have the checker yet.

Checks GitHub Releases once on launch (main process, no deps) and shows
a dismissible banner when a newer version exists; the Update button
opens the releases page in the browser. Works on all platforms,
unsigned. Adds unit tests for the version comparison.
@yarikleto
yarikleto merged commit 31daaa7 into main Jun 16, 2026
@yarikleto
yarikleto deleted the feat/update-notifier branch June 16, 2026 09:47
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