From b7e7ace6f360e4c670cfc950f92e31b58873e8ca Mon Sep 17 00:00:00 2001 From: Robert Muehsig Date: Mon, 14 Oct 2019 22:44:30 +0200 Subject: [PATCH] fix build issues on windows --- ElectronNET.CLI/Commands/BuildCommand.cs | 2 +- buildAll.cmd | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ElectronNET.CLI/Commands/BuildCommand.cs b/ElectronNET.CLI/Commands/BuildCommand.cs index 7f89e45..a4d5416 100644 --- a/ElectronNET.CLI/Commands/BuildCommand.cs +++ b/ElectronNET.CLI/Commands/BuildCommand.cs @@ -115,7 +115,7 @@ namespace ElectronNET.CLI.Commands DirectoryCopy.Do(electronhosthookDir, hosthookDir, true, new List() { "node_modules" }); Console.WriteLine("Start npm install for hosthooks..."); - ProcessHelper.CmdExecute("npm install --production", hosthookDir); + ProcessHelper.CmdExecute("npm install", hosthookDir); // ToDo: Not sure if this runs under linux/macos ProcessHelper.CmdExecute(@"tsc -p . --sourceMap false", hosthookDir); diff --git a/buildAll.cmd b/buildAll.cmd index a981133..6746420 100755 --- a/buildAll.cmd +++ b/buildAll.cmd @@ -28,9 +28,6 @@ electronize build /target custom win7-x86;win /dotnet-configuration Debug /elect echo "/target win (dev-build)" electronize build /target win /electron-params "--publish never" -echo "/target linux (dev-build)" -electronize build /target linux /electron-params "--publish never" - echo "/target custom win7-x86;win (dev-build)" electronize build /target custom win7-x86;win /electron-params "--publish never" @@ -41,3 +38,8 @@ electronize build /target custom win7-x86;win /electron-params "--publish never" :: Not supported on Windows Systems, because of SymLinks... :: echo "/target osx" :: dotnet electronize build /target osx + +:: Linux and Mac is not supported on with this buildAll.cmd test file, because the electron bundler does some strange stuff +:: Help welcome! +:: echo "/target linux (dev-build)" +:: electronize build /target linux /electron-params "--publish never"