forge
forge copied to clipboard
Chinese ProductName Garbled & Chinese ProductName with setupIcon building failed
Pre-flight checklist
- [X] I have read the contribution documentation for this project.
- [X] I agree to follow the code of conduct that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
6.4.1
Electron version
v26.0.0
Operating system
Windows 10
Last known working Electron Forge version
6.4.1
Expected behavior
Chinese characters display normally and are build normally
Actual behavior
Chinese ProductName Garbled & Chinese ProductName with setupIcon building failed
Steps to reproduce
package.json -> "productName": "测试中文名" forge.config.js -> makers -> @electron-forge/maker-squirrel -> config -> { setupIcon: 'setupIcon path' }
ref issue #3176 #2443
Guess it may be related to the Squirrel tool, as the exe name generated under out/{productname}win32-x64/ before the electron forge was made can display Chinese normally
Additional information
No response
Is there a good Samaritan who can fix this bug?
测试了几天,终于测试出来怎么打包中文名了,我是打包的linux下的deb包,可以在forge.config.js的文件中修改makers。
makers: [ { name:'@electron-forge/maker-deb', config:{ name:"demo", productName:"中文名称", icon:"/src/*.png" } } ]
same problem in 2025
2025年同样存在问题
me too
This works for me https://exploratory.io/note/exploratory/Enabling-UTF-8-on-Windows-hYc3yWL0