osu/build-ruleset.sh
Simon Bruder 3ed6442b49
Update 3rd party rulesets
Some did not build and were removed. This change also makes building
much faster, as the build now caches NuGet packages and uses one stage
per ruleset, so they can be built in parallel (by passing `--jobs N`).
2024-05-09 02:34:30 +02:00

19 lines
421 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
RULESET_URL="$1"
git clone --depth=1 "${RULESET_URL}" ruleset
pushd ruleset
ASSEMBLY_NAME="$(basename "$(find . -iname '*.sln' -printf '%f\n' | head -n1)" .sln)"
dotnet build -c Release ${ASSEMBLY_NAME}
case "${ASSEMBLY_NAME}" in
# special build steps can be put here
*)
mkdir /dlls
mv ${ASSEMBLY_NAME}/bin/Release/net*/${ASSEMBLY_NAME}.dll /dlls/
;;
esac
popd
rm -rf ruleset