Skip to content

Commit b3836e4

Browse files
committed
tools: add macOS notarization verification step
PR-URL: #50833 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 347e92a commit b3836e4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/osx-notarize.sh

+7
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,12 @@ else
4848
exit 1
4949
fi
5050

51+
if ! xcrun spctl --assess --type install --context context:primary-signature --ignore-cache --verbose=2 "node-$pkgid.pkg"; then
52+
echo "error: Signature will not be accepted by Gatekeeper!" 1>&2
53+
exit 1
54+
else
55+
echo "Verification was successful."
56+
fi
57+
5158
xcrun stapler staple "node-$pkgid.pkg"
5259
echo "Stapler was successful."

0 commit comments

Comments
 (0)