rimworld-mod-template/.vscode/build.sh

17 lines
321 B
Bash
Raw Normal View History

2024-02-11 17:28:50 +01:00
set -e
script_dir=$(dirname $(readlink -f $0))
mod_dir=$(dirname $script_dir)
pushd $script_dir
configuration=${1:-Debug}
2024-02-11 17:28:50 +01:00
# build dll
rm -f ../1.4/Assemblies/*
dotnet build mod.csproj -c ${configuration}
2024-02-11 17:28:50 +01:00
# generate About.xml
rm -f ../About/About.xml
xsltproc -o ../About/About.xml ./about.xml.xslt ./mod.csproj
popd