File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments