Create an Electron app on Fedora

Austin Cunningham
2 min readJun 15, 2022

Creating the Electron App

Wanted to play around with creating a desktop app with Electron on Fedora. Followed the quick start guide for Electron changing the win.loadFile to win.loadURL to load an existing web app. Code is here here is my main.js

Testing the app by running npm start and the app opens

Building the binary

Again following the quick start guide I get to the npm run make command here is where I hit some trouble

So I install the missing dependencies

sudo dnf install dpkg
sudo dnf install fakeroot

I rerun the npm run make command

So I guess there is another missing dependency I try and install rpmbuild

I figure it rpm related so Googled it and find https://www.redhat.com/sysadmin/create-rpm-package
I install the dependencies from the blog

sudo dnf install -y rpmdevtools rpmlint

And happy days the npm run make completes

It built the deb and rpm bundles, guessing need to be run on windows and mac to build their binaries. More to learn here but that’s all for now.

--

--