25 lines
603 B
Bash
Executable File
25 lines
603 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Clean up
|
|
echo "Cleaning up build directory"
|
|
[ -d "Publish" ] && rm -r Publish
|
|
|
|
# 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 |