download from DigitalOcean first since it's faster
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
1e5b686027
commit
f5a0c2a7d9
18
Makefile
18
Makefile
|
@ -3,7 +3,7 @@
|
||||||
help: ##@other Show this help
|
help: ##@other Show this help
|
||||||
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
@perl -e '$(HELP_FUN)' $(MAKEFILE_LIST)
|
||||||
|
|
||||||
DO_SPACE_URL = https://status-go.ams3.digitaloceanspaces.com/
|
DO_SPACE_URL = https://status-go.ams3.digitaloceanspaces.com
|
||||||
GITHUB_URL = https://github.com/status-im/status-go/releases/download
|
GITHUB_URL = https://github.com/status-im/status-go/releases/download
|
||||||
RCTSTATUS_DIR = modules/react-native-status/ios/RCTStatus
|
RCTSTATUS_DIR = modules/react-native-status/ios/RCTStatus
|
||||||
ANDROID_LIBS_DIR = android/app/libs
|
ANDROID_LIBS_DIR = android/app/libs
|
||||||
|
@ -49,30 +49,30 @@ prepare-desktop: ##@prepare Install desktop platform dependencies and prepare wo
|
||||||
|
|
||||||
$(STATUS_GO_IOS_ARCH):
|
$(STATUS_GO_IOS_ARCH):
|
||||||
curl --fail --silent --location \
|
curl --fail --silent --location \
|
||||||
"$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-ios.zip" \
|
"${DO_SPACE_URL}/status-go-ios-$(STATUS_GO_VER).zip" \
|
||||||
--output "$(STATUS_GO_IOS_ARCH)"; \
|
--output "$(STATUS_GO_IOS_ARCH)"; \
|
||||||
if [ $$? -ne 0 ]; then \
|
if [ $$? -ne 0 ]; then \
|
||||||
echo "Failed to download from GitHub, checking DigitalOcean Bucket..."; \
|
echo "Failed to download from DigitalOcean Bucket, checking GitHub..."; \
|
||||||
curl --fail --silent --location \
|
curl --fail --silent --location \
|
||||||
"${DO_SPACE_URL}/status-go-ios-$(STATUS_GO_VER).zip" \
|
"$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-ios.zip" \
|
||||||
--output "$(STATUS_GO_IOS_ARCH)"; \
|
--output "$(STATUS_GO_IOS_ARCH)"; \
|
||||||
if [ $$? -ne 0 ]; then \
|
if [ $$? -ne 0 ]; then \
|
||||||
echo "Failed to download from DigitalOcean Spaces!"; \
|
echo "Failed to download from GitHub!"; \
|
||||||
fi \
|
fi \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$(STATUS_GO_DRO_ARCH):
|
$(STATUS_GO_DRO_ARCH):
|
||||||
mkdir -p $(ANDROID_LIBS_DIR)
|
mkdir -p $(ANDROID_LIBS_DIR)
|
||||||
curl --fail --silent --location \
|
curl --fail --silent --location \
|
||||||
"$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-android.aar" \
|
"${DO_SPACE_URL}/status-go-android-$(STATUS_GO_VER).aar" \
|
||||||
--output "$(STATUS_GO_DRO_ARCH)"; \
|
--output "$(STATUS_GO_DRO_ARCH)"; \
|
||||||
if [ $$? -ne 0 ]; then \
|
if [ $$? -ne 0 ]; then \
|
||||||
echo "Failed to download from GitHub, checking DigitalOcean Bucket..."; \
|
echo "Failed to download from DigitalOcean Bucket, checking GitHub..."; \
|
||||||
curl --fail --silent --location \
|
curl --fail --silent --location \
|
||||||
"${DO_SPACE_URL}/status-go-android-$(STATUS_GO_VER).aar" \
|
"$(GITHUB_URL)/$(STATUS_GO_VER)/status-go-android.aar" \
|
||||||
--output "$(STATUS_GO_DRO_ARCH)"; \
|
--output "$(STATUS_GO_DRO_ARCH)"; \
|
||||||
if [ $$? -ne 0 ]; then \
|
if [ $$? -ne 0 ]; then \
|
||||||
echo "Failed to download from DigitalOcean Spaces!"; \
|
echo "Failed to download from GitHub!"; \
|
||||||
fi \
|
fi \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue