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.
What’s involved:
- 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.
http://snipplr.com/js/embed.js
http://snipplr.com/json/61101
Does this rebuild for every platform or only android on the build.phonegap.com side?
LikeLike
Every platform. I’m sure you can target just to rebuild one.
LikeLike
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. 🙂
LikeLike
Here you go:
https://github.com/tpryan/PhoneGap-Build-1Click
LikeLike
Check out http://www.applaudcloud.com for a 0-click build solution to run PhoneGap apps on Android devices
LikeLike