Gaia/Hacking: Difference between revisions

Jump to navigation Jump to search
→‎Build Your Own: added osx-specific instructions for running b2g roll-your-own correctly
(→‎Build Your Own: added osx-specific instructions for running b2g roll-your-own correctly)
Line 100: Line 100:
'''Note:''' Ensure you're using python2 and not python3 as the build will fail with python3.
'''Note:''' Ensure you're using python2 and not python3 as the build will fail with python3.


The build will appear in ../build (or whatever MOZ_OBJDIR is set to in your .mozconfig) and will take a ''long'' time the first time you build. Once it's built you can run B2G with:
The build will appear in ../build (or whatever MOZ_OBJDIR is set to in your .mozconfig) and will take a ''long'' time the first time you build.


  $ ../build/dist/bin/b2g-bin -profile /path/to/gaia/profile #if you specified GAIADIR (e.g. Mozilla Nightlies)
On Linux, once it's built you can run B2G with:
  $ ../build/dist/bin/b2g -profile /path/to/gaia/profile #if you did not specify GAIADIR
 
# if you specified GAIADIR (e.g. Mozilla Nightlies)
  $ ../build/dist/bin/b2g-bin -profile /path/to/gaia/profile
# if you did not specify GAIADIR
  $ ../build/dist/bin/b2g -profile /path/to/gaia/profile


(substituting /path/to/gaia with the path to which you cloned Gaia).
(substituting /path/to/gaia with the path to which you cloned Gaia).
On OSX, once it's built, you can run B2G with:
# if you specified GAIADIR (e.g. Mozilla Nightlies)
$ ../build/dist/B2G.app/Contents/MacOS/b2g-bin -profile /path/to/gaia/profile
# if you did not specify GAIADIR
$ ../build/dist/B2G.app/Contents/MacOS/b2g -profile /path/to/gaia/profile


When you want to update your own B2G Desktop build do:
When you want to update your own B2G Desktop build do:
Confirmed users
539

edits

Navigation menu