forge icon indicating copy to clipboard operation
forge copied to clipboard

Chinese ProductName Garbled & Chinese ProductName with setupIcon building failed

Open dtboy1995 opened this issue 2 years ago • 5 comments

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

dtboy1995 avatar Aug 23 '23 13:08 dtboy1995

Is there a good Samaritan who can fix this bug?

whl88 avatar Oct 25 '23 12:10 whl88

测试了几天,终于测试出来怎么打包中文名了,我是打包的linux下的deb包,可以在forge.config.js的文件中修改makers。

makers: [ { name:'@electron-forge/maker-deb', config:{ name:"demo", productName:"中文名称", icon:"/src/*.png" } } ]

caiiiac avatar Dec 07 '23 03:12 caiiiac

same problem in 2025

kunglin avatar May 12 '25 04:05 kunglin

2025年同样存在问题

me too

iHaroro avatar May 12 '25 07:05 iHaroro

This works for me https://exploratory.io/note/exploratory/Enabling-UTF-8-on-Windows-hYc3yWL0

yangsengui avatar May 13 '25 06:05 yangsengui