Questions tagged [electron-packager]
Use electron-packager for questions related to the packaging module for Electron apps
475
questions
0
votes
0
answers
31
views
VueJS 2 electron electron packager error The main entry point to your app was not found. Make sure "background.js" exists
Hi everyone i have made a vuejs2 application with vuetify.
I decided later to add electron to package it. here is my file tree
when i run npm run npm run electron:build shortcut for my package script ...
0
votes
0
answers
15
views
How to convert MEAN Stack application to windows desktop application
I created an application which uses local mongodb server. I can install mongodb on client machine but how can i distribute my api server (express js) and frontend created in angular.
I have gone ...
1
vote
1
answer
32
views
Weird syntaxError after electron app packaging : Unexpected token (
I am currently trying to package my electron app for the first time, and I am encountering a weird bug.
When launching the app.exe, this error message appears :
Uncaught Exception:
C:\ .... \build\...
0
votes
0
answers
38
views
Options for Bundling a Python web server in Electron?
What are some options for packaging a python web server (i.e. flask, tornado, quart, sanic, etc.) that uses numpy inside an electron application?
I took a look at PyOxidizer, but could not find any ...
0
votes
0
answers
25
views
Creating Electron JS health check endpoint or handling http request inside electron application
I want to check the health of the electron application.
Is there any possible way to handling http server side request inside electron JS application other than using node module like express?
i don’t ...
0
votes
1
answer
129
views
cant load react in electronjs
Here is my package.js file
{
"name": "cabed",
"version": "0.1.0",
"private": false,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
...
0
votes
0
answers
77
views
electron-packager from a different angular build output path
I fail to build an electron application from an angular application built in a custom path.
I know electron-packager expect that you have already run the angular build process (ng-build --prod).
That'...
0
votes
0
answers
30
views
how to require modules in electron [duplicate]
I tried to require some modules to be used in my electron app (using electron 22.0.0). However, I am receiving an error: "require" is not defined. The thing is, I've tried many different ...
1
vote
1
answer
183
views
Can't bundle a python code in my electron app
I'm new to electron, so I would like to be able to create an installer for my electron software but when I do a make or package with electron-forge, my python program doesn't start. This is due to the ...
0
votes
0
answers
45
views
Command failed with a non-zero return code (123)
I am running into an issue when I try to generate a build with electron-packager (npx electron-packager . --platform=win32 --arch=x64). On Windows with intel chip (inside guext linux vm) the same ...
0
votes
2
answers
52
views
PYTHON module "requests" not working with packaged electron app
In my electron app I have a python file that has two import statements shown below
import requests
import shutil
The app works fine without an errors in the IDE but after packaging the electron app ...
0
votes
0
answers
32
views
electron-packager deploy and protect source files
I have deploy my electron app with "electron-packager", but i see that the electron-packager include always "resources" folder which has asar file and app folder with all sources ...
1
vote
0
answers
34
views
Best practice to secure an Electron application from Linux traget
I have an Electron application packaged into an asar file. However, it's mentioned almost everywhere that there's no security at all for that format. Everyone can unpack it with
npx asar extract app....
0
votes
0
answers
37
views
Electron app - different build versions - Can you conditionally use different package.json?
I have an electron app that is loading different url based on the APP build version i.e. source code is exactly the same however there are some differences to the app meta itself like different ...
0
votes
1
answer
41
views
Problem with files in packaged Electron app
I'm trying to package app via Electron Forge. Packaging process is finishing, but after running packaged app I receive error in console (some files can't import). Have someone ever had similar issue?
...
0
votes
0
answers
7
views
How do I pull in a supporting json data file in an electron-react-boilerplate app
I created an app using electron-react-boilerplate. I am pulling in a JSON file to serve as a source of data. When I run the build command -
npm run package
I get it successfully packaged. But the ...
0
votes
0
answers
94
views
Electron Package - asar unpack pattern not working
I need to exclude only the "package.json" from the root folder
but at the moment all "package.json" files are unpacked (from node_modules ...)
Electron v18
Electron Package v15.4.0
...
0
votes
1
answer
79
views
Electron Forge doesn't package EXE with my custom ICO
I'm trying to compile my application to EXE with a custom icon using forge.
This is my force.config.js
module.exports = {
packagerConfig: {
icon: './ico'
}
};
ico.ico file is located in the ...
0
votes
0
answers
70
views
How to Auto update using onclick in electronjs
I am developing small application in electronJS and implemented auto update function working fine with log file. but I need with custom window option see attached image could you please update my code ...
2
votes
0
answers
61
views
Create a standalone build for react application using electron
It is my first project in that I'm using electron, I'm dealing with a few problems creating standalone publish from the project.
Here's my electron main.js file:
const path = require("path");...
0
votes
0
answers
212
views
Universal Mac Electron / Quasar Build Arm64 and X64
I have a Quasar / Electron application and I develop it on a MacBook with an Apple M1 Pro Chip. When I try to run it on my old Mac with an Intel chip, I get an error that says: "You can't open ...
1
vote
1
answer
196
views
How Can I replace default Splash Screen in Electron.js package created by Electron Forge
Please I am Working on Project electron
I need to generate .exe using Electron Forge make cli
it is working but it showing default splash screen
attached below :
any one can help me How to re-place ...
0
votes
1
answer
101
views
How to show the custom icon on after installation electron application using electron forge
Thanks in advance.
I have developed one electron application. build process did by electron forge
Anyone has any idea on how to show custom icon on program and features instead of electron default ...
0
votes
1
answer
51
views
Electron: Convert to .exe, problem with .json file (database)
Hello I am currently making a ToDoList with ElectronJs.
My code is working and everything is running smoothly.
I wanted to test the first version of my app on an .exe file.
To convert I use "npx ...
0
votes
0
answers
9
views
Yarn Builder for patch/update
I'm using following command to build a package to distrubte
yarn run electron-pack
It creates a dist folder.
If i want to create a patch for distribution , which command should I use ? I want to make ...
1
vote
2
answers
551
views
Error: Failed with exit code: 1 when try to "npm run make"
I am currently trying to create the executable via this command "npm run make" except that it shows me the error :
`
✖ Making for target: squirrel - On platform: win32 - For arch: x64
An ...
0
votes
0
answers
20
views
Read local files (.html) I clicked with my electron app?
Let's say I bound .html extension to my application on MS Windows, so that all local html files would launch my electron app.
So how do I access the path of the clicked file to load it on the ...
1
vote
0
answers
21
views
How to update the application built by electron-packager?
I have main.ts in which there is such a field
win.loadURL('https://example.com').then();
this thing allows you to update the electron application via github-release
but there is one thing! if I ...
0
votes
1
answer
277
views
How to build an exe for Electron + React
I have been reading documentation and trying so many different things for days now. My electron app works just fine in dev mode, but both electron-forge and electron-builder do not work. My project is ...
1
vote
2
answers
138
views
Can Electron JS execute a child process with a different node_modules context?
I'm using Electron JS to package a node application, but now I need to create a server application which is headless, which will run in parallel to the Electron JS application.
I'd like Electron to ...
0
votes
0
answers
18
views
React files not loading with Electron on prod
After using Electron for a while in dev mode where everything was working fine, I tried to create a build of my app to share it using electron-packager, but I'm getting a blank page.
The thing is I ...
0
votes
0
answers
91
views
electron tabs did not execute the renderer
i started to work with electron tabs and i can show the sites, that i wanted. Now i wanted to show my own little html site in the app.
The HTML site has a button and when you click it, there should be ...
0
votes
0
answers
136
views
Can electron's --log-file flag capture main console logs, or only renderer logs?
I've been trying to figure out a way to log my electron app's main console logs in production, without having to install an additional npm package such as electron-logger. When starting electron ...
0
votes
0
answers
212
views
Electron build commands to generate Windows 10 & 11 exe file
i am new to Electron so I went through all the guick start guides, examples and tutorials. I have build a simple Website that i need to convert with Electron and publish as a Windows exe file.
As i am ...
0
votes
0
answers
76
views
Electron packager built app not fully executable (Darwin/Mac Build)
I've built an electron app which is only executable if I directly execute the file (double click or via Terminal) locates at MyApp.app/Contents/MacOs/MyApp.
When I click the app MyApp.app directly via ...
0
votes
0
answers
115
views
Electron-package build for all architectures and platform together
I am using ubuntu machine 20.x. I am using electron-packager to build electron apps.
I wish to use Electron-package build for all architectures, platform, distributions types like zip, snap, exe, msi, ...
0
votes
1
answer
135
views
express routes give fialed (net::ERR_CONNECTION_REFUSED) in electron app after deployment
I have an electron that also run an express app.
in development mode everything works fine but after deployment and install app, express routes is not working.
//package.json
{
"build": {
...
0
votes
0
answers
64
views
electron js after deploy can not find nod-gyp addon in build folder
I have an electron app and I also use node-gyp to use some native C++ functions.
I first execute npm run build:gyp and then npm run start and everything works fine.
{
"scripts": {
&...
0
votes
2
answers
350
views
Blank screen after packing angular app using electron builder
I am trying to create a desktop application using Angular-Electron, I am using Electron-builder for packing up my application. I can view my application locally by running this command "ng build -...
5
votes
3
answers
802
views
electron-packager Cannot read property 'info' of undefined
I was trying to create package of legacy electron app using electron-packager but got an error like below. I have search several questions in stackoverflow with no luck.
electron-packager . MyApp --...
0
votes
2
answers
534
views
Electron white screen after built with log error not allowed to load resources
I am trying to package my Electron application by using electron-builder. But somehow after succesfully built, When run the application and it only showed the white blank scree. Then when check the ...
2
votes
2
answers
583
views
Including python script in packaged electron app
After packaging my app for a linux system, the python script for doing some background tasks fails to execute, probably because it is not packaged correctly. I've looked through several threads now, ...
1
vote
1
answer
650
views
Electron package app opens on white screen, no errors
I recently just packaged my electron app but when I try to run it, I just see a blank white screen with no errors or anything.
Something I noticed is that when I toggle developer tools and go into ...
1
vote
0
answers
99
views
Why isn't electron builder returning a .pkg file?
so I'll keep it short. I've been following this tutorial: https://www.techandstartup.org/tutorials/release-electron-app-on-mac-app-store
However as you'll see we need a pkg file to be uploaded to ...
1
vote
1
answer
379
views
Electron forge throws '.../python3.8" links out of the package' error when making with asar enabled on Mac
I am trying to distribute an electron project. So I follow the official guide and use electron-forge. Here is my config.forge:
"config": {
"forge": {
"packagerConfig&...
4
votes
0
answers
305
views
Electron app crashing when signed for macOS App Store and deployed via TestFlight in ThreadPoolSingleThreadForegroundBlocking0
I have an electron application that is very basic based off the Quick Start tutorial that simply loads a web page with a link. When I build it with npm run make I can test it and it works great.
When ...
0
votes
0
answers
122
views
My Electron app after packaging doesn't launch
hello guys so basically after packaging my app with multiple packagers it still doesnt want to load the window when i open my .exe file :/
const PHPServer = require('php-server-manager');
const { app, ...
2
votes
0
answers
76
views
Electron app is not available for testing with TestFlight
Need help with uploading app into testflight 🙏
Now we have “not available for testing” error
Maybe it’s because of “Build Platfoms” field is empty
But if we add macosx platform, we run into these ...
1
vote
0
answers
651
views
Building Electron app can't find resources files
I have an electron react app (built with create-react-app) which runs fine in development mode, but when I use electron-packager to publish it both the .css and .js files have the error "Failed ...
0
votes
1
answer
224
views
My build and package gives me an older version of my app
i'm using Electron for the first time and have a problem.
I used a sample to make an app with Angular and Electron. When I changed a little bit i made a build to test if things are right. Since that i ...