scripts/build-release.sh is the whole release build. It signs every binary in the bundle itself,
each plugin, helper and framework first and the app bundle last, so signing again by hand
afterwards undoes its work.
Everything on this page needs credentials the maintainer holds. A contributor building from source
wants Building instead.
Release builds
build/Release/TablePro-arm64.app and build/Release/TablePro-x86_64.app.
The script extracts the matching slice from the universal static libraries, copies every
non-system dynamic library the binaries reference into Contents/Frameworks and rewrites their
install names, strips the main binary and the helpers, then signs with hardened runtime and
TablePro/TablePro.entitlements.
Create the notarization profile once:
scripts/lib/notarize.sh
reads both the exit status and the reported status: notarytool has exited 0 on a rejected
submission.
Packaging a DMG
scripts/create-dmg.sh takes a version, an architecture (default universal) and a source app
(default build/Release/TablePro.app). With no version it reads MARKETING_VERSION from
Configs/Version.xcconfig, which is the only place the app version is declared.
build/Release/TablePro-0.67.0-arm64.dmg. The script prefers create-dmg
(brew install create-dmg) and falls back to hdiutil when it is missing.
Static libraries
The.a files under Libs/ and the xcframeworks under Libs/ios/ live on the libs-v1 GitHub
Release, not in git. Each has a checksum baseline committed beside it, and
scripts/download-libs.sh verifies the working copy against the baseline at HEAD on every run,
including runs that download nothing.
That means an archive and its baseline have to move together. Publish through the scripts, which do
both:
publish-libs.sh verifies each library you did not name against
the checksums at HEAD, regenerates Libs/checksums.sha256, and uploads the archive with
--clobber.
The iOS xcframeworks go through their own script, which takes --dry-run and refuses a publish
that changes nothing:
shasum -a 256 Libs/*.a > Libs/checksums.sha256 by hand. Regenerating from a stale
Libs/ silently reverts every library you did not rebuild, which shipped a broken libmongoc and
rolled DuckDB back a version. Uploading the xcframeworks with a bare tar and gh release upload
fails from the other side: 299 MB published with no baseline behind it, and the next
download-libs.sh run on every machine and every CI job stops.
Shipping a version
.github/workflows/build.yml fires on a v* tag push, and otherwise only on a manual dispatch. Bump
Configs/Version.xcconfig first: the release job compares the tag against MARKETING_VERSION and
fails with tag v… does not match MARKETING_VERSION … when they disagree. It also fails when
CURRENT_PROJECT_VERSION is not above the newest published release’s. That number is what Sparkle
compares as <sparkle:version>, so a flat build number ships a release no installed app is offered.
Four jobs gate the release: SwiftLint, macOS Tests, Build (a matrix over arm64 and x86_64) and
Registry Readiness. A red suite or a registry with no plugin binary compatible with the shipping
app blocks the tag.
The release job then verifies the artifacts, signs both update archives with the Sparkle key,
extracts the release notes from CHANGELOG.md, publishes the GitHub release, and only afterwards
commits appcast.xml. A tag containing -alpha, -beta or -rc publishes as a prerelease.
generate_appcast sees only the release being published, never the existing feed, and
scripts/ci/merge-appcast.py splices its two items into appcast.xml afterwards. Items already
published are moved byte for byte rather than regenerated, because Sparkle rewrites the download URL
and drops the release notes of any existing item a staged archive happens to match.
Staged rollout and critical releases
Every release carries<sparkle:phasedRolloutInterval>21600</sparkle:phasedRolloutInterval>. Sparkle
spreads a release over seven cohorts keyed on a per-install random identifier, so six intervals is
the tail: the last cohort is offered the build 36 hours after the first. A user who runs Check for
Updates… is never phased and always gets the newest build.
.github/release-flags.json decides whether a release may interrupt anyone:
true passes --critical-update-version "" to generate_appcast, which writes
<sparkle:criticalUpdate/> with no version attribute, making the item critical for every host.
Sparkle then bypasses phasing, hides Skip and Remind Me Later, retitles the alert, and shows the
update even under automatic downloads.
The bar is data loss, an exposed security issue, a crash or hang on a common path, or a regression
with no workaround. Set it in the release commit and set it back in the next one. The release job
fails when the flag is true and the file has not changed since the previous tag, which is what a
leftover flag looks like.
Withdrawing a release
Removing the items fromappcast.xml is the only way to un-ship a Sparkle release.
Plugins
Driver plugins release on their ownplugin-*-v* tags through a separate workflow, and the registry
decides which binary a user gets. Plugin Registry covers the
manifest, the tag names, and the bulk re-release after a PluginKit ABI change.
