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
5
votes
2 answers

How to read from .env file in electron-builder yaml config file?

I am new to electron. I have an angular application wrapped in electron that I want to build the package/installer using electron-builder. I am using electron-builder-config.yaml file to build the installer. I would like to know how do I read values…
5
votes
0 answers

How to test MAS package locally?

I'm trying to create a package for the Mac App Store using Electron 6.1.9 and Electron builder 21.2.0. I sign the package with "3rd Party Mac Developer Application" and "3rd Party Mac Developer Installer" certificates and an am using a proper…
user2297996
  • 1,382
  • 3
  • 18
  • 28
5
votes
5 answers

Electron: Windows alternative for app.on 'open-file'

I am building an Electron app for editing .txt files on a windows computer. I have used electron builders fileAssociations to open .txt files however I cannot get the path of the file. When I looked in the Electron docs I found this which is exactly…
Alex Hawking
  • 1,125
  • 5
  • 19
  • 35
5
votes
0 answers

Can't run a custom fork of electron-builder

I'm using electron-builder (20.44.4) for installer/updater functionality in my electron application. There is a problem with it that it does not allow to customize the folder where updates are saved - it has just an method which does not support any…
Alex Keene
  • 211
  • 1
  • 4
5
votes
0 answers

How to expose a module from an Electron app to an external module

I am creating an Electron app and am using electron-builder to package and build the app. Users are able to make plugins for the app (plugins can be node modules with their own dependencies and such). Everything is working fine except the part of…
Bondsmith
  • 1,343
  • 3
  • 13
  • 27
5
votes
5 answers

How to change electron-forge default port?

I can't find reference about this anywhere in their website/docs. I need to change this to another port, currently it's stuck in 3000. Here's how I create an electron project with electron-forge yarn create electron-app my-new-app…
DennyHiu
  • 4,861
  • 8
  • 48
  • 80
5
votes
0 answers

Why is my yarn install / yarn add extremely slow?

Terminal output showing how long my yarn install is taking I'm making an electron / vue desktop app, and using yarn to manage dependencies. Since I added firebase and firebase-tools as dependencies, yarn install is now unbelievably slow. I'm not…
5
votes
1 answer

compress the size of electron application

I have developed angular-electron app.Its a simple app but its size is 159Mb.I have used electron builder for building the electron app and included auto-update package.when I unpacked asar file,it had node modules .when I specified not to include…
Karthi
  • 3,019
  • 9
  • 36
  • 54
5
votes
4 answers

Electron auto update fails silently when installing update on Windows

I have an electron app which uses electron-builder for building, packing & publishing the app. I have the following auto-update code: autoUpdater.logger = log; autoUpdater.logger.transports.file.level = "info"; autoUpdater.autoDownload =…
Katie
  • 1,498
  • 1
  • 15
  • 33
5
votes
0 answers

Unneeded files in node_modules directory?

Looking at the package contents of an Electron OSX app, I see that there is a lot of node module cruft included which isn't needed at runtime and which add to app size bloat. For example, that lightgallery "demo" directory, in the first image below,…
spring
  • 18,009
  • 15
  • 80
  • 160
5
votes
2 answers

Loading preload script in Electron and Vue

I am using Vue CLI 3 and vue-cli-plugin-electron-builder to package my Vue Electron app and I am not able to get my preload.js script for electron working. main window win = new BrowserWindow({ width: 800, height: 600 webPreferences: { …
Jan Vorisek
  • 530
  • 1
  • 7
  • 17
5
votes
1 answer

How can I rebuild zeromq.js bindings for electron version 4.1.4?

In attempting to use zeromq.js in an Electron app, I found that the NODE_MODULE_VERSIONS did not appear to match: Uncaught Error: Cannot open /home/XXXX/ptt_geo/ptt-geo-fork/src/webapp/node_modules/zeromq/build/Release/zmq.node: Error: The module…
stix
  • 1,140
  • 13
  • 36
5
votes
2 answers

How do I retarget poorly targeted build files in a React + Electron app?

I'm trying to build a desktop app using react & electron. I can build the project with npm start build but when I run the executable, I get a node app with a white screen because the app can't find the resources it needs. those errors are: Failed…
Arcandio
  • 310
  • 2
  • 13
5
votes
0 answers

Electron MediaPlayPause globalShortcut binding on macOS Mojave

I'm working on a media player using Electron and I want to use the globalShortcut feature, but I noticed the Media Play/Pause (MediaPlayPause) accelerator is not registered successfully on macOS 10.14 Mojave unless the app has been authorized as a…
5
votes
2 answers

electron-builder not working for production due to path

everyone I created a React app in order to build an electron app. I'm trying to use electron-builder to create the installers. I'm working on Ubuntu trying to generate a .deb. I didn't use create-react-app, I used a boilerplate I already had, but I…
Victor Ferreira
  • 6,151
  • 13
  • 64
  • 120