actually make publish scripts create zip files on all platforms

This commit is contained in:
Ell 2021-11-18 10:22:20 +01:00
parent 4af436681d
commit 4a45ad5206
2 changed files with 2 additions and 2 deletions

View file

@ -7,5 +7,5 @@ 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 *
tar -acf ../%dest% --exclude ref --exclude *.pdb --exclude *.deps.json *
echo Published to bin/Debug/%dest%

View file

@ -7,5 +7,5 @@ dotnet build
cd ./bin/Debug/net5.0
file=$(find *.dll -printf %f)
dest=${file::-4}.zip
tar -cf ../$dest --exclude ref --exclude *.pdb --exclude *.deps.json *
zip -r ../$dest * --exclude ref --exclude *.pdb --exclude *.deps.json
echo Published to bin/Debug/$dest