Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: add macOS notarization verification step #50628

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tools/osx-notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,14 @@ xcrun notarytool submit \

if [ $? -eq 0 ]; then
echo "Notarization node-$pkgid.pkg submitted successfully."
exit 0
else
echo "Notarization node-$pkgid.pkg failed."
exit 1
fi

if ! xcrun spctl --assess --type install --context context:primary-signature --ignore-cache --verbose=2 "node-$pkgid.pkg"; then
echo "error: Signature will not be accepted by Gatekeeper!" 1>&2
exit 1
else
echo "Verification was successful."
fi
Loading