feat(desktop): restore Tauri auto-updater support#393
Merged
wesbillman merged 2 commits intomainfrom Apr 23, 2026
Merged
Conversation
The updater was removed in #360 ("Remove release pipeline from public repo") as collateral when the CI workflows were moved. This restores all client-side updater scaffolding: - Add tauri-plugin-updater dependency (Rust + npm) - Restore build.rs env var detection (SPROUT_UPDATER_PUBLIC_KEY, SPROUT_UPDATER_ENDPOINT) and cfg(sprout_updater_enabled) flag - Restore conditional plugin registration in lib.rs (release builds only, double-gated on compile-time cfg + debug_assertions) - Add plugins.updater config skeleton to tauri.conf.json - Add updater capability permissions - Restore UpdateChecker frontend component and wire it into Settings The updater endpoint and public key are injected at release build time by the external release pipeline. Local dev builds are unaffected. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ities - Store the Update handle in a ref and reuse it for download instead of calling check() twice (fixes resource leak and TOCTOU issue) - Close previous Update resource before re-checking - Remove redundant updater:default capability (allow-check and allow-download-and-install are sufficient) - Remove unused progress tracking field Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
luispadron
approved these changes
Apr 23, 2026
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
tauri-plugin-updaterdependency (Rust + npm), build.rs env var detection, conditional plugin registration, updater capabilities, and config skeletonUpdateCheckerfrontend component and wires it into Settings as a new "Updates" sectioncfg(sprout_updater_enabled)requiresSPROUT_UPDATER_PUBLIC_KEY+SPROUT_UPDATER_ENDPOINTenv vars, and runtimedebug_assertionscheck prevents activation in dev buildsNot included (handled by external release pipeline):
build-release-config.mjs,publish-updater-to-github-release.mjs,publish-dmg-to-github-release.mjs,set-version-from-tag.mjs, CI workflow YAML.Test plan
cargo checkpasses indesktop/src-tauri(requires sidecar binaries to be present)pnpm typecheckandpnpm checkpass indesktop/sprout_updater_enablednot set → updater skipped)SPROUT_UPDATER_PUBLIC_KEYandSPROUT_UPDATER_ENDPOINTset activates the updater plugin🤖 Generated with Claude Code