Repository Public
1# Releases: synchronization, publication, downloads, TestFlight23## Publishing a macOS release451. In the application's repository: `git tag v1.2.0 && git push --tags`, then `spbgit release upload <repo> v1.2.0 App.dmg` (signed, notarized, stapled).62. Optional: `ORIX_WEBHOOK_SECRET=… scripts/notify-release.sh <repo>` to synchronize immediately; otherwise the site notices within 15 minutes.73. The release appears in `/admin/releases` as **validated**. Nothing is public yet.84. **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.9 - all good → **published**: "Download for Mac" appears on the card, the product page and in structured data;10 - checksum or size differs → **invalid**, nothing is kept;11 - notarization not verified → **held** (not downloadable).125. Add curated release notes (EN/FR) with the *Notes* button; otherwise the tag subject is shown.1314The application's catalog entry must have `repo.visibility = "public"` and the right `repo.name` for its releases to be discovered.1516### Tag rules1718`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.1920### Private repositories2122The forge cannot serve assets of a private repository. On the node:2324```bash25pnpm ingest <slug> <version> /path/to/App.dmg "release subject"26```2728The image is copied into the site's storage and waits for the same approval (including the notarization check).2930### Withdrawal and rollback3132*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.3334## Synchronization3536| Trigger | How |37|---|---|38| Schedule | every `SYNC_INTERVAL_MIN` minutes inside `orix-web` |39| Manual | *Synchronize now* on the dashboard, or `pnpm sync [repo]` on the node |40| Webhook | `POST /api/hooks/release` with `X-Orix-Timestamp`, `X-Orix-Nonce`, `X-Orix-Signature: sha256=HMAC(secret, "ts.nonce.body")` |4142Each 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.4344## TestFlight4546A build uploaded to App Store Connect is not public. To open a beta on the site:47481. In App Store Connect: create an external group, submit the build to Beta App Review, enable the **public link**.492. In `/admin/apps/<slug>` → Distribution: paste the `https://testflight.apple.com/join/…` link, set the state to **public**, press **Save & verify link**.503. Publish. "Join TestFlight" appears only if Apple's page answered *open*. A full or closed beta shows "Beta Access Coming Soon" with the reason.5152Internal tester links (`/v1/invite/…`) are refused by the schema.5354## Download counters5556`click` (button pressed), `request` (server started sending), `completed` (server sent the last byte). None is an installation count, and no visitor identifier is stored.57