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.

electron-builder structure change

See original GitHub issue

^ on electron-builder package, on fresh installs is pulling in a version that has a different structure and breaks the install-app-deps helper.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Kaffiendcommented, Jan 25, 2018

so this happens when you install with npm, instead of yarn. Both should be supported. yarn does not install the electron-builder-lib package but npm does. Maybe we can change the build process to utilize the electron-builder install-app-deps command instead or we can simply put in a quick fix to handle which ever exists after install for the correct path in the script.

1reaction
bind-almircommented, Jan 21, 2018

I can confirm this issue in my case too.

Changing line number 3 inside config/install-app-deps.js from: const installOrRebuild = require('electron-builder/out/util/yarn').installOrRebuild; to: const installOrRebuild = require('electron-builder-lib/out/util/yarn').installOrRebuild;

resolved issue for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Configuration - electron-builder
Common Configuration. electron-builder configuration can be defined. in the package.json file of your project using the build key on the top level:.
Read more >
How to modify the folder structure of app.asar when using ...
I found out what was the problem was. Apparently, when electron-builder sees that react-scripts are in the dependencies it automatically ...
Read more >
Packaging and distributing Electron applications using ...
To package an Electron application, we need to provide electron-builder a configuration that specifies the application name, icons, ...
Read more >
Using electron-builder
All builds produced by electron-builder can be found within the build directory. Building. npm run build. Building unpacked directory. Produce simple executable ...
Read more >
Build Instructions | Electron
Follow the guidelines below for building **Electron itself**, for the purposes of creating custom Electron binaries. For bundling and distributing your app ...
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