Add automatic update checking and installation support - #2
Merged
Conversation
- Add tauri-plugin-updater and tauri-plugin-process to Rust and JS deps - Configure updater endpoint pointing to GitHub releases latest.json - Register updater and process plugins in the Tauri app builder - Add updater and process permissions to app capabilities - Add frontend update check on app startup (src/updater.ts) - Update release workflow: enable signing, publish releases (non-draft), and generate updater JSON artifacts for all platforms - Add generate-signing-key workflow for initial key pair setup https://claude.ai/code/session_01XaTAuPhJxfhe8wMWUqfaSz
2 tasks
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
This PR adds automatic update checking and installation functionality to the application using Tauri's updater plugin. The app now checks for updates on startup and can download and install them with progress tracking.
Key Changes
src/updater.ts): ImplementscheckForUpdates()function that checks for available updates, downloads them with progress logging, and relaunches the applicationtauri.conf.jsonwith GitHub releases endpointgenerate-signing-key.ymlworkflow for generating Tauri updater signing keysrelease.ymlto sign releases and generate updater metadata withupdaterJsonPreferNsis: truetauri-plugin-updaterandtauri-plugin-processdependencies and initialized them in the Tauri backendprocess:allow-restartandupdater:defaultpermissionsImplementation Details
checkForUpdates()function accepts an optionalinteractiveparameter to control logging behaviorlatest.jsonfrom GitHub releasestauri.conf.jsonbefore deploymenthttps://claude.ai/code/session_01XaTAuPhJxfhe8wMWUqfaSz