Skip to content

Commit 60affdd

Browse files
UlisesGasconmarco-ippolito
authored andcommittedFeb 12, 2024
tools: add macOS notarization verification step
PR-URL: #50833 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
1 parent ccc676a commit 60affdd

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)