From 395d44313e54984cb4f19bf1848f7840d66ce350 Mon Sep 17 00:00:00 2001 From: konding Date: Mon, 30 Oct 2017 15:26:07 +0800 Subject: [PATCH] add macOS start script --- start.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 start.sh diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..3420ddf --- /dev/null +++ b/start.sh @@ -0,0 +1,10 @@ +echo Bundle ASP.NET Core Project into EXE + +cd ElectronNET.WebApp +dotnet restore +dotnet publish -r osx.10.11-x64 --output ../ElectronNET.Host/bin/ + +echo Start Electron with bundled EXE +cd ../ElectronNET.Host +npm install +../ElectronNET.Host/node_modules/.bin/electron "../ElectronNET.Host/main.js" \ No newline at end of file