Skip to content

Commit a8b4dbf

Browse files
committed
CI mac sign.sh: notarytool override with env var
allow environment variable notarytool (sic) overriding `xcrun notarytool` (currently needed internally for alt builds to be able to use the sign.sh script, because the notarytool is not in standard path /actually used XCode 13 for higher macOS version/)
1 parent 642c707 commit a8b4dbf

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/scripts/macOS/sign.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ set +x
6262
DEVELOPER_USERNAME=$(echo "$notarytool_credentials" | cut -d: -f1)
6363
DEVELOPER_PASSWORD=$(echo "$notarytool_credentials" | cut -d: -f2)
6464
DEVELOPER_TEAMID=$(echo "$notarytool_credentials" | cut -d: -f3)
65-
xcrun notarytool submit $ZIP_FILE --apple-id "$DEVELOPER_USERNAME" --team-id "$DEVELOPER_TEAMID" --password "$DEVELOPER_PASSWORD" --wait
65+
${notarytool:-xcrun notarytool} submit $ZIP_FILE \
66+
--apple-id "$DEVELOPER_USERNAME" --team-id "$DEVELOPER_TEAMID" \
67+
--password "$DEVELOPER_PASSWORD" --wait
6668
set -x
6769
# If everything is ok, staple the app
6870
xcrun stapler staple "$APP"

0 commit comments

Comments
 (0)