tauri-latest-json
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.
Features
- 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
Install
Library:
[]
= "0.2.4"
CLI:
CLI Usage
Example:
latest.json is written to the current working directory.
Library Usage
use generate_latest_json_auto;
Example
If the paths are correct, you’ll see:
✅ latest.json generated successfully
Requirements
- Valid Tauri updater configuration (see the Tauri Updater docs)
- A Tauri signing 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 |
Contributing
See CONTRIBUTING.md. Please also read our Code of Conduct.
License
MIT — see LICENSE.