Skip to content

Commit

Permalink
use curl to download the ndk
Browse files Browse the repository at this point in the history
  • Loading branch information
simpleton authored and michalgr committed Feb 9, 2024
1 parent b3c3ea7 commit 6f0d0d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Empty file modified scripts/centos-install-deps.sh
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions scripts/download-ndk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 6f0d0d8

Please sign in to comment.