TRX/tools/shared/docker/config/entrypoint.sh
lahm86 494c2724fc tools: merge config tool projects
This merges the three config tool projects into a single VS solution.
2025-04-03 17:09:56 +01:00

17 lines
393 B
Bash
Executable file

#!/bin/bash
set -x
set -e
if [[ -z "$1" || ( "$1" != "1" && "$1" != "2" ) ]]; then
echo "Error: You must supply '1' or '2' as an argument to decide which game to build."
exit 1
fi
TR_VERSION=$1
export DOTNET_CLI_HOME="/tmp/DOTNET_CLI_HOME"
echo $HOME
shopt -s globstar
cd /app/tools/config/
rm -rf **/bin **/obj **/out/*
dotnet publish TR${TR_VERSION}X_ConfigTool -c Release -o out