Skip to content

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: version under [workspace.package] in Cargo.toml. It follows SemVer (0.x: anything may change).
  • Tauri reads it from there for the installers.
  • build.rs adds the short git commit (STOMP_GIT_HASH, empty outside a git checkout) and the library version from Cargo.lock. --version, the window title and the Device card show them.

Make a release ​

  1. Library first, if needed. If the app needs library changes, release the library first (tag it there) and set OPEN_STOMP_LIB_REF in both workflows to that tag, so the release builds against a fixed library version. Once the library's stable branch has moved, run nix flake update open-stomp-lib so the Nix build uses the same version (the release checks it).

  2. 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 run cargo build so Cargo.lock follows. packaging/check-version.sh checks all of this.

  3. Tag it. Commit, then:

    sh
    git tag vx.y.z && git push --tags

.github/workflows/release.yml then:

  • checks the tag matches Cargo.toml, flake.lock pins the same library, and the updater signing key is set
  • runs tauri build on 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>:

PlatformFiles
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 in Cargo.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/unstable for 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:

SecretContents
TAURI_SIGNING_PRIVATE_KEYThe contents of the private key file (tauri signer generate makes the pair)
TAURI_SIGNING_PRIVATE_KEY_PASSWORDIts 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):

BranchFollows
stableThe newest release
unstableThe 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/stable gets each release with nix flake update; the library comes from this flake's flake.lock.

MIT or Apache-2.0. Not affiliated with SORAN.