Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can electron-builder change electron download source? #920

Closed
FTAndy opened this issue Nov 17, 2016 · 2 comments
Closed

can electron-builder change electron download source? #920

FTAndy opened this issue Nov 17, 2016 · 2 comments
Labels

Comments

@FTAndy
Copy link

FTAndy commented Nov 17, 2016

  • Version:
  • Target:

electron-packager can download electron with --mirror options, seems electron builder can not do this. Any way to download electron faster ?

@develar
Copy link
Member

develar commented Nov 17, 2016

Please see https://github.com/electron-userland/electron-download

You can set the ELECTRON_MIRROR or NPM_CONFIG_ELECTRON_MIRROR environment variable to use a custom base URL for grabbing Electron zips.

@FTAndy
Copy link
Author

FTAndy commented Nov 18, 2016

@develar

function createDownloadOpts(opts: any, platform: string, arch: string, electronVersion: string) {
  const downloadOpts = Object.assign({
    cache: opts.cache,
    strictSSL: opts["strict-ssl"]
  }, opts.download)

the options doc does not declare the build.download options. i add a pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants