A Qiniu mirror for the prebuilt libchromiumcontent binaries.
Electron developement requires developers to download the libchromiumcontent binaries hosting on Amazon Web Service, which is not friendly to Chinese due to the Internet traffic.
libchromium-qiniu-mirror will download libchromiumcontent
binaries from
config.py, and upload to Qiniu platform.
##Prerequisties
- Python 2.7
- Qiniu Python SDK
- wget
- curl
##Usage
1. Setup your Qiniu account's access key, secret key and bucket name in ENVIRONMENT
variable.
export QINIU_ACCESS_KEY="<your-access-key>"
export QINIU_SECRET_KEY="<your-secret-key>"
export QINIU_BUCKET="<your-qiniu-space-name>"
2. Run the script to download and upload to Qiniu.
python script/sync.py
##Using in Electron
- Export the mirror address to
LIBCHROMIUMCONTENT_MIRROR
environment variable through the following code:
export LIBCHROMIUMCONTENT_MIRROR="http://7xk3d2.dl1.z0.glb.clouddn.com/"
Currently the mirror supports both Dev&Release binaries(libchromiumcontent.zip
,
libchromiumtcontent-static.zip
), and
config.py
commit starting from atom/electron@7b955fe
##Sponsors
##License
MIT