electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.47k stars 1.72k forks source link

productName in the electron builder is not applied. #8165

Open Tuditi opened 3 months ago

Tuditi commented 3 months ago

Specifying the productName in the Configuration file doesn't have any impact. productName specified in the package.json is used. (ref: https://www.electron.build/configuration/configuration#configuration)

Electron builder config:

When logging through the build step we get the following name: Bloom - Alpha

However, when the app opens we see the productName that was specified in package.json.

image

We have a script that solves this issue in the CI by replacing the productName in the package.json before the app is built. It would be good if the documentation would be updated accordingly or if the issue would be fixed in general for future development.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

isti115 commented 1 month ago

Not stale, I'm also experiencing this. Only build-time values seem to be affected by the setting in the electron-builder configuration, at runtime the strings from package.json take over. My example is the name of the folder that gets created in ~/.config under linux.

Edit: This seems to be a duplicate of #6714, I posted possible a workaround there.