small tweaks to the build script

This commit is contained in:
brianleroux 2010-10-06 11:51:42 -07:00
parent 1231268a6b
commit 122395e0d0
2 changed files with 6 additions and 18 deletions

View File

@ -12,7 +12,7 @@ Pre Requisites
Install Install
------- -------
On OS X add PhoneGap/Android to your PATH variable like so: On any POSIX machine add PhoneGap/Android to your PATH variable like so:
export PATH=$PATH:~/phonegap-android/bin export PATH=$PATH:~/phonegap-android/bin
@ -21,7 +21,7 @@ On Windows add the phonegap-android/bin to your PATH as normal.
DroidGap: PhoneGap/Android Dev Script DroidGap: PhoneGap/Android Dev Script
------------------------------------- -------------------------------------
Useful utilities for developers building mobile apps using PhoneGap for Android. Tools for developers building mobile apps using PhoneGap for Android.
Usage: Usage:
@ -32,13 +32,10 @@ Commands:
<pre> <pre>
help ...... See this message. Type help [command name] to see specific help topics. help ...... See this message. Type help [command name] to see specific help topics.
gen ....... Generate an example PhoneGap application to current directory. gen ....... Generate an example PhoneGap application to current directory.
create .... Creates an Android compatible project from a www folder. Careful, this clobbers previous packaging. create .... Creates an Android compatible project from a WWW folder.
classic ... Backwards support for droidgap script. Run "droidgap help classic" for more info. classic ... Backwards support for droidgap script. Run "droidgap help classic" for more info.
run ....... Installs a valid PhoneGap Project to first device found.
log ....... Attach a logger that listens for console.log statements.
update .... Copy a fresh phonegap.jar and phonegap.js into a valid PhoneGap/Android project. update .... Copy a fresh phonegap.jar and phonegap.js into a valid PhoneGap/Android project.
test ...... Gets edge copy of mobile-spec and runs in first device or emulator attached. test ...... Gets edge copy of mobile-spec and runs in first device or emulator attached.
ship ...... Build and sign an APK suitable for submission to an Android Marketplace.
</pre> </pre>
Quickstart: Quickstart:

View File

@ -61,25 +61,16 @@ if ARGV.first.nil? || ARGV.first == 'help'
help ...... See this message. Type help [command name] to see specific help topics. help ...... See this message. Type help [command name] to see specific help topics.
gen ....... Generate an example PhoneGap application to current directory. gen ....... Generate an example PhoneGap application to current directory.
create .... Creates an Android compatible project from a www folder. Careful, this clobbers previous packaging. create .... Creates an Android compatible project from a WWW folder.
classic ... Backwards support for droidgap script. Run "droidgap help classic" for more info. classic ... Backwards support for droidgap script. Run "droidgap help classic" for more info.
run ....... Installs a valid PhoneGap Project to first device found.
log ....... Attach a logger that listens for console.log statements.
update .... Copy a fresh phonegap.jar and phonegap.js into a valid PhoneGap/Android project. update .... Copy a fresh phonegap.jar and phonegap.js into a valid PhoneGap/Android project.
test ...... Gets edge copy of mobile-spec and runs in first device or emulator attached.
ship ...... Build and sign an APK suitable for submission to an Android Marketplace. ship ...... Build and sign an APK suitable for submission to an Android Marketplace.
Quickstart: Quickstart:
$ droidgap gen example $ droidgap gen example
$ cd example $ cd example
$ droidgap create $ ant debug install && adb logcat
$ cd ../example_android
$ droidgap run
Now you can launch your app and optionally start a logger with:
$ droidgap log
EOF EOF
@ -140,7 +131,7 @@ if ARGV.first.nil? || ARGV.first == 'help'
DroidGap Create DroidGap Create
---------------- ----------------
Creates an Android compatable project from a PhoneGap project. For example, if you have MyProject with index.html this command will create MyProject-android. Creates an Android compatable project from a PhoneGap project. For example, if you have MyProject with index.html this command will create MyProject_android.
Usage: Usage: