fix naming of download status-go archives to avoid re-downloads

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-11-20 12:03:21 +01:00
parent 01c8d9b25b
commit c5d069e8a3
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 7 additions and 3 deletions

View File

@ -51,14 +51,18 @@ _prepare-mobile: ##@prepare Install mobile platform dependencies and prepare wor
npm install
$(STATUS_GO_IOS_ARCH):
cd $(RCTSTATUS_DIR) && curl -s -OL "$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-ios.zip"
curl -s -L \
"$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-ios.zip" \
-o "$(STATUS_GO_IOS_ARCH)"
$(STATUS_GO_DRO_ARCH):
mkdir -p $(ANDROID_LIBS_DIR)
cd $(ANDROID_LIBS_DIR) && curl -s -o status-go-$(STATUS_GO_VER).aar -OL "$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-android.aar"
curl -s -L \
"$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-android.aar" \
-o "$(STATUS_GO_DRO_ARCH)"
prepare-ios: $(STATUS_GO_IOS_ARCH) _prepare-mobile ##@prepare Install and prepare iOS-specific dependencies
cd $(RCTSTATUS_DIR) && unzip -q -o status-go-ios.zip
unzip -q -o "$(STATUS_GO_IOS_ARCH)" -d "$(RCTSTATUS_DIR)"
ifeq ($(OS),Darwin)
cd ios && pod install
endif