Generate a latest.json file for Tauri auto-updates, supporting multi-platform builds (Windows, macOS Intel/ARM, Linux).
This crate scans your Tauri bundle directory for installers and outputs a valid latest.json for the Tauri Updater.
- Detects installers:
.msi,.exe,.dmg(Intel/ARM),.AppImage,.deb,.rpm,.tar.gz - Auto-detects platform keys from filenames
- Reads version from
package.jsonorCargo.toml - Generates a single multi-platform
latest.json - Works as both a library and a CLI
Library:
[dependencies]
tauri-latest-json = "0.2.4"CLI:
cargo install tauri-latest-jsontauri-latest-json <download_url_base> <notes>Notes can contain spaces without quotes; all remaining args are combined.
Example:
tauri-latest-json https://example.com/downloads Initial release with detailslatest.json is written to the current working directory.
Enable compile-time verification of signatures using the Tauri CLI:
cargo install tauri-cli
cargo run --features verify-signature -- <download_url_base> <notes>use tauri_latest_json::generate_latest_json_auto;
fn main() {
let download_url = "https://example.com/downloads";
let notes = "Initial release";
generate_latest_json_auto(download_url, notes).unwrap();
}cargo run --example basicIf the paths are correct, you’ll see:
✅ latest.json generated successfully
- Valid Tauri updater configuration (see the Tauri Updater docs)
- A Tauri signing key
pnpm tauri signer generate -w ~/.tauri/myapp.key| File Extension | Platform Key |
|---|---|
.msi, .exe |
windows-x86_64 |
.dmg (Intel) |
darwin-x86_64 |
.dmg (ARM) |
darwin-aarch64 |
.AppImage, .deb, .rpm, .tar.gz (x64) |
linux-x86_64 |
.AppImage, .deb, .rpm, .tar.gz (ARM) |
linux-aarch64 |
See CONTRIBUTING.md. Please also read our Code of Conduct.
MIT — see LICENSE.