Auto Update Configuration
Tydora supports automatic updates: when a user launches the app, it automatically checks for and installs the latest version. This document explains how to configure the signing keys required for automatic updates.
How It Works
- When the developer builds the app, the installer is signed using a private key
- The build artifacts include a
.sigsignature file andlatest.jsonversion information - When the user launches the app, Tauri downloads
latest.jsonfrom GitHub Releases - After verifying the signature, it automatically downloads and installs the update
Generating Signing Keys
Installing minisign
# Windows (using scoop)
scoop install minisign
# macOS
brew install minisign
# Linux
sudo apt install minisign
Generating a Key Pair
minisign -G -s ~/.tauri/tydora.key -p ~/.tauri/tydora.key.pub
You will be prompted to enter a password; this password becomes TAURI_SIGNING_PRIVATE_KEY_PASSWORD.
This generates two files:
~/.tauri/tydora.key— private key (keep secret)~/.tauri/tydora.key.pub— public key (public)
Configuring GitHub Secrets
Steps
- Open the
zuorn/Tydorarepository - Go to Settings → Secrets and variables → Actions
- Click New repository secret
- Add the following secrets:
| Secret name | Value | Description |
|---|---|---|
TAURI_SIGNING_PRIVATE_KEY |
Private key file contents | The output of cat ~/.tauri/tydora.key |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD |
The password set when generating the key | Optional; leave empty if no password was set |
Copying the Private Key Contents
# Windows
type %USERPROFILE%\.tauri\tydora.key
# macOS / Linux
cat ~/.tauri/tydora.key
Paste the complete output into the GitHub Secret.
Configuring the Public Key
Configure the public key in src-tauri/tauri.conf.json:
{
"plugins": {
"updater": {
"pubkey": "<public key contents>",
"endpoints": [
"https://github.com/zuorn/Tydora/releases/latest/download/latest.json"
]
}
}
}
The public key contents can be obtained with the following command:
# Windows
type %USERPROFILE%\.tauri\tydora.key.pub
# macOS / Linux
cat ~/.tauri/tydora.key.pub
Build Artifacts
Once configured, Release builds automatically generate the following files:
| File | Description |
|---|---|
Tydora_x.x.x_x64-setup.exe |
Windows installer |
Tydora_x.x.x_x64-setup.exe.sig |
Windows signature file |
Tydora_aarch64.app.tar.gz |
macOS ARM installer |
Tydora_aarch64.app.tar.gz.sig |
macOS ARM signature file |
Tydora_amd64.AppImage |
Linux installer |
Tydora_amd64.AppImage.sig |
Linux signature file |
latest.json |
Version information (read automatically by Tauri) |
Verifying the Configuration
Local Verification
# Build the app
npm run tauri build
# Check whether .sig files were generated
ls src-tauri/target/release/bundle/nsis/*.sig
GitHub Actions Verification
- Push to the
releasebranch or trigger Actions manually - Review the build logs to confirm there are no signing-related errors
- Check that the Release contains the
.sigfiles andlatest.json
Frequently Asked Questions
Q: Build fails with a signing error
Make sure the value of TAURI_SIGNING_PRIVATE_KEY contains the complete private key contents, including the part that begins with untrusted comment:.
Q: Users cannot auto-update
Check whether latest.json is accessible:
https://github.com/zuorn/Tydora/releases/latest/download/latest.json
Q: How do I change the key
- Generate a new key pair with
minisign -G - Update the private key in the GitHub Secrets
- Update the public key in
tauri.conf.json - Rebuild and publish
Related Documents
- 01-Getting-Started/02-About — Version information
- 07-Settings/01-General-Settings — Application settings