Skip to content

feat: desktop auto update#5

Merged
lazydonkeytim merged 3 commits into
mainfrom
feat/desktop-auto-update
May 5, 2026
Merged

feat: desktop auto update#5
lazydonkeytim merged 3 commits into
mainfrom
feat/desktop-auto-update

Conversation

@lazydonkeytim

Copy link
Copy Markdown
Collaborator

Adds automatic update checking and one-click installation to the Tauri desktop app.

Changes

Rust / Tauri

  • Add tauri-plugin-updater with two commands: check_for_update and install_update
  • Configure updater endpoint (github.com/philbir/mango/releases/latest/download/latest.json) and signing public key in tauri.conf.json
  • Grant updater permissions in capabilities

UI

  • useUpdater hook — checks for updates on startup (4 s delay), no-op outside Tauri
  • UpdateBanner component — slim green top banner with Install & Restart and dismiss; shown only when a newer version is available

CI

  • Sign artifacts with TAURI_SIGNING_PRIVATE_KEY and publish latest.json via includeUpdaterJson: true

Also included

  • Fix: AI assistant no longer errors on empty message history

When an AI request fails, the assistant placeholder message is stored
with content: "" and error set. On the next send, these messages were
included in the history sent to the server, which caused a zod
validation error ('String must contain at least 1 character(s)').

Also ignore *.csproj.lscache files and remove the tracked one.
- Add tauri-plugin-updater (Rust) with check_for_update and install_update commands
- Configure updater endpoint pointing at GitHub Releases latest.json
- Add updater permissions to Tauri capabilities
- UpdateBanner React component: slim top banner shown only inside Tauri webview
- useUpdater hook: checks on startup (4s delay), exposes install/dismiss
- Wire UpdateBanner above KeyHealthBanner in App
- CI: pass TAURI_SIGNING_PRIVATE_KEY and set includeUpdaterJson: true so
  latest.json is published as a release asset on every tagged build

Also fix: AI assistant empty-history handling (assistant context)
@lazydonkeytim lazydonkeytim merged commit dce5893 into main May 5, 2026
1 check passed
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