0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2025-01-18 02:12:30 -05:00

Merge branch 'main' of gitlab.com:stanzabird/source

This commit is contained in:
Bert van der Weerd 2021-11-20 10:51:52 +01:00
commit 8ee6c8f140
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
2 changed files with 35 additions and 3 deletions

11
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,11 @@
stages:
- build
build-job:
stage: build
script:
- make all
artifacts:
paths:
- librewolf-*.source.tar.xz

View file

@ -1,4 +1,4 @@
## Building LibreWolf from source
## Building LibreWolf from source:
First, let's head over to the [releases page](https://gitlab.com/stanzabird/source/-/releases); note and download the latest version. Once downloaded, extract it.
```
export version=94.0.1
@ -8,13 +8,13 @@ tar xf librewolf-$(version).source.tar.gz
```
Next step, if you have not done so already, you must create the build environment:
```
python3 librewolf-$(version)/lw-assets/bootstrap.py
python3 librewolf-$(version)/lw-assets/bootstrap.py --no-interactive --application-choice=browser
```
It takes about an hour for me to complete, but it needs to be done only once.
Now we're ready to actually build LibreWolf:
```
cd librewplf-$(version)
cd librewolf-$(version)
./mach build
```
Also takes me an hour. Then, we can run it:
@ -25,3 +25,24 @@ Or make a package:
```
./mach package
```
## Building LibreWolf source tarball:
You don't need the build environment for this. If you don't have write access, just:
```
git clone https://gitlab.com/stanzabird/source.git
cd source
make all
```
If you **do** have write access, we're first gonna check for a newer version of Firefox:
```
git clone git@gitlab.com:<your_username>/source.git
cd source
make check
```
If there is a new version, it's a good time to git commit and trigger a CI build job.
```
git commit -am v$(cat version) && git push
```
To build the source archive:
```
make all
```