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 <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
  • Loading branch information
UlisesGascon authored and mhdawson committed Nov 23, 2023
1 parent 4e713a3 commit 83df02c
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 83df02c

Please sign in to comment.