From a819220629d5167444f1cf5a734b5f250987a932 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Tue, 12 Sep 2023 20:19:26 -0400 Subject: [PATCH] Update Mac notarization procedure to skip npm package Uses current notarytool protocol - should be good on new Xcode Signed-off-by: Geoff Hutchison --- .github/workflows/build_cmake.yml | 3 ++- .github/workflows/build_m1.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 0d70062dd1..5e183e5967 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -276,7 +276,8 @@ jobs: # check if we have the password and the username if [ -n "${NOTARIZE_PASSWORD}" ] && [ -n "${NOTARIZE_USERNAME}" ]; then codesign -s "$CODESIGN_IDENTITY" --timestamp Avogadro2*.dmg - npx notarize-cli --file Avogadro2*.dmg + xcrun notarytool submit Avogadro2*.dmg --apple-id "$NOTARIZE_USERNAME" --password "NOTARIZE_PASSWORD" --verbose --wait + xcrun stapler staple -v Avogadro2*.dmg fi working-directory: ${{ runner.workspace }}/build/avogadroapp env: diff --git a/.github/workflows/build_m1.yml b/.github/workflows/build_m1.yml index 9c052a4da9..0772b9c8c8 100644 --- a/.github/workflows/build_m1.yml +++ b/.github/workflows/build_m1.yml @@ -162,7 +162,8 @@ jobs: echo "codesign DMG" codesign -s "$CODESIGN_IDENTITY" --timestamp Avogadro2*.dmg echo "notarizing" - npx notarize-cli --file Avogadro2*.dmg + xcrun notarytool submit Avogadro2*.dmg --apple-id "$NOTARIZE_USERNAME" --password "NOTARIZE_PASSWORD" --verbose --wait + xcrun stapler staple -v Avogadro2*.dmg fi env: NOTARIZE_USERNAME: ${{ secrets.AC_USERNAME }}