fix build issues on windows

This commit is contained in:
Robert Muehsig
2019-10-14 22:44:30 +02:00
parent 8dd5d1561a
commit b7e7ace6f3
2 changed files with 6 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ namespace ElectronNET.CLI.Commands
DirectoryCopy.Do(electronhosthookDir, hosthookDir, true, new List<string>() { "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);

View File

@@ -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"