Skip to content

Commit

Permalink
tools: add macOS notarization verification step
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#50833
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
sercher committed Apr 25, 2024
1 parent 2fac833 commit e99a255
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions graal-nodejs/tools/osx-notarize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,12 @@ else
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

xcrun stapler staple "node-$pkgid.pkg"
echo "Stapler was successful."

0 comments on commit e99a255

Please sign in to comment.