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

Electron-Packer hangs #2

Closed
robertmuehsig opened this issue Oct 17, 2017 · 3 comments
Closed

Electron-Packer hangs #2

robertmuehsig opened this issue Oct 17, 2017 · 3 comments

Comments

@robertmuehsig
Copy link
Collaborator

Electron Packer hangs... produces this output and then nothing happens:

PS D:\Code\GitHub\ElectronNET\ElectronNET.WebApp> dotnet electronize build osx
Build Electron Application...
Executing dotnet publish in this directory: D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\obj\desktop
Build ASP.NET Core App for osx-x64...
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

D:\Code\GitHub\ElectronNET\ElectronNET.WebApp>dotnet publish -r osx-x64 --output "D:\Code\GitHub\ElectronNET\ElectronNET
.WebApp\obj\desktop\bin"
Microsoft (R) Build Engine version 15.4.8.50001 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

ElectronNET.WebApp -> D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\bin\Debug\netcoreapp2.0\osx-x64\ElectronNET.WebApp
.dll
ElectronNET.WebApp -> D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\obj\desktop\bin\

D:\Code\GitHub\ElectronNET\ElectronNET.WebApp>
Start npm install...
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\obj\desktop>npm install
up to date in 1.289s

D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\obj\desktop>
Start npm install electron-packager...
Microsoft Windows [Version 10.0.15063]
(c) 2017 Microsoft Corporation. All rights reserved.

D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\obj\desktop>npm install electron-packager --global
C:\Users\Robert\AppData\Roaming\npm\electron-packager -> C:\Users\Robert\AppData\Roaming\npm\node_modules\electron-packa
ger\cli.js

  • electron-packager@9.1.0
    updated 1 package in 6.459s

D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\obj\desktop>
Build Electron Desktop Application...
Executing electron magic in this directory: D:\Code\GitHub\ElectronNET\ElectronNET.WebApp\bin\desktop
Package Electron App for Platform darwin...

I found some similar problems in the electron issue list:

https://github.com/electron-userland/electron-packager/issues?q=is%3Aissue+hangs+is%3Aclosed

I saw this "error" also on appveyor yesterday. I'm not sure why, but I can't build the osx package on my windows device.

@robertmuehsig
Copy link
Collaborator Author

robertmuehsig commented Oct 18, 2017

had the same issue with the "Start npm install..." maybe we ignore some error code and get stuck?

It seems, when the npm_modules are not there or the electron packer is not "installed" with the correct dependencies, then this happens

@robertmuehsig
Copy link
Collaborator Author

electron/packager#544

@robertmuehsig
Copy link
Collaborator Author

if the next commit doesnt solve the problem, maybe the /c switch is needed https://stackoverflow.com/questions/4291912/process-start-how-to-get-the-output

GregorBiswanger pushed a commit that referenced this issue Jun 12, 2020
GregorBiswanger pushed a commit that referenced this issue Apr 6, 2022
phantomdev99 pushed a commit to phantomdev99/Electron--.NET that referenced this issue Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant