/ld27

To get this branch, use:
bzr branch http://9ix.org/bzr/ld27

« back to all changes in this revision

Viewing changes to andbuild.sh

  • Committer: Josh C
  • Date: 2014-07-04 22:05:40 UTC
  • Revision ID: josh@9ix.org-20140704220540-199zzs992711al0k
android build script

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
bzr revert --no-backup version.lua
31
31
 
32
32
#zip deploy/decimaze.love inspect.lua
33
 
grep '^[^-]*require .lovebird.' main.lua && zip deploy/decimaze.love lovebird.lua
 
33
grep 'LOVEBIRD = true' main.lua && zip deploy/decimaze.love lovebird.lua
34
34
 
35
35
 
36
36
if [ $DEV ]; then
37
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
 
38
    adb shell "am start -S -n org.love2d.android/.GameActivity -d file:///sdcard/Download/decimaze.love || am start -n org.love2d.android/.GameActivity -d file:///sdcard/Download/decimaze.love"
40
39
    exit 0
41
40
fi
42
41
 
43
 
echo ERROR: not ready for deploying the package yet
44
 
exit 1
45
 
 
46
42
cp deploy/decimaze.love $LAS2/assets/game.love
47
43
 
48
44
#mv $LAS2/AndroidManifest.xml /tmp/