Building/Firefox
Many years have passed since my last attempt and every time this compilation reserves me surprises. I really missed the dinosaur logo!!
The official compilation guide is available on this page:
https://firefox-source-docs.mozilla.org/setup/linux_build.html
Biggest difficulty is getting all the necessary dependencies. Mozilla has created a special Phython script called bootstrap.py that should take care of downloading them in advance.
On my system I followed a few simple steps, I first ran the arctifact build compilation and then a complete compilation of Firefox Nightly 134.0a1.
How to build Firefox with custom logo
I was unable this time to apply my classic mozconfig and I limited myself to replacing the default icons with those of Mozilla T-Rex and applying the official branding.
The mechanism that manages the mozconfig has been refined over the years and is made up of various common files, withelist branding-common.mozbuild etc.. After many attempts I limited myself to customizing the logo which was my final goal.
I position myself in a dedicated folder and download the sources with the command:
$ hg clone https://hg.mozilla.org/mozilla-central
I remove the contents of the .mozbuild folder in my home if present.
Custom branding
In folder
…/mozilla-central/browser/branding/
I replace the icons with T-Rex ones for the various builds and apply the official branding in the branding-common.mozbuild file.
I launch the compilation with
$ cd mozilla-central
$ ./mach bootstrap
I follow the wizard considering that I am not a developer leaving out the useless options.
Build
$ ./mach build
Test
$ ./mach run
Install
$ ./mach install
I add the icon with the GNOME alacarte menu editor that I associate with the firefox command.
Leave a Reply