Question

I was wondering if there is any way to automatize my phonegap build. Next to setting up my plugin I would more likely to copy app resources from an other directory into www folder of my phonegap build.

Let's pretend there is a structure like this:

--application
  |--com.phonegap.application
    |--platforms
    |--plugins
    |--merges
    |--www (destination folder)
  |--application
    |--www (source folder)

So the question is: Is there any way to copy all files from source-folder to destination-folder when building phonegap through CLI ?

Thanks a lot for any suggestions!

Was it helpful?

Solution

Why not just write a short bash script?

Something like

cp -rf application/www/* com.phonegap.application/www
phonegap build ...

And place it in the root application directory.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top