From fb1f0449582c1c112dfad67c1ba948a7ec216bca Mon Sep 17 00:00:00 2001 From: FriwiDev Date: Tue, 1 Nov 2022 03:36:23 +0100 Subject: [PATCH] Correctly create out dir on macos, add debug to notarization upload --- compile_macosx.sh | 3 +++ macosx_notarize.sh | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/compile_macosx.sh b/compile_macosx.sh index 6efa3df..da7cd25 100755 --- a/compile_macosx.sh +++ b/compile_macosx.sh @@ -43,6 +43,9 @@ else echo "Found existing files to build" cd jcef fi +if [ ! -d "out" ]; then + mkdir out +fi if [ ! -d "out/docs" ]; then mkdir out/docs fi diff --git a/macosx_notarize.sh b/macosx_notarize.sh index ce1b389..2f72cb2 100755 --- a/macosx_notarize.sh +++ b/macosx_notarize.sh @@ -28,14 +28,14 @@ echo "Creating zip" zip -r "$APP_NAME.zip" "$APP_NAME" echo "Uploading $ZIP_PATH for notarization" -requestUUID=$(xcrun altool --notarize-app \ +xcRunOutput=$(xcrun altool --notarize-app \ --type macos \ --primary-bundle-id "$4" \ --apiKey "$5" \ --apiIssuer "$6" \ - --file "$1.zip" 2>&1 \ - | awk '/RequestUUID/ { print $NF; }') -# --asc-provider "$3" \ + --file "$1.zip" 2>&1 ) +echo "xcrun> $xcRunOutput" +requestUUID=$(echo "$xcRunOutput" | awk '/RequestUUID/ { print $NF; }') echo "Notarization RequestUUID: $requestUUID"