compiling v86.0
This commit is contained in:
parent
5265f522ce
commit
28d22170db
3 changed files with 48 additions and 26 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
LibreWolf for Win64
|
LibreWolf for Win64
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
This repository is still a work in progress.
|
We have a zip file and an installer available now.. We're no longer consider this alpha quality, but it surely is not aout of beta. The main issue people encounter is that non-default themes don't work correctly.
|
||||||
|
|
||||||
But we have a zip file and an installer available for testing right now..
|
This repository is for the windows installer, this repo is not for _librewolf.cfg_ issues, that goes [here](https://gitlab.com/librewolf-community/settings). These config file settings are system-wide for all users.
|
||||||
|
|
||||||
This repository is the windows installer only, this repo is not for _librewolf.cfg_ issues, that goes [here](https://gitlab.com/librewolf-community/settings). These config file settings are system-wide.
|
|
||||||
|
|
||||||
**Downloads**: To get the installer, the zipped version, and the sha256sum checksums, head over to the **[releases](https://gitlab.com/librewolf-community/browser/windows/-/releases)** page.
|
**Downloads**: To get the installer, the zipped version, and the sha256sum checksums, head over to the **[releases](https://gitlab.com/librewolf-community/browser/windows/-/releases)** page.
|
||||||
|
|
||||||
|
|
|
||||||
54
build.sh
54
build.sh
|
|
@ -4,37 +4,49 @@
|
||||||
pkgname=librewolf
|
pkgname=librewolf
|
||||||
_pkgname=LibreWolf
|
_pkgname=LibreWolf
|
||||||
|
|
||||||
pkgver=85.0.2
|
pkgver=86.0
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fetch() {
|
fetch() {
|
||||||
|
echo "fetch: begin."
|
||||||
# fetch the firefox source.
|
# fetch the firefox source.
|
||||||
rm -f firefox-$pkgver.source.tar.xz
|
rm -f firefox-$pkgver.source.tar.xz
|
||||||
wget https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz
|
wget https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
if [ ! -f firefox-$pkgver.source.tar.xz ]; then exit 1; fi
|
if [ ! -f firefox-$pkgver.source.tar.xz ]; then exit 1; fi
|
||||||
|
|
||||||
# the settings and common submodules should be checked out with --recursive to allow the build
|
# the settings and common submodules should be checked out with --recursive to allow the build
|
||||||
|
|
||||||
# get the patches
|
# get the patches
|
||||||
echo 'Getting patches..'
|
echo 'Getting patches..'
|
||||||
rm -f megabar.patch remove_addons.patch unity-menubar.patch
|
rm -f megabar.patch remove_addons.patch
|
||||||
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/megabar.patch
|
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/megabar.patch
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
if [ ! -f megabar.patch ]; then exit 1; fi
|
if [ ! -f megabar.patch ]; then exit 1; fi
|
||||||
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/remove_addons.patch
|
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/remove_addons.patch
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
if [ ! -f remove_addons.patch ]; then exit 1; fi
|
if [ ! -f remove_addons.patch ]; then exit 1; fi
|
||||||
wget -q https://gitlab.com/librewolf-community/browser/linux/-/raw/master/unity-menubar.patch
|
echo "fetch: done."
|
||||||
if [ ! -f unity-menubar.patch ]; then exit 1; fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
|
echo "prepare: begin."
|
||||||
echo "Deleting previous firefox-${pkgver} ..."
|
echo "Deleting previous firefox-${pkgver} ..."
|
||||||
rm -rf firefox-$pkgver
|
rm -rf firefox-$pkgver
|
||||||
echo "Extracting firefox-$pkgver.source.tar.xz ..."
|
echo "Extracting firefox-$pkgver.source.tar.xz ..."
|
||||||
tar xf firefox-$pkgver.source.tar.xz
|
tar xf firefox-$pkgver.source.tar.xz
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
||||||
|
echo "prepare: done."
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
do_patches() {
|
||||||
|
echo "do_patches: begin."
|
||||||
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
||||||
cd firefox-$pkgver
|
cd firefox-$pkgver
|
||||||
|
|
||||||
|
|
@ -48,10 +60,7 @@ ac_add_options --disable-debug
|
||||||
ac_add_options --enable-release
|
ac_add_options --enable-release
|
||||||
ac_add_options --enable-hardening
|
ac_add_options --enable-hardening
|
||||||
ac_add_options --enable-rust-simd
|
ac_add_options --enable-rust-simd
|
||||||
|
ac_add_options --enable-optimize
|
||||||
|
|
||||||
# Does anybody even use webrtc? waiting for an issue on it..
|
|
||||||
# ac_add_options --disable-webrtc
|
|
||||||
|
|
||||||
|
|
||||||
# Branding
|
# Branding
|
||||||
|
|
@ -82,18 +91,17 @@ END
|
||||||
|
|
||||||
# Apply patches..
|
# Apply patches..
|
||||||
patch -p1 -i ../remove_addons.patch
|
patch -p1 -i ../remove_addons.patch
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
patch -p1 -i ../megabar.patch
|
patch -p1 -i ../megabar.patch
|
||||||
patch -p1 -i ../unity-menubar.patch
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Disabling Pocket
|
# Disabling Pocket
|
||||||
sed -i "s/'pocket'/#'pocket'/g" browser/components/moz.build
|
sed -i "s/'pocket'/#'pocket'/g" browser/components/moz.build
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
# this one only to remove an annoying error message:
|
# this one only to remove an annoying error message:
|
||||||
sed -i 's#SaveToPocket.init();#// SaveToPocket.init();#g' browser/components/BrowserGlue.jsm
|
sed -i 's#SaveToPocket.init();#// SaveToPocket.init();#g' browser/components/BrowserGlue.jsm
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
|
|
||||||
# Remove Internal Plugin Certificates
|
# Remove Internal Plugin Certificates
|
||||||
_cert_sed='s#if (aCert.organizationalUnit == "Mozilla [[:alpha:]]\+") {\n'
|
_cert_sed='s#if (aCert.organizationalUnit == "Mozilla [[:alpha:]]\+") {\n'
|
||||||
|
|
@ -111,20 +119,24 @@ END
|
||||||
$mysed='sed'
|
$mysed='sed'
|
||||||
fi
|
fi
|
||||||
$mysed -z "$_cert_sed" -i toolkit/mozapps/extensions/internal/XPIInstall.jsm
|
$mysed -z "$_cert_sed" -i toolkit/mozapps/extensions/internal/XPIInstall.jsm
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
|
|
||||||
# allow SearchEngines option in non-ESR builds
|
# allow SearchEngines option in non-ESR builds
|
||||||
sed -i 's#"enterprise_only": true,#"enterprise_only": false,#g' browser/components/enterprisepolicies/schemas/policies-schema.json
|
sed -i 's#"enterprise_only": true,#"enterprise_only": false,#g' browser/components/enterprisepolicies/schemas/policies-schema.json
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
_settings_services_sed='s#firefox.settings.services.mozilla.com#f.s.s.m.c.qjz9zk#g'
|
_settings_services_sed='s#firefox.settings.services.mozilla.com#f.s.s.m.c.qjz9zk#g'
|
||||||
|
|
||||||
# stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
|
# stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
|
||||||
sed "$_settings_services_sed" -i browser/components/newtab/data/content/activity-stream.bundle.js
|
sed "$_settings_services_sed" -i browser/components/newtab/data/content/activity-stream.bundle.js
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
sed "$_settings_services_sed" -i modules/libpref/init/all.js
|
sed "$_settings_services_sed" -i modules/libpref/init/all.js
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
sed "$_settings_services_sed" -i services/settings/Utils.jsm
|
sed "$_settings_services_sed" -i services/settings/Utils.jsm
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
sed "$_settings_services_sed" -i toolkit/components/search/SearchUtils.jsm
|
sed "$_settings_services_sed" -i toolkit/components/search/SearchUtils.jsm
|
||||||
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
|
|
||||||
# copy branding resources
|
# copy branding resources
|
||||||
cp -r ../common/source_files/* ./
|
cp -r ../common/source_files/* ./
|
||||||
|
|
@ -133,31 +145,37 @@ END
|
||||||
cp ../mozconfig .
|
cp ../mozconfig .
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
echo "do_patches: done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
echo "build: begin."
|
||||||
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
||||||
cd firefox-$pkgver
|
cd firefox-$pkgver
|
||||||
./mach build
|
./mach build
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
cd ..
|
cd ..
|
||||||
|
echo "build: done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
echo "package: begin."
|
||||||
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
||||||
cd firefox-$pkgver
|
cd firefox-$pkgver
|
||||||
./mach package
|
./mach package
|
||||||
if [ $? -ne 0 ]; then exit 1; fi
|
if [ $? -ne 0 ]; then exit 1; fi
|
||||||
cd ..
|
cd ..
|
||||||
|
echo "package: done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
installer_win() {
|
installer_win() {
|
||||||
|
echo "installer_win: begin."
|
||||||
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
if [ ! -d firefox-$pkgver ]; then exit 1; fi
|
||||||
cd firefox-$pkgver
|
cd firefox-$pkgver
|
||||||
|
|
||||||
|
|
@ -166,6 +184,7 @@ installer_win() {
|
||||||
. ../installer_win.sh
|
. ../installer_win.sh
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
echo "installer_win: done."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -189,6 +208,10 @@ if [[ "$*" == *prepare* ]]; then
|
||||||
prepare
|
prepare
|
||||||
done_something=1
|
done_something=1
|
||||||
fi
|
fi
|
||||||
|
if [[ "$*" == *do_patches* ]]; then
|
||||||
|
do_patches
|
||||||
|
done_something=1
|
||||||
|
fi
|
||||||
if [[ "$*" == *build* ]]; then
|
if [[ "$*" == *build* ]]; then
|
||||||
build
|
build
|
||||||
done_something=1
|
done_something=1
|
||||||
|
|
@ -206,6 +229,7 @@ fi
|
||||||
if (( done_something == 0 )); then
|
if (( done_something == 0 )); then
|
||||||
fetch
|
fetch
|
||||||
prepare
|
prepare
|
||||||
|
do_patches
|
||||||
build
|
build
|
||||||
package
|
package
|
||||||
installer_win
|
installer_win
|
||||||
|
|
|
||||||
2
common
2
common
|
|
@ -1 +1 @@
|
||||||
Subproject commit deeef57ebe217430d68690e182ae35e4b3d575a5
|
Subproject commit 9120ca6c6709673b0188a081ec6383c4db75d169
|
||||||
Loading…
Add table
Reference in a new issue