Add publish.sh

This commit is contained in:
2020-02-29 23:49:45 +01:00
parent 1f4ac35278
commit 3f5eea9d47
2 changed files with 23 additions and 1 deletions

3
.gitignore vendored
View File

@@ -3,4 +3,5 @@ obj/
/packages/
*.blob
.idea/
*.db
*.db
Publish/*

21
publish.sh Executable file
View File

@@ -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