Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Repo to build ungoogled-chromium for portablelinux binaries for the ungoogled-chromium-binaries website.

Notifications You must be signed in to change notification settings

clickot/ungoogled-chromium-build

Repository files navigation

ungoogled-chromium-build

The code of this repository is moved to ungoogled-chromium-portablelinux and will be maintained there in future. This repo is therfore archived.
Thanks to all that followed and starred this repo.

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 gclib 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 who do not want to upgrade their ubuntu 20.04 might use the flatpak version of ungoogled-chromium. Flatpaks to not rely on the glibc on the underlying system. See here for additional installation hints.

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).

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 on your machine as in the docker image. It's the idea behind this 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.

About

Repo to build ungoogled-chromium for portablelinux binaries for the ungoogled-chromium-binaries website.

Resources

Stars

Watchers

Forks

Packages

No packages published