Skip to content

Add signed GitHub auto-updater - #20

Merged
StephanOrgiazzi merged 16 commits into
masterfrom
feat/auto-updater
Aug 21, 2026
Merged

StephanOrgiazzi merged 16 commits into
masterfrom
feat/auto-updater

Conversation

@StephanOrgiazzi

@StephanOrgiazzi StephanOrgiazzi commented Aug 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • add the official Tauri updater plugin and check GitHub Releases on normal app startup
  • prompt with Install / Later when a newer release is available
  • keep autostart launches silent (no update prompt at Windows login)
  • generate signed updater artifacts and latest.json from a Windows GitHub Actions release workflow
  • document the one-time Tauri updater signing-key setup

Release setup required

Before the first updater-enabled release, configure:

  • repository secret TAURI_SIGNING_PRIVATE_KEY
  • optional repository secret TAURI_SIGNING_PRIVATE_KEY_PASSWORD
  • repository variable TAURI_UPDATER_PUBLIC_KEY

See docs/releasing.md for the signer command and release flow.

Notes

  • release builds use the NSIS updater path; Tauri's Windows updater defaults to passive installation, allowing the per-machine installer to request elevation
  • the existing NSIS hooks continue to stop/remove and recreate the private Everything service during upgrades
  • local builds without TAURI_UPDATER_PUBLIC_KEY compile normally and simply skip update checks

Validation

  • Cargo.lock was regenerated from the existing master lockfile without unrelated dependency upgrades
  • scripts/check.ps1 passes on a clean Windows GitHub Actions runner with the updater integration enabled

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src-tauri/src/main.rs Outdated
Comment on lines +60 to +62
if !autostart_launch {
desktop::show_main_window(app.handle());
updates::check_on_start(app.handle().clone());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

@StephanOrgiazzi
StephanOrgiazzi merged commit 34b20c9 into master Aug 21, 2026
@StephanOrgiazzi
StephanOrgiazzi deleted the feat/auto-updater branch August 21, 2026 14:24
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