Compare commits

...

8 Commits

Author SHA1 Message Date
z__
d10528f9fe fixed RID 2022-02-03 19:39:07 +07:00
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
z__
b1cf5fb638 i wanna believe this is the last for appveyor.yml 2022-02-03 18:44:02 +07:00
z__
1d6a2a9a60 fix fucking github's new lines 2022-02-03 18:41:55 +07:00
zznty
455be2393e fix build error 2022-02-03 18:38:49 +07:00
zznty
6131a9003b corrently assign version on publish 2022-02-03 18:35:50 +07:00
2 changed files with 10 additions and 27 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

@@ -11,7 +11,7 @@ platform: x64
shallow_clone: true shallow_clone: true
assembly_info: assembly_info:
patch: true patch: true
file: '**\AssemblyInfo.*' file: '**\AssemblyVersion.*'
assembly_version: '{version}' assembly_version: '{version}'
assembly_file_version: '{version}' assembly_file_version: '{version}'
assembly_informational_version: v{version} assembly_informational_version: v{version}
@@ -37,9 +37,11 @@ install:
& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740" "+quit" & "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740" "+quit"
$dataPath = $steamData.Replace("/", "\") $dataPath = $steamData.Replace("/", "\");
$contentPath = "$dataPath\Content";
Remove-Item -LiteralPath $dataPath\Content -Force -Recurse if (Test-Path $contentPath) {
Remove-Item -LiteralPath $contentPath -Force -Recurse
}
cmd /S /C mklink /J .\GameBinaries $dataPath\DedicatedServer64 cmd /S /C mklink /J .\GameBinaries $dataPath\DedicatedServer64
cache: cache:
@@ -47,14 +49,12 @@ cache:
- c:\steam\cmd\ - c:\steam\cmd\
before_build: before_build:
- pwsh: dotnet restore .\Torch.Server\Torch.Server.csproj - pwsh: dotnet restore .\Torch.Server\Torch.Server.csproj
build: build_script:
project: Torch.Server/Torch.Server.csproj
verbosity: minimal
after_build:
- pwsh: >- - 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 -f net6-windows -r win7-64 -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: artifacts:
- path: torch-server.zip - path: torch-server.zip
deploy: deploy: