<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Ben Bucksch schrieb am 28.06.2018 um
01:01:<br>
</div>
<blockquote type="cite"
cite="mid:922cb6a6-74f3-713f-d415-7fbeb456b4b9@beonex.com">
As my company Beonex for a client, we've managed to make some
small changes to TB/moz build system to build a given set of
locales as part of the "mach package" step. This allows to package
all locales into a single DMG on Mac and a single installer on
Windows, as part of the normal build, without repacks.
<br>
<br>
Is there interest in that? I might be able to post them, if I get
around to it.
<br>
</blockquote>
<br>
<br>
Here are the changes we did - I hope the description is complete:<br>
<br>
1. Add:<br>
installer package:: ../mail/installer/package-manifest.in
<br>
+ @$(EXIT_ON_ERROR) \
<br>
+ sed -n '<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>AB_CD<span
class="moz-txt-tag">/</span></i>,<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>all-l10n/s<span class="moz-txt-tag">/</span></i>.*\/\([^@]*\)\.manifest/\1/p'
$< | while read locale; do $(MAKE) -C mail/locales
langpack-$$locale; done
<br>
<br>
2. Add lines to mail/installer/package-manifest.in to package the
locale manifests and jar files. It is those lines that are being
read above.
<br>
<br>
3. add all duplicated locale files to
mail/installed-allowed-dupes.mn.
<br>
<br>
4. add code to mail/locales/Makefile.in or
mozilla/toolkit/locales/l10n.mk
to copy the langpacks into the final chrome directory so that they
would get packaged by the above changes.<br>
<br>
5. Since bug 1395363 in Gecko 58, it turns out that langpacks are
now web extensions; We don't know whether it's possible to
preinstall them in the build, as we worked with Thunderbird 52.<br>
<br>
<br>
</body>
</html>