chromium 下载 编译
下载
- 配置系统proxy,配置git proxy,配置 运行批处理窗体的proxy
- 下载 git,python
- 下载depot_tools
- 下载源码
- 迁出指定版本并创建本地分支(git checkout -b localname commitid)
注意点:
- 默认下载main 分支,不稳定,使用 --no-hostory 不下载历史版本否则,仅 src/.git 就将近50G
下载指定版本:
git fetch --tags
git checkout tags/131.0.6778.109
gclient sync
参考:
linux环境下下载
- 下载depot_tools :$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- depot_tools 的路径添加到~/.bashrc中,在最后:export PATH=$PATH:/home/xxxxx/depot_tools
- 设置git代理:
git config --global http.proxy http://127.0.0.1:10809
git config --global https.proxy http://127.0.0.1:10809 - 设置执行命令的终端代理
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890 - 获取源码 :
//1. 主分支 不带历史
fetch --nohooks --no-history chromium
//2. 获取指定tag ,此为稳定版,具体的稳定版版号从【https://chromiumdash.appspot.com/releases?platform=Linux】处
//这种获取tags 不太好
git fetch --tags
//用这个好点
git fetch https://chromium.googlesource.com/chromium/src.git +refs/tags/131.0.6778.108:chromium_131.0.6778.108 --depth 1
//3. 列出可用tag
git tag
//4. 签出分支
git checkout tags/131.0.6778.108
131.0.6778.108
问题:
lv@lv:~/code/chromium$ fetch --nohooks chromium
/home/lv/code/chromium/depot_tools/vpython3: 行 57: /home/lv/code/chromium/depot_tools/.cipd_bin/vpython3: 没有那个文件或目录
代理设置有问题:系统代理,git代理,终端代理,http和https 代理都设置且正确。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 张高兴的大模型开发实战:(一)使用 Selenium 进行网页爬虫
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构