Skip to content

feat(release): sign and notarize releases with a Developer ID - #29

Merged
rbstp merged 1 commit into
masterfrom
feat/developer-id-signing
Sep 7, 2026
Merged

rbstp merged 1 commit into
masterfrom
feat/developer-id-signing

Conversation

@rbstp

@rbstp rbstp commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Releases were ad-hoc signed, which left two marks on everyone who installed one. Gatekeeper refuses
a quarantined copy outright, so the cask had to strip the quarantine attribute itself, and every
version was a new identity to TCC, so the Accessibility grant died on every upgrade.

make bundle now prefers the Developer ID Application certificate when its private key is in the
keychain, keeps the self-signed identity from make cert as the fallback for anyone without it, and
refuses to sign when it finds neither -- ADHOC=1 still overrides that on purpose. A Developer ID
build gets the hardened runtime and a secure timestamp, which notarization requires.

make dist then submits the archive, staples the ticket into the app and repacks it, so what people
download carries its own ticket instead of needing the network on first launch. It warns and carries
on when the build was signed with something the notary service cannot check, rather than failing a
contributor's packaging run.

The release workflow imports the certificate into a keychain of its own, passes the App Store Connect
key straight to make dist from five new repository secrets, and refuses to publish an archive
without a stapled ticket.

The cask is deliberately left alone. It keeps its tccutil reset for this release, because an
upgrade from an ad-hoc build carries a grant whose designated requirement no longer matches, and
macOS stays quiet about a permission it already has a record for. From the release after this one
the grant carries across versions and that reset can go.

@rbstp
rbstp enabled auto-merge (squash) September 7, 2026 04:38
Releases were ad-hoc signed, which left two marks on everyone who installed one. Gatekeeper
refuses a quarantined copy outright, so the cask had to strip the quarantine attribute itself, and
every version was a new identity to TCC, so the Accessibility grant died on every upgrade.

A Developer ID signature fixes both. The Makefile now prefers that certificate when its private
key is in the keychain, keeps the self-signed identity from `make cert` as the fallback for anyone
without it, and adds the hardened runtime and a secure timestamp the notary service requires.
`make dist` submits the archive, staples the ticket into the app and repacks, so the download
carries its own ticket rather than needing the network on first launch. It warns rather than fails
when it has to build with an identity the notary service cannot check.

The release workflow imports the certificate into a keychain of its own, passes the App Store
Connect key straight to `make dist`, and refuses to publish anything without a stapled ticket.

The cask keeps its `tccutil reset` for one more release: an upgrade from an ad-hoc build carries a
grant whose designated requirement no longer matches, and macOS stays quiet about a permission it
already has a record for.
@rbstp
rbstp force-pushed the feat/developer-id-signing branch from 6cfb617 to 035b20c Compare September 7, 2026 04:39
@rbstp
rbstp merged commit 09aa908 into master Sep 7, 2026
1 check passed
@rbstp
rbstp deleted the feat/developer-id-signing branch September 7, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant