Portable Linux build and packaging for ungoogled-chromium to be published in the ungoogled-chromium-binaries web page found here.
The code is mainly adapted from the ungoogled-chromium-portablelinux repo (that didn't work for me and seems currently rather unmaintained).
execute docker-build.sh
script in the root dir. This will
- build a docker image with all needed node, llvm and distro packages to build chromium
- start the docker image, mounts the current dir and runs
build.sh
in it, which executes the actual build process on ungoogled-chromium (download chromium source tar, unpack and patch it and execute ninja build on the result).
Note that the build takes about 6 hours (on my computer) and consumes about 15G of disk space (you may delete the
target
dir AFTER PACKAGING, see packaging)
The script accepts the following params:
- distro:release (defaults to 'debian:bullseye')
- major llvm toolchain version (defaults to '16')
- major node version (defaults to '18')
example: ./docker-build.sh ubuntu:yammy 15 19
Note that users of other distros than ubuntu or debian reported compatibility problems when i used ubuntu instead of debian as base image for builds. I therefor recommend to stick to debian base image.
After building, enter the package
directory and excute package.sh
. This will create a tar.xz
and an AppImage
file in the root dir. It takes about 2-3 minutes.
You may use the prepare-publish.sh
script to create commits in the ungoogled-chromium-binaries
fork for a pull request in the origin ungoogled-chromium-binaries repo. Therefor adjust the paths at the beginning of the script to match the paths to the according repos in your filesystem.