From 3f5eea9d47df18b6b9f86337bf64bd84ed597c13 Mon Sep 17 00:00:00 2001 From: luxick Date: Sat, 29 Feb 2020 23:49:45 +0100 Subject: [PATCH] Add publish.sh --- .gitignore | 3 ++- publish.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 publish.sh diff --git a/.gitignore b/.gitignore index 25f0bd3..1f8406b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ obj/ /packages/ *.blob .idea/ -*.db \ No newline at end of file +*.db +Publish/* \ No newline at end of file diff --git a/publish.sh b/publish.sh new file mode 100755 index 0000000..9a2bb9e --- /dev/null +++ b/publish.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# Publish Server +echo "Running dotnet publish for server" +dotnet publish \ + -o Publish/esusshots-server-linux-x64 \ + -r linux-x64 \ + -c Release \ + /p:PublishSingleFile=true \ + /p:PublishTrimmed=true \ + EstusShots.Server/EstusShots.Server.csproj + +# Publish GTK Client +echo "Running dotnet publish for GTK client" +dotnet publish \ + -o Publish/esusshots-gtk-linux-x64 \ + -r linux-x64 \ + -c Release \ + /p:PublishSingleFile=true \ + /p:PublishTrimmed=true \ + EstusShots.Gtk/EstusShots.Gtk.csproj \ No newline at end of file