Comments (5)
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.
from electron-builder.
Essentially this is the same problem as #6738 .
However the fix used there does not fix for me :'(
from electron-builder.
Build completes with no errors but I end up with an installer.exe that is empty except for the uninstaller.
Continued debug attempts:
- Tried
$env /usr/bin/arch -x86_64 /bin/zsh --login
before build to see if it did any magic. - Tried the XL Nsis binary drop-in work-around (in case max nsis size was messing me up) electron-userland/electron-builder-binaries#44
- Used system wine (got rid of some wine warnings but otherwise no change)
EDIT: have now also tried:
- Went through the pain of building directly on Windows 11 x64 and got rekt by the same issue.
- Removed all config options and went with defaults.
- Tried bumping electron version to
@latest
^31.3.1
from electron-builder.
After 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:
- Download special NSISBI from https://sourceforge.net/projects/nsisbi/
- Extract and copy all contained filed into
C:\Users\user\AppData\Local\electron-builder\Cache\electron-builder\nsis\nsis-3.0.4.1
and "replace all" when prompted. - Delete
NSIS.exe
from above cache folder and rename newly copiedmakensisw.exe
=>NSIS.exe
. - re-run build
This type of NSIS build changes the output as a side-effect, you'll see two files now comprise the installer:
.exe (~100kb).
.nsisbin (Your actual app-size (~4Gib for me)).
What's next for this issue
First I'd like to test if the two-file installer setup (.exe && .nsbin) files breaks my ability to auto-update. Looking at the generated latest.yml
that only mentions the exe file I'd wager it does brick auto-updates. If someone more intimate with the auto-updater wants to weigh in though that'd be appreciated.
Here's a bunch of other stuff I hope to PR in fixes for (any help appreciated) :
- Builder should throw an error for large-apps instead of building an unusable nsis installer with no warnings/errors.
- Document proper build instructions for NSIS builds of large-apps. Add a config option for it if possible.
- Figure out how to build large NSIS installers on non-windows devices. Following the above workaround on macOS for example results in an error from nsis-3.0.4.1/mac/makensis.sh
Invalid command: "GetWinVer"
.
TLDR: Most egregious thing is:
Builder should throw an error for large-apps instead of building an unusable nsis installer with no warnings/errors."
Other build types work fine so the error should happen specifically during NSIS flavored builds. We're hitting some ancient window98 restriction on max NSIS file size either 2 or 4Gib I think.
If you read through the whole post and want to leave a comment/emoji for moral support that'd be appreciated.
from electron-builder.
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?
from electron-builder.
Related Issues (20)
- defualt ignore files config could not exclude node_modules in packing progress HOT 6
- Add getting release notes in PrivateGitHubProvider
- GitHubProvider: Doesn't use custom channel that was set in the electron-builder config HOT 3
- ESM Config filetype causes import issues in external dep (pkg read-config-file) HOT 6
- trailing commas in dependency package.json cause havok HOT 2
- Linux deb auto updater doesn't update due wrong install command HOT 14
- Building large electron app >= 4.2Gib HOT 2
- Cannot include `node_modules/*/examples/**/*`? HOT 7
- local dependencies (file:path instead of version) are not included in app.asar HOT 6
- Cannot reuse icon for different file associations
- Building 64bit installer, portable exe in windows HOT 1
- MSI Build Failure
- [NSIS] After adding 'nsis.menuCategory' in config, an upgrade will still install app to old path
- Signing on MacOS using Azure Key Vault HOT 1
- Shortcut not found on Windows after install HOT 1
- Issue with hdiutil when building on MacOS HOT 2
- Semantic Versioning Compare Error
- code has no resources but signature indicates they must be present HOT 3
- AppImage fails if fileAssociations.ext is array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-builder.