Page MenuHomePhabricator (Chris)

install.sh
No OneTemporary

Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None

install.sh

#!/bin/bash
adb=/opt/android-sdk/platform-tools/adb
run='am start -a android.intent.action.MAIN -n org.paintown/org.paintown.PaintownActivity'
build_paintown(){
# (cd ../../..; android=1 make) && cp ../../../paintown libs/armeabi/libpaintown.so
#echo skip
echo 0
}
build_apk(){
ant debug
}
install_apk(){
# echo "Uninstalling old version"
# $adb uninstall org.libsdl.app
echo "Installing latest version"
$adb install -r bin/Paintown-debug.apk
}
run_apk(){
$adb shell $run
}
echo "Making sure you are running the emulator"
state=$($adb get-state)
if [ $state = "unknown" ]; then
echo "Emulator is not running please start."
else
build_paintown && build_apk && install_apk && run_apk
fi

File Metadata

Mime Type
text/x-shellscript
Expires
Sat, Nov 14, 10:23 PM (1 d, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
136168
Default Alt Text
install.sh (717 B)

Event Timeline