forked from bepass-org/nekobepass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdownload.sh
executable file
·18 lines (15 loc) · 667 Bytes
/
download.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
set -e
dl_and_chmod() {
curl -Lso tmp.zip "$2"
unzip -d tmp tmp.zip
mkdir -p app_bepass/libs/"$1"
mv "tmp/bepass" app_bepass/libs/"$1"/libepass.so
rm -rf tmp tmp.zip
}
download_bepass() {
dl_and_chmod arm64-v8a "https://github.com/uoosef/bepass/releases/download/v1.6.2/Bepass-linux-arm64.51eb50.zip"
dl_and_chmod armeabi-v7a "https://github.com/uoosef/bepass/releases/download/v1.6.2/Bepass-linux-arm7.51eb50.zip"
dl_and_chmod x86 "https://github.com/uoosef/bepass/releases/download/v1.6.2/Bepass-linux-386.51eb50.zip"
dl_and_chmod x86_64 "https://github.com/uoosef/bepass/releases/download/v1.6.2/Bepass-linux-amd64.51eb50.zip"
}
download_"$1"