Skip to content

feat: add a button to check for updates - #42

Merged
thonyydev merged 1 commit into
mainfrom
feat/check-for-updates
Nov 7, 2026
Merged

thonyydev merged 1 commit into
mainfrom
feat/check-for-updates

Conversation

@thonyydev

Copy link
Copy Markdown
Owner

Summary

Settings gets a Check for updates button below "Update automatically", so people don't have to wait for the next automatic check.

  • It runs the same check, download and signature verification as the automatic one (fetch_update, now shared by the 6-hour cycle and the new check_update command). A version already downloaded is reused, not fetched again.
  • It works even with automatic updates off, since the user asked. Installing still goes through the usual "Install now" banner.
  • The result shows under the button: up to date (with the current version), a version ready to install, or "Couldn't check for updates. Check your connection and try again." The technical error goes to the log.
  • A version found this way stays ready when other settings are saved. It is dropped only when automatic updates are turned off in that save (!preferences.updates && expected.updates); before, any save with updates off dropped it.
  • Development builds refuse the check, like the automatic one, so tauri dev never replaces itself with a release.
  • The "Update automatically" description and the README (updates and privacy) now say the app goes online when you check for updates.

Verification

  • npm run check, npm run lint, Vitest (273), npm run build
  • cargo fmt --check, cargo clippy -D warnings, cargo test (159)
  • New Settings test: the three results (up to date, version found, error) and the check_update call.

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 Update can't be built in a test.

🤖 Generated with Claude Code

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>
@thonyydev
thonyydev merged commit ff7e9d2 into main Nov 7, 2026
2 checks passed
@thonyydev
thonyydev deleted the feat/check-for-updates branch November 7, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant