mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-16 05:36:34 +00:00
Calls electronize from the Path instead of via dotnet
This commit is contained in:
@@ -100,15 +100,16 @@ namespace ElectronNET.CLI.Commands
|
||||
|
||||
string launchSettingText = File.ReadAllText(launchSettingFile);
|
||||
|
||||
if (launchSettingText.Contains("electronize start") == false)
|
||||
if (launchSettingText.Contains("\"executablePath\": \"electronize\"") == false)
|
||||
{
|
||||
StringBuilder debugProfileBuilder = new StringBuilder();
|
||||
debugProfileBuilder.AppendLine("profiles\": {");
|
||||
debugProfileBuilder.AppendLine("\"Electron.NET App\": {");
|
||||
debugProfileBuilder.AppendLine("\"commandName\": \"Executable\",");
|
||||
debugProfileBuilder.AppendLine("\"executablePath\": \"C:\\\\Program Files\\\\dotnet\\\\dotnet.exe\",");
|
||||
debugProfileBuilder.AppendLine("\"commandLineArgs\": \"electronize start\"");
|
||||
debugProfileBuilder.AppendLine("},");
|
||||
debugProfileBuilder.AppendLine(" \"Electron.NET App\": {");
|
||||
debugProfileBuilder.AppendLine(" \"commandName\": \"Executable\",");
|
||||
debugProfileBuilder.AppendLine(" \"executablePath\": \"electronize\",");
|
||||
debugProfileBuilder.AppendLine(" \"commandLineArgs\": \"start\",");
|
||||
debugProfileBuilder.AppendLine(" \"workingDirectory\": \".\"");
|
||||
debugProfileBuilder.AppendLine(" },");
|
||||
|
||||
launchSettingText = launchSettingText.Replace("profiles\": {", debugProfileBuilder.ToString());
|
||||
File.WriteAllText(launchSettingFile, launchSettingText);
|
||||
|
||||
@@ -8,6 +8,13 @@
|
||||
}
|
||||
},
|
||||
"profiles": {
|
||||
"Electron.NET App": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "electronize",
|
||||
"commandLineArgs": "start",
|
||||
"workingDirectory": "."
|
||||
},
|
||||
|
||||
"IIS Express": {
|
||||
"commandName": "IISExpress",
|
||||
"environmentVariables": {
|
||||
@@ -22,10 +29,5 @@
|
||||
},
|
||||
"applicationUrl": "http://localhost:50395/"
|
||||
},
|
||||
"Electron.NET App": {
|
||||
"commandName": "Executable",
|
||||
"executablePath": "C:\\Program Files\\dotnet\\dotnet.exe",
|
||||
"commandLineArgs": "electronize start"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user