Files
tgstation-server/build/package/deb/debian/rules
T

30 lines
715 B
Makefile
Executable File

#!/usr/bin/make -f
export DH_VERBOSE = 1
%:
dh $@
override_dh_auto_clean:
rm -rf artifacts
dotnet clean -c ReleaseNoWindows
override_dh_auto_build:
dotnet restore
cd src/Tgstation.Server.Host.Console && dotnet publish -c Release -o ../../artifacts
cd src/Tgstation.Server.Host && dotnet publish -c Release -o ../../artifacts/lib/Default
rm artifacts/lib/Default/appsettings.yml
build/RemoveUnsupportedRuntimes.sh artifacts/lib/Default
build/RemoveUnsupportedRuntimes.sh artifacts
override_dh_auto_install:
cp build/package/deb/MakeInstall ./Makefile
dh_auto_install --
override_dh_strip:
override_dh_shlibdeps:
override_dh_installsystemd:
dh_installsystemd -v --restart-after-upgrade