Open Bug-Reaper opened 1 month ago
I may try and build on my x64 Win11 VM to see if error is specific to my M1 mac. Also want to try customNsisBinary but the correct usage is not clear.
Essentially this is the same problem as https://github.com/electron-userland/electron-builder/issues/6738 .
However the fix used there does not fix for me :'(
Build completes with no errors but I end up with an installer.exe that is empty except for the uninstaller.
Continued debug attempts:
$env /usr/bin/arch -x86_64 /bin/zsh --login
before build to see if it did any magic.EDIT: have now also tried:
@latest
^31.3.1After days of all-in debugging for days 10+ hrs I'm happy to report I have some progress.
Was able to get a windows-installer that is functional via the nsis-installer-large-files workaround but only when building on windows x64. The exact instructions were as follows:
C:\Users\user\AppData\Local\electron-builder\Cache\electron-builder\nsis\nsis-3.0.4.1
and "replace all" when prompted.NSIS.exe
from above cache folder and rename newly copied makensisw.exe
=> NSIS.exe
.This type of NSIS build changes the output as a side-effect, you'll see two files now comprise the installer:
Builder should throw an error for large-apps instead of building an unusable nsis installer with no warnings/errors.
I want to check the <installerName>.nsis.7z
file size prior to it making the final exe. Maybe need to PR this upstream @electron-forge-nsis-maker? Does electron-builder use forge for all NSIS builds?
I'm building an NSIS installer for a large electron app on an M1 MacPro. Not getting any errors or anything via command
DEBUG=electron-builder:* electron-builder --windows --x64
....However the result
AppName Setup 0.0.0.exe
file does not work when put on a windows machine. When attempting to launch the installer it cannot find the binary to run see screenshot:Seems like the only thing packaged in the exe is the uninstaller, at least when you browse that's the only thing present. Can also pretty clearly see something has gone awry as win-unpacked is ~4Gib and the installer exe is a mere 300mb.
My NSIS config is as follows: