Skip to content

Conversation

Copy link

Copilot AI commented Jan 27, 2026

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.json now includes GitHub publish target for electron-builder:

    "publish": [{
      "provider": "github",
      "owner": "hellotaotao",
      "repo": "WhispLine"
    }]

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 management
  • electron-log@5.2.4 - Logging for update operations
Original prompt

This section details on the original issue you should resolve

<issue_title>App auto-update</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 27, 2026 15:20
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
Copilot AI requested a review from hellotaotao January 27, 2026 15:24
@hellotaotao hellotaotao marked this pull request as ready for review January 27, 2026 22:08
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.

App auto-update

2 participants