diff --git a/Publish.bat b/Publish.bat new file mode 100644 index 0000000..514d339 --- /dev/null +++ b/Publish.bat @@ -0,0 +1,11 @@ +@echo off +rem move to the script directory +cd /d "%~dp0" +rem build the mod +dotnet build +rem zip the mod +cd ./bin/Debug/net5.0 +for /F %%p in ('dir /b "*.dll"') do (set file=%%p) +set dest=%file:~0,-4%.zip +tar -cf ../%dest% --exclude ref --exclude *.pdb --exclude *.deps.json * +echo Published to bin/Debug/%dest% \ No newline at end of file diff --git a/Publish.sh b/Publish.sh new file mode 100644 index 0000000..52f439e --- /dev/null +++ b/Publish.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# move to the script directory +cd "$(dirname "$0")" +# build the mod +dotnet build +# zip the mod +cd ./bin/Debug/net5.0 +file=$(find *.dll -printf %f) +dest=${file::-4}.zip +tar -cf ../$dest --exclude ref --exclude *.pdb --exclude *.deps.json * +echo Published to bin/Debug/$dest \ No newline at end of file