added make langpacks

This commit is contained in:
Bert van der Weerd 2022-05-04 20:21:11 +02:00
parent 467e842b38
commit d123a737dd
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
4 changed files with 22 additions and 3 deletions

View file

@ -1,4 +1,4 @@
.PHONY : help all clean veryclean fetch build artifacts update full-mar serve-mar
.PHONY : help all clean veryclean fetch build artifacts update full-mar serve-mar langpacks
help :
@echo "Use: make [all] [clean] [veryclean] [check] ..."
@ -9,6 +9,7 @@ help :
@echo " update - update 'version' and 'source_release' files."
@echo " full-mar - create mar setup file, and update.xml."
@echo " serve-mar - serve the update files"
@echo " langpacks - build language packs."
@echo ""
@echo " fetch - Fetch the latest librewolf source."
@echo " build - Perform './mach build && ./mach package' on it."
@ -55,3 +56,6 @@ full-mar :
serve-mar :
(cd librewolf-$(shell cat version)-$(shell cat source_release)/MAR && python3 -m http.server 8000)
langpacks :
(cd librewolf-$(shell cat version)-$(shell cat source_release) && cat browser/locales/shipped-locales | xargs ./mach package-multi-locale --locales)

View file

@ -36,3 +36,6 @@ ac_add_options --enable-strip
# https://firefox-source-docs.mozilla.org/taskcluster/setting-up-an-update-server.html
ac_add_options --disable-verify-mar
# Internationalization
ac_add_options --with-l10n-base=$PWD/browser/locales/l10n

View file

@ -0,0 +1,11 @@
--- browser/app/splash.rc~ 2022-04-29 00:02:33 +0200
+++ browser/app/splash.rc 2022-05-04 14:30:43 +0200
@@ -12,7 +12,7 @@
IDI_NEWWINDOW ICON NEWWINDOW_ICO
IDI_NEWTAB ICON NEWTAB_ICO
IDI_PBMODE ICON PBMODE_ICO
-IDI_DOCUMENT_PDF ICON DOCUMENT_PDF_ICO
+IDI_DOCUMENT_PDF ICON DOCUMENT_ICO
STRINGTABLE DISCARDABLE
BEGIN

5
mk.py
View file

@ -100,9 +100,10 @@ def build(debug=False):
else:
exec('cp -v ../assets/mozconfig.windows mozconfig')
# two patches for windows only, currently
patch('../assets/disable-verify-mar.patch')
# patches for windows only
patch('../assets/package-manifest.patch')
patch('../assets/disable-verify-mar.patch')
patch('../assets/tryfix-reslink-fail.patch')
# perform the build and package
exec('MACH_USE_SYSTEM_PYTHON=1 ./mach build')