TRX/tools/tr2/docker/config/entrypoint.sh

20 lines
409 B
Bash
Raw Normal View History

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