How a build reaches a user. The local development loop is in development.md; the signing identity itself is in signing.md.
./Scripts/build-dmg.sh # -> build/Tinycast-<version>.dmg (version from project.yml)
./Scripts/build-dmg.sh 0.5.7 # -> build/Tinycast-0.5.7.dmgIt builds a Release Tinycast.app signed with Tinycast Self-Signed and packs it with
Scripts/make-dmg.sh, which CI uses too. Official per-channel releases are built by CI, below.
The DMG opens as a styled install window: the Applications folder on the left, the app on the right
and an arrow between them. make-dmg.sh mounts a writable image, and Scripts/dmg-layout.swift
draws the background and writes the volume's .DS_Store directly, so packaging never scripts
Finder and runs the same on a headless runner. Finder picks the label colour from the pixels behind
each name, so the light pills under the labels make it draw dark text. The .DS_Store bookmark to
the background names the image's own volume, so the layout must happen on the mounted image, not
on the staging folder.
CI releases are signed with the team's Developer ID, notarized and stapled, so a downloaded DMG
opens without a Gatekeeper warning. Local builds, build-dmg.sh included, keep signing with
Tinycast Self-Signed and are never notarized. Full details in signing.md.
Every release publishes three assets from one build: Tinycast-<version>.dmg, which people download
by hand and which the cask installs, Tinycast-<version>.zip, which the in-app updater installs, and
Tinycast-<version>.zip.sig, the zip's signature by the release key. The zip is produced with
ditto -c -k --keepParent --sequesterRsrc, the only zip that leaves the code signature verifiable,
which matters because the updater refuses any bundle it cannot prove is ours.
A stable release publishes two more from the universal job, Tinycast-Universal-<version>.dmg and
.zip, built from the same commit at the same version and bundle id but with both slices. They are
uploaded after the thin pair, which keeps the thin zip first in the asset list so builds predating
architecture-aware selection keep choosing it.
Three things a release must keep true, or the updater skips it:
- It carries a
.zipasset this Mac can run. A DMG-only release is not installable and is not offered, and an Intel build is offered nothing rather than a thin arm64 zip. - The tag parses as
vMAJOR.MINOR.PATCHorvMAJOR.MINOR.PATCH-beta.N, and agrees with theprereleaseflag. A tag of any other shape is treated as mis-published and skipped. - It is not a draft.
Every cask declares auto_updates true. That is Homebrew's flag for an app that manages its own
version, and it is what keeps brew update && brew upgrade from fighting an app that updated itself:
brew never reports Tinycast outdated, never re-downloads it, and never rolls a self-updated copy back.
Removing that line would reintroduce exactly those three problems. See
features/updates.md.
There is no CI workflow and no automated reviewer, so the whole bar in testing.md is run locally before a PR is opened.
.github/workflows/release.yml builds and publishes a DMG from GitHub Actions, no local machine
needed. Run it from the Actions tab (Release → Run workflow) and pick:
- channel:
betaorstable. Each builds a distinct app (Tinycast Beta.app/Tinycast.app) with its own bundle id, alongside the localTinycast Dev.app. Beta gets an auto-incrementing-beta.Nsuffix (N= the Actions run number) so re-running never collides; stable ships the version as-is. - version: base semver, e.g.
0.2.0.
Its first step is Scripts/check-migrations.sh: a migration that a stable release already shipped
stops the run until it is deleted (migrations.md). The check reads tags and history,
so the checkout fetches every commit without blobs.
It builds on an xcode-27 runner with the newest released Xcode 27 and publishes a GitHub Release
tagged v<full-version> with a versioned DMG and zip asset, marked prerelease for beta. On success
it also announces the release on Discord. A stable run also dispatches the Website workflow, because
the site reads the latest version and the changelog from GitHub at
build time.
A stable run then fans out to a second job, universal, which rebuilds the same commit with
ARCHS="arm64 x86_64" and attaches Tinycast-Universal-<version>.dmg / .zip to the release the
first job created, then bumps tinycast-universal. macOS 26 is the last release that boots on Intel,
and those Macs need both slices. Both jobs pin ARCHS explicitly and assert the slices on every
shipping binary (the app, ClipboardTextHelper, FileIndexHelper and Tinycast Dictation):
trusting ARCHS_STANDARD is what shipped a thin arm64 build to Intel users once already, and it
also keeps the Apple silicon download from silently gaining a slice it never needs. A thin helper
inside a universal app is the quiet form of the same bug: the app boots on Intel and only clipboard
OCR or dictation stops working.
Both jobs run in the release environment, which holds the signing and notary secrets and deploys
from main only (signing.md). After verify-signature.sh,
Scripts/package-release.sh packs and signs the DMG, submits it once with notarytool --wait, and
staples the ticket to the DMG and to the app before zipping it, so the updater's zip is stapled too.
Any status but Accepted prints Apple's log and stops the run before anything is published.
Scripts/sign-update.swift then signs the zip, and fails the run if the built app trusts a different
update key. Scripts/check-update-path.sh runs just before notarizing, and fails the run unless the
last release on the channel would install this build (signing.md).
Before building, the job installs the channel's profile from Config/Profiles/ and runs
Scripts/check-cloudkit-schema.sh, which stops the run unless the channel's container has every
field of Config/CloudKit/schema.ckdb in Production. A Developer ID build reaches only Production,
where a missing field fails every save. cktool can't write Production, so a schema change ships in
two steps before the release: ./Scripts/deploy-cloudkit-schema.sh iCloud.<bundle id> imports it
into Development, then Deploy Schema Changes in the CloudKit Console takes it to Production
(icloud-sync.md).
Channel builds override TINYCAST_BUNDLE_IDENTIFIER, not the target-wide PRODUCT_BUNDLE_IDENTIFIER.
The Dictation helper derives its own identifier with a .dictation suffix; signature verification
checks that its bundle and signing identifiers agree and remain distinct from the main app.
Scripts/release-notes.sh composes the release body, and CI runs it just before gh release create.
It is safe to run by hand against any tag; it only reads:
CHANNEL=beta TAG=v0.9.13-beta.61 ./Scripts/release-notes.sh /tmp/body.md /tmp/discord.mdThe changelog itself comes from GitHub's own release-notes API, which lists every merged PR with its
author and number, so contributors are credited without anyone maintaining a CHANGELOG.md, and
without Conventional Commits. Nothing is ever committed to this repo: the tag is created
server-side by gh release create, and no release, bot or version-bump commit exists.
Two details the script exists for:
- The previous tag is picked per channel. Beta and stable tags interleave on
main(the same commit can carry both), so "the previous release" is only ever right within one channel. A stable release therefore spans every beta since the last stable. - The body is split by
<!-- tinycast:install -->. Everything above it is the changelog; everything below is the install text, which only a download page needs. The website's changelog cuts at that marker inwebsite/src/lib/changelog.ts. Full PR URLs are shortened to#304, which still autolinks on the web.
The Discord announcement carries the same changelog, truncated to fit Discord's component limit, and
pings @everyone.
tinycast and tinycast@beta are in homebrew/cask,
where Homebrew's autobump bot bumps each one after a release.
tinycast-universal is the only cask left in the
homebrew-tinycast tap, and the universal job
is the only job that touches it: its last step rewrites the cask's version + sha256 and pushes.
The tap's tap_migrations.json hands anyone who installed tinycast or tinycast@beta from the tap
to homebrew/cask on brew update.
The step needs a HOMEBREW_TAP_TOKEN repo secret: a fine-grained PAT with Contents: read/write
on the tap repo. Without the secret the step logs a warning and skips; the release still publishes.
The sed is anchored to ^ version / ^ sha256, so a cask's two-space indent on those lines is
load-bearing.
Both stable casks install Tinycast.app under com.abueammar.tinycast, so tinycast-universal
declares conflicts_with cask: "tinycast". tinycast requires arch: :arm64; tinycast-universal
installs on any Mac.