diff --git a/scripts/publish-update.sh b/scripts/publish-update.sh index 6a636d5..fb8c231 100755 --- a/scripts/publish-update.sh +++ b/scripts/publish-update.sh @@ -359,8 +359,11 @@ SPCTL_STATUS=$? set -e echo "${SPCTL_OUTPUT}" if [[ "${SPCTL_STATUS}" -ne 0 ]] || ! grep -qi 'accepted' <<<"${SPCTL_OUTPUT}"; then - echo "spctl did not report accepted for ${APP_BUNDLE}." >&2 - exit 1 + if [[ "${NOTARIZED}" == "true" ]]; then + echo "spctl did not report accepted for ${APP_BUNDLE} although it was notarized." >&2 + exit 1 + fi + echo "WARNING: Gatekeeper does not accept this build (not notarized). First install on other Macs needs right-click > Open." >&2 fi TEAM_IDENTIFIER="$(codesign -dv "${APP_BUNDLE}" 2>&1 | awk -F= '/^TeamIdentifier=/{print $2}')"