Merge pull request #2113 from atom/libchromiumcontent-mirror

Allow downloading prebuilt libchromiumcontent binaries from mirror
This commit is contained in:
Cheng Zhao 2015-07-06 09:52:43 +08:00
commit 07cf2eac4e
2 changed files with 13 additions and 5 deletions

View file

@ -30,10 +30,17 @@ library versions, so we can have the best possible binary size and performance.
## Minimal bootstrapping ## Minimal bootstrapping
All of Chromium's prebuilt binaries are downloaded when running the bootstrap All of Chromium's prebuilt binaries(libchromiumcontent) are downloaded when
script. By default both static libraries and shared libraries will be running the bootstrap script. By default both static libraries and shared
downloaded and the final size should be between 800MB and 2GB according to the libraries will be downloaded and the final size should be between 800MB and 2GB
platform. according to the platform.
By default, libchromiumcontent is downloaded from Amazon Web Services.
If the `LIBCHROMIUMCONTENT_MIRROR` environment variable is set, bootrstrap
script will download from it.
[libchromiumcontent-qiniu-mirror](https://github.com/hokein/libchromiumcontent-qiniu-mirror)
is a mirror for libchromiumcontent. If you have trouble in accessing AWS, you can
switch download address to it via `export LIBCHROMIUMCONTENT_MIRROR=http://7xk3d2.dl1.z0.glb.clouddn.com/`
If you only want to build Electron quickly for testing or development, you If you only want to build Electron quickly for testing or development, you
can only download the shared library versions by passing the `--dev` parameter: can only download the shared library versions by passing the `--dev` parameter:

View file

@ -6,7 +6,8 @@ import platform
import sys import sys
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent' BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
LIBCHROMIUMCONTENT_COMMIT = 'a4410de75315f3ecc00db2314bfab184dcd914f8' LIBCHROMIUMCONTENT_COMMIT = 'a4410de75315f3ecc00db2314bfab184dcd914f8'
PLATFORM = { PLATFORM = {