forge icon indicating copy to clipboard operation
forge copied to clipboard

The function of the maker-squirrel attribute is not explained and the exe file name is garbled.

Open xhc-code opened this issue 2 years ago • 3 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

7.1

Electron version

27.1

Operating system

win10

Last known working Electron Forge version

No response

Expected behavior

What are the functions of title and name attributes? As well as the exe file installed through the installation package, there is no company information when hovering the mouse, and it displays undefined.

The exe file name is no longer garbled

Actual behavior

electron-forge I use @electron-forge/maker-squirrel to build the exe. The name value of this maker cannot be added - it is used to splice multiple words. It is very strange. The title attribute also fails to reflect its role.

After double-clicking the built installation package exe, the installation is successful, but the exe file name specified by the shortcut is garbled. I don't understand why this is happening? But the name of the shortcut is not garbled. image image The exe file names in these two locations are all garbled, and the encoding attribute cannot be found in the document.

https://github.com/electron/forge/issues/3176 The issue of garbled files, but it seems that the fundamental problem has not been solved.

Steps to reproduce

Build script image npm run make

Additional information

It is hoped that the corresponding attributes of the document can supplement their own functions and standardize example values.

xhc-code avatar Jan 17 '24 04:01 xhc-code

The properties of the exe file itself and the Chinese displayed in the details information panel can be displayed normally without garbled characters.

xhc-code avatar Jan 17 '24 04:01 xhc-code

我使用了这个demo( https://github.com/BlackHole1/forge-3176 ) ,未作任何更改,通过npm run make构建后,使用make/x64下的exe进行安装,依旧出现exe文件名中文乱码的问题。

总共就执行了npm install和npm run make这2个命令。

我的环境是win10系统,未开启beta的UTF-8支持。

还有一个未能成功创建快捷方式的错误,以下是日志信息:

[18/01/24 10:43:51] error: IEnableLogger: Failed to invoke post-install: System.InvalidOperationException: 数据包中不存在指定部件。
   在 System.IO.Packaging.Package.GetPart(Uri partUri)
   在 NuGet.ZipPackage.EnsureManifest()
   在 Squirrel.UpdateManager.ApplyReleasesImpl.CreateShortcutsForExecutable(String exeName, ShortcutLocation locations, Boolean updateOnly, String programArguments, String icon)
   在 Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass10_0.<invokePostInstall>b__4(String x)
   在 System.Collections.Generic.List`1.ForEach(Action`1 action)
   在 Squirrel.UpdateManager.ApplyReleasesImpl.<invokePostInstall>d__10.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Squirrel.Utility.<LogIfThrows>d__42.MoveNext()
[18/01/24 10:43:51] fatal: Finished with unhandled exception: System.AggregateException: 发生一个或多个错误。 ---> System.InvalidOperationException: 数据包中不存在指定部件。
   在 System.IO.Packaging.Package.GetPart(Uri partUri)
   在 NuGet.ZipPackage.EnsureManifest()
   在 Squirrel.UpdateManager.ApplyReleasesImpl.CreateShortcutsForExecutable(String exeName, ShortcutLocation locations, Boolean updateOnly, String programArguments, String icon)
   在 Squirrel.UpdateManager.ApplyReleasesImpl.<>c__DisplayClass10_0.<invokePostInstall>b__4(String x)
   在 System.Collections.Generic.List`1.ForEach(Action`1 action)
   在 Squirrel.UpdateManager.ApplyReleasesImpl.<invokePostInstall>d__10.MoveNext()

xhc-code avatar Jan 18 '24 02:01 xhc-code