450 questions
0
votes
0
answers
59
views
Using Dotenvx with Electron, Electron Forge, & Webpack
I am trying to decrypt and import my env variables with Dotenvx. Previously we were using the traditional dotenv package which all worked. We want to switch to dotenvx for the encryption capabilities ...
3
votes
0
answers
164
views
Embedded static build in iframe (Electron Forge + Vite)
In principle, all I'm looking to accomplish is embed a static build of a web app into an electron powered vite app.
Context
== File Structure ==
- public/
| - static_build/
| - index.html
| - ...
...
Tooling
1
vote
5
replies
149
views
Large build size for Electron app using vite and electron-builder due to node_modules
I have an Electron app that I build using webpack + electron-forge. I consider to migrate to vite + electron-builder. The migration succeeded quite smoothly, and dev experience with vite is way better ...
0
votes
1
answer
79
views
How can I import React components in an Electron app?
I am trying to import a React component Menu.jsx from App.jsx in my Electron app. No errors are showing up, but nothing is being rendered and are not added to the DOM (the body is empty when I looked ...
0
votes
0
answers
66
views
Issue with electron forge
I am building an electron app with preact + typescript with vite tool.
below is my vite config
import { resolve } from 'path'
import obfuscatorPlugin from "vite-plugin-javascript-obfuscator";...
0
votes
0
answers
36
views
Electron PDF download button doesn't work
I'm using electron as browser to load remote pages, when I open a PDF the default PDF viewer is opened but the file download button doesn't work and doesn't throw any error:
This is the package ...
0
votes
1
answer
54
views
how to insert a command-line program in the package
I have a command-line program, say "myprogram.exe" installed in the resources directory of my nodejs-electron application.
I run my electron application via "npm start" with no ...
1
vote
1
answer
365
views
How to properly include SQLite3 with an Electron, Electron Forge, Sequelizer set-up in production?
I've been trying to set-up a working Electron application using Electron Forge with Sqlite3 and Sequelize. This has worked great up until where I need to actually build and package, and distribute the ...
0
votes
0
answers
60
views
Can the electron-forge packaging entry point be configured dynamically?
We are building an Electron application, and we are using Electron Forge to do the build. But we have the requirement of having different builds with different capabilities, although a lot of the ...
2
votes
2
answers
124
views
How to disable Electron.js panel window movable area click event on macOS?
In Electron.js, a panel type Browser window has an approximately 28-pixel top area that acts as a moveable area. Clicking in this area focuses the application, bringing the app menu to the top taskbar,...
1
vote
0
answers
74
views
Is there a way to get normal output from electron-forge commands?
We have recently added some Electron apps into our application suite, and these are being packaged up with the command electron-forge package.
Unfortunately, it looks like that command is doing all ...
0
votes
1
answer
115
views
How do I import js files in a worker_thread when using Webpack and Electron Forge?
Electron Forge and Webpack cannot do worker_threads if the worker imports something.
We'd want to do this to do heavy computation without blocking the main thread, allowing the UI to remain responsive....
3
votes
2
answers
1k
views
Cannot find module 'better-sqlite3' after building Electron Forge Vite app (on Linux)
I'm trying to develop an Electron Forge Vite app that uses better-sqlite3 as database. It works fine in development environment but after I build a .deb package to test it outside development (I'm on ...
1
vote
1
answer
45
views
File path ignoring variable value during resolution with webpack
I have a switch statement that selects a file. Webpack always sets the file to the wrong file on Linux.
The code below is the code that sets the file.path
let libDir = ''
let libName = ''
switch (...
3
votes
1
answer
371
views
Error packaging electron app that uses local files
I created an App using electron that interacts with local files using IPC. When i run it using npm start, éverything works as excpected, but when i try to package the app into an .exe file using the ...
1
vote
0
answers
90
views
I am using Electron Forge, how do I define which languages are displayed in the Mac App Store?
As shown in the picture, I would like to change the language displayed here.
I haven't set it before, but it displays many languages, and our application actually only supports some of them.
I tried ...
0
votes
1
answer
141
views
What is this other TeamID? mapping process and mapped file (non-platform) have different Team IDs
I am using VS Code, not Xcode. I am getting this signing error from sqlite3:
(code signature in
'/private/var/folders/rb/p1qyx7yn6tb043v2hk3wcgyh0000gp/T/.com.electron.artfolio.gDBTGz'
not valid for ...
2
votes
1
answer
144
views
An unhandled rejection has occurred inside Forge: HttpError: Not Found when publish electron-forge
when i tried to publish my electron-forge vite
this is my forge.config.js
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/...
1
vote
3
answers
2k
views
How can I use native Node modules in my packaged Electron application?
I know this question have been asked quite frequently all over the web, but I can't find any answer that resolved my issue, so I'll try to ask with my own specifications.
I am building a desktop ...
1
vote
1
answer
99
views
How to prevent .rpm installer built using electron-forge from over-writing system files (e.g. bzip.lib)
We've a cross-platform electron app that we're packaging using "electron-forge". We build installers for different OS platforms, i.e. msi for Windows, .rpm for RHEL, .deb for Ubuntu, and ....
2
votes
1
answer
491
views
Use isolated world API in electron renderer
I have created my Electron App with
create-electron-app $projDir --template=vite-typescript
In my BrowserWindow's webpreferences I have set
contextIsolation: true
nodeIntegration: false
I have ...
0
votes
1
answer
122
views
Electron: How to detect if window is maximized to change maximize icon
I've made a custom titlebar in electron with the icons taken straight from the Windows UI kit.
How can I detect whenever the window is maximized, whether it's by double clicking the titlebar or ...
0
votes
1
answer
194
views
Electron forge wix maker & electron-updater
i've application that can run and update whenever new version released without no issue using squirrel build in electron forge. also it will update application automatically based on URL i've ...
0
votes
1
answer
520
views
Code Signing using Electron Forge for Windows
I want to code sign my electron application using sectigo EV USB which is using electron forge to package the app and wix-msi maker.
After referring to wix-msi config options I was able to make use of ...
1
vote
0
answers
47
views
AntD tabs component: changing value inside of react component from another file
File Structure:
-Assets
|-TabHandler.jsx
App.jsx
Ok, I have a react component TabHandler, this is a tabs component from Ant Design:
/* Assets/TabHandler.jsx */
import React from 'react';
import { Tabs ...
1
vote
1
answer
97
views
Electron app installation is finished, but it doesn't prompt anything after that [closed]
i've electron app that bundled using electron forge. By the way this app can run locally without no issue, i'm so confused.
even when i run the win32-x64 it got no issue.
But whenever i install the
...
0
votes
1
answer
338
views
Failed to rebuild and start electron app using nodejs v18.20.3
i've electron app that currently running using elecron forge.
the issue is appear whenever i tried to start the project using command
npm run start
It will not working, if i have dependencies on ...
0
votes
1
answer
220
views
How does electron-forge/publisher-github work?
I have my created my github token and set GITHUB_TOKEN value in my env, but I get to the "distributables" step which is strangely misspelled and then it dies. Its like its looking for a ...
4
votes
1
answer
818
views
Electron Forge + SerialPort native dependency packaging not working
I am working on an open source firmware update app for Meshtastic (https://github.com/medentem/electron-flasher/). The app is a ReactJS/TS app bundled with Vite for Electron. When running locally on ...
-1
votes
1
answer
337
views
Yarn make with electron-forge not working, error on RPM
First of all i'm VERY new to coding and i'm just following and reading documentation
I'm making a bluesky electron app, but when using yarn make or npm run make I get the followed error:
❯ yarn make
...
1
vote
0
answers
63
views
Multiple executables using electron-builder
I have written an electron app that shows notifications to my users. I have packaged this app using electron-builder / electron-forge. I also have written code for the app to have a screensaver ...
0
votes
0
answers
47
views
ElectronJs require is not defined
I am trying to make an video recording software following tutorial https://youtu.be/3yqDxhR2XxE?si=vL0Se4LtEw0nkzkR
<!--index.html-->
<!DOCTYPE html>
<html lang="en">
<...
0
votes
1
answer
228
views
How to add an external folder to the setup bundle in electron-forge?
I'm using electron-forge + vite + typescript and I have a folder that I want to be added to the setup file including its files when I run npm run make, so when I install the app this folder appears in ...
2
votes
1
answer
224
views
Absolute path after building app by webpack with webtorrent and electron
I have an app with electron forge, webtorrent and webpack. I created it using 2 commands:
npm init electron-app@latest my-app -- --template=webpack
yarn add webtorrent
Add import to main.js
import ...
0
votes
0
answers
919
views
Starting an ElectronJS project but encountering this when running npm start: The SUID sandbox helper binary was found, but is not configured correctly
I am trying out ElectronJS for the first time as it seems like a pretty neat framework. I am working off of a Windows Subsystem for Linux. I managed to create my app using the following line
npx ...
1
vote
0
answers
122
views
I am unable to load an image from url in my electron app
I'm using Electron with create-electron-app with Webpack template along with React and Tailwind.
I'm trying to load an image from URL like this "https://i.ytimg.com/vi/C2QCuBX_byg/maxresdefault....
6
votes
1
answer
1k
views
Code Signing in ElectronJS on Mac with Electron Forge: Can't get it to sign correctly
I am having the darnedest time trying to sign and notarize my code on Mac. Here is my forge.config.js section:
osxSign: {
identity: settings.osx.identity,
'hardened-runtime': true,
...
0
votes
1
answer
238
views
Electron Forge App: Issues with Executable File Location in Release Build
I have an Electron Forge application designed to launch a Django server (on Windows). The Django server is compiled into an executable file using PyInstaller. The Electron Forge application invokes ...
1
vote
0
answers
184
views
Webpack HTML loader doesn't work along with CSS loader
Issue
I'm creating a project with Electron Forge and webpack. I added a 'public' directory to my project, and a HTML-loader plugin to resolve the imports in the HTML files.
Some parts of my webpack ...
0
votes
0
answers
157
views
An unhandled rejection has occurred inside Forge: Error: EACCES: permission denied, scandir
I have an Electron app that I'm trying to package for Flatpak with Electron Forge, but I keep running into this permissions error. I've made sure that the /tmp/electron-packager directory has the ...
2
votes
1
answer
3k
views
Electron Forge + ESM
I've been trying to make a project created via Electron Forge to work with ESM.
At this point, ESM is mostly a must, since required libraries are exporting only to ESM and using older libraries is not ...
0
votes
1
answer
315
views
Electronjs + Sequelize + SQLITE3 + VITE
I can't load extra file in main process.
I'm trying to use sequlieze and sqlite3 with electronjs but this error blocking me.
How can i fix this?
Thank you.
Error: Cannot find module './database/models/...
0
votes
0
answers
318
views
Run a backend server upon start in electron app
I have an electron app (created using electron forge) that uses Flask (python) for the backend. I'd like to start the whole application (flask and electron) from electron itself by starting a child ...
1
vote
1
answer
679
views
Electron Forge does not pass specific `arch` for universal Mac builds
We are using ffmpeg-static in our Electron app, and creating a universal mac build via electron-forge and under the hood electron/universal. But only the arm64 ffmpeg binary exists in the final app. ...
0
votes
2
answers
404
views
Cannot set up Vue DevTools plugin in electron Vue3 Vite app
I am trying to create an electron application using electron forge, Vue3 and Vite by following the instructions at https://www.electronforge.io/guides/framework-integration/vue-3 .
I have modified the ...
-1
votes
1
answer
144
views
Electron Forge complains I need Git (but I have Git installed)
I have my electron.js project completed. Since I want to have an installer working, I have turned to Electron Forge.
I followed a tutorial online and I got an error in my Microsoft Code IDE that Git ...
1
vote
1
answer
521
views
How can i fix Electron problem: Error: ENOTDIR, not a directory?
I'm using an electron for the first time. I ran into a problem when building the application. I do everything according to the documentation, I use electron-forge. npm run make runs without problems, ...
1
vote
0
answers
215
views
Electron Forge resolving path to node module using absolute path rather than using relative path
I'm trying to create an app that include the get-windows npm package, but I cannot distribute my app because Electron Forge is using resolving the package to an absolute path rather than a relative ...
0
votes
0
answers
2k
views
How to add `tailwindcss` to my Vue + Electron Forge project?
I'm doing my first sample project using Vue + Electron Forge with the template vite+typescript. Now I want to add tailwind but I can't seem to find any useful documentation online.
This is my project ...
1
vote
1
answer
211
views
Electron Forge with Vue 3 integration doesn't work
i want develop an Electron app integrated with Vue 3 using electron forge.
I've followed this official documentation
Electron Vue integration .
But when i run the command
npm start
the application ...