mirror of
https://github.com/henrikpersson/potatis.git
synced 2024-06-02 19:47:21 -04:00
16 lines
350 B
Bash
Executable file
16 lines
350 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
f=""
|
|
if [ $1 == "release" ]
|
|
then
|
|
f="--release"
|
|
fi
|
|
|
|
a=`echo ${1:0:1} | tr '[a-z]' '[A-Z]'`${1:1}
|
|
|
|
cargo build $f --target aarch64-linux-android
|
|
cp ../target/aarch64-linux-android/$1/libnes_android.so android-app/app/src/main/jniLibs/arm64-v8a
|
|
cd android-app && ./gradlew install$a
|
|
adb shell am start -n nes.potatis/.MainActivity
|