From ddea8d617ce29e59a2a42a7050919abfde24e45e Mon Sep 17 00:00:00 2001 From: Gregor Biswanger Date: Tue, 3 Oct 2017 15:15:47 +0200 Subject: [PATCH] script to start electron with the asp.net core project --- build.cmd | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 build.cmd diff --git a/build.cmd b/build.cmd new file mode 100644 index 0000000..0232093 --- /dev/null +++ b/build.cmd @@ -0,0 +1,8 @@ +echo Bundle ASP.NET Core Project into EXE + +cd ElectronNET.WebApp +dotnet restore +dotnet publish -r win10-x64 --output bin/dist/win + +echo Start Electron with bundled EXE +..\ElectronNET.Host\node_modules\.bin\electron.cmd "..\ElectronNET.Host\main.js" \ No newline at end of file