From e34166d0d9a29789dd8d492352331c8a0a413491 Mon Sep 17 00:00:00 2001 From: jmkiley Date: Thu, 29 Nov 2018 12:44:54 -0800 Subject: [ios] Add publish version to the publish-cn.sh script --- platform/ios/scripts/publish-cn.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform/ios/scripts/publish-cn.sh b/platform/ios/scripts/publish-cn.sh index f664042445..a0cbdca02c 100755 --- a/platform/ios/scripts/publish-cn.sh +++ b/platform/ios/scripts/publish-cn.sh @@ -9,6 +9,18 @@ function step { >&2 echo -e "\033[1m\033[36m* $@\033[0m"; } function finish { >&2 echo -en "\033[0m"; } trap finish EXIT +# +# iOS 8-compatible release tag format is `vX.Y.Z-cn.1`; `X.Y.Z-cn.1` gets passed in +# In the case of symbolicated builds, we also append the `-symbols`. +# +PUBLISH_VERSION="$1" + +if [[ ${#} -eq 2 ]]; then + PUBLISH_STYLE="-$2" +else + PUBLISH_STYLE="" +fi + # # make the framework # -- cgit v1.2.1