I'm using electron-forge and Squirrel.Windows, if I set a Chinese name in package.json, such as "name": "测试", it warns:
String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".
So how do I set a Chinese app name in Electron?
Given that you're using
electron-forgeandSquirrel.Windows, you can set a ChineseproductNameinpackage.jsonto achieve a Chinese app name, in your case:"productName": "测试".