4 # https://scriptingosx.com/2019/09/notarize-a-command-line-tool/
5 # https://developer.apple.com/documentation/technotes/tn3147-migrating-to-the-latest-notarization-tool
9 if [[ -z "$NOTARYTOOL_KEYCHAIN_PROFILE" ]]; then
10 echo "skipping notarization"
15 xcrun notarytool submit \
16 --keychain-profile "$NOTARYTOOL_KEYCHAIN_PROFILE" \
17 ${NOTARYTOOL_KEYCHAIN_PATH:+--keychain "$NOTARYTOOL_KEYCHAIN_PATH"} \
18 --wait --timeout '1h' \
20 xcrun stapler staple
"$dmg"