LibreWolf - Source Archive
Go to file
2024-06-26 21:45:36 +02:00
.forgejo/workflows Fix forgejo push workflow 2023-11-14 21:18:04 +01:00
.woodpecker.release verify sha512sum exists 2023-11-04 16:04:17 +00:00
assets Revert "Backport D207167" 2024-06-15 15:46:08 +02:00
docs Preserving output for what's valid in mozconfig 2023-10-21 15:09:41 +02:00
patches Add back missing checkbox to patch 2024-06-15 20:08:05 +02:00
scripts removed mozbuild stuff 2024-02-24 18:21:33 +01:00
settings@1debc2d309 Updated settings submodule to the latest version 2024-06-16 14:47:07 +02:00
themes/browser Fix the missing wayland icon by changing remote name 2024-04-29 14:09:56 -07:00
.gitignore inbetween commits 2022-01-08 22:55:25 +01:00
.gitlab-ci.yml Merge pull request 'settings_submodule' (!70) from settings_submodule into main 2023-11-15 06:12:51 +00:00
.gitmodules Added settings submodule 2023-11-14 19:53:25 +01:00
LICENSE Add LICENSE 2021-11-19 17:42:30 +00:00
Makefile Updated to add maintainter commands more prominently. 2024-02-24 09:30:33 +01:00
README.md Move FireDragon to previous forks because it's now based on Floorp 2024-02-16 18:58:41 +00:00
release Release stage @ gitlab failure, trying again 2024-06-26 21:45:36 +02:00
version Bump to patch release 127.0.2 (youtube fix) 2024-06-26 18:01:28 +02:00

LibreWolf Source Repository

This repository contains all the patches and theming that make up LibreWolf, as well as scripts and a Makefile to build LibreWolf. There also is the Settings repository, which contains the LibreWolf preferences.

LibreWolf overview

graph LR
    FFSRC(Firefox Source)

    FFSRC--Tarball--->Source

    subgraph librewolf-community/
    Settings(Settings)--"librewolf.cfg<br>policies.json"-->Source
    Website(Website<br><br>- Documentation<br>- FAQ)
    subgraph browser/
        Source(Source<br><br>- Patches<br>- Theming<br>- Build scripts)
        bsys6(bsys6<br><br>New Docker building<br>repository)
        bsys5(bsys5<br><br>Old Docker building<br>repository)
        AppImage
        Arch
    end
    end
    Website-->librewolf.net
    Source--"Source tarball"-->bsys6 & bsys5
    AppImage--".appimage"-->librewolf.net
    bsys6--"Windows setup.exe"--->librewolf.net
    bsys6--"Windows portable.zip"--->librewolf.net
    bsys6--"Windows .msix"--->MS("Microsoft Store")
    bsys6--"Windows .nupkg"--->Chocolatey
    bsys6--"Linux binary tarball"--->Flathub
    bsys6--"Linux binary tarball"--> AppImage
    bsys6--"Linux binary tarball for `librewolf-bin`"--> Arch
    Source--"Source tarball for `librewolf`"-->Arch
    Arch-->AUR
    bsys5--"Linux .deb"--->deb.librewolf.net
    bsys5--"Linux .rpm"--->rpm.librewolf.net

Active repositories and projects

List of browser build sub projects. These are the locations where people have their repositories and build artifacts.

Currently active build repositories:

  • Arch: Arch Linux
  • Bsys5: .deb/.rpm for Mint, Fedora, Ubuntu; .dmg for MacOS.
  • Debian: bgstack15 version
  • Fedora: bgstack15 version
  • Flatpak: Flatpak
  • Gentoo: Gentoo
  • Linux: Flatpak, AppImage, Arch and other Linux builds of the LibreWolf browser.
  • MacOS: The macOS build of LibreWolf.
  • OpenBSD: OpenBSD page
  • Windows: LibreWolf builds for Windows.

Currently active (and known) forks:

Previous forks:

LibreWolf build instructions

There are two ways to build LibreWolf. You can either use the source tarball or compile directly with this repository.

Building from the Tarball

First, let's download the latest tarball. This tarball is the latest produced by the CI. You can also check the sha256sum of the tarball there.

tar xf <tarball>
cd <folder>

Then, you have to bootstrap your system to be able to build LibreWolf. You only have to do this one time. It is done by running the following commands:

./mach --no-interactive bootstrap --application-choice=browser
./lw/setup-wasi-linux.sh

Finally you can build LibreWolf and then package or run it with the following commands:

./mach build
./mach package
# OR
./mach run

Building with this Repository

First, clone this repository with Git:

git clone --recursive https://gitlab.com/librewolf-community/browser/source.git librewolf-source
cd librewolf-source

Next, build the LibreWolf source code with the following command:

make dir

After that, you have to bootstrap your system to be able to build LibreWolf. You only have to do this one time. It is done by running the following command:

make bootstrap

Finally you can build LibreWolf and then package or run it with the following commands:

make build
make package
# OR
make run

Development Notes

How to make a patch

The easiest way to make patches is to go to the LibreWolf source folder:

cd librewolf-$(cat version)
git init
git add <path_to_file_you_changed>
git commit -am initial-commit
git diff > ../mypatch.patch

We have Gitter / Matrix rooms, and on the website we have links to the various issue trackers.

How to work on an existing patch

The easiest way to make patches is to go to the LibreWolf source folder:

make fetch # get the firefox tarball
./scripts/git-patchtree.sh patches/sed-patches/disable-pocket.patch

Now change the source tree the way you want, keeping in mind to git add new files. When done, you can create the new patch with:

cd firefox-<version>
git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 HEAD > ../my-patch-name.patch

This ID is the hash value of the first commit, which is called initial. Dont forget to commit changes before doing this diff, or the patch will be incomplete.

How to create a patch for problems in Mozilla's Bugzilla.

Well, first of all:

Now that you have a patch in LibreWolf, that's not enough to upload to Mozilla. See, Mozilla only accepts patches against Nightly. So here is how to do that:

If you have not done already, create the mozilla-unified folder and build Firefox with it:

hg clone https://hg.mozilla.org/mozilla-unified
cd mozilla-unified
hg update
MOZBUILD_STATE_PATH=$HOME/.mozbuild ./mach --no-interactive bootstrap --application-choice=browser
./mach build
./mach run

If you skipped the previous step, you could ensure that you're up to date with:

cd mozilla-unified
hg pull
hg update

Now you can apply your patch to Nightly:

patch -p1 -i ../mypatch.patch

Now you let Mercurial create the patch:

hg diff > ../my-nightly-patch.patch

And it can be uploaded to Bugzilla.

(excerpt from the Mozilla readme) Now the fun starts

Time to start hacking! You should join us on Matrix, say hello in the Introduction channel, and find a bug to start working on. See the Firefox Contributors Quick Reference to learn how to test your changes, send patches to Mozilla, update your source code locally, and more.

Hey, I'm using MacOS or Windows..

We understand, life isn't always fair 😺. The same steps as above do apply, you'll just have to walk through the beginning part of the guides for:

  • MacOS: The cross-compiled Mac .dmg files are somewhat new. They should work, perhaps with the exception of the make setup-wasi step.
  • Windows: Building on Windows is not very well tested.

Help with testing these targets is always welcome.