notarize-app
notarize-app copied to clipboard
Linear notarize and staple for build tools
trafficstars
notarize-app
Linear notarize and staple for build tools.
- Run
altool --notarize-app - Run
altool --notarization-infoperiodically andsleepuntil notarization is complete - Run
stapler staple
Usage
notarize-app <asc-provider> <username> <password> <primary-bundle-id> <file>
e.g.
notarize-app 'AB0CDEF2GF' '[email protected]' '@keychain:notarize-app' 'net.example.app' *.pkg
Xcode 13 and later
The newly introduced notarytool is suitable for automated build systems:
# Enter Apple ID
xcrun notarytool store-credentials 'notarize-app' --apple-id '[email protected]' --team-id 'AB0CDEF2GF'
# Notarize and Staple
xcrun notarytool submit --wait --keychain-profile 'notarize-app' *.pkg
xcrun stapler staple *.pkg