How to sign and notarize for delivery

Follow this after the build instructions on the GitHub page

Create a zip for submission:

ditto -c -k --keepParent HyperXTalk.app HyperXTalk.zip

Submit to Apple:

xcrun notarytool submit HyperXTalk.zip \
–apple-id "user@example.com" \
–team-id "XXXXXXXXXX" \
–password "application-specific-password" \
–wait

If it fails, retrieve the log:

xcrun notarytool log  \
–apple-id "user@example.com" \
–team-id "XXXXXXXXXX" \
–password "application-specific-password"

Staple the ticket:

xcrun stapler staple HyperXTalk.app

Create a DMG

Create a staging folder

mkdir -p dist/dmg
cp -R HyperXTalk.app dist/dmg/

Create the DMG

hdiutil create \
-volname "HyperXTalk" \
-srcfolder dist/dmg \
-ov \
-format UDZO \
HyperXTalk.dmg

Sign the DMG

codesign \
–sign "Developer ID Application: Emily-Elizabeth Howard, (XXXXXXXXXX)" \
HyperXTalk.dmg

Notarize the DMG

xcrun notarytool submit HyperXTalk.dmg \
–apple-id "user@example.com" \
–team-id "XXXXXXXXXX" \
–password "application-specific-password" \
–wait

Staple

xcrun stapler staple HyperXTalk.dmg