chromium-installer v0.8.1
About
I created this simple tool to secure install/update from Google servers the latest
Chromium snapshot version and it works fine both on Linux, Windows and Android (root) with only 2
dependencies (7 including children). It start downloading the latest snapshot file
from https://www.googleapis.com/ then will unzip the files inside /opt/chromium/
(Linux) or
C:\Program Files\Chromium
(Windows) using a module called yauzl
.
I'm open sourcing it after I have used it for around 2 years now without any problems.
The code is extremely easy to read btw.
How to use on PC
- Install from NPM globally using:
npm install -g chromium-installer
- Set keys once either for Linux (nonroot)
./scripts/set-API-keys-Linux.sh
or Windows.\scripts\set-API-Keys-Windows.bat
- Download & install as admin/root using the following command
chromium-installer-updater
- Don't forget to make chrome executable on Linux.
Linux (sandbox crash)
There is a bug where sandboxing may not work and make Chromium crash. Some linux distributions does not support unprivileged user namespaces and may need the following kernel tweak.
sysctl -w kernel.unprivileged_userns_clone=1
*May Compromise System Security
How to use on Android (root)
- Download and install Termux.
- Make sure you have installed the root and nodej.js packages, if not run
(non root)
pkg install tsu && pkg install nodejs
- Install the package using
npm install -g chromium-installer
(non root) - Now switch to root using
tsu
and runchromium-installer-updater
- Install the apks using the following command:
TIP: Alternatively skip the steps 4 & 5 and run the script located at ./scripts/android.sh using the following command as root:``` pm install -r /data/local/tmp/chromium-installer/chrome-android/apks/ContentShell.apk ```
/data/data/com.termux/files/usr/lib/node_modules/chromium-installer/scripts/android.sh
WARNING! The following guide was tested on Android 9.
Todo
- OSX Support
- Make it default browser using a script
- Better terminal UI
- API version
- Create desktop shortcuts
- Reach 100% Code Coverage
Tested
Linux Debian Stretch 9 (Gnome Shell 3.22.3)
Windows 10 (1709)
Nodejs 11.9.0/12.15/0
Android 9