another.im-ios/scripts/set_version_number.sh

23 lines
848 B
Bash
Raw Permalink Normal View History

2024-11-18 14:53:52 +00:00
#!/bin/sh
# Abort on Error
set -e
cd Monal
echo ""
echo "***************************************************"
echo "* Setting buildNumber to $buildNumber and version to $buildVersion *"
echo "***************************************************"
sleep 1
set -x
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "NotificationService/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "shareSheet-iOS/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "$APP_NAME-Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $buildVersion" "NotificationService/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $buildVersion" "shareSheet-iOS/Info.plist"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString $buildVersion" "$APP_NAME-Info.plist"