mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Fixes this Apple Store Connect warning: ~~~ ITMS-90473: CFBundleShortVersionString Mismatch - The CFBundleShortVersionString value '1.0' of extension 'jitsi-meet.app/PlugIns/JitsiMeetBroadcast Extension.appex' does not match the CFBundleShortVersionString value '21.0.0' of its containing iOS application 'jitsi-meet.app'. ~~~
21 lines
801 B
Bash
Executable File
21 lines
801 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e -u
|
|
|
|
if [[ $# -ne 1 ]]; then
|
|
echo "Please specify a version"
|
|
exit 1
|
|
fi
|
|
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
VERSION=$1
|
|
|
|
# iOS
|
|
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${VERSION}" ${THIS_DIR}/../ios/app/src/Info.plist
|
|
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${VERSION}" ${THIS_DIR}/../ios/app/broadcast-extension/Info.plist
|
|
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${VERSION}" ${THIS_DIR}/../ios/app/watchos/app/Info.plist
|
|
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${VERSION}" ${THIS_DIR}/../ios/app/watchos/extension/Info.plist
|
|
|
|
# Android
|
|
sed -i "" -e "s/appVersion=.*/appVersion=${VERSION}/" ${THIS_DIR}/../android/gradle.properties
|