This commit is contained in:
Bert van der Weerd 2021-12-10 13:53:22 +01:00
parent bc6497b150
commit 71b0ef45a0
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1

View file

@ -249,6 +249,7 @@ def create_mozconfig(contents):
def execute_lw_do_patches(): def execute_lw_do_patches():
if options.no_librewolf: if options.no_librewolf:
return return
if not options.src in ['release','nightly','gecko-dev']: if not options.src in ['release','nightly','gecko-dev']:
return return
@ -277,8 +278,10 @@ def execute_lw_do_patches():
patches = [ patches = [
"../common/patches/about-dialog.patch", "../common/patches/about-dialog.patch",
# BUG: this patch seems to fail and break librewolf.exe at startup
"../common/patches/allow-ubo-private-mode.patch", "../common/patches/allow-ubo-private-mode.patch",
"../common/patches/allow_dark_preference_with_rfp.patch",
"../common/patches/context-menu.patch", "../common/patches/context-menu.patch",
"../common/patches/megabar.patch", "../common/patches/megabar.patch",
"../common/patches/mozilla-vpn-ad.patch", "../common/patches/mozilla-vpn-ad.patch",
@ -300,35 +303,6 @@ def execute_lw_do_patches():
] ]
elif options.src == 'nightly' or options.src == 'gecko-dev':
# patches for future releases are caught with nightly
patches = [
"../common/patches/about-dialog.patch",
"../common/patches/allow-ubo-private-mode.patch",
"../common/patches/allow_dark_preference_with_rfp.patch",
"../common/patches/context-menu.patch",
"../common/patches/megabar.patch",
"../common/patches/mozilla-vpn-ad.patch",
"../common/patches/mozilla_dirs.patch",
"../common/patches/remove_addons.patch",
"../common/patches/search-config.patch",
"../common/patches/sed-patches/allow-searchengines-non-esr.patch",
"../common/patches/sed-patches/disable-pocket.patch",
"../common/patches/sed-patches/remove-internal-plugin-certs.patch",
"../common/patches/sed-patches/stop-undesired-requests.patch",
"../common/patches/ui-patches/add-language-warning.patch",
"../common/patches/ui-patches/pref-naming.patch",
"../common/patches/ui-patches/remove-branding-urlbar.patch",
"../common/patches/ui-patches/remove-cfrprefs.patch",
"../common/patches/ui-patches/remove-organization-policy-banner.patch",
"../common/patches/ui-patches/remove-snippets-from-home.patch",
"../common/patches/ui-patches/sanitizing-description.patch",
"../common/patches/urlbarprovider-interventions.patch",
]
for p in patches: for p in patches:
patch(p) patch(p)
@ -716,9 +690,6 @@ ac_add_options --enable-rust-simd
ac_add_options --enable-optimize ac_add_options --enable-optimize
#ac_add_options --disable-optimize #ac_add_options --disable-optimize
# Branding # Branding
#ac_add_options --enable-update-channel=release #ac_add_options --enable-update-channel=release
## theming bugs: ac_add_options --with-app-name=librewolf ## theming bugs: ac_add_options --with-app-name=librewolf