mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Exception after dotnet electronize start #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Nov 4, 2017).
Originally assigned to: @robertmuehsig on GitHub.
Linux, fedora 27
$ dotnet --version
$ node --version
$ which electron-packager
$ touch ./Properties/launchSettings.json
$ dotnet electronize init
$ dotnet electronize start
electron.cmd ? Is it a windows batch script?
@robertmuehsig commented on GitHub (Nov 4, 2017):
Ah - this is indeed a bug. The start command ist in the current version Windows only. I try to fix it this weekend.
I only tried Ubuntu in a VM, cloud you maybe do a "dotnet electronize build" and check if you can start the application under /ElectronNET.WebApp/bin/desktop/..." ?
@robertmuehsig commented on GitHub (Nov 4, 2017):
Be aweare that dotnet electonize build require that the electron packer is installed globally via npm.
@robertmuehsig commented on GitHub (Nov 4, 2017):
Electron comes with this electron.cmd, unfortunately we forgot to invoke the "electron" bash script when we are not on Windows. My commit should resolve this and this will be part of v0.0.6.
@robertmuehsig commented on GitHub (Nov 4, 2017):
Ups - the start command still has some windows specifics in it.
@robertmuehsig commented on GitHub (Nov 4, 2017):
Ok - the same "logic" that I use in the build command is now part of the start command as well. With 0.0.6 you (or when you refresh your local sources and clean the NuGet cache (e.g. via th devCleanup inside the CLI project)) it should hopefully work.
@robertmuehsig commented on GitHub (Nov 5, 2017):
I released Version 0.0.6.
@ghost commented on GitHub (Nov 11, 2017):
You say
Using of global node modules is not very good idea. User should not be able to run commands as root.
For what purpose u use global node modules? Just because u can do it?
Can u just use node_modules folder from project?
@robertmuehsig commented on GitHub (Nov 12, 2017):
I opened a new issue regarding the global electron packer - TBH: I don't know if it would also work without the globally installed package. If yes, then I would prefer it as well, but I tried it once and failed, but I can't remember why 😃