Skip to content

Instantly share code, notes, and snippets.

@jthoms1
Last active June 1, 2022 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthoms1/f3a623e7e43847c6a0d881390658c43e to your computer and use it in GitHub Desktop.
Save jthoms1/f3a623e7e43847c6a0d881390658c43e to your computer and use it in GitHub Desktop.
# Instructions on how to download an App Bundle from AppFlow
#
#
# Setup auth first: https://ionic.io/docs/appflow/cli/overview#authentication
#
# Environment variables
#
# APP_ID (IE 186b544f)
# CHANNEL (IE production)
# PORTAL_NAME (IE checkout)
# ANDROID_PROJ_DIR_ROOT (IE the project root on your machine)
# BUILT_PRODUCTS_DIR (IE the iOS project location)
#
(export IONIC_CLOUD_VERSION=0.5.0; curl -sL https://ionic.io/get-ionic-cloud-cli | bash)
ionic-cloud live-update download --app-id ${APP_ID} --channel-name ${CHANNEL} --zip-name ${PORTAL_NAME}.zip
#Android
unzip ${PORTAL_NAME}.zip -d ${ANDROID_PROJ_DIR_ROOT}/app/src/main/assets/${PORTAL_NAME}
#iOS
unzip ${PORTAL_NAME}.zip -d ${BUILT_PRODUCTS_DIR}/${TARGET_NAME}.app/${PORTAL_NAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment