build: add TR2 installer automatic builds
Some checks are pending
Run code linters / Run code linters (push) Waiting to run
Publish a pre-release / Build TR1 (push) Has been skipped
Publish a pre-release / Build TR2 (push) Has been skipped
Publish a pre-release / Create a prerelease (push) Has been skipped

This commit is contained in:
Marcin Kurczewski 2025-03-30 11:44:07 +02:00 committed by lahm86
parent e2bcd1aeb7
commit 3e2206906e
4 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,5 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
ENV HOME /app
WORKDIR /app
ENTRYPOINT ["/app/tools/tr2/docker/installer/entrypoint.sh"]

View file

@ -0,0 +1,12 @@
#!/bin/bash
set -x
set -e
cd /app/tools/installer/
export DOTNET_CLI_HOME="/tmp/DOTNET_CLI_HOME"
shopt -s globstar
rm -rf **/bin **/obj **/out/*
dotnet restore
dotnet publish TR2X_Installer -c Release -o out