diff options
author | jmkiley <jordan.kiley@mapbox.com> | 2018-10-24 10:45:36 +0800 |
---|---|---|
committer | jmkiley <jordan.kiley@mapbox.com> | 2018-10-24 10:45:36 +0800 |
commit | b4a57099406e38735540d435d68db12b2d334e11 (patch) | |
tree | 837375979172fca08b08c6959e3a458f674403e7 | |
parent | e35921e504a94cbe5f8cbc35b15943f1d2e8903f (diff) | |
download | qtlocation-mapboxgl-b4a57099406e38735540d435d68db12b2d334e11.tar.gz |
[ios] update publish script for the iOS 8 branch
-rwxr-xr-x | platform/ios/scripts/publish.sh | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/platform/ios/scripts/publish.sh b/platform/ios/scripts/publish.sh index 3212449aa5..1a69bb2bec 100755 --- a/platform/ios/scripts/publish.sh +++ b/platform/ios/scripts/publish.sh @@ -9,10 +9,10 @@ function finish { >&2 echo -en "\033[0m"; } trap finish EXIT # -# iOS release tag format is `vX.Y.Z`; `X.Y.Z` gets passed in +# Update the PUBLISH_VERSION manually when releasing a new iOS 8 compatible SDK. # In the case of symbolicated builds, we also append the `-symbols`. # -PUBLISH_VERSION="$1" +PUBLISH_VERSION="v4.5.0-cn" if [[ ${#} -eq 2 ]]; then PUBLISH_STYLE="-$2" @@ -24,7 +24,7 @@ fi # zip # cd build/ios/pkg -ZIP="mapbox-ios-sdk-${PUBLISH_VERSION}${PUBLISH_STYLE}.zip" +ZIP="mapbox-ios-sdk-cn.zip" step "Compressing ${ZIP}…" rm -f ../${ZIP} zip -yr ../${ZIP} * @@ -46,17 +46,7 @@ if [ -n "${CI:-}" ]; then fi step "Uploading ${ZIP} to s3…" -REPO_NAME=$(basename $TRAVIS_REPO_SLUG) -aws s3 cp ../${ZIP} s3://mapbox/$REPO_NAME/ios/builds/ --acl public-read ${PROGRESS} -echo "URL: https://mapbox.s3.amazonaws.com/$REPO_NAME/ios/builds/${ZIP}" +# Since this build is for .CN customers, and we want to keep it separate from the main Maps SDK, it will be hosted on .cn. -# -# upload & update nightly -# -if [[ ${PUBLISH_VERSION} =~ "nightly" ]]; then - step "Updating ${PUBLISH_VERSION} to ${PUBLISH_STYLE}…" - GENERIC_NIGHTLY_FILENAME="mapbox-ios-sdk-${PUBLISH_VERSION}.zip" - aws s3 cp \ - s3://mapbox/$REPO_NAME/ios/builds/${ZIP} \ - s3://mapbox/$REPO_NAME/ios/builds/${GENERIC_NIGHTLY_FILENAME} --acl public-read ${PROGRESS} -fi +aws s3 cp ../${ZIP} s3://binary.mapbox.cn/mapbox-china-plugin/ios/builds/maps-sdk/ --acl public-read ${PROGRESS} +echo "URL: https://mapbox.s3.amazonaws.cn/mapbox-plugin-ios/ios/builds/${ZIP}" |