Skip to content

Commit

Permalink
fix for ElectronNET#30
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmuehsig committed Nov 4, 2017
1 parent 9ed5738 commit 61160f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ElectronNET.CLI/Commands/InitCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ private static void EditLaunchSettings(string currentDirectory)
// this is should solve the problem for 80% of the users
// for the other 20% we might fail...
var launchSettingFile = Path.Combine(currentDirectory, "Properties", "launchSettings.json");

if (File.Exists(launchSettingFile) == false)
{
Console.WriteLine("launchSettings.json not found - do nothing.");
return;
}

string launchSettingText = File.ReadAllText(launchSettingFile);

if (launchSettingText.Contains("electronize start") == false)
Expand Down

0 comments on commit 61160f7

Please sign in to comment.