forge icon indicating copy to clipboard operation
forge copied to clipboard

Cannot build Windows/Squirrel installer app – 7z.exe missing

Open thebigh2014 opened this issue 4 years ago • 1 comments

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

thebigh2014 avatar Dec 30 '21 19:12 thebigh2014

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.

  1. Open ./node_modules/electron-winstaller/vendor
  2. Copy 7z-x64.* files as 7z.* (fe, 7z-x64.exe => 7z.exe)
  3. Try to build it again

iviaks avatar Jan 24 '22 14:01 iviaks

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

MarshallOfSound avatar Nov 02 '22 20:11 MarshallOfSound