Skip to content

feat: check for updates and install them in the app - #2

Merged
s3rgiosan merged 2 commits into
mainfrom
feat/update-check
Nov 6, 2026
Merged

s3rgiosan merged 2 commits into
mainfrom
feat/update-check

Conversation

@s3rgiosan

Copy link
Copy Markdown
Owner

tskdeck looks for a newer release one minute after launch and then once a day. When it finds one, a card at the foot of the sidebar shows Install and Relaunch and Later. Later hides the card until the app quits. A check that the user starts shows the card again.

  • Check for Updates… is in the app menu on macOS and in the command palette. When no update is available, an alert says so. A failed check shows the error.
  • Settings → General has the Check for updates automatically setting (on by default) and a Check Now button with a status line.
  • src-tauri/src/updates.rs runs the checks through tauri-plugin-updater, keeps the release found, and downloads and installs it with progress.
  • The release workflow signs the update files and uploads latest.json to the release. A preflight job stops the release when TAURI_SIGNING_PRIVATE_KEY or TAURI_SIGNING_PRIVATE_KEY_PASSWORD is not set. Both secrets are set.

Versions 1.0.0 and 1.0.1 do not include the updater, so users of those versions must install the next release manually.

Tests: npm test (488 passed), npm run typecheck, cargo test (92 unit tests and 5 update tests passed) and cargo clippy --all-targets. A full update from one release to the next can only be tested after two releases with the updater exist.

tskdeck looks for a newer release one minute after launch and then once
a day, through tauri-plugin-updater. A card at the foot of the sidebar
installs the release and relaunches the app, or hides it with Later
until the app quits.

Check for Updates… is in the app menu on macOS and in the command
palette. Settings → General has the automatic check setting and a Check
Now button.

The release workflow signs the update files and uploads latest.json.
It stops when the signing secrets are not set.
@s3rgiosan
s3rgiosan merged commit b1d0388 into main Nov 6, 2026
4 checks passed
@s3rgiosan
s3rgiosan deleted the feat/update-check branch November 6, 2026 10:10
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