1 2 3 4 5 6 7
| git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH=$PATH:/home/zauther/Libraries/depot_tools fetch --nohooks android
gclient sync build/install-build-deps-android.sh gclient runhooks
|
1 2 3 4 5 6 7 8
| gn args out/Default
>> target_os = "android" target_cpu = "arm64" treat_warnings_as_errors=false
autoninja -C out/Default chrome_public_apk
|
1
| build/android/gradle/generate_gradle.py --output-directory out/Default --project-dir out/Chrome-Android
|
1 2
| git checkout 92.0.4480.2 gclient sync --with_branch_heads
|
网络问题
- CIPD selfupdate failed. Trying to bootstrap the CIPD client from scratch
- OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to 127.0.0.1:1087
解决办法:
git使用代理,并且是sock5代理,http会出现第二个问题
1 2 3 4 5 6 7 8
| export socks_proxy=scoks5://127.0.0.1:1080
export http_proxy=http://127.0.0.1:1087 export https_proxy=http://127.0.0.1:1087
git config --global http.proxy 'socks5://127.0.0.1:1080' git config --global https.proxy 'socks5://127.0.0.1:1080'
|
NameError: name ‘unicode’ is not defined
–plugin_out: protoc-gen-plugin: Plugin failed with status code 1.
1
| sudo ln -f /usr/bin/python2 /usr/bin/python
|