3
export LAS2=$HOME/code/love-android-sdl2
5
export ANDROID_SDK=$HOME/Downloads/android-sdk-linux
6
export ANDROID_NDK=$HOME/Downloads/android-ndk-r9d
7
export ANDROID_SWT=/usr/share/java
8
export ANDROID_HOME=${ANDROID_SDK}
9
export PATH=$PATH:$ANDROID_SDK/tools:$ANDROID_NDK
11
echo "checking device..."
12
if [ "`adb get-state`" != 'device' ]; then
13
echo "device not connected"
14
echo "adb connect 192.168.1.117 (or similar)"
18
while getopts "dn" opt; do
26
V=`bzr version-info --custom --template={revno}`
27
echo "VERSION = '$V'" >version.lua
28
rm -f deploy/decimaze.love
29
bzr ls -RV |zip -q@ deploy/decimaze.love
30
bzr revert --no-backup version.lua
32
#zip deploy/decimaze.love inspect.lua
33
grep '^[^-]*require .lovebird.' main.lua && zip deploy/decimaze.love lovebird.lua
37
adb push deploy/decimaze.love /sdcard/Download/
38
if adb shell am |grep -- -S; then DASH_S=-S ; fi
39
adb shell am start $DASH_S -n org.love2d.android/.GameActivity -d file:///sdcard/Download/decimaze.love
43
echo ERROR: not ready for deploying the package yet
46
cp deploy/decimaze.love $LAS2/assets/game.love
48
#mv $LAS2/AndroidManifest.xml /tmp/
49
#cp ouya/AndroidManifest.xml $LAS2/
50
#mkdir -p $LAS2/src/org9ix/ld26/
51
#cp ouya/GameActivity.java $LAS2/src/org9ix/ld26/
52
#cp ouya/ouya_icon.png $LAS2/res/drawable-xhdpi/
56
if [ ! $NOPUSH ]; then
57
adb install -r bin/love_android_sdl2-debug.apk
60
#mv /tmp/AndroidManifest.xml $LAS2/
61
#rm -r $LAS2/src/org9ix/
62
#rm $LAS2/res/drawable-xhdpi/ouya_icon.png