"directories" in the root is deprecated, please specify in the "build"
See original GitHub issueHi, I’m a little new to electron and am currently trying electron builder. I can’t seem to run the programmatic usage of electron-builder or at least I don’t understand the documents on how. Here is my current code:
"use strict"
const builder = require("electron-builder")
const Platform = builder.Platform
builder.build({
targets: Platform.WINDOWS.createTarget('msi'),
config: {
}
})
.then(() => {
console.log('OK')
})
.catch((error) => {
console.log(error)
})
How can I use it programmatically? Thank you.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Can't Add Icon To Electron App With Electron Builder
In this project, I'm saving the icons in the project root directory like below. I don't know where your icon files are so...
Read more >Common Configuration - electron-builder
in the package.json file of your project using the build key on the top level: "build": { "appId": "com.example.app" } · or through...
Read more >electron-builder - npm
A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out ......
Read more >Building ROOT from source
In the following we will refer to the directory where ROOT sources are (e.g. root_src above) as <sourcedir> . Create a directory for...
Read more >GitLab Runner commands
--working-directory, the current directory, Specify the root directory where all data is stored when builds are run with the shell executor.
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
Possibly due to the typo in your path to the .ico file:
I feel like it should be:
If this solved your issue, please be sure to close the issue. Thank you.
I was able to solve this by using NSIS instead.