Releases: synchronization, publication, downloads, TestFlight
Publishing a macOS release
- In the application's repository:
git tag v1.2.0 && git push --tags, thenspbgit release upload <repo> v1.2.0 App.dmg(signed, notarized, stapled). - Optional:
ORIX_WEBHOOK_SECRET=… scripts/notify-release.sh <repo>to synchronize immediately; otherwise the site notices within 15 minutes. - The release appears in
/admin/releasesas validated. Nothing is public yet. - Approve & publish: the site downloads the image from the forge, recomputes its SHA-256, compares it with the forge's, runs
stapler validate/spctl/codesign, and applies the policy.- all good → published: "Download for Mac" appears on the card, the product page and in structured data;
- checksum or size differs → invalid, nothing is kept;
- notarization not verified → held (not downloadable).
- Add curated release notes (EN/FR) with the Notes button; otherwise the tag subject is shown.
The application's catalog entry must have repo.visibility = "public" and the right repo.name for its releases to be discovered.
Tag rules
v1.2.0 or 1.2 is a stable version. A suffix (v1.3.0-beta.1, v1.0.0-build1) marks a pre-release: it can be published but is never the default download. A tag without a .dmg asset is recorded as release history only.
Private repositories
The forge cannot serve assets of a private repository. On the node:
pnpm ingest <slug> <version> /path/to/App.dmg "release subject"The image is copied into the site's storage and waits for the same approval (including the notarization check).
Withdrawal and rollback
Withdraw stops the download immediately. If the forge asset changes after publication, the next sync withdraws the release by itself. The default download falls back to the previous published stable version.
Synchronization
| Trigger | How |
|---|---|
| Schedule | every SYNC_INTERVAL_MIN minutes inside orix-web |
| Manual | Synchronize now on the dashboard, or pnpm sync [repo] on the node |
| Webhook | POST /api/hooks/release with X-Orix-Timestamp, X-Orix-Nonce, X-Orix-Signature: sha256=HMAC(secret, "ts.nonce.body") |
Each run is stored with its outcome. Requests are retried three times with exponential backoff; a 4xx answer is final. If no run succeeds for three periods the data is flagged stale in the admin and on product pages.
TestFlight
A build uploaded to App Store Connect is not public. To open a beta on the site:
- In App Store Connect: create an external group, submit the build to Beta App Review, enable the public link.
- In
/admin/apps/<slug>→ Distribution: paste thehttps://testflight.apple.com/join/…link, set the state to public, press Save & verify link. - Publish. "Join TestFlight" appears only if Apple's page answered open. A full or closed beta shows "Beta Access Coming Soon" with the reason.
Internal tester links (/v1/invite/…) are refused by the schema.
Download counters
click (button pressed), request (server started sending), completed (server sent the last byte). None is an installation count, and no visitor identifier is stored.