Skip to content

Updater: 'Restart now' button after an update installs#85

Open
bryanroscoe wants to merge 1 commit into
mainfrom
feat/update-restart-button
Open

Updater: 'Restart now' button after an update installs#85
bryanroscoe wants to merge 1 commit into
mainfrom
feat/update-restart-button

Conversation

@bryanroscoe

Copy link
Copy Markdown
Owner

After an update downloads + installs, the header badge showed 'Update installed — restart the app to apply.' as static text — leaving the user to figure out they had to quit and reopen.

Now it's a 'Update installed — Restart now ↻' button that relaunches the app in one click via Tauri's process plugin, finishing the update.

  • Adds tauri-plugin-process (Rust) + @tauri-apps/plugin-process (JS), registered in lib.rs, with the process:allow-restart capability.
  • Restart button styled as a filled accent CTA so it reads as actionable.
  • If relaunch() fails, falls back to a clear 'quit and reopen manually' message.

This is the in-app half of the macOS update story; the bundle-swap itself still needs the app to not be quarantine-translocated (separate, signing-related limitation). No screenshot regen — the post-install state only appears after a real update, which the demo fixture never triggers.

cargo fmt/clippy/build green; npm run check 0/0; build green.

After an update installs, the badge read 'Update installed — restart the
app to apply' as dead text. Make it a button that relaunches the app via
the process plugin (tauri-plugin-process + process:allow-restart), so the
user can finish the update in one click. Falls back to a 'quit and reopen'
message if relaunch fails.
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