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:
- Created 6 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
so this happens when you install with
npm
, instead of yarn. Both should be supported.yarn
does not install theelectron-builder-lib
package butnpm
does. Maybe we can change the build process to utilize theelectron-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.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.