-
-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Pre-flight checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project uses.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Forge version
7.11.1
Electron version
39.2.7, 40.0.0
Operating system
MacOS 15.6
Last known working Forge version
No response
Expected behavior
either inform user it's not possible to set electron in package.json, or allow it in a way that it would work (maybe not colliding productName with electron binary?)
Actual behavior
currently if user sets "productName" property in package.json to electron, like
"productName": "electron",
... rest of configand running yarn make|package app will get packaged, but it would be impossible to open it and will result in unexpected error .
Steps to reproduce
in your electron project that is using electron forge to package the app, set packageName field in package json to electron and run yarn make|package
if you create it like
npx create-electron-app@latest electron
and use npm instead of yarn - result will be the same.
Additional information
no additional console output, app opens and immediately exits, sometimes shows that app quit unexpectedly.
