TinyLifeExampleMod/Publish.sh
2021-12-08 23:34:22 +01:00

11 lines
No EOL
293 B
Bash

#!/bin/bash
# move to the script directory
cd "$(dirname "$0")"
# build the mod
dotnet build
# zip the mod
cd ./bin/Debug/net6.0
file=$(find *.dll -printf %f)
dest=${file::-4}.zip
zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json'
echo Published to bin/Debug/$dest