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
7
votes
1 answer

Build standalone .exe from electron app using electron-builder

I'm using electron v6.0.9 with electron-builder v21.2.0. Here is the packaging configuration from my package.json for a production build. "build": { "appId": "com.app.prototype", "productName": "Pluto", "copyright": "Copyright © 2018…
Kiran Maniya
  • 8,453
  • 9
  • 58
  • 81
7
votes
0 answers

Remove app data on uninstall on mac in Electron js

I have created an electron app and built it using electron-builder On app uninstall I need to delete the data that localStorage, kind of access tokens, etc. In windows there is nsis - deleteAppDataOnUninstall: false , which is solving my issue, but…
7
votes
1 answer

Building Electron Application with electron-builder in Angular 5

I am creating an electron application that is utilizing an Angular 5 application as the front end. I am able to run the application in a development mode by running npm run build && electron . to trigger the electron instance and load up the angular…
Dan Patil
  • 771
  • 6
  • 15
7
votes
1 answer

Include a folder and the files inside it to electron build using electron-builder?

I have a few JSON files inside a directory named data in the working directory of my Electron project. I succeeded in building the app using electron-build with the following configuration (package.json). { "name": "My App", "version": "0.0.9", …
Abhijith C S
  • 89
  • 1
  • 9
7
votes
2 answers

Electron builder - GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"

I have an electron app for which I want to set up an auto-updater. I followed this blog post and made a small demo, it worked great with some small changes. Then I tried to implement it with my real project and now I am getting an error. GitHub…
www.amitpatil.me
  • 3,001
  • 5
  • 43
  • 61
7
votes
3 answers

electron builder app size is too large

I find that the MyApp.exe file generated using electron-builder is nearly about 500M. I am not sure what I did because previously, just for ia32 or x64, it would be around 196M. I also looked at this link and it mentions only about 55MB-60MB. So the…
Arun Krishnan
  • 211
  • 1
  • 3
  • 10
7
votes
3 answers

Packaging Keytar with an Electron app

I'm using electron-builder (16.6.2) to package my electron application which includes keytar (3.0.2) as a prod dependency. package.json file includes: "scripts": { "postinstall": "install-app-deps", "compile:dev": "webpack-dev-server --hot…
Kevin
  • 101
  • 1
  • 6
7
votes
3 answers

How to add an icon to electron application

I've got my electron build files for a win .exe and installer but the icons aren't mine. In my main.js file, I have code to attach the icon but I can only make it work inside of the createWindow function. Outside the function, I get an error…
Tim
  • 79
  • 1
  • 1
  • 3
7
votes
2 answers

How to use Google's reCAPTCHA in an electron app?

Google's reCAPTCHA is domain specific so when used in an Github's electron app, it gives the following error ERROR for site owner: Invalid domain for site key. Possibly because in an electron app the files are loaded with file:/// protocol and hence…
BiJ
  • 1,639
  • 5
  • 24
  • 55
7
votes
2 answers

How to create release channels with electron/electron-builder?

I have an Electron app where I want to introduce parallel release channels: stable, next (for early adopters) and dev (for testing the latest build). These will have a branch each, with new features appearing first in dev, progressing to next for…
Keith
  • 150,284
  • 78
  • 298
  • 434
7
votes
1 answer

Managing application settings in an Electron application

I'm curious to know how can one manage application settings in an Electron application? I have found some excellent resources here (Where to store user settings in Electron (Atom Shell) Application?, for example) and elsewhere when it comes to…
Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
7
votes
1 answer

Codesign Electron App - How to gracefully switch certificates?

I have an electron app that originally was distributed with a certificate for an individual developer. I'd like to now sign the next update to that app with a certificate from my organization, but when I do so, existing installations (upon auto…
6
votes
0 answers

ExtensionLoadWarning: Warnings loading extension at .... Electron js And Vue2

I am developing a project with vue2-electron builder. But when i run this code, its not displayed. The error is; (node:10500) ExtensionLoadWarning: Warnings loading extension at…
fsk
  • 219
  • 2
  • 14
6
votes
0 answers

Auto update doesn't work : MAC os Target .pkg

Previously we were using .dmg target and published on the S3 bucket, So on S3 and electron app it creates latest-mac.yml and app-update.yml files automatically, and for the next version app automatically update. But Right now we are using target as…
6
votes
1 answer

Electron Js - A javascript error occurred in the main process

I have created an electron project which is working fine but when I try to package an electron app using electron packager and then run it. I am facing an exception Uncaught Exception: Error: Cannot find module Require…