On this page
Release
ozone-release.yml builds everything a person installs: the desktop app and the command-line archive, for Linux x64, macOS arm64 and Windows x64. Each platform builds on its own runner, so the Windows installer is built on Windows.
Cut a release
- On an up-to-date
mainwith nothing uncommitted, runvp run release:cut <version>, orpatch,minorormajorto raise the last release. It files what is under## Unreleasedin CHANGELOG.md as## <version> - <date>, opens a new, empty## Unreleasedabove it, stages the file, and prints the three commands below. It refuses when nothing is unreleased, when the version already exists, or when CI failed onmain's last commit. It never commits, pushes or tags. - Commit that and push
main. - Push a tag named
v<version>with all three numbers, such asv0.2.0. A suffix such asv0.2.0-rc.1is accepted. - The workflow first checks that the changelog has a section for the version, and stops in seconds when it has none. It then builds the three platforms. Before it drafts the release it waits for Ozone CI on the tagged commit and stops if that did not pass.
- The draft GitHub Release is titled
Ozone <version>. Its notes are that version's section of the changelog, whichscripts/release-notes.tsreads, followed by GitHub's generated notes and compare link. - Read the draft and publish it. Publishing the draft is the release.
When the workflow stops on the changelog or on CI, fix main, delete the tag
(git push origin :v<version> and git tag -d v<version>) and push it again on the fixed commit.
If CI had only been cancelled or had not started, run the failed job again instead.
The workflow makes the draft only when the tag has no release yet. If one exists, for example one made on GitHub when the tag was pushed, it attaches the files to that one and leaves its title, notes and state alone, so its notes do not come from the changelog. A release published by hand is live while its files are still uploading, so leave it as a draft until the workflow finishes.
The version comes from the tag. The workflow stamps it into the package files of its own checkout
with scripts/update-release-package-versions.ts. Never commit that change.
The build job sets OZONE_TELEMETRY_CHANNEL=stable. A server built without it is a dev build,
which reads a managed policy from a path the user sets, so a job that builds what people install
must set it too.
Try a build without releasing
On GitHub, open Actions, choose Ozone release, press Run workflow and enter a version
without the v. The files are attached to the finished run as ozone-linux-x64,
ozone-darwin-arm64 and ozone-win32-x64, and are kept for 3 days. A manual run drafts no
release.
What a build contains
| Platform | Desktop app | Command-line archive |
|---|---|---|
| Linux x64 | AppImage | ozone-<version>-linux-x64.tar.gz |
| macOS arm64 | .dmg, and a .zip the updater reads |
ozone-<version>-darwin-arm64.tar.gz |
| Windows x64 | NSIS installer (.exe) |
ozone-<version>-win32-x64.zip |
A release also carries:
latest*.ymland*.blockmapfiles. They are the update feed: an installed desktop app reads them from the release to find a newer version.SHA256SUMS, written by the draft job over the command-line archives. Ozone checks an archive against it before installing one on a remote machine or updating a background service.
An installed desktop app looks for a newer version in this repository's published releases, and a remote machine downloads its archive from there. Both need the repository to be public. A draft is invisible to both, so attach every file before publishing.
What the workflow checks
scripts/smoke-cli-archive.tsunpacks each command-line archive and checks the version it reports.scripts/smoke-desktop-app.tsopens each desktop build before the workflow keeps it: the app inside the mounted.dmg, the app after a silent run of the Windows installer, and the extracted AppImage underxvfb. On a failure, what the check saw is uploaded aslaunch-check-<platform>.
Signing the Mac app
The macOS job signs with a Developer ID certificate and notarizes when the repository has the
CSC_LINK secret. Without it the app is built unsigned. With it, every secret below must be set:
| Secret | Value |
|---|---|
CSC_LINK |
The Developer ID Application certificate exported as .p12, base64 encoded |
CSC_KEY_PASSWORD |
The password of that .p12 |
APPLE_API_KEY |
The text of the App Store Connect API key (.p8) |
APPLE_API_KEY_ID |
That key's ID |
APPLE_API_ISSUER |
The issuer ID shown above the keys in App Store Connect |
OZONE_APPLE_TEAM_ID |
The Apple Developer Team ID |
OZONE_MACOS_PROVISIONING_PROFILE |
A Developer ID provisioning profile for the app ID io.github.koneb71.ozone, base64 encoded |
After the build, the job asks codesign, spctl and stapler whether another Mac would accept
the app.
Limits
- Only the Mac app is signed and notarized. Windows warns before it runs the installer, and the command-line archive for macOS is signed ad hoc.
- The Windows app does not carry the Linux archive that running the server inside WSL needs,
because the workflow passes no
--wsl-runtimetoscripts/build-desktop-artifact.ts.
To build an installer on your own machine, see Desktop artifacts.