feat(updater): add auto-update check and install banner#3
Merged
Conversation
The updater install flow requires a process restart on macOS/Linux, which is provided by tauri-plugin-process. Wire it on both the JS side (@tauri-apps/plugin-process 2.3.1) and the Rust side, and grant the default capability the process:default permission set.
Existing v0.5.0 users have no in-app notification path for new releases; they only find out by manually checking GitHub. The plugin-updater and minisign endpoint were already configured but nothing consumed them. useUpdater polls check() 5 seconds after launch and every 6 hours while the app is running, persisting per-version dismissals in tauri-plugin-store so 'X' on the banner stays sticky across reloads until a newer version arrives. UpdateBanner renders below the header with download progress, an 'Install and relaunch' button that calls downloadAndInstall() then relaunch(), and a dismiss button. Styling matches ExternalChangeBanner (sticky, themed, no layout shift).
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.
Summary
useUpdaterhook that polls the updater endpoint 5 seconds after launch and every 6 hours while the app is running. Per-version dismissals persist intauri-plugin-store.UpdateBannercomponent below the header: shows version, download progress, install-and-relaunch button, and a dismiss button. Styling matchesExternalChangeBanner(sticky, themed).tauri-plugin-process(JS + Rust) so the install flow canrelaunch()afterdownloadAndInstall()completes.process:defaultpermission to the default capability.Why
The updater plugin and signed-artifact pipeline have been configured since v0.4 but nothing consumed them. Existing users only find out about new releases by manually checking GitHub. This is the missing fast-follow before v0.6 ships, so v0.5.0 users actually get pinged when v0.6 lands.
Validation
bun run buildcleancargo checkclean