Skip to content

Commit 7e74bfc

Browse files
committed
Update osx_build.yml
1 parent 4a987e5 commit 7e74bfc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/osx_build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,15 @@ jobs:
118118
VER_MAJOR=$(grep "const int version_major" $GEODA_HOME/../../version.h | sed -e 's/.*const int version_major = \([0-9]*\);.*/\1/')
119119
VER_MINOR=$(grep "const int version_minor" $GEODA_HOME/../../version.h | sed -e 's/.*const int version_minor = \([0-9]*\);.*/\1/')
120120
VER_BUILD=$(grep "const int version_build" $GEODA_HOME/../../version.h | sed -e 's/.*const int version_build = \([0-9]*\);.*/\1/')
121-
VER_STR="${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}"
121+
GEODA_VERSION=$VER_MAJOR.$VER_MINOR.$VER_BUILD-$GEODA_ARCH
122+
echo $GEODA_VERSION
122123
# Update version in plist files
123-
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VER_STR" GeoDa-GDAL-Info.plist
124+
VER_SUB=$(grep "const int version_subbuild" $GEODA_HOME/../../version.h | sed -e 's/.*const int version_subbuild = \([0-9]*\);.*/\1/')
125+
VER_STR="${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}.${VER_SUB}"
124126
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VER_STR" GeoDa-GDAL-Info.plist
125-
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VER_STR" GeoDa-Xcode-Info.plist
127+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VER_SUB" GeoDa-GDAL-Info.plist
126128
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VER_STR" GeoDa-Xcode-Info.plist
127-
GEODA_VERSION=$VER_MAJOR.$VER_MINOR.$VER_BUILD-$GEODA_ARCH
128-
echo $GEODA_VERSION
129+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VER_SUB" GeoDa-Xcode-Info.plist
129130
make -j$(sysctl -n hw.ncpu)
130131
make app
131132
cd create-dmg

0 commit comments

Comments
 (0)