blackberry / BB10-Webworks-Packager

The BB10 WebWorks Packager bundles the App content with the BB10 WebWorks Framework to create a BAR to run on the BB10 Device (or simulator)
27 stars 18 forks source link

Packager shouldn't delete my ./src directory #192

Open derek-watson opened 11 years ago

derek-watson commented 11 years ago

I structured my WebWorks application like so:

./MyApp.zip ./device ./simulator ./src/index.html ./src/config.xml

I organized it like that so I can keep my .zip and the packager-generated device and simulator directories outside of my source folder, allowing me to easily recreate the zip on the command-line like so (from my src folder):

zip -r ../MyApp.zip *

So far so good, however the packager destroys by src folder by unpacking the zip in place into 'src', then deleting 'src'. My codes are gone!

It would be nice if the packager unzipped into a temp folder of some variety.

cdelcol commented 11 years ago

@kwallis @nukulb +1 on this from me. I didn't even pass in a .zip, but simply pointed the packager at the ./src directory to use that awesome new feature. The packager fails gracefully because it makes it all the way past the initial validation, then deletes the "src" directory, then at some point tries to use the config.xml which is now gone.

We should move our "working" directory to either a temp folder somewhere, or to app//src.