Skip to content

Package's productName cannot be set to electron (macOS) #1869

@kurekszymon

Description

@kurekszymon

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 config

and 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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions