naming changes to electron.manifest.json

This commit is contained in:
Robert Muehsig
2017-10-15 22:43:35 +02:00
parent 828963ae9f
commit b5bdc88109
9 changed files with 21 additions and 14 deletions

View File

@@ -15,11 +15,17 @@ namespace ElectronNET.CLI
return asm.GetManifestResourceStream(resource);
}
public static void DeployEmbeddedFile(string targetPath, string file, string namespacePath = "")
{
using (var fileStream = File.Create(Path.Combine(targetPath, file)))
{
var streamFromEmbeddedFile = GetTestResourceFileStream(namespacePath + file);
var streamFromEmbeddedFile = GetTestResourceFileStream("ElectronHost." + namespacePath + file);
if (streamFromEmbeddedFile == null)
{
Console.WriteLine("Error: Couldn't find embedded file: " + file);
}
streamFromEmbeddedFile.CopyTo(fileStream);
}
}