grunt-phonegap icon indicating copy to clipboard operation
grunt-phonegap copied to clipboard

Automatically download an app after phonegap:release[:platform] with remote build

Open szalishchuk opened this issue 11 years ago • 4 comments
trafficstars

I think it would make a lot of sense if grunt-phonegap could automatically download the app that was build in adobe's cloud service and stick it inside specified phonegap.config.releases directory.

szalishchuk avatar Feb 11 '14 18:02 szalishchuk

:thumbsup: That's a great suggestion. Is there a good way to get the download URL after a build?

logankoester avatar Feb 11 '14 18:02 logankoester

They have a bunch of read methods in PhoneGap Build Developer API. You can fetch an app in a lot of different ways.

szalishchuk avatar Feb 11 '14 18:02 szalishchuk

Perfect!

logankoester avatar Feb 11 '14 18:02 logankoester

Probably the easiest way is to just download the file provided at http://build.phonegap.com/api/v1/apps/<appId>/android. For the time being, I've written a shell script doing the job for us, but I would look into adding it into grunt-phonegap if you could hint me to where this should be added.

madmuffin1 avatar Nov 05 '14 08:11 madmuffin1