thorium-mirror/README.md

68 lines
8.9 KiB
Markdown
Raw Normal View History

2021-11-21 04:27:23 -03:00
![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/alex313031/thorium?label=Version%3A)  ![GitHub](https://img.shields.io/github/license/alex313031/thorium?color=green&label=License%3A)  ![GitHub commit activity](https://img.shields.io/github/commit-activity/w/alex313031/thorium?color=blueviolet&label=Commit%20Activity%3A)  ![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/ChromiumBrowser?style=social)
2021-10-18 03:46:35 -03:00
# Thorium
2021-10-18 03:53:30 -03:00
2021-11-02 18:57:02 -03:00
<img src="https://github.com/Alex313031/Thorium/blob/main/logos/chrome_app_icon_192.png">
2021-10-18 03:48:56 -03:00
2022-01-24 22:26:37 -03:00
## Chromium fork for linux named after radioactive element No. 90. Windows/MacOS/Android/Other builds see below. NEW: New builds for different architectures in Thorium-Special! Also Google Sync is now enabled with baked in API Keys!
2021-11-22 08:19:19 -03:00
- Always built with the latest x64 tip-o-tree "Trunk" build of Chromium.
2021-11-13 02:38:04 -03:00
- Intended to behave like and have the featureset of Google Chrome, with differences/patches/enhancements listed below. \
&nbsp;&ndash; I also build for windows less frequently > https://github.com/Alex313031/Thorium-Win \
2022-01-24 22:26:37 -03:00
&nbsp;&ndash; Special and Experimental builds, sometimes for other CPUs (read the readme), and MacOS/Raspi/Android are located at > https://github.com/Alex313031/Thorium-Special You can find builds for Piledriver/Steamroller/Excavator CPUS, Haswell CPUs, as well as SSE4, SSE4.2, and pure AVX builds. NEW: Tigerlake (11th Gen) builds by @midzer \
&nbsp;&ndash; NEW: Thorium Special now also has experimental Android ARM32 & ARM64 builds. \
2022-01-24 22:26:37 -03:00
&nbsp;&ndash; NEW: Thorium Special now also has new ARM32 & ARM64 builds for things like the Raspberry Pi. \
&nbsp;&ndash; NEW: Thorium Special now also has ARM64 and x64 builds for MacOS.
2021-10-18 03:48:56 -03:00
2022-01-02 11:51:34 -03:00
&nbsp;&nbsp;&ndash; Includes Widevine, FFmpeg, Chrome Plugins, as well as thinLTO, CFlag, LLVM Loop, and PGO compiler optimizations. It is built with SSE4, and AVX, so it won't launch on CPU's below 2nd gen Core or AMD FX, but benefits from Advanced Vector EXtensions. You can disable this and use regular SSE3 like Chromium and Chrome, or builds from Thorium special of which some are SSE4 or SSE4.2. (See below.)
2021-10-26 06:52:00 -03:00
2021-10-26 07:23:21 -03:00
### EXPERIMENTAL FEATURES/DIFFERENCES BETWEEN CHROMIUM AND THORIUM
2021-11-12 20:44:56 -03:00
> - Various compiler flags that improve performance and target AVX CPU's (read patches.md)
2021-10-26 07:42:51 -03:00
> - Experimental MPEG-DASH.
2021-11-23 02:21:25 -03:00
> - Experimental PDF annotation support (called "Ink" on ChromiumOS). # DISABLED FOR NOW BECAUSE OF CRASHES.
2021-12-05 03:03:05 -03:00
> - Patches from Debian including font rendering patch, VAAPI Patch, Intel HD support patch, native notifications patch, title bar patch, and... the VDPAU Patch!! (Rejoice Nvidia users)
2021-11-11 22:56:39 -03:00
> - Audio Sandbox patch.
2021-10-28 10:14:03 -03:00
> - DoH (DNS over HTTPS) patches from Bromite.
2021-11-01 13:51:02 -03:00
> - Enable Do Not Track by default patch from Vanadium.
2021-12-21 20:56:07 -03:00
> - Show full URLs including trailing slashes in address bar by default.
2021-11-22 07:53:24 -03:00
> - Disable FLOC patch.
2021-11-12 16:13:42 -03:00
> - Disable Google API Key warning (you can still use API Keys to enable sync) from Ungoogled Chromium.
2021-11-30 17:51:17 -03:00
> - Adds DuckDuckGo, Ecosia, Ask.com, and Yandex.com in US and other locales, along with the normal search engines.
2022-01-25 17:53:35 -03:00
> - Always use the local NTP (New Tab Page) regardless of search engine.
> - Fix icons when distilling page content in reader mode.
> - Enable new menu UI when right clicking the reload button. (Adds 'Normal Reload', 'Hard Reload', and 'Clear Cache and Hard Reload')
> - Prefetch settings updated to respect privacy.
> - Patches for GN and chrome_sandbox.
2021-12-10 01:10:43 -03:00
> - Remove the addition of the Chrome apt sources.list during installation.
2021-11-14 01:25:01 -03:00
> - Logo and Branding/Naming changed to the Thorium logo, Thorium name, and "Alex313031" being appended to "The Chromium Authors" in credits, etc.
2021-11-12 15:24:05 -03:00
> - .desktop file includes useful cmdline flags that enable experimental or useful features. (read PATCHES.md)
2022-01-25 17:53:35 -03:00
> - Includes installer patches and files to include ChromeDriver and content_shell, with a .desktop file being provided for content_shell (named thorium-shell.desktop and shows in desktop environments as Thorium Content Shell). You can also run content_shell with the command thorium-shell (custom wrapper for it, located in /usr/bin/). You can run ChromeDriver at /usr/bin/chromedriver. Also, patches for abseil library and mini_installer when building for AVX on Windows.
2021-12-06 04:55:49 -03:00
> - Right clicking the launcher after install gives two additional desktop actions, one to open content-shell, and another to open in safe mode which disables any flags one has set in chrome://flags until the next launch.
2021-11-12 15:20:46 -03:00
- For more info, read the PATCHES.md file.
2021-11-21 13:34:37 -03:00
- Known bugs are in the BUGS.md file.
2021-10-18 03:48:56 -03:00
2022-01-10 06:55:50 -03:00
&nbsp;&nbsp;&ndash; args.gn exclude API Keys (you can get them yourself) and the pgo profile path is different for each chromium version (only needed when building). (See below.) UPDATE: Thorium now has API Keys baked in but the instructions are the same if you are building it yourself as I will not include the keys here.
2021-10-18 03:48:56 -03:00
&nbsp;&nbsp;In general follow build instructions at https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/build_instructions.md and API Keys (if desired) at https://www.chromium.org/developers/how-tos/api-keys
2021-10-18 03:48:56 -03:00
# Building
2021-10-28 13:28:13 -03:00
_**The scripts assume the Chromium source is at $HOME/chromiums/src/. You may have to 'sudo chmod +x' the scripts to make them executable.**_
- After initial download of Chromium source code, run (from where you cloned this repo) `./trunk.sh`. This will update and sync the sources and at the end it will download the PGO profile for chromium. The file will be downloaded to *//chromium/src/chrome/build/pgo_profiles/&#42;.profdata* with the actual file name looking something like 'chrome-linux-main-1632505958-ddbb37bcdfa7dbd7b10cf3a9b6a5bc45e7a958a6.profdata', which should be added to the end of args.gn as per below.
2021-11-22 08:19:19 -03:00
- Then, (from where you cloned this repo) run `./setup.sh`. This will copy all the files and patches to the needed locations and drop you to *//chromium/src*.
2021-10-28 13:28:13 -03:00
- Run `export EDITOR=nano` & `export VISUAL=nano` *# You can substitute a cmdline editor like vim here, but many GUI editors cause it to try and parse the args.gn file before it is even saved.*
- Run `gn args out/thorium` and the contents of 'args.gn' in this repo should be copy/pasted into the editor. *--Include your api keys here at the top or leave blank, and edit the last line to point to the actual path and file name of '&#42;.profdata'*
2021-12-02 06:35:55 -03:00
- 'args.list' contains an alphabetical list with descriptions of all possible build arguments; gn_args.list gives a similar list but with the flags in args.gn added.
2021-11-14 01:25:01 -03:00
- To build, run `autoninja -j8 -C out/thorium chrome chrome_sandbox content_shell -d stats` *The -j# can be changed to limit or increase the number of jobs (generally should be the number of CPU cores on your machine), and the -d stats at the end just shows better verbose stats during compiling. You could also append chromedriver (the releases have chromedriver) after content_shell to build chromedriver, the selenium compatible browser fuzzing library.*
2021-11-22 08:19:19 -03:00
- To install, copy/paste the contents of your *out/thorium* dir to a good location, i.e. *$HOME/bin/thorium*. **RECOMMENDED - Copy and run clean.sh within this dir to clean up build artifacts**. Then you can just run the browser with `~/bin/thorium/chrome`, the content_shell with `~/bin/thorium/content_shell`, or chromedriver with `~/bin/thorium/chromedriver`.
2021-11-21 20:48:13 -03:00
- **Proper Install:** To install with a .deb, dont copy the contents of *out/thorium*; instead run <br/> `autoninja -C out/thorium/ "chrome/installer/linux:unstable_deb"` A nice .deb file will now be in *out/thorium* and you can install it with `sudo dpkg -i *.deb` It will be called 'thorium-browser-unstable_$VERSIONNUMBER_amd64.deb', and will be installed to */opt/chromium.org/thorium-unstable/*. \
2021-11-21 02:13:50 -03:00
&nbsp;&nbsp; NOTE: To get back to "Trunk", i.e. to revert all changes in order to build vanilla chromium, just run `./trunk.sh` again. \
&nbsp;&nbsp; NOTE: To compile without AVX, simply go to *//chromium/src/build/config/compiler/BUILD.gn*, search for *mavx* (there's only two <br/> &nbsp;&nbsp; lines), and replace *mavx* with *msse3*, then remove the lines right under both of those that contain *"-ffp-contract=fast",*
2021-10-18 03:48:56 -03:00
2021-11-22 08:19:19 -03:00
https://www.reddit.com/r/ChromiumBrowser/ is a subreddit I made for Thorium and general Chromium discussion and https://alex313031.blogspot.com/ is a blog I made relating to Chromium/ChromiumOS. I also build ChromiumOS with codecs, linux-firmware/modules, and added packages at > https://github.com/Alex313031/ChromiumOS/
2021-11-21 04:27:23 -03:00
2021-11-14 01:25:01 -03:00
&minus; Thanks to https://github.com/robrich999/ for some info that went into this project.\
&minus; Thanks to https://github.com/midzer/ for support and helping with builds. \
2021-11-14 01:25:01 -03:00
&minus; Also thanks to https://github.com/bromite/bromite, https://github.com/saiarcot895/chromium-ubuntu-build, https://github.com/Eloston/ungoogled-chromium, and https://github.com/GrapheneOS/Vanadium for patch code.
2021-10-28 10:58:57 -03:00
2021-10-28 13:28:13 -03:00
&nbsp;&nbsp; NOTE: libpepflashplayer.so is included for posterity and can be used to enable Adobe Flash on older Chromium releases. ʘ‿ʘ
2021-12-06 23:21:58 -03:00
<img src="https://github.com/Alex313031/Thorium/blob/main/logos/GitHub-Mark-32px.png">