-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathndkloader
executable file
·21 lines (19 loc) · 919 Bytes
/
ndkloader
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
if [ ! -d /home/kivy/.buildozer/android/platform/android-ndk-r14b ]; then
echo "NDK not found"
cd /home/kivy/.buildozer/android/platform || mkdir -p /home/kivy/.buildozer/android/platform && cd /home/kivy/.buildozer/android/platform
if [ ! -f android-ndk-r14b-linux-x86_64.zip ]; then
echo "NDK zip is also not found..."
echo "NDK will be downloaded shortly..."
wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip
unzip -qq android-ndk-r14b-linux-x86_64.zip
rm android-ndk-r14b-linux-x86_64.zip
else
unzip -qq android-ndk-r14b-linux-x86_64.zip || echo "File corrupted. Redownloading" \
&& wget https://dl.google.com/android/repository/android-ndk-r14b-linux-x86_64.zip \
&& unzip -qq android-ndk-r14b-linux-x86_64.zip
rm android-ndk-r14b-linux-x86_64.zip
fi
fi
cd /home/kivy
/bin/bash