Skip to content

feat: update checking via GitHub releases API#8

Merged
JBolanle merged 9 commits into
mainfrom
feat/update-checking
May 8, 2026
Merged

feat: update checking via GitHub releases API#8
JBolanle merged 9 commits into
mainfrom
feat/update-checking

Conversation

@JBolanle
Copy link
Copy Markdown
Owner

@JBolanle JBolanle commented May 8, 2026

Summary

  • Adds a check_for_update Rust command that silently checks the GitHub releases API (5s timeout, no CSP changes needed) and returns the latest version if newer than the current build
  • Shows a persistent toast with a Download button (opens GitHub releases page) when an update is found; silent if already up to date
  • Runs automatically on startup and manually via Help → Check for Updates… (new macOS menu item)

Test Plan

  • Run npm test — 87 tests pass across 10 files
  • Run cargo test from src-tauri/ — 38 tests pass
  • Build and launch the app; confirm no update toast appears if already on latest
  • Temporarily set CARGO_PKG_VERSION to 0.0.1 (or mock the API response) to verify the update toast appears with a Download button
  • Click Help → Check for Updates… — confirm toast appears when update available, or "You're on the latest version" when not
  • Click Download — confirm GitHub releases page opens in the browser

🤖 Generated with Claude Code

@JBolanle JBolanle merged commit b32da22 into main May 8, 2026
6 checks passed
@JBolanle JBolanle deleted the feat/update-checking branch May 8, 2026 04:06
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