Skip to content

Commit 3ba3fa6

Browse files
Add new Electronize CLI command #273
1 parent 11fbd6b commit 3ba3fa6

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

ElectronNET.CLI/Commands/StartElectronCommand.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public StartElectronCommand(string[] args)
2525
private string _aspCoreProjectPath = "project-path";
2626
private string _arguments = "args";
2727
private string _manifest = "manifest";
28+
private string _clearCache = "clear-cache";
2829

2930
public Task<bool> ExecuteAsync()
3031
{
@@ -104,6 +105,11 @@ public Task<bool> ExecuteAsync()
104105
arguments += " --manifest=" + parser.Arguments[_manifest].First();
105106
}
106107

108+
if (parser.Arguments.ContainsKey(_clearCache))
109+
{
110+
arguments += " --clear-cache=true";
111+
}
112+
107113
string path = Path.Combine(tempPath, "node_modules", ".bin");
108114
bool isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows);
109115

ElectronNET.Host/api/browserWindows.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)