Releasing
How to version and publish a release of Open Stomp Manager, how the updater is signed, and how the stable and unstable channels move. For maintainers; to build the app see Building.
Version
- The version lives in one place:
versionunder[workspace.package]inCargo.toml. It follows SemVer (0.x: anything may change). - Tauri reads it from there for the installers.
build.rsadds the short git commit (STOMP_GIT_HASH, empty outside a git checkout) and the library version fromCargo.lock.--version, the window title and the Device card show them.
Make a release
Library first, if needed. If the app needs library changes, release the library first (tag it there) and set
OPEN_STOMP_LIB_REFin both workflows to that tag, so the release builds against a fixed library version. Once the library'sstablebranch has moved, runnix flake update open-stomp-libso the Nix build uses the same version (the release checks it).Bump the version. Update
Cargo.toml, add a## [x.y.z]section to CHANGELOG.md, update the version line at the top of the README, and runcargo buildsoCargo.lockfollows.packaging/check-version.shchecks all of this.Tag it. Commit, then:
shgit tag vx.y.z && git push --tags
.github/workflows/release.yml then:
- checks the tag matches
Cargo.toml,flake.lockpins the same library, and the updater signing key is set - runs
tauri buildon Linux, macOS and Windows - publishes a GitHub release with the changelog section as its notes
The downloads are named open-stomp-manager-vx.y.z-<platform>.<ext>:
| Platform | Files |
|---|---|
linux-x86_64 | .deb, .rpm, .AppImage |
macos-universal | .dmg, .zip, and the update bundle .app.tar.gz with its .sig |
windows-x86_64 | -setup.exe with its .sig, and the portable .zip |
Pre-releases
- A pre-release is a tag with a suffix,
vx.y.z-beta.n, with that version inCargo.toml. - It needs no README or CHANGELOG changes: its notes are the
[Unreleased]section. - It is published as a GitHub pre-release.
- If it needs a library pre-release, point the flake input at
github:JackMechem/open-stomp-lib/unstablefor it.
Updater signing
The app's updater (app/src-tauri/src/update.rs) reads latest.json from the newest stable release. The release workflow writes it: the version, the changelog notes, and for macOS and Windows a signed update bundle (.app.tar.gz, and the NSIS -setup.exe).
The bundles are signed with the updater key, whose public half is plugins.updater.pubkey in tauri.conf.json. The release needs two repository secrets:
| Secret | Contents |
|---|---|
TAURI_SIGNING_PRIVATE_KEY | The contents of the private key file (tauri signer generate makes the pair) |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD | Its password (empty for a key made without one) |
Keep a backup of the private key
Without it, no copy already installed will accept another update. A new key means a new pubkey, which only the copies built with it trust.
createUpdaterArtifacts is switched on only in the release workflow, so other builds (CI, Nix, local tauri build) don't need the key.
Channels
After each successful release, .github/workflows/channels.yml moves two branches (packaging/update-channels.sh):
| Branch | Follows |
|---|---|
stable | The newest release |
unstable | The newest release or pre-release |
- Ticking or clearing a release's pre-release box, or deleting it, moves them again.
- Actions → Channels → Run workflow re-syncs them by hand.
- A Nix config that follows
github:JackMechem/open-stomp-manager/stablegets each release withnix flake update; the library comes from this flake'sflake.lock.
