From 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Tue, 20 Jul 2021 21:24:52 +0300 Subject: WIP --- bin/downloadExpoApp.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 bin/downloadExpoApp.sh (limited to 'bin/downloadExpoApp.sh') diff --git a/bin/downloadExpoApp.sh b/bin/downloadExpoApp.sh deleted file mode 100755 index 1a7904a..0000000 --- a/bin/downloadExpoApp.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -e - -set -euo pipefail - -# based on https://github.com/yaron1m/expo-detox-typescript-example/blob/master/scripts/dl_expo_bins -APP_PATH=./bin/Exponent.app - -if [ ! -d $APP_PATH ]; then - echo "First time running Detox -- downloading Expo client app" - - # Sanity check - if [ ! -f "package.json" ]; then - echo "Oops - run this command from your project's root folder" >>/dev/stderr - exit 1 - fi - - # Make the app dir (this'll also make sure we already have the bin directory) - mkdir $APP_PATH - - # query expo.io to find most recent ipaUrl - IPA_URL=`curl --silent --show-error https://expo.io/--/api/v2/versions | python -c 'import sys, json; print json.load(sys.stdin)["iosUrl"]'` - - # download tar.gz - TMP_PATH=./exponent.tar.gz - curl --silent --show-error --output $TMP_PATH $IPA_URL - - # unzip tar.gz into APP_PATH - tar -C $APP_PATH -xzf $TMP_PATH - rm ./exponent.tar.gz -fi -- cgit v1.2.3