Skip to content
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 build Windows/Squirrel installer app – 7z.exe missing #2661

Closed
3 tasks done
thebigh2014 opened this issue Dec 30, 2021 · 2 comments
Closed
3 tasks done

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

thebigh2014 opened this issue Dec 30, 2021 · 2 comments
Labels

Comments

@thebigh2014
Copy link

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • 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

@iviaks
Copy link

iviaks commented Jan 24, 2022

Hey, from my comment #2683 (comment)

This issue appears inside electron-winstaller
electron/windows-installer#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

@MarshallOfSound
Copy link
Member

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 MarshallOfSound closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants