Skip to content

Commit 4f979af

Browse files
committed
output app version at end of build script
1 parent 5c1cb74 commit 4f979af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ main() {
8181
-configuration "Release"
8282

8383
TARGET_APP="./build/Release/DTerm.app"
84+
TARGET_VERSION="$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$TARGET_APP/Contents/Info.plist")"
8485

8586
if [[ ! -d "$TARGET_APP" ]]; then
8687
error "missing $TARGET_APP"
@@ -118,9 +119,10 @@ main() {
118119

119120
echo "---------------------------------------------------"
120121
echo ">> Build Complete: $(dirname $TARGET_APP)"
121-
echo ">> APP: $TARGET_APP"
122+
echo ">> Version: $TARGET_VERSION"
123+
echo ">> APP: $TARGET_APP"
122124
if [[ "$WITH_DMG" == "yes" ]]; then
123-
echo ">> DMG: $TARGET_DMG"
125+
echo ">> DMG: $TARGET_DMG"
124126
fi
125127
if [[ "$WITH_CODESIGN" == "yes" ]]; then
126128
echo ">> Codesigning Details:"

0 commit comments

Comments
 (0)