0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 05:33:03 -05:00

v96.0.3-1

This commit is contained in:
Bert van der Weerd 2022-01-27 20:51:39 +01:00
parent 991bf8eb1f
commit af6c1a2647
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
3 changed files with 10 additions and 10 deletions

View file

@ -1,11 +1,11 @@
## Building LibreWolf from source:
First, let's **[download the latest tarball](https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-96.0.2-2.source.tar.gz?job=Build)**. This tarball is the latest produced by the [CI](https://gitlab.com/librewolf-community/browser/source/-/jobs).
First, let's **[download the latest tarball](https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-96.0.3-1.source.tar.gz?job=Build)**. This tarball is the latest produced by the [CI](https://gitlab.com/librewolf-community/browser/source/-/jobs).
To download the latest from a script, use wget/curl like this:
```
wget -O librewolf-96.0.2-2.source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-96.0.2-2.source.tar.gz?job=Build
curl -L -o librewolf-96.0.2-2.source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-96.0.2-2.source.tar.gz?job=Build
wget -O librewolf-96.0.3-1.source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-96.0.3-1.source.tar.gz?job=Build
curl -L -o librewolf-96.0.3-1.source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-96.0.3-1.source.tar.gz?job=Build
```
Next, we create ourselves a build folder and extract the tarball.
@ -13,14 +13,14 @@ Next, we create ourselves a build folder and extract the tarball.
```
mkdir build
cd build
tar xf ../librewolf-96.0.2-2.source.tar.gz
tar xf ../librewolf-96.0.3-1.source.tar.gz
```
### build environment
Next step, if you have not done so already, you must _create the build environment_:
```
./librewolf-96.0.2/lw/mozfetch.sh
./librewolf-96.0.3/lw/mozfetch.sh
```
This would create a _mozilla-unified_ folder in our 'build' folder, or basically anywhere that is your current working directory. It takes about an hour for me to complete, but it needs to be done only once. This step might fail and cause problems. Hack a bit, and if that fails you can ask on our [Gitter](https://gitter.im/librewolf-community/librewolf)/[Matrix](https://matrix.to/#/#librewolf:matrix.org) channels. There is no need to actually build _mozilla-unified_ (Mozilla Nightly) itself, nor is the folder needed to build LibreWolf. So you can remove it: `rm -rf mozilla-unfied` if you don't plan on using/exploring it.
@ -33,12 +33,12 @@ A few resources:
* [Compiling C to WebAssembly using clang/LLVM and WASI](https://00f.net/2019/04/07/compiling-to-webassembly-with-llvm-and-clang/).
* [Firefox 95 on POWER](https://www.talospace.com/2021/12/firefox-95-on-power.html).
To setup the wasi sdk _headers_, you can use _librewolf-96.0.2/lw/setup-wasi-linux.sh_. Please note that this script is a bit experimental and not all kinks have been worked out, but it should work.
To setup the wasi sdk _headers_, you can use _librewolf-96.0.3/lw/setup-wasi-linux.sh_. Please note that this script is a bit experimental and not all kinks have been worked out, but it should work.
This might not be enough on all systems. Some systems have the wasi-libc library already installed, and some don't. It depends on the installed version of Clang/LLVM it seems, which should be v8 or above. On debian-based systems: `sudo apt install wasi-libc`, on Arch: `https://archlinux.org/packages/community/any/wasi-libc/` (`pacman -Syu wasi-libc`). Instructions for macos/windows and perhaps other Linux distro's will be added here soon.
Or, the other option is to not use these sandbox libraries: In this case we can't use our standard _mozconfig_ symlink from _mozconfig.new_ into _mozconfig.new.without-wasi_. In that case you have to type something along the lines of:
```
cd librewolf-96.0.2
cd librewolf-96.0.3
cp lw/mozconfig.new.without-wasi mozconfig
cd ..
```
@ -46,7 +46,7 @@ cd ..
Now we're ready to actually build LibreWolf:
```
cd librewolf-96.0.2
cd librewolf-96.0.3
./mach build
```
Also takes me an hour. Then, we can run it:

View file

@ -1 +1 @@
2
1

View file

@ -1 +1 @@
96.0.2
96.0.3