question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to override "https://electronjs.org/headers" during electron-builder install-app-deps

See original GitHub issue
  • electron-builder Version: 22.10.5
  • Electron Version: 11.3.x
  • Electron Type (current, beta, nightly): current
  • Target: win

It is not possible to override npm_config_disturl during electron-builder install-app-deps this setting depends on some weird (for me) parameter useCustomDist

https://github.com/electron-userland/electron-builder/blob/a879ba7f02ea704084b9672d6b9c9a47b7e5c27d/packages/app-builder-lib/src/util/yarn.ts#L63

But as I have checked this parameter is always true:

https://github.com/search?q=org%3Aelectron-userland+useCustomDist&type=code

It is important for me to fast fix this, but I am not sure how it should be changed properly (without breaking changes to projects using it).

Why I need this change? I have an environment with restricted network access rules. So I am getting: gyp verb created nodedir C:\Users\Administrator\.electron-gyp\11.3.0 gyp http GET https://electronjs.org/headers/v11.3.0/node-v11.3.0-headers.tar.gz gyp WARN install got an error, rolling back install

I have downloaded all needed files to our secure repository, but I am unable to make it work with the new dist-url.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
mmaiettacommented, Apr 9, 2021
0reactions
stale[bot]commented, Jun 16, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to open electron app after packaging the app using ...
Resolved the issue by adding and using the npm script "postinstall": "electron-builder install-app-deps" . Then, using path.join(app.
Read more >
Native Node Modules | Electron
This module can automatically determine the version of Electron and handle the manual steps of downloading headers and rebuilding native modules for your...
Read more >
electron-builder
Build and publish in parallel, using hard links on CI server to reduce IO and disk space usage. electron-compile support (compile for release-time...
Read more >
A Comprehensive Guide to Building and Packaging an ...
I recently went through the gauntlet that is trying to build and package an Electron app. I say gauntlet as the entire process...
Read more >
electron-builder | Yarn - Package Manager
Quick Setup Guide · Specify the standard fields in the application package. · Specify the build configuration in the package. · Add icons....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found