Compare commits

...

3 Commits

Author SHA1 Message Date
z__
66ea4d7307 build script update 2022-02-03 19:34:06 +07:00
z__
f6ce40a854 again updated ci buildfile 2022-02-03 19:04:42 +07:00
zznty
bd62d31298 trash dockerfile, it will be on separate repo 2022-02-03 18:50:15 +07:00
2 changed files with 4 additions and 23 deletions

View File

@@ -1,17 +0,0 @@
FROM mcr.microsoft.com/windows/servercore:ltsc2022
USER ContainerAdministrator
ADD https://aka.ms/highdpimfc2013x64enu vc_redist2013.exe
ADD https://aka.ms/vs/16/release/vc_redist.x64.exe vc_redist.exe
RUN vc_redist2013.exe /passive /norestart
RUN vc_redist.exe /passive /norestart
RUN del vc_redist2013.exe && del vc_redist.exe
USER ContainerUser
COPY . .
ENV TORCH_GAME_PATH="c:\dedi"
ENV TORCH_INSTANCE="c:\instance"
ENV TORCH_SERVICE="true"
ENTRYPOINT ["Torch.Server.exe"]
CMD ["-noupdate"]

View File

@@ -49,14 +49,12 @@ cache:
- c:\steam\cmd\
before_build:
- pwsh: dotnet restore .\Torch.Server\Torch.Server.csproj
build:
project: Torch.Server/Torch.Server.csproj
verbosity: minimal
after_build:
build_script:
- pwsh: >-
dotnet publish .\Torch.Server\Torch.Server.csproj --self-contained -c Release -o .\publish\ --no-build
dotnet publish .\Torch.Server\Torch.Server.csproj --self-contained -c Release -o .\publish\
Compress-Archive -Path .\publish\ -DestinationPath torch-server.zip
cmd /c "rmdir GameBinaries"
Compress-Archive -Path .\publish\* -DestinationPath torch-server.zip
artifacts:
- path: torch-server.zip
deploy: