Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F624478
install.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None
install.sh
View Options
#!/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
Details
Attached
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)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline