TinyLifeExampleMod/Publish.bat

11 lines
No EOL
309 B
Batchfile

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