TRX/tools/tr2/docker/config/entrypoint.sh
2024-10-03 10:36:35 +02:00

19 lines
409 B
Bash
Executable file

#!/bin/bash
set -x
set -e
export DOTNET_CLI_HOME="/tmp/DOTNET_CLI_HOME"
echo $HOME
shopt -s globstar
# Build the common lib DLL
cd /app/tools/config/
rm -rf **/bin **/obj
dotnet restore -p:EnableWindowsTargeting=true
dotnet publish -c Release -p:EnableWindowsTargeting=true
# Build the main executable
cd /app/tools/tr2/config/
rm -rf **/bin **/obj **/out/*
dotnet restore
dotnet publish -c Release -o out