Nota bene: this post supercedes Build Fennec frontend fast!

Quick start

It’s easy! But there is a pre-requisite: you need to enable Gregory Szorc’s mozext Mercurial extension first. mozext is part of Mozilla’s version-control-tools repository; run mach mercurial-setup to make sure your local copy is up-to-date, and then add the following to the .hg/hgrc file in your source directory:

[extensions] mozext = /PATH/TO/HOME/.mozbuild/version-control-tools/hgext/mozext

Then, run hg pushlogsync . Mercurial should show a long (and slow) progress bar . From now on, each time you hg pull , you’ll also maintain your local copy of the pushlog.

Now, open your mozconfig file and add:

ac_add_options --disable-compile-environment mk_add_options MOZ_OBJDIR=./objdir-frontend

(That last line uses a different object directory — it’s worth experimenting with a different directory so you can go back to your old flow if necessary.)

Then mach build and mach build mobile/android as usual. When it’s time to package an APK, use:

mach artifact install && mach package

instead of mach package . Use mach install like normal to deploy to your device!