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, signs each one with your Tauri private key, and outputs a valid latest.json for the Tauri Updater.
✨ Features
- Supports
.msi,.exe,.dmg(Intel & ARM),tar.gz(ARM) and.AppImage - Automatically detects platform from installer filename
- Reads version from
package.jsonorCargo.toml - Outputs a fully valid
latest.jsonwith multiple platforms - Easy to integrate into CI/CD pipelines
📦 Installation
Add to Cargo.toml:
[]
= "0.2.0"
📦 Run the example
If the paths are correct, you’ll get:
✅ latest.json generated successfully
And a latest.json file in your project root.
🚀 Usage
// src/bin/latest_json.rs
use generate_latest_json_auto;
// package.json
"scripts": ,
After running pnpm tauri:build, you'll get:
🔑 Requirements
-
A valid Tauri updater setup: See on Tauri Updater
-
A valid Tauri private key:
🛠 Platform detection
| File Extension | Platform Key |
|---|---|
.msi, .exe |
windows-x86_64 |
.dmg (Intel) |
darwin-x86_64 |
.dmg (ARM) |
darwin-aarch64 |
.tar.gz (ARM) |
darwin-aarch64 |
.AppImage |
linux-x86_64 |
📄 License
Licensed under the MIT License — see LICENSE for details.