How to fetch chromium codes on windows with proxy.

If you can access googlesource without proxy, please refer to:
https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Install


If we have to use proxy, we will encounter connect error when try to do gclient command.

From a cmd.exe shell, run the command gclient (without arguments). On first run, gclient will install all the Windows-specific bits needed to work with the code, including msysgit and python.

First you have to find a proxy that can access googlesource.
Second, let's set up proxy for the shell.
>netsh
netsh>winhttp
netsh winhttp>set proxy xxx.xxx.xxx.xxx:xxx "<local>"
netsh winhttp>exit
>set http_proxy=xxx.xxx.xxx.xxx:xxx
>set https_proxy=xxx.xxx.xxx.xxx:xxx


 Ok. let's do gclient.

Now you can use "fetch chromium" command to checkout source codes.



No comments:

Post a Comment

@qzl/typed-i18n — Our Open-Source Typed i18n Project is Gaining Traction

 Hello everyone! 👋 We are excited to share an update about one of our open-source projects , @qzl/typed-i18n , created by the QZ-L.com team...