Packages a gaia app as a zip, renamed to a dev branch name.
A utility for zipping up a development version of a Gaia app, so that it can be given to a UX person for review.
Probably only useful if you are fixing things for Gaia and want to share snapshots of that work with UX people for review.
It works by copying the existing gaia app zip in your Gaia clone's
profile directory to a new name of your choosing, modifying the
manifest.webapp to use the new name, and zipping up the contents.
If you are developer, see the For the developer section. If you are a UX person, see For the UX person.
You need to be developing Gaia. If you do not have Gaia set up, then do not bother trying to use this tool.
Install Node. It runs this tool. There are easy to use installers for the major OS platforms.
Have a usable
zip implementaion on the command line. This tool uses
the OS zip tool on the command line.
Open a command line terminal window and type:
npm install -g gaia-dev-zip
This only works after Node has been installed.
Make sure you are in your local git clone of Gaia..
The basic syntax for the tool:
gaia-dev-zip path/to/application.zip devname
For example: a snapshot of the email app that changes the background of the app to red, and is tracked in bug 12345:
gaia-dev-zip profile/webapps/email.gaiamobile.org/application.zip bug12345-redbg
When the tool is done, there will be a bug12345-redbg.zip folder in the current directory. Upload this somewhere and give the UX person a link to that zip file.
Make sure in your desktop Firefox, you have installed the Firefox OS Simulator. It is a large install, may take a moment.
Make sure you have a phone that has a Nightly build of Firefox OS. The developer is likely using something like the Nightly build to test their changes. If they have a specific version of B2G you should use to test, they should tell you.
Make sure Remote Debugging is enabled on the phone. This is found on the phone in the Settings app under:
Device Information -> More Information -> Developer -> Remote Debugging
Make sure that checkbox is checked.
The developer gives you an URL to a .zip file for the app.
Use your desktop Firefox to navigate to the zip file. Choose to save the file to your desktop.
Open the Firefox OS Simulator in your desktop Firefox, found in the menu items at:
Tools -> Web Developer -> Firefox OS Simulator
The Simulator will start running. You can either use it to validate the app, or you can just close it if you want to test on the device.
Make sure your phone is attached via USB. The Simulator tab will show Device connected if it detects the device.
In the Simulator tab, click the Push button to push the app to your phone.
Make sure the phone is on, and unlocked. It may ask you:
An incoming requets to permit remote debugging was detected. Allow connection?
Select OK. If you do not select OK in time, the Simulator tab will show a "timeout" error. If that happens, just try again.
In the Simulator tab, you can click the X button to remove it from the simulator. Refresh the tab to get rid of the entry.
You can now delete the .zip file and unzipped directory from your download folder.