tauri-latest-json 0.3.0

Generate multi-platform Tauri updater latest.json from built installers
tauri-latest-json-0.3.0 is not a library.
Visit the last successful build: tauri-latest-json-0.4.4

tauri-latest-json

Crates.io docs.rs License Crates.io

Generate a latest.json file for Tauri auto-updates, supporting multi-platform builds (Windows, macOS Intel/ARM, Linux).

This CLI scans your Tauri bundle directory for installers and outputs a valid latest.json for the Tauri Updater.

Features

  • Detects installers: .msi, .exe, .dmg (Intel/ARM), .AppImage, .deb, .rpm, .tar.gz
  • Auto-detects platform keys from filenames
  • Reads version from package.json or Cargo.toml
  • Generates a single multi-platform latest.json
  • CLI-only tool (not intended as a Rust library dependency)

Install

cargo install tauri-latest-json

CLI Usage

tauri-latest-json <download_url_base> <notes>
tauri-latest-json help
tauri-latest-json version
tauri-latest-json --help
tauri-latest-json --version

Notes can contain spaces without quotes; all remaining args are combined.

Example:

tauri-latest-json https://example.com/downloads Initial release with details

latest.json is written to the current working directory.

Optional signature verification

Enable compile-time verification of signatures using the Tauri CLI:

cargo install tauri-cli
cargo run --features verify-signature -- <download_url_base> <notes>

If the paths are correct, you’ll see latest.json generated successfully.

Requirements

pnpm tauri signer generate -w ~/.tauri/myapp.key

Platform Detection

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

Specs

Behavior specs and acceptance criteria are documented in SPEC.md.

Testing

Run the verification suite:

make verify

Manual equivalent:

cargo test
cargo test --all-features
cargo check --features verify-signature
./scripts/smoke-cli.sh
./scripts/smoke-generate.sh
./scripts/smoke-generate-current-conf.sh

See release notes in CHANGELOG.md.

Contributing

See CONTRIBUTING.md. Please also read our Code of Conduct.

License

MIT — see LICENSE.