Skip to content

Commit 4a987e5

Browse files
committed
use plistbuddy
1 parent 7da7541 commit 4a987e5

2 files changed

Lines changed: 6 additions & 116 deletions

File tree

.github/workflows/osx_build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,15 @@ jobs:
115115
security find-identity -v
116116
# Update Info.plist version to match version.h
117117
echo "Updating Info.plist version..."
118-
python3 update_plist_version.py
119118
VER_MAJOR=$(grep "const int version_major" $GEODA_HOME/../../version.h | sed -e 's/.*const int version_major = \([0-9]*\);.*/\1/')
120119
VER_MINOR=$(grep "const int version_minor" $GEODA_HOME/../../version.h | sed -e 's/.*const int version_minor = \([0-9]*\);.*/\1/')
121120
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}"
122+
# Update version in plist files
123+
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $VER_STR" GeoDa-GDAL-Info.plist
124+
/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
126+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $VER_STR" GeoDa-Xcode-Info.plist
122127
GEODA_VERSION=$VER_MAJOR.$VER_MINOR.$VER_BUILD-$GEODA_ARCH
123128
echo $GEODA_VERSION
124129
make -j$(sysctl -n hw.ncpu)

BuildTools/macosx/update_plist_version.py

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)