Add auto-update functionality using electron-updater#15
Open
Add auto-update functionality using electron-updater#15
Conversation
Co-authored-by: hellotaotao <1796860+hellotaotao@users.noreply.github.com>
Co-authored-by: hellotaotao <1796860+hellotaotao@users.noreply.github.com>
Co-authored-by: hellotaotao <1796860+hellotaotao@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add app auto-update feature
Add auto-update functionality using electron-updater
Jan 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements automatic application updates via GitHub Releases using
electron-updater.Changes
Auto-updater service (
src/auto-updater.js): Encapsulates update lifecycle - checking, downloading, installing. Dialogs require user consent for downloads. Auto-installs on app quit.Main process integration: Initializes updater post-window creation (production only). Adds IPC handler and menu item for manual checks. 3s startup delay for non-intrusive background checking.
UI: Refresh icon button next to version number in sidebar. Triggers manual update check on click.
Configuration:
package.jsonnow includes GitHub publish target for electron-builder:Behavior
Development mode (
--dev): Auto-updater disabled entirely.Production builds: Silent check on startup → user prompt if update available → download → prompt to restart → install on quit.
Dependencies
electron-updater@6.7.3- Update managementelectron-log@5.2.4- Logging for update operationsOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.