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.

"directories" in the root is deprecated, please specify in the "build"

See original GitHub issue

Hi, 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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
phuzecommented, Dec 13, 2017

Possibly due to the typo in your path to the .ico file:

buildResources: “./src/clients/clietn/icon.ico”

I feel like it should be:

buildResources: “./src/clients/client/icon.ico”

If this solved your issue, please be sure to close the issue. Thank you.

0reactions
daffylumampaocommented, Dec 14, 2017

I was able to solve this by using NSIS instead.

Read more comments on GitHub >

github_iconTop 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 >

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