Gaia/Hacking: Difference between revisions

Jump to navigation Jump to search
1,449 bytes removed ,  29 November 2012
Removed the Firefox Nightly bit as this is not a viable solution anymore and is still linked to from the Gaia repo
(Removed the Firefox Nightly bit as this is not a viable solution anymore and is still linked to from the Gaia repo)
Line 8: Line 8:


There are three ways to run Gaia apps:
There are three ways to run Gaia apps:
* Firefox Nightly
 
* B2G Desktop
* B2G Desktop
* B2G on a device
* B2G on a device
=== Firefox Nightly ===
Most Gaia apps will run in a nightly build of the Firefox web browser which you can download from [http://nightly.mozilla.org/ nightly.mozilla.org].
To help you get started running and hacking on Gaia apps, Gaia comes with a script to automatically generate a special Firefox profile which includes a simple web server.
You can start by cloning [https://github.com/mozilla-b2g/gaia Gaia's git repository on Github], or by forking Gaia and cloning your fork.
$ git clone git://github.com/mozilla-b2g/gaia.git gaia
Then to generate the Gaia profile:
  $ cd gaia
  $ DEBUG=1 make
Then run Firefox Nightly from the command line, with the generated profile:
  $  /path/to/firefox  -profile /path/to/gaia/profile
On OSX the command is:
  $ open -n /path/to/firefox --args -profile /path/to/gaia/profile
(substituting /path/to/firefox and /path/to/gaia for the paths you downloaded Firefox and cloned Gaia to, respectively)
'''Note:''' Unfortunately Gaia's system app (inside which the homescreen and other apps run) does not currently work in Firefox. Therefore you'll need to load an app directly by its URL, e.g. http://browser.gaiamobile.org:8080
Running Gaia apps using this method has the advantage of giving you access to all the development tools built into Firefox. The disadvantage is that not all apps currently work in this way, and they may not behave ''exactly'' as they would on a device.


=== B2G Desktop ===
=== B2G Desktop ===
Confirmed users
210

edits

Navigation menu