Skip to content

Sign and notarise the macOS release, and lay out its disk image - #206

Merged
Johann-PLW merged 2 commits into
abrignoni:mainfrom
Johann-PLW:macos-signing
Sep 26, 2026
Merged

Johann-PLW merged 2 commits into
abrignoni:mainfrom
Johann-PLW:macos-signing

Conversation

@Johann-PLW

@Johann-PLW Johann-PLW commented Sep 26, 2026 •

Copy link
Copy Markdown
Collaborator

What

The release page already says the macOS disk images are signed and notarised
(f810bc3); this is the workflow that makes it true, plus the disk image layout the
other LEAPPs ship.

Signing and notarisation (.github/workflows/release.yml), on both macOS legs,
when the MACOS_* secrets are set:

  1. the Developer ID certificate is imported into a throwaway keychain;
  2. between phase 1 and phase 2, dist/GLEAPP.app is codesigned inside out (every
    Mach-O first, then the bundle) with the hardened runtime and
    packaging/entitlements.plist, then checked with codesign --verify --strict and
    build.py verify --subject <team id>;
  3. the signed bundle is smoke-tested again (--version, --texworker, --selfcheck),
    because the hardened runtime is what breaks a frozen app and the existing smoke test
    runs the unsigned one-folder build;
  4. after phase 2 the .dmg is signed, submitted with notarytool --wait, stapled and
    assessed with spctl; a rejection prints Apple's log, which names the file;
  5. the keychain and the API key are removed whatever happened.

A tag refuses to publish without the secrets; a dispatched rehearsal still builds,
unsigned. Windows is unchanged and still unsigned.

Disk image layout: the .dmg is built with dmgbuild instead of a bare
hdiutil create, so it opens on packaging/dmg_background.png with the app on the left
and an Applications link on the right, the layout iLEAPP and the others use.
dmgbuild writes the Finder's .DS_Store itself, with no Finder or AppleScript, so it
builds the same headless; hdiutil verify still runs before the image is reported. It is
pinned in the [build] extra under a darwin marker and never reaches the app.

build.py verify now accepts a .app bundle on macOS: it refused anything that was not
a file, so it failed on "dist/GLEAPP.app: no such file" right after codesign had
reported the bundle valid.

Secrets this needs in abrignoni/GLEAPP

MACOS_CERT_P12 (base64 of the Developer ID Application .p12), MACOS_CERT_PASSWORD,
MACOS_SIGN_IDENTITY, MACOS_TEAM_ID, and an App Store Connect team API key:
MACOS_NOTARY_KEY (the .p8 contents), MACOS_NOTARY_KEY_ID, MACOS_NOTARY_ISSUER_ID.

Verified

  • A dispatched Release run on the fork with these secrets, same workflow: all four
    builds green; on arm64 and on Intel, notarisation Accepted, stapled, and spctl
    reports source=Notarized Developer ID; the signed app passed --version,
    --texworker and --selfcheck on both.
  • tests/test_build_macos.py: the dmg layout and window size on every platform; on
    macOS, a real image built, mounted and inspected, and an ad-hoc-signed bundle
    accepted by verify (that test fails on the code before the change).
  • The disk image was opened in the Finder with every element in place.
  • Merges cleanly onto current main.

🤖 Generated with Claude Code

Johann-PLW and others added 2 commits September 26, 2026 21:54
dmgbuild is installed on macOS only, so pylint on the Linux lint job
could not resolve the import and reported it as an introduced
import-error.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Johann-PLW
Johann-PLW merged commit e9996ed into abrignoni:main Sep 26, 2026
16 checks passed
@Johann-PLW
Johann-PLW deleted the macos-signing branch September 26, 2026 20:34
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