Skip to content

Commit 5fd1fc8

Browse files
author
Nils Brugger
committed
build: enable single application export
1 parent 0ce9134 commit 5fd1fc8

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

server/build.bat renamed to server/build-debug.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
dotnet restore src\Tgm.Roborally.Server
77
dotnet build src\Tgm.Roborally.Server
8-
echo Now, run the following to start the project: dotnet run -p src\Tgm.Roborally.Server\Tgm.Roborally.Server.csproj --launch-profile web.
8+
echo Now, run the following to start the project: dotnet run -p src\Tgm.Roborally.Server\Tgm.Roborally.Server.csproj --launch-profile web. OR use the generated executeable src\Tgm.Roborally.Server\bin\Release\netcore3.1\release
99
echo.

server/build-release.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
:: Generated by: https://openapi-generator.tech
2+
::
3+
4+
@echo off
5+
6+
dotnet restore src\Tgm.Roborally.Server
7+
8+
dotnet publish src\Tgm.Roborally.Server -c Release -r win-x86 --no-restore
9+
dotnet publish src\Tgm.Roborally.Server -c Release -r win-x64 --no-restore
10+
dotnet publish src\Tgm.Roborally.Server -c Release -r linux-x64 --no-restore
11+
dotnet publish src\Tgm.Roborally.Server -c Release -r linux-arm --no-restore
12+
dotnet publish src\Tgm.Roborally.Server -c Release -r linux-arm64 --no-restore
13+
dotnet publish src\Tgm.Roborally.Server -c Release -r osx-x64 --no-restore
14+
echo Now, run the following to start the project: dotnet run -p src\Tgm.Roborally.Server\Tgm.Roborally.Server.csproj --launch-profile web. OR use the generated executeable src\Tgm.Roborally.Server\bin\Release\netcore3.1\release
15+
echo.

server/src/Tgm.Roborally.Server/Tgm.Roborally.Server.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,15 @@
55
<TargetFramework>netcoreapp3.1</TargetFramework>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
<PreserveCompilationContext>true</PreserveCompilationContext>
8-
<AssemblyName>Tgm.Roborally.Server</AssemblyName>
8+
<AssemblyName>RoborallyServer</AssemblyName>
99
<PackageId>Tgm.Roborally.Server</PackageId>
10-
<LangVersion>9</LangVersion>
10+
11+
<RuntimeIdentifiers>win-x86;win-x64;linux-x64;linux-arm;linux-arm64;osx-x64</RuntimeIdentifiers>
12+
<LangVersion>9</LangVersion>
13+
</PropertyGroup>
14+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
15+
<PublishSingleFile>true</PublishSingleFile>
16+
<PublishTrimmed>true</PublishTrimmed>
1117
</PropertyGroup>
1218
<ItemGroup>
1319
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.2" />

0 commit comments

Comments
 (0)