Skip to content

Commit

Permalink
tools: add macOS notarization verification step
Browse files Browse the repository at this point in the history
PR-URL: #50833
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
  • Loading branch information
UlisesGascon committed Dec 15, 2023
1 parent 347e92a commit b3836e4
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 b3836e4

Please sign in to comment.