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

How to save an image drawn on the canvas in Electron.js

my code to save image is: var fs = require('fs'); const dialog = require('electron').remote.dialog; var canvasBuffer = require('electron-canvas-to-buffer'); dialog.showSaveDialog({title:'Testing a save…
10
votes
1 answer

Getting Code Signature Invalid when opening signed electron app

I'm dealing with this issue for almost two weeks. When I build my electron app in a DMG file, everything works perfect, but when I try to build the app in pkg format to upload to AppStore, I get the following error when opening: EXC_CRASH (SIGKILL…
Faabass
  • 1,394
  • 8
  • 29
  • 58
10
votes
6 answers

Octal escape sequences are not allowed in template strings

I'm building a desktop app using electron and vue, things went normal running the app in dev mode and building it untill the last building by running electron:build but I keep getting this error of Octal escape sequences. I am pretty sure that it…
Hakim Baheddi
  • 237
  • 1
  • 2
  • 10
10
votes
1 answer

Electron-builder - how to run a script after/before installing an app

I have an application written in Electron which uses electron-builder. I want to package the app for Linux (Ubuntu and maybe others too) and Mac. But when the application is installing I also need to run a script used to install some third party…
Alin
  • 420
  • 1
  • 5
  • 17
10
votes
1 answer

Increase Electron Memory limit

My electron app crashes as soon as the memory usage reaches 2,000 MB. I can test it by having this code in my main process file which intentionally raises the memory usage: const all = []; let big = []; all.push(big); for (let i = 0;…
10
votes
2 answers

Use amazon s3 with electron-builder's auto updater

How can I use electron-builder's auto-update feature with Amazon S3 in my electron app? Maybe someone who has already implemented it, can give more details than those which are provided in the electron-builder documentation?
user9773080
10
votes
2 answers

Retrieve or Specify output file name in electron-builder

I am working with electron-builder programmatically to generate installation packages. So far I have this as my utility to create the installation package for the current OS type: const packagejson = require("../package.json"); const builder =…
Ernie S
  • 13,902
  • 4
  • 52
  • 79
10
votes
1 answer

Electron electron-winstaller Set Installation Path for Msi

I'm using Electron and Angular2 to create a desktop application for Windows, and can successfully generate the .exe and .msi files for installation. I use electron-packager to package my electron app packaged electron app After packaging the app I…
vic
  • 103
  • 1
  • 6
9
votes
1 answer

Can you use dotenv in electron production?

I'm building an Electron, React app where I'm in need of a dotenv file. In code, I call my variables with process.env.variable which works fine in development. However, once distributed with electron-builder, the dotenv variables no longer work…
Scorpia
  • 375
  • 4
  • 15
9
votes
0 answers

Sharing code between React, React-Native and Electron

I'm trying to build a project out for all platforms that share code between web, desktop and native applications. Does anyone have experience setting up cross platform code-sharing using react, react-native, electron and webpack and knows some…
Ryne
  • 1,195
  • 2
  • 14
  • 32
9
votes
2 answers

ERROR ITMS-90283: Invalid Provisioning Profile. The provisioning profile included in the bundle is invalid [Missing code-signing certificate]

Version: electron: 5.0.1 electron-builder: 21.2.0 electron-notarize: 0.1.1 electron-webpack: 2.7.4 Working on: MacOS Catalina 10.15 The dmg file is working perfectly. But when I try to verify via Transporter, I am getting the following…
Muhsin Keloth
  • 7,855
  • 7
  • 39
  • 59
9
votes
4 answers

Electron Autoupdater with Private GitHub Repository?

I have implemented Electron AutoUpdater with PRIVATE GitHub Repository as provider to publish electron application. Now, i can publish it using GitHub repository but Whenever AutoUpdater tries to download the updates from GitHub repository,…
CoronaVirus
  • 401
  • 2
  • 7
  • 20
9
votes
1 answer

How can I read values from a static config.json file to TypeScript in a Vue file after running build:electron in Vue CLI 3?

Good afternoon. I was wondering whether it is possible to add a config.json file to a Vue CLI 3 project that can be read at runtime, both during development and production. The config.json file will contain some strings the app can use to change…
stack145
  • 123
  • 1
  • 8
9
votes
1 answer

electron-builder change install directory on Windows

I would like to change the install directory on Windows, my Electron App is built with electron-builder. I've tried putting a installer.nsh file inside the build folder, but it's still the same, it always installs under the default path…
s-leg3ndz
  • 3,260
  • 10
  • 32
  • 60
9
votes
4 answers

registering custom protocol at installation process in electron app

Hi I am new to electron and was wondering how i can register a custom protocol for the app at the time of installation process of the app. I am using electron-builder for building the app. Here is the build build code "build": { "appId":…
Jyotirmoy
  • 91
  • 1
  • 1
  • 4
1 2
3
92 93