Last active
June 4, 2018 02:45
-
-
Save tassoevan/47226b36e88ab2e446da25aaae1fb395 to your computer and use it in GitHub Desktop.
Script to run Löve code in Android phone
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export ANDROID_HOME=$HOME/Android/Sdk | |
adb="$ANDROID_HOME/platform-tools/adb" | |
rsync -a --del --exclude=/.git ./ /tmp/love-android/ | |
"$adb" push /tmp/love-android/. /storage/emulated/0/lovegame | |
"$adb" shell am start -S -n "org.love2d.android/.GameActivity" | |
while ! "$adb" shell pidof -s org.love2d.android >/dev/null | |
do | |
sleep 1 | |
done | |
"$adb" logcat --pid=`"$adb" shell pidof -s org.love2d.android` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment