chromium 下载 编译

下载

  1. 配置系统proxy,配置git proxy,配置 运行批处理窗体的proxy
  2. 下载 git,python
  3. 下载depot_tools
  4. 下载源码
  5. 迁出指定版本并创建本地分支(git checkout -b localname commitid)

注意点:

  • 默认下载main 分支,不稳定,使用 --no-hostory 不下载历史版本否则,仅 src/.git 就将近50G

下载指定版本:
git fetch --tags
git checkout tags/131.0.6778.109
gclient sync

参考:

chromium 编译
下载指定版本的chromium

linux环境下下载

  1. 下载depot_tools :$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
  2. depot_tools 的路径添加到~/.bashrc中,在最后:export PATH=$PATH:/home/xxxxx/depot_tools
  3. 设置git代理:
    git config --global http.proxy http://127.0.0.1:10809
    git config --global https.proxy http://127.0.0.1:10809
  4. 设置执行命令的终端代理
    export http_proxy=http://127.0.0.1:7890
    export https_proxy=http://127.0.0.1:7890
  5. 获取源码 :
//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

参考:
https://stackoverflow.com/questions/47087970/how-to-checkout-and-build-specific-chromium-tag-branch-without-download-the-full/47093174#47093174

问题:

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 代理都设置且正确。

posted @   aynulily  阅读(50)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 张高兴的大模型开发实战:(一)使用 Selenium 进行网页爬虫
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示