Hi,
cross-posting this from
https://blog.mozilla.org/l10n/2017/08/04/create-a-localized-build-locally/.
Yesterday we changed the way that you create localized builds on
mozilla-central.
This works for developers doing regular builds, as well as developers or
localizers without a compile environment. Sadly, users of artifact
builds are not supported [1].
For language packs, a mere
./mach build langpack-de
will work. If you’d rather wish to build a localized package, you’ll
want to get the package first. If you’re building yourself, that’s
./mach package
and if you want to get a Nightly build from archive.mozilla.org, just
./mach build wget-en-US
If you want to do that for Firefox for Android, you’ll need to specify
which platform you want. Set EN_US_BINARY_URL to the
latest-mozilla-central-* path for the binary you want to test. If you
have a good suggestion for a default, we'd need something like
https://hg.mozilla.org/mozilla-central/rev/64a69b2cebbb.
And then you just
./mach build installers-fr
That’ll take care about getting the french l10n repository, and do all
the necessary things to get you a nice little installer/package in dist.
Pick your favorite language from our repositories [2]. Care for a RTL
build? ./mach installers-fa will get you a Persian build 😉.
As with other repositories we clone into ~/.mozbuild, you’ll want to
update those every now and then. They’re in l10n-central/*, a repository
for each language you tried. Either via hg or git-cinnabar, depending on
your m-c checkout.
Documentation is on
https://gecko.readthedocs.io/en/latest/build/buildsystem/locales.html,
bugs go to Core Build [3]. This works for Firefox, Firefox for Android,
and Thunderbird.
And now you can safely forget all the things you never wanted to know
about localized builds.
Axel
[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1387485
[2] https://hg.mozilla.org/l10n-central/?sort=lastchange
[3]
https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=Build%20Config&cc=l...@mozilla.com
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform