pass the version to upload script
This commit is contained in:
parent
c737533a40
commit
82b5f4b637
@ -22,4 +22,4 @@ fi
|
|||||||
|
|
||||||
# Upload
|
# Upload
|
||||||
BUILD_DIR=$(echo "$BUILD_SETTINGS" | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-)
|
BUILD_DIR=$(echo "$BUILD_SETTINGS" | grep -w -o 'BUILD_DIR = .*' | cut -d\ -f3-)
|
||||||
./upload_framework.sh $ARTIFACTORY_URL "${BUILD_DIR}/universal/MVMCoreUI.xcframework" BPHV_MobileFirst_IOS/com/vzw/hss/myverizon/MVMCoreUI/[VER]/MVMCoreUI-[VER]-Debug-SNAPSHOT
|
./upload_framework.sh $ARTIFACTORY_URL "${BUILD_DIR}/universal/MVMCoreUI.xcframework" BPHV_MobileFirst_IOS/com/vzw/hss/myverizon/MVMCoreUI/[VER]/MVMCoreUI-[VER]-Debug-SNAPSHOT $FRAMEWORK_VERSION
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
URL=$1
|
URL=$1
|
||||||
LOCALPATH=$2
|
LOCALPATH=$2
|
||||||
REMOTEPATH=$3
|
REMOTEPATH=$3
|
||||||
|
FRAMEWORKVER=$4
|
||||||
|
|
||||||
if [ -z $URL ]; then
|
if [ -z $URL ]; then
|
||||||
echo "The artifactory instance url must be specified as the first argument!"
|
echo "The artifactory instance url must be specified as the first argument!"
|
||||||
@ -29,10 +30,6 @@ cat "${LOCALPATH}/Info.plist"
|
|||||||
LOCALBASE=$(basename "${LOCALPATH}")
|
LOCALBASE=$(basename "${LOCALPATH}")
|
||||||
LOCALDIR=$(dirname "${LOCALPATH}")
|
LOCALDIR=$(dirname "${LOCALPATH}")
|
||||||
|
|
||||||
# Grab the framework version from the bundled Info.plist.
|
|
||||||
FRAMEWORKVER=$(/usr/libexec/plistbuddy -c "Print :CFBundleShortVersionString" "${LOCALPATH}/Info.plist")
|
|
||||||
echo -e "\nFramework version: \t${FRAMEWORKVER}"
|
|
||||||
|
|
||||||
# Replace the [VER] placeholders with the found version.
|
# Replace the [VER] placeholders with the found version.
|
||||||
REMOTEPATH="${REMOTEPATH//\[VER\]/$FRAMEWORKVER}"
|
REMOTEPATH="${REMOTEPATH//\[VER\]/$FRAMEWORKVER}"
|
||||||
echo -e "Resolved path: \t\t${REMOTEPATH}"
|
echo -e "Resolved path: \t\t${REMOTEPATH}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user