/ungoogled-chromium-portablelinux

Portable Linux packaging for ungoogled-chromium

Primary LanguageShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

ungoogled-chromium-portablelinux

Note that this build produces results that are currently not working with ubuntu 20.04. The reason is, that the chromium code since 114.xx needs a newer glibc version than ubuntu 20.04 (and debian bullseye) and does not compile anymore with older gclib versions. Therefore I had to switch to debian:bookworm as builder image. The build results do work e.g. on ubuntu 22.04 and higher and debian bookworm.
Those how do not want to upgrade their ubuntu 20.04 might use the flatpak version of ungoogled-chromium. Flatpaks to not rely on the gclib on the underlying system.

Portable Linux build and packaging for ungoogled-chromium to be published in the ungoogled-chromium-binaries web page found here.

building

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 (mainly: download chromium source tar, unpack and patch it, setup build env and execute ninja build on the result).

Note that the build takes about 8 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:

  1. distro:release (defaults to 'debian:bookworm')
  2. major llvm toolchain version (defaults to '16')
  3. 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.

I do not recommend to try to call build.sh directly. This will only work if you have a debian or ubuntu installation with all the packages installed and at the same place in the filesystem on your machine as in the docker image. It's the idea behind this docker-based build that you do NOT need to manipulate your own linux installation to build ungoogled-chromium.

packaging

After building, enter the package directory and excute package.sh. This will create a tar.xz and an AppImage file in the root dir for your personal use. It takes about 2-3 minutes.
If you want to publish the build result on the ungoogled-chromium-binaries web page you may use the prepare-publish.sh script to create commits in your 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.