opkfull.blogg.se

Create windows installer for electron app
Create windows installer for electron app











create windows installer for electron app

It turns out you need to reinstall node_modules and tell npm to use win32 platform prebuilt binaries. Then I discovered the answer buried in the electron-forge docs (of all places). Error while loading shared libraries: libxshmfence.so.1: cannot open shared object file: No such file or directoryįor the longest time I couldn't figure out what to do to solve this.

create windows installer for electron app

Every time I would run npm run start I would get an error stating that a missing shared library couldn't be located. Unfortunately I couldn't even start the app. Using the Windows Subsystem for Linux (WSL) I tried to run the app using npm start. Most of the time I develop using Mac, but since I was building an Electron app I wanted to test if my app still worked on Windows when built. For example, if you wanted to send a command to tell the app to quit, you would do the following: // inside the main process (e.g. The most common way to do that is to use the ipcRenderer to send and receive messages. Communicating with the Main ProcessĪs far as I could tell, the Electron docs do not cover communicating between the app and the main process. Below are some common problems I ran into and their solutions. However, problems arose as I started trying to integrated Electron APIs into my app. The Electron Quick Start Guide was indeed quick and I was able to get my app booted in Electron following their guide without any problems. I found building an app to be the easiest part of the whole process. Prerequisites for Packaging Windows Apps on Macīefore you can package an Electron app, you first must build one.This guide will only cover Electron itself and its various tools. What this guide does not cover are the various ways to integrate Electron into different frameworks, for example Wepback. It will also try to help you avoid the pitfalls I stumbled into while learning them. This guide aims to help you navigate these different tools and how to use them so you can choose the right one for your needs. Each does a slightly different thing and figuring out which one to use to do what I wanted was difficult. Each one claims to be either a "complete tool" or "complete solution" to create, package, and distribute an Electron app. There's electron-forge, election-packager, and election-builder.

create windows installer for electron app

The main problem I had was that there are lots of different tools and ways to package an app. I say gauntlet as the entire process of figuring out all the different ways there are to package an app for distribution was quite exhausting and a bit frustrating. I recently went through the gauntlet that is trying to build and package an Electron app.













Create windows installer for electron app