mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-19 07:06:26 +00:00
copy the right stuff and invoke npm
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user