CICD-482 · macOS binary distribution
Encyclopedia · Mobile, desktop and binary distribution · All snippets
Previous · CICD-481 · Next · CICD-483
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites approved toolchains and isolated build/signing runner when credentials are required.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
NOTARY_PROFILE.
2. Copy the snippet
bash
xcrun notarytool submit dist/App.dmg --keychain-profile "${NOTARY_PROFILE:?}" --wait
xcrun stapler staple dist/App.dmg
xcrun stapler validate dist/App.dmg3. How it works
The command archives or inspects the selected files. Verify the relative paths and file set before using the archive downstream.
4. Verify the result
Sign the app and disk image using approved Developer ID certificates before submission.
Validation syntax-validated (Bash parse). Status definitions.