Skip to content

feat: updater#183

Merged
olivermrose merged 11 commits intomainfrom
feat/updater
Mar 15, 2026
Merged

feat: updater#183
olivermrose merged 11 commits intomainfrom
feat/updater

Conversation

@olivermrose
Copy link
Copy Markdown
Collaborator

No description provided.

@olivermrose olivermrose marked this pull request as ready for review March 15, 2026 05:10
Copilot AI review requested due to automatic review settings March 15, 2026 05:10
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds in-app update support for the Tauri desktop app, including updater configuration and release pipeline changes to generate/sign updater artifacts.

Changes:

  • Add an updater flow in the main Svelte layout that checks for updates, installs them, and optionally relaunches the app.
  • Enable/configure the Tauri updater plugin (config, capabilities, Rust plugin registration) and add required Tauri plugins (dialog/process).
  • Update the GitHub release workflow to sign builds and publish latest.json updater metadata.

Reviewed changes

Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/routes/(main)/+layout.svelte Adds on-mount update check + install + relaunch prompting.
src-tauri/tauri.conf.json Enables updater artifacts + configures updater endpoints/pubkey.
src-tauri/src/lib.rs Registers updater/dialog/process plugins in the Tauri builder.
src-tauri/src/json.rs Rust formatting-only changes.
src-tauri/capabilities/desktop.json Grants updater permission for the main window on desktop platforms.
src-tauri/capabilities/default.json Grants dialog/process permissions for updater UX and relaunch.
src-tauri/Cargo.toml Adds updater/dialog/process plugin dependencies.
src-tauri/Cargo.lock Dependency lock updates from added plugins.
package.json Adds JS-side updater/dialog/process plugins + bumps @tauri-store/svelte.
pnpm-lock.yaml Lockfile updates for new JS dependencies.
.github/workflows/release.yml Adds signing env vars and publishes updater JSON; adjusts macOS bundle args.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +26 to +44
const update = await check();
if (!update) return;
const install = await ask(
`A new update is available. Would you like to install it now?`,
"Update Available",
);
if (!install) return;
await update.downloadAndInstall();
const restart = await ask(
`Update installed. Would you like to restart the app now?`,
"Restart Required",
);
if (restart) {
await relaunch();
@olivermrose olivermrose merged commit e1e6497 into main Mar 15, 2026
2 checks passed
@olivermrose olivermrose deleted the feat/updater branch March 15, 2026 05:15
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.

2 participants