# Releasing Releases are Apple Silicon-only and require macOS 15 or newer. ## A Mac that signs releases `make release` signs with the Developer ID Application identity in `RELEASE_SIGN_IDENTITY` and notarizes with the `notarytool` keychain profile in `RELEASE_NOTARY_PROFILE` (`try-omarchy` by default). A Mac needs both once. Signing in to Xcode provides neither. 1. **The certificate and its private key.** A certificate's private key exists only on the Mac that created it, and Xcode creates Developer ID certificates only for the team's Account Holder. To add a Mac, export the existing one from a Mac that signs: in Keychain Access, under **login > My Certificates**, export it as `.p12` (`.p12` is greyed out when the private key is missing). On the new Mac: ```sh security unlock-keychain ~/Library/Keychains/login.keychain-db security import DeveloperID.p12 -k ~/Library/Keychains/login.keychain-db -P 'P12_PASSWORD' -T /usr/bin/codesign -T /usr/bin/productsign security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k 'LOGIN_PASSWORD' ~/Library/Keychains/login.keychain-db rm DeveloperID.p12 ``` The partition list lets `codesign` use the key without a dialog, which a Mac nobody sits at needs. 2. **The notary profile.** It stores an Apple ID, an app-specific password (account.apple.com, **Sign-In and Security**) and the team, for any app: ```sh xcrun notarytool store-credentials try-omarchy --apple-id APPLE_ID --team-id TEAM_ID ``` Check both with `security find-identity -v -p codesigning`, which lists the Developer ID identity, and `xcrun notarytool history --keychain-profile try-omarchy`. ## Build and verify ```sh make doctor make test make release ``` `make release` lets you choose **patch**, **minor**, or **major**, or type a version directly in the terminal. Each increment shows its resulting `vX.Y.Z` tag, calculated from the latest local release tag (or `v0.0.0` when no release tags exist). There is no default increment: Enter asks you to select a version. You can also type a custom tag directly. Before building or creating a tag, an interactive run shows the exact release tag and commit and asks for confirmation with **No** as the default. Only `y` or `yes` proceeds, including when rebuilding an existing tag. To choose the version explicitly, including in scripts, use: ```sh make release VERSION=vX.Y.Z ``` All created tags use `vX.Y.Z`. Custom input and `VERSION` accept `vX.Y.Z` or `X.Y.Z`, which is normalized to the same tag format. Without an interactive terminal, `VERSION` is required. The checkout must be clean, including untracked files; ignored build output does not make it dirty. New versions must be newer than the local release tags. Fetch any missing tags before choosing a version; this command does not check GitHub for published versions. Noninteractive runs with `VERSION` skip confirmation; supplying the version is the explicit instruction to build that release. The command builds guest and runtime artifacts only when needed, rechecks the checkout, creates an annotated `vX.Y.Z` tag on the commit being packaged, and builds the signed and notarized app and DMG. The tag must exist before packaging so the app and DMG receive the correct version. Tests and the runtime release checklist below remain separate verification steps. If packaging or notarization fails, the local tag remains. Retry with `make release VERSION=vX.Y.Z`; an existing tag is reused only when it points to HEAD, and is never moved. The terminal prompt defaults to that existing version when HEAD is already tagged. A commit with a release tag cannot be given a second release version through this command, which keeps app version stamping unambiguous. `make package` remains available for an already-tagged clean checkout. It neither prompts nor creates a tag. After verifying the DMG, run: ```sh make publish ``` It reads the version from the built app, checks that the DMG and the kit exist, that the kit matches its recorded digest, that the kit's manifest names the tag, and that the app's download manifest points at that tag's parts in `dist/factory/`, and pushes the tag first, so the release points at the commit that was built rather than one GitHub would create from the draft's target branch. It refuses if origin already has the tag on another commit. It then writes the DMG's digest to `TryOmarchy.dmg.sha256` and uploads the DMG, that digest and the factory parts to the draft release with that tag, replacing earlier uploads. The kit is built and checked by every release but uploaded only with `make publish KIT=1` (`TryOmarchyKit.zip`, its `.sha256` and its manifest `TryOmarchyKit.json`, see [the VM kit](vm-kit.md)), since no installer fetches kits from releases yet; a draft named `vX.Y.Z` with no tag yet gets the tag selected. Without a draft it creates one. A published release is never changed. Review the draft on GitHub and publish it yourself: until then its assets are private and the app cannot download the image. The filename stays the same for every release; the app inside is stamped with the version from the release tag. The compressed factory image is over GitHub's 2 GiB asset limit, so it is not inside the DMG. Production builds split it into 1 GiB parts in `dist/factory/` (`scripts/split-factory-image.py`) and give the app a manifest with each part's URL, size and SHA-256 digest. The URLs point at `https://github.com/omacom/try-omarchy/releases/download/vX.Y.Z/`, so the parts must be uploaded to the release with the same tag, under their generated names, before the release is published. A release without them cannot create a new VM; existing VMs are unaffected. Kits download from the same parts, so a release is never deleted while an installer may still pin its kit. Always upload the DMG as `TryOmarchy.dmg` so older app release checkers and the website's stable download link continue to work: . The factory installs whatever Omarchy's `edge` repositories serve when it is built, and development builds reuse it until its own inputs change. A release ships a factory that matches what upstream serves now without rebuilding one that already does: `make release` asks `scripts/factory-freshness.py --check` to compare every repository database the factory was built from (`[omarchy]`, `[core]`, `[extra]`, `[alarm]` and `[aur]`) and the Node.js release it bundles with upstream's current ones. It reuses the cached factory only when all of them match, so a second release minutes after the first skips the factory build; otherwise, or when the check cannot reach upstream, it rebuilds it. `make release FORCE=1` rebuilds it regardless. Review `dist/guest/factory.json` and `dist/guest/packages.txt` before publishing. Existing VMs update themselves with `omarchy update` either way. Outputs are written to: - `dist/release.noindex/Try Omarchy.app` (production) - `dist/TryOmarchy.dmg`, and its digest `dist/TryOmarchy.dmg.sha256` once `make publish` runs - `dist/guest/` `make package` and `make release` both create distributable builds: they sign the app, the DMG and the kit with Developer ID, submit the DMG and the kit to Apple's notarization service, and staple the resulting tickets. Neither command falls back to an unnotarized build. Both commands first ensure the content-hashed guest, runtime and firmware artifacts are current; packaging and signing themselves always run freshly. Development stays at `dist/app.noindex/Try Omarchy.app` with a separate bundle ID and privacy grants, so production permission flows can be tested independently. Another maintainer can override the release defaults: ```sh make release VERSION=vX.Y.Z \ RELEASE_SIGN_IDENTITY="Developer ID Application: Example (TEAMID)" \ RELEASE_NOTARY_PROFILE=example-profile ``` ## The kit The kit is signed and notarized with the app, by the same `make release` (or `make package`), with `RELEASE_SIGN_IDENTITY` and `RELEASE_NOTARY_PROFILE`. There is nothing else to run. `macos/build-kit.sh`, through `scripts/kit_signature.py`: 1. signs every Mach-O in the kit as `dev.tryomarchy.kit`, with the hardened runtime and a secure timestamp. The networking server, supervisor and client come first, because the networking daemon is built after them and pins them. Then, inside out: the libraries, the other tools and the daemon, QEMU with the hypervisor and microphone entitlements, the helper with the camera and microphone entitlements, and the kit's bundle; 2. checks those signatures, then `omarchy-network-daemon check` and the launcher's self-check, and zips the kit into `TryOmarchyKit.zip`; 3. submits the zip with `xcrun notarytool submit --wait`, and stops unless Apple accepts it; 4. staples the ticket to the kit's bundle, checks that the helper, QEMU and the daemon are notarized, and zips the stapled kit again; 5. records the digest of that zip in `TryOmarchyKit.zip.sha256` and copies the manifest to `TryOmarchyKit.json`. A zip cannot be stapled, so the zip that is published is the one rebuilt from the stapled kit, and its digest is of the published bytes. The installer downloads kits without the quarantine attribute, so Gatekeeper does not assess them there. Then `make release` runs `tests/kit/check.sh` on the kit, with `KIT_TEAM_ID` set to the identity's team and `KIT_NOTARIZED=1`. It refuses the release if a Mach-O is ad hoc, unsigned, signed by another team or identifier, without the hardened runtime or a timestamp, or with other entitlements than its own; if the helper, QEMU or the daemon does not satisfy the `notarized` requirement (`codesign --verify --strict --check-notarization -R=notarized`), or the bundle has no valid stapled ticket; if the networking daemon does not accept the runtime it pinned; or if QEMU does not start with its libraries. It runs the kit's code only once the signatures pass. Gatekeeper's `spctl --assess --type execute` is not used: it rejects every non-app, a helper bundle and a command-line tool alike ("does not seem to be an app"). To try the kit's release signing without notarizing, sign it ad hoc from a production app and check it: ```sh macos/build-kit.sh --app "dist/release.noindex/Try Omarchy.app" --output /tmp/kit --sign-identity - tests/kit/check.sh /tmp/kit ``` The check says which checks an ad hoc kit skips. With the Developer ID identity instead of `-`, the kit is signed as a release is; check it with `KIT_TEAM_ID= KIT_NOTARIZED=0`, since only a notarized kit passes the notarization check. Without `--notarize-profile` nothing is sent to Apple. Do this dry run before tagging a release: nothing else exercises Developer ID signing before `make release`. To verify a published kit, download `TryOmarchyKit.zip`, `TryOmarchyKit.zip.sha256` and `TryOmarchyKit.json` from the release into an empty folder, then run from the repository: ```sh kit=/tmp/published-kit (cd "$kit" && shasum -a 256 -c TryOmarchyKit.zip.sha256 && ditto -x -k TryOmarchyKit.zip .) codesign -dv --verbose=4 "$kit/TryOmarchyKit.bundle/Contents/Resources/runtime/bin/Try Omarchy" codesign --verify --strict --check-notarization -R=notarized "$kit/TryOmarchyKit.bundle/Contents/Resources/runtime/bin/Try Omarchy" xcrun stapler validate "$kit/TryOmarchyKit.bundle" KIT_TEAM_ID=RZC79MPD34 KIT_NOTARIZED=1 tests/kit/check.sh "$kit" ``` `codesign -dv` shows `Identifier=dev.tryomarchy.kit`, `flags=0x10000(runtime)`, `Authority=Developer ID Application: …`, a `Timestamp` and `TeamIdentifier=RZC79MPD34`; the notarization check prints nothing and exits 0; `stapler` says the validate action worked. The kit check does the same for every Mach-O in the kit, and checks the signatures before it runs any of the kit's code. ## Release checklist 1. Confirm `main` is clean and all pinned inputs have reviewable provenance. Record the factory's `[omarchy]` database digest and Omarchy version from `dist/guest/factory.json`. 2. Run all tests and perform a first-boot provisioning test on a clean Mac user. 3. Verify networking, display scaling, keyboard/mouse, microphone and camera permission, on-demand FaceTime HD capture, audio-device changes, clipboard sharing in both directions, a shared folder read and written from both sides, persistence, reset, and ephemeral mode. Exercise the SSH preset with a provisioned guest: confirm the listener is bound only to `127.0.0.1`, normal and ephemeral TCP mappings to guest port 22 work, UDP port 22 does not request sshd, a normal restart preserves the persistent VM, and the documented endpoint-specific host-key recovery works after Reset/ephemeral replacement. Inspect the factory image to confirm it contains no SSH host private keys. 4. Install the release over a provisioned VM created by an earlier release. Confirm launch preserves its disk and user data, the guest takes the bundled `try-omarchy` package when it is newer (start menu **Omarchy** row), and `omarchy update` still completes. Separately confirm that new, reset, and ephemeral VMs use the current factory. 5. Verify the app, DMG and kit signatures with Apple's tools and confirm notarization ([the kit](#the-kit)). 6. Audit `THIRD_PARTY_NOTICES.md`, the bundle's license material, the factory's `packages.txt`, and QEMU and edk2 corresponding-source obligations. 7. State in release notes that installing the app preserves existing VM contents and that Omarchy inside the VM updates through `omarchy update`. VMs created by earlier direct-boot releases are not launched by this version; their disks stay in the storage folder, and **Setup > Import Previous VM** copies their files into the new VM. 8. Check that the draft has `TryOmarchy.dmg.sha256`, which `make publish` writes from the final DMG. People verify a download with `shasum -a 256 -c TryOmarchy.dmg.sha256`. Never publish generated artifacts from an unreviewed or locally modified build input. The guest protocols are a compatibility boundary: the host credential tokens, every `dev.tryomarchy.*` port, and the guest status report. Older guest packages must keep working with a newer app, and the reverse. ## macOS compatibility validation Run `make test` and `make runtime` on macOS 15 and 26 (both covered by CI, which also builds and checks the kit from that runtime). The runtime build runs the pinned VirGL dual-source shader and blend-state regression tests and rejects bundled Mach-O files targeting a version newer than 15.0 or strongly importing `strchrnul` (introduced in 15.4). These binary checks do not replace testing on the supported operating systems. Before publishing, boot the release app on macOS 15.0–15.3 and macOS 26. Verify the default terminal draws text correctly while resizing, check desktop rendering, and test both new and existing guests. By default every Mac must use EL1 without probing nested virtualization. Turn EL2 back on by default only after an M3-or-newer Mac boots to the desktop at EL2.