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#50833
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
UlisesGascon authored and pull[bot] committed Jun 18, 2024
1 parent 34fec86 commit a16c3c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 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 a16c3c9

Please sign in to comment.