Questions tagged [electron-builder]

Electron Builder is an open source solution for distribution and auto-update of Electron NPM apps. Use this tag on questions about a) using Electron Builder to distribute or update an Electron app, or b) working with the Electron Builder project source.

Electron Builder is an project that provides distribution and auto-update for Electron-based apps.

Electron Builder provides these services:

  • Management of NPM packages:
    • Native application dependencies compilation
    • Development dependencies are never excluded
  • Management of build versions
  • Code Signing (CI server, development machine)
  • Auto Update support
  • Multiple target platforms and distribution formats:
    • All platforms: 7z, zip, tar.gz, tar.xz, tar.lz, tar.bz2
    • MacOS: dmg, mas
    • Linux: AppImage, deb, rpm, apk, freebsd, pacman, p5p
    • Windows: NSIS, Squirrel.Windows
  • GitHub Releases integration for artifacts

and are used under the hood.

Resources:

1393 questions
6
votes
1 answer

Overriding package.json keys while running npm script command

I have an electron application. My package.json has some app-specific settings like serverUrl, type_of_application etc. I am using these settings in the application. When building an application with electron-builder I want to override these…
Harshveer Singh
  • 4,037
  • 7
  • 37
  • 45
6
votes
3 answers

How to change app icon using electron-builder

I changed my app icon and for some reason I can not update the icon (currently has the icon of an electron). Relevant modules I use: "electron-builder": "5.7.0",  "electron-prebuilt": "^ 1.4.13" my package.json: "build": {     "appId":…
Tom Cohen
  • 95
  • 1
  • 2
  • 9
6
votes
2 answers

How can I bundle ffmpeg in an Electron application

I'm building an Electron application starting from the electron-webpack boilerplate. I found this node module @ffmpeg-installer/ffmpeg which installs a compatible precompiled binary into the /node_modules directory then makes the path of that…
jshbrntt
  • 5,134
  • 6
  • 31
  • 60
6
votes
1 answer

Electron-builder repeatedly asks for macOS keychain permissions

I am attempting to run yarn package against my Electron app. I get to the "Code Signing" step and I am prompted for administrator access to my "System" keychain. I enter my credentials and immediately represented with the prompted for credentials to…
jordan.baucke
  • 4,308
  • 10
  • 54
  • 77
6
votes
4 answers

Set Electron favicon with electron-builder

I would like set new favicon in my Electron App and replace default Electron icon when my app is build. I use electron-builder package. In the doc, i see the icons need to be placed in the build directory. So : And when i build my app, i've this…
s-leg3ndz
  • 3,260
  • 10
  • 32
  • 60
6
votes
2 answers

How to connect barcode scanner in electron ( Node.js )

I want to connect a standard Zebra scanner to an electron ( node.js windows ) application. I want to do it properly , not just set up as a keyboard input. I need some direction - maybe something has been written ( no commercial products please )…
Martin Thompson
  • 3,415
  • 10
  • 38
  • 62
6
votes
3 answers

How to get (tray) icon path/image in electron-builder

I'm using electron-react-boilerplate to develop electron app (which uses electron-builder to pack apps). I want to create tray, but it requires icon path or native image. The question is how to retrieve icon image from electron-builder or how to…
bxpd
  • 61
  • 1
  • 2
6
votes
4 answers

How to install a 3rd party software with electron?

How to install a 3rd party software along with installing of electron app? My example use case is, I want to use ffmpeg inside my electron app, which is supposed to take screenshot from a video. It can be any other software. Can I package the app in…
niksmac
  • 2,667
  • 3
  • 34
  • 50
6
votes
1 answer

Create App installer for windows - Electron (electron-packager, electron-builder)

Can someone help me with the following queries. Whats the difference between the two? electron-packager and electron-builder. I have used both. And both of them creates a .exe file. But the one created with builder can be used independently(requires…
6
votes
1 answer

Sandbox electron app using electron-builder

Is there any option to provide entitlements file while using electron-builder? I want to sandbox my app; but do not see any option in the wiki or docs for electron-builder. Also, electron-builder uses electron-packager underneath and…
Dave Ronak
  • 121
  • 9
5
votes
1 answer

electron-builder error: Cannot find module 'dmg-license'

I am looking for a simple way to build an electron app for macOS, from a linux machine. Unfortunately, the electron-builder -m command doesn't work, here is the full output of the command: electron-builder -m • electron-builder …
TOPKAT
  • 6,667
  • 2
  • 44
  • 72
5
votes
0 answers

On Mac OS after closing the window, it does not reopen from the dock

I have developed an electron application, and after creating its build, installed it in MacBook for testing firstly the app worked fine, but after closing the app by pressing x button on top left corner of the application the window got closed but…
Sameer
  • 61
  • 2
5
votes
0 answers

How to change product version with Electron Builder (Windows)?

I am using Electron Builder to build an Electron app. I would like the executable to have a product version that is different from the package.json version. This is what the build instruction in package.json looks like: "build": { "appId":…
notexactly
  • 918
  • 1
  • 5
  • 21
5
votes
1 answer

How to remove cpp files from production build via webpack?

I use webpack 4 and electron-builder to bundle and build my Electron app. I noticed that native node modules inside the node_modules directory of the app.asar bundle still contain their C++ source files. Is there a way to exclude certain file…
HelloWorld
  • 2,392
  • 3
  • 31
  • 68
5
votes
4 answers

Getting blank screen in windows after electron-builder react electron app

Getting blank screen in windows after electron-builder react electron app. Here is package.json. Getting blank screen in windows after electron-builder react electron app. { "name": "SmallBusinessManagement", "version": "0.1.0", …