Build System
The two browsers have separate build systems. Both fetch a pinned upstream version, apply the patch series in browser/patches/, compile, and package a portable archive into browser/dist/.
Here is a diagram of the build system, and its associated make commands. They run from the browser folder of the repository:
graph TD
FFSRC[Firefox Source] -->|make fetch| REPO
subgraph REPO[Camoufox Repository]
PATCHES[Fingerprint masking patches]
ADDONS[uBlock Origin]
DEBLOAT[Debloat/optimizations]
JUGGLER[Patched Juggler]
end
subgraph Local
REPO -->|make dir| PATCH[Patched Source]
PATCH -->|make bootstrap, once| BOOT[Toolchains]
BOOT -->|make build| BUILD[Built]
FONTS[Win, Mac, Linux font bundle] -->|make fetch-fonts| BUILD
BUILD -->|make package-linux arch=...| LINUX[Linux Portable]
BUILD -->|make package-windows arch=...| WIN[Windows Portable]
BUILD -->|make package-macos arch=...| MAC[macOS Portable]
end
The Firefox version is set in browser/upstream.sh (currently 159.0). make dir unpacks it to browser/camoufox-<version>-<release>/, copies in browser/additions/ and browser/settings/, and applies browser/patches/. The font bundle is a release asset, not repository content: the package-* targets download it.
This was originally based on the LibreWolf build system.
Here is a diagram of the build system and its scripts. They run from the root of the repository:
graph TD
CRSRC[Chromium source at the pinned tag] -->|build.sh: sync| CHECKOUT
subgraph REPO[Camouwolf Repository]
PATCHES[Patch series and its series file]
CONFIG[C++ config layer]
ARGS[GN args per OS and arch]
end
subgraph Local
CHECKOUT[Chromium checkout] -->|build.sh: patch| PATCH[Patched Source]
REPO --> PATCH
PATCH -->|build.sh: build, GN + ninja| BUILD[Built]
PATCH -->|build-camouwolf-incremental.sh| BUILD
FONTS[Font bundle] -->|fetch-fonts.py| BUILD
BUILD -->|release-camouwolf.sh --no-release| DIST[Portable archive in browser/dist]
end
The Chromium tag is set in browser/upstream.sh (currently 158.0.8127.36, release alpha.1). browser/scripts/build.sh installs depot_tools, syncs a Chromium checkout to the tag (in .camouwolf-build/ unless CAMOUWOLF_BUILD_DIR says otherwise), applies browser/patches/ in the order of its series file, writes the GN args (browser/args.gn plus browser/args/<os>.gn and browser/args/<arch>.gn), and compiles. CAMOUWOLF_STAGES runs a subset of sync patch build.
Every target is built on an x86_64 Linux host. Only Linux x86_64 is built and released today; python3 -m ci.targets lists the other targets and why each is off.