From e8c68775d6a0aa42b92947277ff11fab2f53c26a Mon Sep 17 00:00:00 2001 From: Sim Sun Date: Thu, 8 Feb 2024 13:27:33 -0800 Subject: [PATCH] use curl to download the ndk --- scripts/centos-install-deps.sh | 0 scripts/download-ndk.sh | 6 ++++-- 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 scripts/centos-install-deps.sh diff --git a/scripts/centos-install-deps.sh b/scripts/centos-install-deps.sh old mode 100644 new mode 100755 diff --git a/scripts/download-ndk.sh b/scripts/download-ndk.sh index fd05d93..4c58884 100755 --- a/scripts/download-ndk.sh +++ b/scripts/download-ndk.sh @@ -2,10 +2,12 @@ # Copyright (c) Meta Platforms, Inc. and affiliates. dest="${1:-$(pwd)}" +TMP_NDK="/tmp/android-ndk-r23b-linux.zip" + echo "downloading ndk to ${dest}..." -wget -q -P /tmp https://dl.google.com/android/repository/android-ndk-r23b-linux.zip -unzip -q /tmp/android-ndk-r23b-linux.zip -d "${dest}" +curl -s -o "${TMP_NDK}" https://dl.google.com/android/repository/android-ndk-r23b-linux.zip +unzip -q "${TMP_NDK}" -d "${dest}" rm /tmp/android-ndk-r23b-linux.zip echo "done"