Skip to content

Commit

Permalink
Getting version info after building an app, not before
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekazakov committed Jan 19, 2024
1 parent 1b2523b commit 0e96513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Scripts/build_unsigned.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 0e96513

Please sign in to comment.