-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create an installer with electron-winstaller: “Stream was too long” #308
Comments
I think is just:
|
Building for windows x64 on M1 MacOS via electron forge:
My app is 4Gib -- I'm gonna take a look at |
Examination of
The word on the street is that windows doesn't allow exe files over 4Gib though there are ways to tell Windows to load only a specific section of the exe file. Possibly related but I get the gist that's more of a runtime constraint and not a creation constraint. EDIT : Also related the wonderful people at chocolatey apparently got around this via "different methods to create nupkgs". By far the most promising lead. chocolatey/choco#2278 No idea how to package my app for windows with auto-updates lol fantastic. |
Fixed it via using a newer version of NuGet.exe :
You can also use |
I've been trying to create a Windows installer for my Electron application with the electron-winstaller module by running the following code:
However, I keep getting the following error:
The script I ran to create the windows package is this:
With the
asar
option enabled and theprune
flag set to true, I don't see any other options for reducing the size of the app.asar file, which supposedly is too large and causing this issue.I also don't quite understand where the lib/net45/resources/app.asar file shown in the above error message is located; there is no directory named "lib" or "net45" on my system (macOS Mojave).
Here is the detailed result of running the script with the debugging output enabled:
Any suggestion will be greatly appreciated.
The text was updated successfully, but these errors were encountered: