mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
build: add TR2 installer automatic builds
This commit is contained in:
parent
e2bcd1aeb7
commit
3e2206906e
4 changed files with 28 additions and 1 deletions
5
tools/tr2/docker/installer/Dockerfile
Normal file
5
tools/tr2/docker/installer/Dockerfile
Normal 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"]
|
12
tools/tr2/docker/installer/entrypoint.sh
Executable file
12
tools/tr2/docker/installer/entrypoint.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue