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

electron-builder vs electron-packager

What is main difference between electron-builder and electron-packager. Is there some example projects for both? Which is better for standalone .exe application build?
Ondrej Sika
  • 1,715
  • 2
  • 11
  • 12
58
votes
16 answers

Electron - Not allowed to load local resource

Evening, I'm looking into using electron to package an existing angular2 build. I thought I had a dry run working but the actual packaging seems to be failing (see final step below) and I want to understand why. Here's what I'm doing... Create…
popClingwrap
  • 3,919
  • 5
  • 26
  • 44
44
votes
13 answers

dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib

Using electron-builder to build Windows app, When signing up, I got this error : dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from:…
yiye
  • 863
  • 1
  • 7
  • 8
39
votes
11 answers

Cannot find module 'fs/promises' Electron JS

Good morning, I have created a program in Vue JS, this connects with an API that I have created in a main.js file to execute system commands. The problem I have is that when compiling for production with electron I get the following error: I use…
stillborn1
  • 507
  • 1
  • 4
  • 10
39
votes
2 answers

How to launch my electron app from a website

We have an electron crypto app that signs transactions (among other things). We want other websites to have the ability to have a button that opens that electron app, pre-filled with some params (the transaction information). flow is: user clicks…
Shining Love Star
  • 5,734
  • 5
  • 39
  • 49
34
votes
3 answers

Electron - How to add external files?

I have an Electron app. I try to make the app open an .exe file. I created a directory in the root folder named lib and placed the .exe file there. In development, I have no problem opening the file by using __dirname + '/lib/file.exe, but when I…
user2298995
  • 2,045
  • 3
  • 19
  • 27
28
votes
2 answers

Open app and pass parameters with deep linking using Electron (macOS)

I want to open app and pass parameters with deep linking using Electron (macOS). Project 'electron-deep-linking-mac-win' is on GitHub. Edited package.json, following ‘electron-builder’ quick-setup-guide to produce mac installer: { "name":…
27
votes
2 answers

Run python script in Electron app

I have a Electron project which executes some python script using NodeJS's child_process module. My python script is in the root folder of my project. Here's how I call the python script: let py = spawn('python',['ResolvePosition.py', obsFilePath,…
Jose Hermosilla Rodrigo
  • 3,513
  • 6
  • 22
  • 38
24
votes
3 answers

Where can I find the logs for my Electron app in production?

I've built an app with Electron and used Electron-Builder to create a Squirrel windows installer and updater. It all works great but I'm having trouble debugging the production version of my app. Are the logs created by a console.log written…
Tieme
  • 62,602
  • 20
  • 102
  • 156
23
votes
2 answers

Electron auto updater setup with own server (generic provider)

I have my own server where I uploaded app installer via FTP. Its name is quickmargo Setup 1.0.0.exe and it's available at https://quickmargo.pl/dist/download/quickmargo Setup 1.0.0.exe Also via FTP I uploaded latest.yml to same directory and it is…
BT101
  • 3,666
  • 10
  • 41
  • 90
21
votes
7 answers

Electron create MSI installer using electron-builder

I managed to create an .exe installer for windows using electron builder, I create 2 package.json as pointed out in the docs : https://github.com/electron-userland/electron-builder. I ended up having a folder with a working .exe "dist:win64":…
Aaleks
  • 4,283
  • 5
  • 31
  • 39
19
votes
2 answers

How can I test electron-builder auto-update flow?

I built an Electron app and I am now looking at how to distribute it. I went with electron-builder to handle packaging etc. For a bit of context, as a web developer, I am used to continuously deploy web apps on a web server but I have a hard time…
Kev
  • 5,049
  • 5
  • 32
  • 53
18
votes
2 answers

'GetContents' in 'v8::ArrayBuffer'

I'm using Mac M1 and I've just upgraded to Node 14.17.6LTS. I tried to rebuild better_sqlite3 (7.4.3) using with electron builder (22.11.7) and I'm getting the following errors: no member named 'GetContents' in 'v8::ArrayBuffer' Any ideas how to…
gsy
  • 327
  • 1
  • 4
  • 10
18
votes
6 answers

"GPU process isn't usable. Goodbye."

I'm experimenting with building a Windows and Mac OS app using Electron and have hit a snag. In short, if I try to run the application directly with Electron on Mac OS Big Sur (as opposed to building a Mac app and then running that) I get the…
Arman
  • 219
  • 1
  • 2
  • 8
18
votes
8 answers

electron-builder with browserWindow and preload.js. Unable to load preload script

i`ve a problem with electron-builder and the browserWindows preload option in my main.js: // Create the browser window. mainWindow = new BrowserWindow({ x: mainWindowState.x, y: mainWindowState.y, width: mainWindowState.width, …
Kai Werschmöller
  • 251
  • 1
  • 2
  • 8
1
2 3
92 93