Home > Technology > Sync Chromium src behind proxy

Sync Chromium src behind proxy

Official guide to fetch and build Chromium:
You may encounter connection problem when you try to update using gclient.bat, when you local network is behind a proxy.
Below settings work for me:
  • Install depot_tools
  • Open powershell as administrators and set proxy in netsh>winhttp> set proxy. Backup existing settings before set new one.Set http_proxy and https_proxy in environment variable.
  • Edit cipd.ps1, force use proxy for System.Net.WebClient.

$proxyAddr = "http://proxy_address:proxy_port"
$proxy = new-object System.Net.WebProxy
$proxy.Address = $proxyAddr
$wc.proxy = $proxy

  • Run gclient.bat to update cipd client.
  • Restore cipd.ps1
  • Follow the official guide to fetch the code.
  • Run netsh>winhttp again to restore original proxy settings.
Categories: Technology
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: