Create a gist now

Instantly share code, notes, and snippets.

@timdream /
Last active Mar 16, 2016

What would you like to do?
Build and update your own B2G build daily-ish without blow away data. Now comes with localization testing.

B2G Personal daily dogfooding instruction

This is how I generate my dogfood build, daily-ish. I do so to ensure I have (almost) total control over what goes into my phone so I could pick up the changes anytime I wanted (and indentifying the version of Gaia/Gecko I am using).

This instruction is used for Geeksphone Peak and with zh-TW locale. Replace/remove instruction for your own phone.

File locations:

  • should go to $B2G (the place you clone B2G repo with git).
  • contains specific instructions for Gaia, put it in $B2G/gaia.
  • languages_mine.json should go to $B2G/gaia/locales.
"en-US" : "English (US)",
"zh-TW" : "正體中文 (繁體)"
# For 1.5dppx Peak -- switch visual assets to 1.5dppx ones.
# Use official branding (do not distribute your resulting build without written permission from Mozilla)
# This sets DevTools access to allowed in mozSettings
# Select your favorite keyboard layouts/IME
# Here are some of the layouts/IME of my special interests.
# Include your favorite locales
# Your locales should be listed in the languages_mine.json file. Copy the labels from languages_all.json.
# Update your locale repo first
# Note that you'll need to manually clone the locale repo to B2G/gaia/locales directory from one of the repo in
# first, like
# hg clone B2G/gaia/locales/zh-TW
hg -R gaia/locales/zh-TW pull -u default
# Before bug 922463 is fixed, we will need to reset the local changes made by multilocale script before we sync
# Warning: this reset all the uncommitted changes in the repo too!
# git --git-dir=./gaia/.git --work-tree=./gaia/ checkout .
# Update and config B2G itself and start building
# Build a "user" build so that Gaia will be put in the system partation
git pull &&\
BRANCH=master TARGET_BUILD_VARIANT=user ./ peak &&\
# Pause
# Flash *only* the system partation to NOT removing data.
# Mind that you might want to remove data when you flash the phone for the first time.
./ system
bobchao commented Dec 13, 2013

FYI: Since we are on master of gaia, I'll clone instead of v1_3.

bobchao commented Dec 14, 2013

Do we need a line to ./repo sync ?

bobchao commented Dec 14, 2013

ah! "indentifying the version of Gaia/Gecko I am using," got it... so you'll update the code manually?


FYI: Since we are on master of gaia, I'll clone instead of v1_3.


Do we need a line to ./repo sync ?

No, do that for you.

ah! "indentifying the version of Gaia/Gecko I am using," got it... so you'll update the code manually?

No, simply allow me to include the change just reach master.

gasolin commented Jan 2, 2014

the line # "hg clone B2G/gaia/locales/zh-TW" could be
# hg clone gaia/locales/zh-TW

so people can uncomment and use it directly at first time

timdream commented Jan 3, 2014

@gasolin, fixed, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment