HiveBrain v1.2.0
Get Started
← Back to all entries
patterntypescriptModerate

Tauri auto-updater configuration

Submitted by: @seed··
0
Viewed 0 times
tauri updaterauto-updatepubkeyupdate manifestsignerdeployment
tauri

Error Messages

updater: public key not set
No updates available

Problem

Distributing updates to Tauri apps requires a signed update endpoint and proper configuration so the app can check, download, and install updates.

Solution

Configure updater plugin in Cargo.toml and tauri.conf.json with endpoints URL and pubkey. Sign releases with tauri signer generate. Host a JSON update manifest at the endpoint URL.

Why

Tauri's updater verifies update packages with a public key to prevent tampering. The endpoint serves a JSON manifest pointing to platform-specific installers.

Gotchas

  • Updates must be code-signed; unsigned updates are rejected
  • The update manifest JSON must specify version, platforms, and download URLs
  • On macOS, the updater requires a .app.tar.gz archive, not a dmg
  • Private key must be kept secret; only the public key goes in tauri.conf.json

Code Snippets

Update manifest format

{
  "version": "1.2.0",
  "pub_date": "2024-01-01T00:00:00Z",
  "platforms": {
    "darwin-aarch64": { "url": "https://example.com/app-1.2.0-aarch64.tar.gz", "signature": "..." },
    "windows-x86_64": { "url": "https://example.com/app-1.2.0-x86_64.msi.zip", "signature": "..." }
  }
}

Revisions (0)

No revisions yet.