You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building packages with electron, that use electron downloader, I am able to set environment variable electron_config_cache which allows me to stop electronDownloader going to GitHub for binaries. (This is particularly important to us as our build machines do not have internet access.)
When running 'npm run dist' on a electron-Builder application, the call to the electronDownload ignores the electron_config_cache environment variable. How do we bypass external calls and pass in a endpoint (and filename) for the electron-builder to use when resolving the pre-built binaries?
Bamboo build log file excerpt showing command run and environment variables:
19-Mar-2018 16:13:39 | Starting task 'Bulid dist' of type 'com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm'
-- | --
Beginning to execute external process for build 'xxx - Electron Container - Node Build and Deploy #12 (JOB1-12)'
... running command line:
/app/dev/node-v8.9.1-linux-x64/bin/node /app/dev/node-v8.9.1-linux-x64/bin/npm run dist
... in: /app/bamboo/bamboo-agent-home/xml-data/build-dir/JOB1
... using extra environment variables:
electron_config_cache=/app/bamboo/bamboo-agent-home/xml-data/build-dir/JOB1/electronbinaries
Bamboo build log file excerpt showing builder still tries to hit the github ip address:
The winCodeSign zip was copied and unzipped in the $HOME/.cache/electron-builder/winCodeSign folder (like mentioned here Issue1859) but it still tries to download the binary from Github.
I also tried setting the electron_builder_cache environment variable, but that gets ignored as well.
What am I missing?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Latest non-beta - 20.5.1
None
Linux 64
When building packages with electron, that use electron downloader, I am able to set environment variable electron_config_cache which allows me to stop electronDownloader going to GitHub for binaries. (This is particularly important to us as our build machines do not have internet access.)
When running 'npm run dist' on a electron-Builder application, the call to the electronDownload ignores the electron_config_cache environment variable. How do we bypass external calls and pass in a endpoint (and filename) for the electron-builder to use when resolving the pre-built binaries?
Bamboo build log file excerpt showing command run and environment variables:
Bamboo build log file excerpt showing builder still tries to hit the github ip address:
The text was updated successfully, but these errors were encountered: