copy the right stuff and invoke npm

This commit is contained in:
Robert Muehsig
2019-01-08 23:56:19 +01:00
parent 7d8301af54
commit 0f085fdb1d
2 changed files with 10 additions and 2 deletions

View File

@@ -86,7 +86,11 @@ namespace ElectronNET.CLI.Commands
if (Directory.Exists(electronhosthookDir))
{
DirectoryCopy.Do(electronhosthookDir, tempPath, true, new List<string>() { "node_modules" });
string hosthookDir = Path.Combine(tempPath, "ElectronHostHook");
DirectoryCopy.Do(electronhosthookDir, hosthookDir, true, new List<string>() { "node_modules" });
Console.WriteLine("Start npm install for hosthooks...");
ProcessHelper.CmdExecute("npm install", hosthookDir);
}
DeployEmbeddedElectronFiles.Do(tempPath);

View File

@@ -63,7 +63,11 @@ namespace ElectronNET.CLI.Commands
if (Directory.Exists(electronhosthookDir))
{
DirectoryCopy.Do(electronhosthookDir, tempPath, true, new List<string>() { "node_modules" });
string hosthookDir = Path.Combine(tempPath, "ElectronHostHook");
DirectoryCopy.Do(electronhosthookDir, hosthookDir, true, new List<string>() { "node_modules" });
Console.WriteLine("Start npm install for hosthooks...");
ProcessHelper.CmdExecute("npm install", hosthookDir);
}
DeployEmbeddedElectronFiles.Do(tempPath);