2019-08-11 00:27:19 +00:00
|
|
|
#!/bin/bash
|
2019-05-26 03:03:18 +00:00
|
|
|
|
2019-05-26 04:49:30 +00:00
|
|
|
instlib() {
|
|
|
|
for i in `ls libs`
|
|
|
|
do
|
|
|
|
mkdir -p app/src/main/lib/$i || return 1
|
|
|
|
mv libs/$i/"$1" app/src/main/lib/$i/"$2" || return 1
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2019-08-11 00:27:19 +00:00
|
|
|
[ dropbear/default_options.h -nt dropbear/default_options_guard.h ] && dropbear/ifndef_wrapper.sh < dropbear/default_options.h > dropbear/default_options_guard.h
|
2019-05-26 02:06:04 +00:00
|
|
|
~/Android/Sdk/ndk-bundle/ndk-build -j8 &&
|
2019-05-26 03:03:18 +00:00
|
|
|
mkdir -p app/src/main/lib/armeabi-v7a &&
|
2019-05-26 04:49:30 +00:00
|
|
|
instlib scp libscp.so &&
|
|
|
|
instlib sftp-server libsftp-server.so &&
|
|
|
|
instlib rsync librsync.so &&
|
|
|
|
instlib buffersu libbuffersu.so &&
|
|
|
|
instlib libsimplesshd-jni.so "" &&
|
2019-05-26 02:06:04 +00:00
|
|
|
./gradlew assembleRelease &&
|
2019-05-26 03:03:18 +00:00
|
|
|
andinst app/build/outputs/apk/release/app-release.apk
|