modified | Saturday 5 April 2025 |
---|
The documentation in this page mention that you shouldn’t git clone it but download a set of tools that will do that for you.
1git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2export PATH="${HOME}/code/depot_tools:$PATH" # the repo is in ~/code change it to your path.
Now you should get the repo. there ara two commands, once clones the whole repo + history (52GB) another will pull just the latest version of the code (23GB). and interruptions are not recoverable so make sure you choose the command that you’re comfortable with redoing if a failure happens.
1mkdir chromium && cd chromium
2fetch --nohooks chromium # full clone with history
3fetch --nohooks --no-history chromium # without history (faster)
install dependencies needed to compile. it takes hours on my machine, so take a walk, touch grass.
1sudo pacman -S --needed python perl gcc gcc-libs bison flex gperf pkgconfig \
2nss alsa-lib glib2 gtk3 nspr freetype2 cairo dbus xorg-server-xvfb \
3xorg-xdpyinfo
Then we compile.
1gclient runhooks
2cd src
3gn gen out/Default
4autoninja -C out/Default chrome
Run chrome
1./out/Default/chrome