下载Chromium源码的方法

  • A+
所属分类:软件
摘要

Chromium的源码太大,用官方默认的下载工具,不支持断点续传,需要用代理才能下载。本文提供两种方法下载。

Chrome Chromium是一个开放源代码的浏览器项目,旨在为所有用户提供一种更安全,更快,更稳定的方式来体验网络。

下载方法一

Chromium的源码太大,用官方默认的下载工具,不支持断点续传,下载了无数次都解决不了,于是,我想了一个办法,先下载到国内的云服务器中,因为国内的云服务器是的入口(出口有速率限制)是没有速率限制的,然后再下载到本地。

参考文档:Checking out and building Chromium for Android

下载方法二

需要科学下载谷歌服务器的内容,必须使用http协议下的代理,翻墙推荐:v2ray节点

流程参考官方Checking out and Building Chromium for Windows (googlesource.com)

Windows下的代理客户端V2rayN

下载Chromium源码的方法

设置代理

(1)首先开启代理程序

http代理 - 全局模式

(2)管理员权限下运行cmd

①.git代理设置(sock5和http都支持)

git config --global http.proxy http://127.0.0.1:10809

git config --global https.proxy https://127.0.0.1:10809

或者sock5代理

git config --global http.proxy 'socks5://127.0.0.1:10808'
git config --global https.proxy 'socks5://127.0.0.1:10808'

以上设置对应于上图,请根据实际情况设置

取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

查询代理配置

git config --global --get http.proxy

git config --global --get https.proxy

②.cmd代理设置,由于部分工具只支持http代理,请务必设置http代理

set HTTP_PROXY=127.0.0.1:10809 (注意不要加http://或者https://)

set HTTPS_PROXY=127.0.0.1:10809 (注意不要加http://或者https://)

取消代理

set HTTP_PROXY=

set HTTPS_PROXY=

查询配置

set HTTP_PROXY

set HTTPS_PROXY

③.winhttp代理设置(可以省略此步)

C:\Windows\system32>netsh
netsh>winhttp
netsh winhttp>
netsh winhttp>import proxy source=ie
取消

netsh winhttp>reset proxy
查询

netsh winhttp>show proxy

安装编译

安装与编译参考 https://blog.csdn.net/fleetstar/article/details/111922720

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: