Skip to content

Instantly share code, notes, and snippets.

@elisam98
Last active January 1, 2018 15:55
Show Gist options
  • Save elisam98/81dea6cd2ef1b6f79e10ae9c10831b01 to your computer and use it in GitHub Desktop.
Save elisam98/81dea6cd2ef1b6f79e10ae9c10831b01 to your computer and use it in GitHub Desktop.
#!/bin/sh
apt update
apt upgrade -y
apt install git python -y
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
echo 'export PATH="$PATH:/root/depot_tools"' >> ~/.bashrc
source ~/.bashrc
mkdir ~/chromium && cd ~/chromium
fetch --nohooks --no-history android
cd src
gclient sync
build/install-build-deps-android.sh
gclient runhooks
gn gen --args='target_os="android"' out/Default
ninja -C out/Default chrome_modern_public_apk
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment