From 06681cafdb7c23ec128642ff30907346191c0324 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sun, 10 Jul 2022 13:20:09 +0200 Subject: [PATCH] feat: updated Makefile. Moved from altool to the notarytool in notarize step --- Makefile | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index 38bccd61..51987cfb 100644 --- a/Makefile +++ b/Makefile @@ -37,32 +37,12 @@ notarize: osascript -e 'display notification "Submitting app for notarization..." with title "Build the Stats"' echo "Submitting app for notarization..." - xcrun altool --notarize-app \ - --primary-bundle-id $(BUNDLE_ID)\ - -itc_provider $(AC_PROVIDER) \ - -u $(AC_USERNAME) \ - -p @keychain:AC_PASSWORD \ - --file $(ZIP_PATH) + xcrun notarytool submit --keychain-profile "AC_PASSWORD" --wait $(ZIP_PATH) - echo "Application sent to the notarization center" - - sleep 30s - -LAST_REQUEST="test" + echo "Stats successfully notarized" sign: - osascript -e 'display notification "Checking if package is approved by Apple..." with title "Build the Stats"' - echo "Checking if package is approved by Apple..." - - while true; do \ - if [[ "$$(xcrun altool --notarization-history 0 -itc_provider $(AC_PROVIDER) -u $(AC_USERNAME) -p @keychain:AC_PASSWORD | sed -n '6p')" == *"success"* ]]; then \ - echo "OK" ;\ - break ;\ - fi ;\ - echo "Package was not approved by Apple, recheck in 10s..."; \ - sleep 10s ;\ - done - + osascript -e 'display notification "Stampling the Stats..." with title "Build the Stats"' echo "Going to staple an application..." xcrun stapler staple $(APP_PATH)