Cannot build Windows/Squirrel installer app – 7z.exe missing
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
6.0.0-beta.61
Electron version
7.3.3
Operating system
macOS 10.14.6
Last known working Electron Forge version
6.0.0-beta.43
Expected behavior
Successful Windows/Squirrel make of electron app installer and other files
Actual behavior
Reports the following error:
Error: Exit code: 255
...
wine: cannot find L"C:\\windows\\system32\\.7z.exe"
...
Steps to reproduce
Used command electron-forge make --platform=win32 --arch=all --asar
Additional information
No response
Hey, from my comment https://github.com/electron-userland/electron-forge/issues/2683#issuecomment-1020178730
This issue appears inside electron-winstaller https://github.com/electron/windows-installer/issues/386
I had the same issue but it's fixable manually.
- Open ./node_modules/electron-winstaller/vendor
- Copy 7z-x64.* files as 7z.* (fe, 7z-x64.exe => 7z.exe)
- Try to build it again
Building squirrel installers from macOS isn't supported in macOS versions that have dropped 32bit support. This can be tracked upstream in the Squirrel repo if you're interested.
Forge recommends building for a platform, on that platform. i.e. host === target