Chromium 源码下载与编译
注:由于 Chromium 源码完全存在于 google 的服务器上,所以下载全程要翻墙。包括 git,depot_tools 中
gclient 运行时,也需要翻墙下载,总计要下载 20 个 g 左右
在使用 cmd 时,最好都使用管理员权限。防止出现权限不够等问题。
官方文档:https://chromium.googlesource.com/chromium/src/+/master/docs/
windows_build_instructions.md
① 首先对系统的代理服务器进行修改。如果通过 ss/ssr 等翻墙,设置系统的代理服务器,运行 cmd(管理
员),输入 netsh winhttp set proxy localhost:1080(端口对应自己 ss/ssr 的端口,下同)。同时,
在系统环境变量中添加以下两个变量:http_proxy=http://localhost:1080,https_proxy=http://
localhost:1080(没有 s,有 s 会报错)。
② 对 git 进行代理设置,git con#g --global http.proxy http://localhost:1080 ,git con#g –global
https.proxy https://localhost:1080(前提:把 git 的目录添加到环境变量。)
(git 的配置文件,http 与 https 代理都已经设
置)
评论0