TinyLifeExampleMod/Publish.bat

11 lines
321 B
Batchfile
Raw Permalink Normal View History

@echo off
rem move to the script directory
cd /d "%~dp0"
rem build the mod
2022-01-08 16:13:14 +01:00
dotnet build || exit /b
rem zip the mod
2021-12-08 23:34:22 +01:00
cd ./bin/Debug/net6.0
for /F %%p in ('dir /b "*.dll"') do (set file=%%p)
set dest=%file:~0,-4%.zip
tar -acf ../%dest% --exclude ref --exclude *.pdb --exclude *.deps.json *
echo Published to bin/Debug/%dest%