Repository navigation
feat: in-app update checks and one-click install - #16
Merged
Merged
Conversation
The updater plugin, signing key and manifest were all wired up but nothing in the frontend ever called check(), so the "you'll see a notification" promise in the docs was never true. - updaterStore wraps check / downloadAndInstall / relaunch with idle/checking/available/downloading/ready/error states and download progress. Background checks (15s after launch, then every 6h) are silent; only an available update changes the UI. - Settings > Updates card: current version, last checked, "Check for updates automatically" toggle (new autoCheckUpdates setting, default on), release notes, progress bar, Install & Restart. - Green dot on the sidebar Settings icon while an update is pending. - updater_can_self_update (Rust) reports whether the install can replace itself; Linux .deb/.rpm get a link to Releases instead of a button. - Tighten the desktop capability to updater:allow-check, updater:allow-download-and-install and process:allow-restart. - examples/updater_probe.rs downloads and signature-verifies the latest release against the real manifest; verified against v0.4.0.
Contributor
Rust Security Scan
cargo audit (tail)cargo deny (tail)cargo clippy (tail) |
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
The updater plugin, signing key and
update.jsonmanifest were all in place, but nothing in the frontend ever calledcheck()— so the "you'll see a notification in the app" promise was never true. This wires up the last mile.What's included
updaterStore(src/lib/stores/updater.svelte.ts) — wrapscheck/downloadAndInstall/relaunch; exposes status, download progress, release notes. Background checks run 15s after launch and every 6h and are silent: only an available update changes the UI, so offline/private-cluster setups never see errors.autoCheckUpdatessetting, default on), release notes, progress bar, Install & Restart.updater_can_self_update(Rust) — Linux.deb/.rpminstalls can't replace themselves; they get a link to Releases instead of an install button (detected via theAPPIMAGEenv var Tauri's updater itself uses).updater:defaulttoupdater:allow-check,updater:allow-download-and-install, plusprocess:allow-restart.examples/updater_probe.rs— downloads and signature-verifies the latest release against the real manifest without installing anything.Verification
update available 0.3.9 -> 0.4.0from the live gh-pages manifest.cargo run --example updater_probedownloadedKore_aarch64.app.tar.gz(5.5 MB) and the minisign signature verified against the embedded pubkey.Caveats
signingIdentity: "-"), so the replaced.appmay hit the same Gatekeeper "Open Anyway" prompt as a fresh install. Notarization would fix that but needs an Apple Developer account.