Skip to content

[CI] Keep the macOS release zip's code signature intact - #662

Merged
yorkyang2333 merged 1 commit into
AetherKiri:mainfrom
nhjbest22:fix/macos-release-zip-signature
Dec 4, 2026
Merged

yorkyang2333 merged 1 commit into
AetherKiri:mainfrom
nhjbest22:fix/macos-release-zip-signature

Conversation

@nhjbest22

Copy link
Copy Markdown
Contributor

Issue

The macOS zip in the 1.2.3 release does not launch. The extracted Aether.app
fails codesign --verify --deep --strict ("a sealed resource is missing or
invalid"), and none of its files are executable, including
Contents/MacOS/Aether.

The build job verifies the app successfully, then uploads
out/godot/macos/release/ as a bare directory. actions/upload-artifact:

  • replaces symlinks with copies of their targets
    (renpy-runtime/lib/py3-mac-universal, n2system-runtime/Fonts,
    greenlet/_greenlet.cpython-312-darwin.so)
  • skips hidden files (renpy-runtime/.aether-runtime-ready.json)
  • drops Unix permissions

The release job then zips that altered tree, so the published bundle no longer
matches its seal.

Fix

  • The macOS build job archives Aether.app with ditto -c -k --keepParent,
    extracts the archive again, verifies the signature, and uploads only the
    archive.
  • The release job publishes that archive as AetherKiri-<tag>-macos.zip
    instead of re-zipping. The asset name and top-level layout (Aether.app/)
    are unchanged.

Verification

  • Ran the new step locally against the 1.2.3 app after restoring its symlinks
    and permissions. It passes, and the archive keeps all 3 symlinks and the
    executable bits.
  • Ran the same step against the app extracted from the published 1.2.3 zip.
    It fails on the modified file, the two missing symlinks and the missing
    hidden file.
  • Both workflow files parse. The workflows have not run on GitHub Actions yet.

Not in this PR

The zip is still ad-hoc signed, so a downloaded copy is quarantined and
Gatekeeper asks for approval in System Settings on first launch. Opening it
without that step would need a Developer ID Application certificate and
notarization. The existing App Store Connect API key could probably be reused
for notarytool.

upload-artifact drops Unix permissions and hidden files and replaces
symlinks with copies, so uploading out/godot/macos/release/ as a bare
directory broke the code-signing seal of Aether.app. The release job then
re-zipped that damaged tree, and the published macOS zip failed
`codesign --verify` and had no executable bits, so it could not launch.

Archive the bundle with ditto in the macOS build job, verify that the
archive round-trips to a validly signed app, and upload only the archive.
The release job now publishes that archive as-is instead of re-zipping.

@colorcard colorcard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yorkyang2333 yorkyang2333 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reproduced this issue for me as well.
One thing that concerns me is the recursive zip archives, but we may tweak this later. Other changes LGTM.
Thanks!

@yorkyang2333
yorkyang2333 merged commit 0c1251a into AetherKiri:main Dec 4, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AetherKiri Roadmap Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

3 participants