15,326 questions
Tooling
0
votes
4
replies
28
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 ...
-1
votes
0
answers
38
views
Felica Card Reader isn't detected in built Electron app [closed]
I built an React-Native Electron app to read Felica Card.
I used pcsc-mini package for the card reader, and it works well if I run it in dev mode as following:
npm run electron:dev
But if I build the ...
1
vote
1
answer
24
views
Electron vibrancy not working on macOS, showing solid gray background instead of transparent
I'm new to building Electron apps and was trying to create a transparent, blurred window in a Vite + React + Electron app using vibrancy: 'under-window'.
I checked both the CSS and the BrowserWindow ...
0
votes
1
answer
69
views
How to solve electron-prebuilt-compile build and install error
The project is electron+typescript, I enter two commands npm run build and npm start, it hints need install electron-prebuilt-compile package, as shown image.
https://i.sstatic.net/fyvYMR6t.png
The ...
0
votes
0
answers
55
views
How to automate an Electron app that only opens via a deep-link using Playwright?
I’m trying to automate an Electron desktop application using Playwright, but there’s a complication:
The app cannot be opened manually.
It only launches when an exam link is clicked, e.g., exam://...
-3
votes
1
answer
49
views
electron spawn exe app -> Windows opens Task Manager instead of running the app [closed]
I am using spawn to open exe app, it's open success but behind Window Task manager, can someone help? I am using tablet mode:
kioskProcess = spawn(
'cmd.exe',
[
'/c',
...
0
votes
1
answer
94
views
Getting Deprecation Warning with Electron Builder
I am packaging my Electron application with Electron Builder. The command is:
npx electron-builder build
The build works well enough, but I get the following warning:
(node:27191) [DEP0190] ...
2
votes
0
answers
47
views
I would like to do print a JPG file from my Electron JS App, but it ended with it just print it in a half
I just make a simple photobox electron app. The printable photo is already set in the sessionPath with name "photo_print.jpg". The problem here is the print function is error, the result is ...
1
vote
1
answer
49
views
Registering a protocol handler in Electron
As far as I’m aware, the old way of registering protocols has been deprecated.
In my code I have the following for an internal protocol:
// Before:
protocol.registerStringProtocol(
'doit',...
1
vote
0
answers
32
views
Is it possible to speed up checking a second instance of an Electron Application
From the answer to a question I asked (Electron: Drag and Drop a file on the icon) I have the following code to process files dropped on an icon for a running Electron app:
// main.js
const {app, ...
1
vote
0
answers
68
views
Disable Windows code signing with Electron Builder
I’m using Electron Builder to package my application. I’m doing this on a Macintosh because I can, and that’s my development environment.
The command is:
npx electron-builder build --win --x64;
It ...
0
votes
1
answer
59
views
Electron crash due to libusb conflict between yoctolib-cjs and other USB libraries
I am developing a Windows Electron application and I suspect a USB / libusb conflict between the usb library and Yoctopuce’s JavaScript API (yoctolib-cjs/yocto_api).
When both are used in the same ...
-3
votes
1
answer
87
views
When is the renderer process in Electron application actually ready to listen for the events?
According to my intentions, the application must display the loading screen until FileManager class will finish the initialization. Once this initialization done, the broswerWindow must to submit the &...
Advice
0
votes
2
replies
46
views
What is the Build folder and what is its context in Electron-vite?
I am working on a project using electron-vite and using the @quick-start command for scaffolding the project.
When I used this template, it came with a folder called "Build". I tried to ...
0
votes
0
answers
58
views
Getting feedback from the main process in an Electron app
My Electron app starts with a script called main.js. In amongst various setting up processes:
I create a BrowserWindow called window.
window loads a page called index.html.
index.html includes ...