TinyLifeExampleMod/Publish.sh

11 lines
298 B
Bash
Raw Normal View History

#!/bin/bash
# move to the script directory
cd "$(dirname "$0")"
# build the mod
2022-01-08 16:13:14 +01:00
dotnet build || exit
# zip the mod
2021-12-08 23:34:22 +01:00
cd ./bin/Debug/net6.0
file=$(find *.dll -print)
dest=${file%????}.zip
2021-11-18 10:26:47 +01:00
zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json'
echo Published to bin/Debug/$dest