From 797f6a9ba8c82c051e11f9b0a80e0a8b4b3be95e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulises=20Gasc=C3=B3n?= Date: Sat, 11 Nov 2023 20:58:27 +0100 Subject: [PATCH] tools: add macOS notarization stapler PR-URL: https://github.com/nodejs/node/pull/50625 Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca --- tools/osx-notarize.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/osx-notarize.sh b/tools/osx-notarize.sh index 300173dd7fe0e9..bd7ae48a8b15c0 100755 --- a/tools/osx-notarize.sh +++ b/tools/osx-notarize.sh @@ -48,8 +48,10 @@ xcrun notarytool submit \ if [ $? -eq 0 ]; then echo "Notarization node-$pkgid.pkg submitted successfully." - exit 0 else echo "Notarization node-$pkgid.pkg failed." exit 1 fi + +xcrun stapler staple "node-$pkgid.pkg" +echo "Stapler was successful." \ No newline at end of file