Kromacut includes an automatic update checker for the Tauri desktop app.
- Version Check: The app periodically checks
https://kromacut.com/version.jsonfor the latest version. - Comparison: The fetched version is compared with the installed version.
- Notification: If a newer version is available, a notification appears in the bottom-right corner.
- User Action: Users can download the update or dismiss the notification.
The version.json file should be hosted at https://kromacut.com/version.json with the following structure:
{
"version": "2.2.0",
"download_url": "https://github.com/vycdev/Kromacut/releases/latest",
"release_notes": "Bug fixes and performance improvements"
}version(required): The latest version number (semver format recommended)download_url(optional): Direct link to download the updaterelease_notes(optional): Brief description of what's new
- On Startup: Checks for updates when the app launches
- Periodic: Re-checks every 4 hours while the app is running
- Non-blocking: Version checks happen in the background
The version number is managed in multiple places and should be kept in sync:
package.json-versionfieldsrc-tauri/tauri.conf.json-versionfieldsrc-tauri/Cargo.toml-versionfield under[package]
When releasing a new version, update all three files.
Update checks only run in the Tauri desktop environment. The web version is unaffected. To disable update checks in the desktop app, simply don't include the UpdateChecker component.
To test the update checker locally:
- Change the version in
public/version.jsonto a higher version - Build and run the Tauri app:
npm run tauri:dev - The update notification should appear after a few seconds
The update checker makes a single HTTP GET request to the version endpoint. No user data or telemetry is collected or transmitted.