ios: add ability to override SDK version when releasing

This commit is contained in:
Saúl Ibarra Corretgé 2019-05-14 14:50:16 +02:00 committed by Saúl Ibarra Corretgé
parent 6f320f463d
commit e66b596a0d
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ set -e -u
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
PROJECT_REPO=$(realpath ${THIS_DIR}/../..)
RELEASE_REPO=$(realpath ${THIS_DIR}/../../../jitsi-meet-ios-sdk-releases)
SDK_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" ${THIS_DIR}/../sdk/src/Info.plist)
DEFAULT_SDK_VERSION=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" ${THIS_DIR}/../sdk/src/Info.plist)
SDK_VERSION=${OVERRIDE_SDK_VERSION:-${DEFAULT_SDK_VERSION}}
echo "Releasing Jitsi Meet SDK ${SDK_VERSION}"