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
18
votes
3 answers

How to add folders and files to electron build using electron-builder

I am creating an electron which running react generated from create-react-app. Then i add nedbjs(a persistence database) and camojs(ODM for nedb) as dependency. To connect react with nedb i use electron ipc. Here is my project structure: And here…
Afdal Lismen
  • 289
  • 1
  • 3
  • 11
17
votes
3 answers

electron-builder, how to set node environmental variables

The Node.js environment in Windows can be set before the server is started, like this: set NODE_ENV=production That NODE_ENV parameter can be used in Node.js or electron by process.env.NODE_ENV. But when I build electron using electron-builder,…
Finn
  • 1,323
  • 5
  • 24
  • 46
17
votes
6 answers

Electron Builder: Not allowed to load local resource: app.asar/build/index.html

I have an issue when using electron builder I got blank page and error in console: Not allowed to load local resource: file:///C:/Users/emretekince/Desktop/DCSLogBook/client/dist/win-unpacked/resources/app.asar/build/index.html main.js const…
Emre Tekince
  • 1,723
  • 5
  • 18
  • 30
16
votes
2 answers

How to fix "Skip checkForUpdatesAndNotify because application is not packed" in electron.js

I'm using "electron-updater" to check for auto-updating Electron application. Calling "checkForUpdatesAndNotify()" function. In a console, I get "Skip checkForUpdatesAndNotify because application is not packed". mac0S Mojave, "electron-updater":…
Jovan
  • 311
  • 2
  • 9
16
votes
2 answers

How to increase the max memory limit for the app built by electron-builder?

Version: "electron": "1.6.2", "electron-builder": "^16.8.2", Target: windows x64 I know I can add --js-flags="--max-old-space-size=4096" when run it using electron. But Where should I put this param to the build config of electron-builder?
user1349923
  • 763
  • 1
  • 7
  • 24
16
votes
2 answers

How to detect that the Electron app is running for the first time?

I'm developing an App using the latest version of Electron-builder (using AutoUpadate). Is there any way to know that the App is running for the first time after installation? Ps: I have tried using electron-config but the user data files are not…
Marcelo Romao
  • 163
  • 1
  • 6
15
votes
2 answers

Can't Add Icon To Electron App With Electron Builder

I have made an app with Electron and am trying to package it with Electron Builder. Link to repository Does not contain node_modules folder: Repo here I have a folder named build with my icon.ico in it and my package.json is as follows: { …
Alex Hawking
  • 1,125
  • 5
  • 19
  • 35
14
votes
1 answer

How to solve this error Module not found: Error: Can't resolve 'fs'

I have created new angular project with electron.I do need to set up the electron. I have got below errors. ERROR in ./node_modules/electron/index.js Module not found: Error: Can't resolve 'fs' in 'D:\PATH\desktop\node_modules\electron' My…
Manoj Ghediya
  • 547
  • 1
  • 7
  • 19
14
votes
3 answers

How to pass an argument to electron when using electron-builder?

I'm building an application with Electron and packaging with Electron Builder. When running electron, I want to pass this command line argument: --enable-mixed-sandbox. Is it possible? How? This: …
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
13
votes
1 answer

I am trying to turn my electron app to windows portable

I have searched a lot, but nothing really helped to build my app as portable. No mater what I do always the result is a nsis. It follows the package.json: { "name": "pvmplayer", "version": "1.0.0", "description": "", "main": "main.js", …
Bill Charlaftis
  • 349
  • 1
  • 3
  • 14
13
votes
3 answers

How to use auto-launch to start app on system startup?

package.json: { "name": "electronapp", "version": "1.0.0", "description": "electron auto-launch", "main": "index.js", "scripts": { "start": "electron .", "build": "electron-packager . --all" }, "author": "ivie", "license":…
user8317956
12
votes
1 answer

How to get Electron-builder to package non-code files for the installer to install them in the user home directory (app-data)

What I want to accomplish: I want to understand how to configure Electron-Builder/Webpack to package non-code files (configuration files, XML files, meta-data files, JSON files) such that when the installer installs the application these files will…
Seth Eden
  • 1,142
  • 2
  • 20
  • 42
12
votes
8 answers

Electron shows white screen when built

I'm learning electron and I've made an electron app that read and create files. When I start the application with npm start or electron . it works as intended: But when I use npm run build or build -w commands, the application built just shows a…
11
votes
0 answers

Automating code signing with EV certificate

Our company is planning to buy the EV certificate for code signing. We have automatic builds that should perform the signing, but from what we read, continuous integration tools will not work since the certificate comes with a hardware dongle. I've…
Ignas
  • 1,965
  • 2
  • 17
  • 44
11
votes
2 answers

What is the purpose of buildResources folder in electron-builder building process?

I'm reading through electron and electron-builder docs, but I still do not quite understand what is the purpose of the buildResources folder? Here's what a configuration doc for electron-builder says: buildResources = build String - The path to…
jayarjo
  • 16,124
  • 24
  • 94
  • 138
1
2
3
92 93