cordova-android/bin/debug

18 lines
236 B
Plaintext
Raw Normal View History

2011-08-19 09:21:51 +08:00
#! /bin/sh
2011-08-21 04:57:19 +08:00
#
# USAGE
# ./debug [path]
#
set -e
2011-08-19 09:21:51 +08:00
2011-08-21 04:57:19 +08:00
PROJECT_PATH=${1:-$PWD}
# go to the proj
cd $PROJECT_PATH
# compile and install to the first device
2011-08-19 09:21:51 +08:00
ant debug install
2011-08-21 04:57:19 +08:00
# start the app
2011-08-19 10:39:27 +08:00
adb shell am start -n $(cat ./package-activity)