1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-11-27 17:58:13 +00:00
simplesshd/doit

18 lines
866 B
Bash
Executable File

#!/bin/sh
~/Android/Sdk/ndk-bundle/ndk-build -j8 &&
mkdir -p app/src/main/lib/armeabi-v7a &&
mv libs/armeabi-v7a/scp app/src/main/lib/armeabi-v7a/libscp.so &&
mv libs/armeabi-v7a/sftp-server app/src/main/lib/armeabi-v7a/libsftp-server.so &&
mv libs/armeabi-v7a/rsync app/src/main/lib/armeabi-v7a/librsync.so &&
mv libs/armeabi-v7a/buffersu app/src/main/lib/armeabi-v7a/libbuffersu.so &&
mv libs/armeabi-v7a/libsimplesshd-jni.so app/src/main/lib/armeabi-v7a/ &&
mkdir -p app/src/main/lib/x86 &&
mv libs/x86/scp app/src/main/lib/x86/libscp.so &&
mv libs/x86/sftp-server app/src/main/lib/x86/libsftp-server.so &&
mv libs/x86/rsync app/src/main/lib/x86/librsync.so &&
mv libs/x86/buffersu app/src/main/lib/x86/libbuffersu.so &&
mv libs/x86/libsimplesshd-jni.so app/src/main/lib/x86/ &&
./gradlew assembleRelease &&
andinst app/build/outputs/apk/release/app-release.apk