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

Specify ELECTRON_MIRROR to a directory/or file on disk #78

Closed
CMCDragonkai opened this issue Mar 11, 2021 · 2 comments
Closed

Specify ELECTRON_MIRROR to a directory/or file on disk #78

CMCDragonkai opened this issue Mar 11, 2021 · 2 comments

Comments

@CMCDragonkai
Copy link

Our build system is reproducible so it does not allow any network access. Is there a way to specify that the installation should just a prespecified file that's on disk or a directory? Similar to the electronZipDir used by @electron-forge/cli?

@milahu
Copy link

milahu commented Sep 3, 2021

maybe populate ~/.cache/electron/ as described in https://github.com/electron/get#how-it-works

the url is in chromedriver/node_modules/@electron/get/dist/cjs/index.js line 46
just add this after line 48

console.dir({ url, cachePath: cache.getCachePath(url, fileName) }); process.exit();

for example

{
  url: 'https://github.com/electron/electron/releases/download/v14.0.0/chromedriver-v14.0.0-linux-x64.zip',
  cachePath: '/home/user/.cache/electron/385ab57c1ff3ee205462577b7d7844ec5661943eda4db02aad16cb90456aab69/chromedriver-v14.0.0-linux-x64.zip'
}

@codebytere
Copy link
Member

Closing in agreement with above.

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

No branches or pull requests

3 participants