From 0e96513fa1e30a2ea0d21552d758b371b6a03ab2 Mon Sep 17 00:00:00 2001 From: Michael Kazakov Date: Fri, 19 Jan 2024 22:38:14 +0000 Subject: [PATCH] Getting version info after building an app, not before --- Scripts/build_unsigned.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/build_unsigned.sh b/Scripts/build_unsigned.sh index 17fef20d5..69f78ffba 100755 --- a/Scripts/build_unsigned.sh +++ b/Scripts/build_unsigned.sh @@ -49,13 +49,13 @@ APP_DIR=$($XC -showBuildSettings | grep " BUILT_PRODUCTS_DIR =" | sed -e 's/.*= APP_NAME=$($XC -showBuildSettings | grep " FULL_PRODUCT_NAME =" | sed -e 's/.*= *//' ) APP_PATH=$APP_DIR/$APP_NAME -VERSION=$( $PBUDDY -c "Print CFBundleShortVersionString" "$APP_PATH/Contents/Info.plist" ) -BUILD=$( $PBUDDY -c "Print CFBundleVersion" "$APP_PATH/Contents/Info.plist" ) - $XC build | xcpretty cp -R "${APP_PATH}" ./ +VERSION=$( $PBUDDY -c "Print CFBundleShortVersionString" "$APP_PATH/Contents/Info.plist" ) +BUILD=$( $PBUDDY -c "Print CFBundleVersion" "$APP_PATH/Contents/Info.plist" ) + create-dmg \ --volname "Nimble Commander Unsigned" \ --window-pos 200 200 \