Skip to content

Release and Auto Updater

hinditutorpoint edited this page Nov 29, 2026 · 1 revision

Release & Auto-Updater

1. Generate Signing Keys (One-Time)

npm run tauri -- signer generate -w "$env:USERPROFILE\.tauri\cims-pro.key"
  1. Copy the generated public key into src-tauri/tauri.conf.json → plugins.updater.pubkey.
  2. Add the private key to GitHub Repository Secrets (Settings → Secrets and variables → Actions):
    • TAURI_SIGNING_PRIVATE_KEY
    • TAURI_SIGNING_PRIVATE_KEY_PASSWORD

2. Publish a Release

Tag and push a version (e.g., v0.1.0):

git tag v0.1.0
git push origin v0.1.0

GitHub Actions (.github/workflows/release.yml) automatically:

  1. Syncs the version into package.json, src-tauri/tauri.conf.json, and src-tauri/Cargo.toml.
  2. Builds the Windows NSIS installer (x86_64-pc-windows-msvc).
  3. Signs the updater artifact and publishes latest.json + .sig + .exe to GitHub Releases.

3. In-App Update Flow

On production startup, useAppUpdater checks https://github.com/bhsorg/cims-pro/releases/latest/download/latest.json. If a newer version exists, an Update Available dialog displays the release notes, download progress bar, and Update & Restart button.