summaryrefslogtreecommitdiff
path: root/platform/ios/scripts/publish-cn.sh
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/scripts/publish-cn.sh')
-rwxr-xr-xplatform/ios/scripts/publish-cn.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/platform/ios/scripts/publish-cn.sh b/platform/ios/scripts/publish-cn.sh
index b340a1b217..a0cbdca02c 100755
--- a/platform/ios/scripts/publish-cn.sh
+++ b/platform/ios/scripts/publish-cn.sh
@@ -10,6 +10,18 @@ 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
#
@@ -24,7 +36,7 @@ echo "finished!"
# zip
#
cd build/ios/pkg
-ZIP="mapbox-ios-sdk-4.5.0-cn.1.zip"
+ZIP="mapbox-ios-sdk-${PUBLISH_VERSION}.zip"
step "Compressing ${ZIP}…"
rm -f ../${ZIP}
zip -yr ../${ZIP} *