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

Windows NSIS Installer license is cut off at 126 Byte #8294

Closed philkrpp closed 2 days ago

philkrpp commented 1 week ago

Hello all,

in our latest Windows NSIS installer I recognized that the license page does not contain whole content. It is always cut off when I am building on macOS at 126 Bytes. When I am building on Windows it seems to be fine with length but special characters (like in German äöü) are only displayed in cryptic characters.

macOS Sonoma 14.5 (MacMini i7 and also Mac Studio M2 Pro Max tested) Windows 11 Pro 23H2 22631.3810 x86

Does anyone faces same issue?

Here is simple code for reproduction: electron-builder-test.zip

macOS Build: CleanShot 2024-07-04 at 08 05 59

Windows Build: CleanShot 2024-07-04 at 08 10 05

orlv commented 3 days ago

Hello, have you found a solution?

philkrpp commented 2 days ago

Unfortunately not yet. My workaround is to build macOS on macOS and Windows on Windows. I replaced all special characters like "Ä" to "Ae" and build the new version...

beyondkmp commented 2 days ago

@philkrpp For Windows Build, If we change license file's encode to utf-8 with bom, it works well. image image