I’ve been fooling around with PhoneGap Build, and I really love it. I love that I don’t need to fire up Eclipse or XCode to start fooling around with an app. All I need is a text editor and a browser. What I especially love is the ability to integrate a github repository to the whole process. It makes following proper development practice, while living in the cloud, very easy.
But I’ve been spoiled for the last year or so. Being able to immediately preview on a connected device has ruined me for the command line, multi-step, manual crap. So at least on Android I’ve fixed it for myself by building a nice shell script that takes advantage of PhoneGap Build’s Web APIs to create a one-step build.
- Commit all uncommitted files to git repository
- Push git repository to github
- Tell PhoneGap Build to poll github for changes
- Poll PhoneGap Build until Android apps have been rebuilt
- Download App
- Use ADB to install onto attached device.
So I wrote a little shell script to do it all for me. I hope it helps someone else who is struggling with the same workflow issue. The script is below.
5 thoughts on “One Click PhoneGap Build to Android Device Script”
Does this rebuild for every platform or only android on the build.phonegap.com side?
Every platform. I’m sure you can target just to rebuild one.
Maybe consider putting this on GitHub so we can fork and send enhancement pull requests? I can think of one or two I’d add. 🙂
Here you go:
Check out http://www.applaudcloud.com for a 0-click build solution to run PhoneGap apps on Android devices