Add signed GitHub auto-updater - #20
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: faf8f83c4b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if !autostart_launch { | ||
| desktop::show_main_window(app.handle()); | ||
| updates::check_on_start(app.handle().clone()); |
There was a problem hiding this comment.
Check for updates when an autostart instance is opened
After the app registers itself for autostart, the normal post-login state is a long-lived --autostart instance, so this condition skips its only update check. A later interactive launch is handled by the single-instance callback above, which only shows the existing window and never calls check_on_start; consequently, users who leave the tray process running will never be offered updates after reboot. Trigger the check when a non-autostart secondary launch opens the existing instance (with suitable deduplication), while keeping the initial login launch silent.
Useful? React with 👍 / 👎.
Summary
latest.jsonfrom a Windows GitHub Actions release workflowRelease setup required
Before the first updater-enabled release, configure:
TAURI_SIGNING_PRIVATE_KEYTAURI_SIGNING_PRIVATE_KEY_PASSWORDTAURI_UPDATER_PUBLIC_KEYSee
docs/releasing.mdfor the signer command and release flow.Notes
TAURI_UPDATER_PUBLIC_KEYcompile normally and simply skip update checksValidation
Cargo.lockwas regenerated from the existing master lockfile without unrelated dependency upgradesscripts/check.ps1passes on a clean Windows GitHub Actions runner with the updater integration enabled