Skip to content

hokein/libchromiumcontent-qiniu-mirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

libchromiumcontent-qiniu-mirror

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

##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

  1. 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

About

Mirrors prebuilt libchromiumcontent binaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages