Repository navigation
feat: add a button to check for updates - #42
Merged
Merged
Conversation
Settings gets a "Check for updates" button below "Update automatically". It uses the same check, download and signature verification as the automatic one, and works even with automatic updates off, since the user asked. The result says the app is up to date, that a version is ready to install (the usual banner appears) or that the check failed. - A version found this way stays ready when other settings are saved; it is only dropped when automatic updates are turned off. - Development builds refuse the check, like the automatic one. - The description and the README say the app goes online when you check for updates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Settings gets a Check for updates button below "Update automatically", so people don't have to wait for the next automatic check.
fetch_update, now shared by the 6-hour cycle and the newcheck_updatecommand). A version already downloaded is reused, not fetched again.!preferences.updates && expected.updates); before, any save with updates off dropped it.tauri devnever replaces itself with a release.Verification
npm run check,npm run lint, Vitest (273),npm run buildcargo fmt --check,cargo clippy -D warnings,cargo test(159)check_updatecall.Not verified: a real check against GitHub (only possible in an installed build of a later version), and keeping a found version when saving with updates off, which has no Rust test because the updater's
Updatecan't be built in a test.🤖 Generated with Claude Code