Load this file before version bumps, packaging, appcast changes, GitHub releases, or Homebrew tap updates.
Releases are not complete after just release. The full release flow is:
- Run
just set-version <version> <build>to bump every source at once (shell/justfileversion + build_number, the root Cargo workspace package version inherited by the CLI and GPUI, andshell/mac/project.yml).project.pbxprojandCargo.lockregenerate on build. Never hand-edit one source — version drift ships binaries and update metadata that disagree. - Diff the complete range from the previous release tag with
jj log -r 'v<previous>..@'andjj diff --from v<previous> --to @ --summary, then write SwiftUI macOS notes as an HTML body without wrapper tags inreleases/<version>.html. Cover user-visible SwiftUI changes from the whole range, not only the current local stack. - Run
just buildto verify the release version still builds. - Run
just releaseto verify immutable worker migration checksums, build, sign, notarize, zip, verify the extracted archive withcodesign,stapler validate, andspctl -av, produce the SHA-256, and prepend the entry todocs/appcast.xml. It also runsjust check-version, aborting if any source disagrees. Keep the Mac unlocked: a locked screen locks the keychain, so notarization fails withNo Keychain password item found for profile: notarytooleven when the profile exists. - Commit the version bumps, SwiftUI release notes, and
docs/appcast.xmlasrelease: <version> (build N). - Create and push the
v<version>tag from the release commit. Tag pushes run the AppImage workflow and retain the Linux alpha builds as CI artifacts, but the GPUI alpha artifacts are not a release gate. - Run
just shell::publishto create the public GitHub release, upload the zip, verify the Sparkle asset URL is public, and rewrite../tap/Casks/jayjay.rb. The AppImage workflow runs when that release is published and attaches GPUI Linux alpha AppImages plus SHA-256 files asynchronously; do not wait for it during the macOS release unless you are specifically validating GPUI alpha artifacts. - Push
mainonly afterjust shell::publishsucceeds, sodocs/appcast.xmlnever points at a missing or draft-only asset. - Commit and push the Homebrew tap change in
../tap.
The Cloudflare worker is independent of Sparkle: docs/appcast.xml remains the direct update source, while enabled anonymous statistics use /ping. /appcast.xml remains only for compatibility with older releases, whose payloads the worker must continue to accept. If a release changes infra/worker, the worker name, the telemetry payload, or any workers.dev endpoint, apply pending D1 migrations before deploying the worker, then verify both routes:
just worker::deploy
curl -fsS https://jayjay.hewigovens.workers.dev/appcast.xml >/dev/null
curl -fsS 'https://jayjay.hewigovens.workers.dev/ping?probe=1&platform=gpui&app=jayjay&version=test&os=darwin&arch=arm64'just worker::deploy verifies immutable migration checksums, applies pending
migrations, confirms the remote D1 ledger matches the local migration set, and
only then uploads worker code. Existing migration files and checksum lines are
immutable; add the next numbered migration and checksum for every schema change.
just releaseproduces the notarized zip inbuild/release/.just releasealso preservesbuild/release/JayJay-<version>.dSYM.zip; keep it for crash-log symbolication because release binaries are stripped before signing.- The GitHub release must include the zip asset and its SHA-256.
- For GPUI Linux alpha releases, the AppImage workflow attaches
jayjay-gpui-x86_64-linux.AppImage,jayjay-gpui-aarch64-linux.AppImage, and matching.sha256files after the release is published. This is asynchronous and non-blocking for the macOS release. docs/appcast.xmlmust match the uploaded release asset and include a<description>block sourced only from the SwiftUI notes inreleases/<version>.html.- The GitHub release body uses
releases/<version>.html. GPUI builds live on the same tag and GitHub release as asynchronously attached artifacts, without a repository release-notes file. ../tap/Casks/jayjay.rbmust match the uploaded release asset and SHA-256.
releases/<version>.html is mandatory, covers only the SwiftUI macOS app, and is the source for both the Sparkle update prompt and GitHub release body. GPUI releases are represented by the shared tag and asynchronously attached GitHub release artifacts instead of a separate notes file. Missing or empty SwiftUI notes abort publication.