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

convert angular 4 application to desktop application using electron

I have developed application using angular 4. I need to develop desktop application for this web application . From my initial research i got the best solution is electron. Any one please suggest the steps to convert angular 4 application to…
Sarath
  • 1,459
  • 3
  • 22
  • 38
8
votes
1 answer

How to fix 'The available app icons include a default icon' when publishing an electron app to windows store?

My electron-react project which I have open sourced here : windows-terminal-tweaker After running npm run release from the renderer folder , it builds the app in the renderer/dist directory. The dist/TerminalTweaker directory has all the built files…
8
votes
1 answer

Electron app hangs on quitting even though all quit events successfully fired

I've been trying to debug an issue with our electron app for a while now but it's becoming quite the conundrum. Issue: Intermittently, when using the quit shortcut (cmd+Q), the app UI successfully goes away but it stays in the menu…
Harshyt Goel
  • 81
  • 1
  • 3
8
votes
1 answer

Adding electron application path to user environment variables after install

Problem description: I have an electron application and I need to add the application to user environment variables after users install my application, so that they can run commands like this my-electron-app [] in the terminal to…
8
votes
2 answers

Electron Tray Icon doesn't show after once I package

I've got an Electron app that shows a tray icon, which, when clicked, shows my main window. works great in development mode, but when I package it, (into a .app file), and double click the .app file, none of the menus show up, and more importantly,…
raingod
  • 1,377
  • 1
  • 11
  • 24
8
votes
1 answer

File association with electron builder

I’m making a multi platform application with Electron and I’m trying to make the file association using electron-builder. I’ve added it to the configuration and that works fine, when I double click on a file, it opens the app, which is expected, but…
Javis Perez
  • 4,130
  • 3
  • 23
  • 27
8
votes
3 answers

Application entry file does not exist in Electron Builder

I have a minimal electron app and I am trying to build it (it runs fine). My package.json is "main": "main.js", "scripts": { "start": "electron -r babel-register .", "package": "build --dir", "postinstall": "electron-builder…
Mike M
  • 4,879
  • 5
  • 38
  • 58
8
votes
1 answer

electron-builder - only build for mac but set to build mac and win

This is the first time I am building electronjs app so most probably I don't know what I am doing. I follow the instruction from the github and this. This is my package.json: { "name": "ExampleApp", "productName": "ExampleApp", "version":…
sooon
  • 4,718
  • 8
  • 63
  • 116
7
votes
1 answer

Prisma Client not finding query-engine after electron packages everything

I'm making a project using Electron and Prisma (along with others that we don't have to worry about). I've been trying to solve this error for hours: I can't get Prisma to find the query-engine executable, and I've tried a bunch of things I found on…
Tiago Oliveira
  • 47
  • 1
  • 12
7
votes
2 answers

Problem with app update yml files is not generated in electron?

I have a problem with the auto-update of electron app, After I finished all the app parts and I am trying to push it to my custom update server , I found this error message in my logger : Error unknown ENOENT: no such file or directory, open…
7
votes
1 answer

What is the difference between electron-builder and electron-rebuild?

I am trying to find out the difference between electron-builder and electron-rebuild for compiling native modules. Afaik there are these two options to compile my native module dependencies: electron-builder "Native application dependencies…
Daniel Stephens
  • 2,371
  • 8
  • 34
  • 86
7
votes
1 answer

How to publish Electron app to the app store?

I've packaged the app to mas file for uploading to the App Store. But From Xcode 11, they don't provide an application loader anymore. The Electron doesn't generate the XCode project. In this case, what will be the best solution?
tpikachu
  • 4,478
  • 2
  • 17
  • 42
7
votes
1 answer

Electron App Installation to ProgramFiles

What's the best way to make an electron app installer so that it installs it in ProgramFiles? I am using the electron-builder, but it installs the app in %appdata%
Gaurav
  • 1,214
  • 2
  • 17
  • 32
7
votes
6 answers

How to Change ElectronJS App default Icon?

I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default electron and not the icon I provided as follows: win = new BrowserWindow({ width:…
TheCondorIV
  • 574
  • 2
  • 14
  • 34
7
votes
3 answers

How to route in electron react app during production

I am using electron 6.10.0 and using React.js. In my app, there is an add task option in menu, which creates a new window. Everything works fine during development, but during production this line causes problem. addWindow.loadURL(isDev ?…
CVKM
  • 113
  • 1
  • 6