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

Adds support for configure using -framework <tag> #233

Closed cdelcol closed 11 years ago

cdelcol commented 11 years ago

Fixes blackberry/BB10-Webworks-Packager#230

So, i think for the short term this works but is not really pretty. The basic instructions for dev of the packager hold true. In order to package a distribution that replicates a production version of the product the dev would:

git checkout v1.0.3.8 ./configure -framework v1.0.3.8

to reset to get things back to normal git checkout master (or whatever) ./configure

Some things I discovered that may help understand the change:

  1. git submodule init : creates/updates an entry in the local git config
  2. git submodule update : uses the url in the config file to update the submodule

This solution works by:

  1. when specified, force the config to the production framework repo
  2. run update
  3. checkout the specified hash/tag/branch/whatever
  4. carry on with life

The end result is that you start with a known packager tag, and force the framework to a 2nd known point, regardless of what is in the submodule.

I'm open to better ways:)

cdelcol commented 11 years ago

Kill this plan. We're going to fix this with process.

nukulb commented 11 years ago

better process than code.