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

Building failed for Windows EXE with wine64 installed and electron-forge@6.0.0-beta.52 on macOS Catalina. #1818

Closed
3 tasks done
SaekiRaku opened this issue Jul 6, 2020 · 1 comment
Labels
blocked/upstream Issues blocked by upstream bugs bug

Comments

@SaekiRaku
Copy link

SaekiRaku commented Jul 6, 2020

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Forge Version:
    • 6.0.0-beta.52
  • Electron Version:
    • v9.0.5
  • Operating System:
    • macOS Catalina 10.15.5 (19F101)
  • Last Known Working Electron Forge version::

Expected Behavior

Should be built successfully.

Actual Behavior

Got Errors:

> electron-forge make -p win32

✔ Checking your system
✔ Resolving Forge Config
We need to package your application before we can make it
✔ Preparing to Package Application for arch: x64
✔ Preparing native dependencies
✔ Packaging Application
Making for the following targets: squirrel
✖ Making for target: squirrel - On platform: win32 - For arch: x64

An unhandled error has occurred inside Forge:
An error occured while making for target: squirrel
Failed with exit code: 255
Output:
System.AggregateException: One or more errors occurred. ---> System.Exception
  at Squirrel.Utility+<CreateZipFromDirectory>d__23.MoveNext () [0x00119] in <a5ee691170b94c488950c75951ce1ba3>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <4fdc5ed61a074cafb49fa42deb20d521>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <4fdc5ed61a074cafb49fa42deb20d521>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 
  at Squirrel.ReleasePackage.CreateReleasePackage (System.String outputFile, System.String packagesRootDir, System.Func`2[T,TResult] releaseNotesProcessor, System.Action`1[T] contentsPostProcessHook) [0x001f7] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.Releasify (System.String package, System.String targetDir, System.String packagesDir, System.String bootstrapperExe, System.String backgroundGif, System.String signingOpts, System.String baseUrl, System.String setupIcon, System.Boolean generateMsi, System.String frameworkVersion, System.Boolean generateDeltas) [0x00214] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.executeCommandLine (System.String[] args) [0x004a2] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.main (System.String[] args) [0x00082] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.Main (System.String[] args) [0x00006] in <a5ee691170b94c488950c75951ce1ba3>:0 
---> (Inner Exception #0) System.Exception
  at Squirrel.Utility+<CreateZipFromDirectory>d__23.MoveNext () [0x00119] in <a5ee691170b94c488950c75951ce1ba3>:0 <---


Error: Failed with exit code: 255
Output:
System.AggregateException: One or more errors occurred. ---> System.Exception
  at Squirrel.Utility+<CreateZipFromDirectory>d__23.MoveNext () [0x00119] in <a5ee691170b94c488950c75951ce1ba3>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <4fdc5ed61a074cafb49fa42deb20d521>:0 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in <4fdc5ed61a074cafb49fa42deb20d521>:0 
  at System.Threading.Tasks.Task.Wait () [0x00000] in <4fdc5ed61a074cafb49fa42deb20d521>:0 
  at Squirrel.ReleasePackage.CreateReleasePackage (System.String outputFile, System.String packagesRootDir, System.Func`2[T,TResult] releaseNotesProcessor, System.Action`1[T] contentsPostProcessHook) [0x001f7] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.Releasify (System.String package, System.String targetDir, System.String packagesDir, System.String bootstrapperExe, System.String backgroundGif, System.String signingOpts, System.String baseUrl, System.String setupIcon, System.Boolean generateMsi, System.String frameworkVersion, System.Boolean generateDeltas) [0x00214] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.executeCommandLine (System.String[] args) [0x004a2] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.main (System.String[] args) [0x00082] in <a5ee691170b94c488950c75951ce1ba3>:0 
  at Squirrel.Update.Program.Main (System.String[] args) [0x00006] in <a5ee691170b94c488950c75951ce1ba3>:0 
---> (Inner Exception #0) System.Exception
  at Squirrel.Utility+<CreateZipFromDirectory>d__23.MoveNext () [0x00119] in <a5ee691170b94c488950c75951ce1ba3>:0 <---


    at ChildProcess.<anonymous> (/Users/thomas/Documents/Application/qi-notebook/qi-notebook/node_modules/electron-winstaller/src/spawn-promise.ts:52:16)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:485:12)
    at maybeClose (internal/child_process.js:1051:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

To Reproduce

npx create-electron-app my-app
cd my-app
npm run make -- -p win32

# Then get errors.

Additional Information

  • Wine has been installed by using brew cask install wine-stable. wine64 --version output wine-5.0.
@SaekiRaku SaekiRaku added the bug label Jul 6, 2020
@malept malept added the blocked/upstream Issues blocked by upstream bugs label Jul 6, 2020
@malept
Copy link
Member

malept commented Jul 6, 2020

This is something that needs to be fixed in Squirrel.WIndows. See:

SInce this can't be fixed in Electron Forge itself and thus not actionable here, I'm closing this bug (it's still searchable and points to the place where it needs to be fixed).

@malept malept closed this as completed Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked/upstream Issues blocked by upstream bugs bug
Projects
None yet
Development

No branches or pull requests

2 participants