Skip to content

Commit b7e7ace

Browse files
committed
fix build issues on windows
1 parent 8dd5d15 commit b7e7ace

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ElectronNET.CLI/Commands/BuildCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public Task<bool> ExecuteAsync()
115115
DirectoryCopy.Do(electronhosthookDir, hosthookDir, true, new List<string>() { "node_modules" });
116116

117117
Console.WriteLine("Start npm install for hosthooks...");
118-
ProcessHelper.CmdExecute("npm install --production", hosthookDir);
118+
ProcessHelper.CmdExecute("npm install", hosthookDir);
119119

120120
// ToDo: Not sure if this runs under linux/macos
121121
ProcessHelper.CmdExecute(@"tsc -p . --sourceMap false", hosthookDir);

buildAll.cmd

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ electronize build /target custom win7-x86;win /dotnet-configuration Debug /elect
2828
echo "/target win (dev-build)"
2929
electronize build /target win /electron-params "--publish never"
3030

31-
echo "/target linux (dev-build)"
32-
electronize build /target linux /electron-params "--publish never"
33-
3431
echo "/target custom win7-x86;win (dev-build)"
3532
electronize build /target custom win7-x86;win /electron-params "--publish never"
3633

@@ -41,3 +38,8 @@ electronize build /target custom win7-x86;win /electron-params "--publish never"
4138
:: Not supported on Windows Systems, because of SymLinks...
4239
:: echo "/target osx"
4340
:: dotnet electronize build /target osx
41+
42+
:: Linux and Mac is not supported on with this buildAll.cmd test file, because the electron bundler does some strange stuff
43+
:: Help welcome!
44+
:: echo "/target linux (dev-build)"
45+
:: electronize build /target linux /electron-params "--publish never"

0 commit comments

Comments
 (0)