1.首先翻墙下载chrome源码
2.下载成功后顺序执行如下命令
导出环境变量
exportCHROME_DEVEL_SANDBOX=/usr/local/sbin/chrome-devel-sandbox
export GOOGLE_API_KEY="no"
export GOOGLE_DEFAULT_CLIENT_ID="no"
export GOOGLE_DEFAULT_CLIENT_SECRET="no"
安装编译依赖库
1.sudo dnf builddep chromium
2.sudo dnf install redhat-lsb
3.git fetch --tags
4.fetch --nohooks --no-history chromium
5.cd src
6.gclient runbooks
7.gn gen out/Default
8.ninja –C out/Debug chrome chrome_sandbox
阅读(5011) | 评论(0) | 转发(0) |