You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
312 lines
27 KiB
XML
312 lines
27 KiB
XML
<?xml version='1.0' ?>
|
|
<BuildGraph xmlns="http://www.epicgames.com/BuildGraph" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.epicgames.com/BuildGraph ../../../../Engine/Build/Graph/Schema.xsd" >
|
|
<EnvVar Name="UE_HORDE_JOBID"/>
|
|
|
|
<Option Name="PreflightChange" DefaultValue="" Description="Preflight changelist number"/>
|
|
<Option Name="Configuration" DefaultValue="release" Description="Configuration to build"/>
|
|
<Option Name="SignOutputs" Restrict="true|false" DefaultValue="false" Description="Whether to sign the agent included with server tools"/>
|
|
<Option Name="HordeDashboardConfig" DefaultValue="Production" Description="Whether to build a development or production dashboard"/>
|
|
|
|
<Property Name="DefaultImageTag" Value="Unversioned"/>
|
|
<Property Name="DefaultImageTag" Value="CL-$(Change)" If="'$(Change)' != ''"/>
|
|
<Property Name="DefaultImageTag" Value="$(DefaultImageTag)-PF-$(PreflightChange)" If="'$(PreflightChange)' != ''" />
|
|
<Property Name="DefaultImageTag" Value="$(DefaultImageTag)-$(UE_HORDE_JOBID)" If="'$(UE_HORDE_JOBID)' != ''" />
|
|
<Option Name="ImageRepoUrl" DefaultValue="" Description="URL to Docker/OCI image repository"/>
|
|
<Option Name="ImageName" DefaultValue="horde-server" Description="Name of Docker/OCI image"/>
|
|
<Option Name="ImageTag" DefaultValue="$(DefaultImageTag)" Description="Tag to apply to image"/>
|
|
<Option Name="ImageTagSuffix" DefaultValue="" Description="Text to append to tag"/>
|
|
<Option Name="ImageEnvFile" DefaultValue="" Description="Path to environment file for used for Docker invocations"/>
|
|
<Option Name="ImageRepoAuthFile" DefaultValue="" Description="Path to file with repository auth credentials"/>
|
|
|
|
<Property Name="EngineDir" Value="$(RootDir)/Engine"/>
|
|
|
|
<Property Name="WixDir" Value="$(RootDir)/Engine/Source/ThirdParty/WiX/3.8"/>
|
|
<Property Name="UgsDir" Value="$(RootDir)/Engine/Source/Programs/UnrealGameSync"/>
|
|
|
|
<Property Name="Version" Value="$(EngineMajorVersion).$(EngineMinorVersion).$(EnginePatchVersion)"/>
|
|
<Property Name="InformationalVersion" Value="$(Version)-$(Change)"/>
|
|
<Property Name="InformationalVersion" Value="$(InformationalVersion)-PF-$(PreflightChange)" If="'$(PreflightChange)' != ''"/>
|
|
<Property Name="VersionArguments" Value="/p:Version=$(Version).0 /p:InformationalVersion=$(InformationalVersion)"/>
|
|
|
|
<Property Name="DotNetPath" Value=""/>
|
|
<Property Name="DotNetPath" Value="$(RootDir)/Engine/Binaries/ThirdParty/DotNet/8.0.100/windows/dotnet.exe" If="$(HostPlatform) == 'Win64'"/>
|
|
<Property Name="DotNetPath" Value="$(RootDir)/Engine/Binaries/ThirdParty/DotNet/8.0.100/linux/dotnet" If="$(HostPlatform) == 'Linux'"/>
|
|
|
|
<!-- SERVER -->
|
|
|
|
<Property Name="StagePaths">
|
|
Engine/Binaries/DotNET/EpicGames.Perforce.Native/...
|
|
Engine/Source/Programs/Shared/...
|
|
Engine/Source/Programs/Horde/...
|
|
Engine/Source/Programs/AutomationTool/AutomationUtils/Matchers/...
|
|
Engine/Source/Programs/UnrealBuildTool/Matchers/...
|
|
</Property>
|
|
|
|
<Agent Name="HordeServer" Type="Linux;Win64_Docker">
|
|
<Property Name="StagingDir" Value="$(RootDir)/Engine/Saved/Horde.Server"/>
|
|
|
|
<Node Name="Check Documentation">
|
|
<CheckMarkdown Files="$(RootDir)/Engine/Source/Programs/Horde/README.md;$(RootDir)/Engine/Source/Programs/Horde/Docs/..."/>
|
|
</Node>
|
|
|
|
<Node Name="Analyze HordeServer" Requires="Check Documentation">
|
|
<DotNet Arguments="build "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" /p:Configuration=Analyze $(VersionArguments)" DotNetPath="$(DotNetPath)"/>
|
|
<DotNet Arguments="build "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server.Tests/Horde.Server.Tests.csproj" /p:Configuration=Analyze $(VersionArguments)" DotNetPath="$(DotNetPath)"/>
|
|
</Node>
|
|
|
|
<Node Name="Check HordeServer Licenses" Requires="Analyze HordeServer">
|
|
<Property Name="IgnorePackages">
|
|
NETStandard.Library@2.0.0
|
|
Serilog.Enrichers.OpenTracing@0.0.2
|
|
SharpCompress@0.30.1
|
|
Humanizer.Core@2.2.0
|
|
</Property>
|
|
<NuGet-LicenseCheck BaseDir="Engine/Source/Programs/Horde/Horde.Server" IgnorePackages="$(IgnorePackages)" LicenseDir="Engine/Source/Programs/Horde/ThirdParty/Licenses" DotNetPath="$(DotNetPath)"/>
|
|
</Node>
|
|
|
|
<Node Name="Build HordeServer" Requires="Check HordeServer Licenses">
|
|
<!-- Tag all the files that need to be staged to build -->
|
|
<Tag Files="$(StagePaths)" Except=".../.vs/...;.../.git/...;.../bin/...;.../obj/..." With="#InputFiles"/>
|
|
|
|
<!-- Build the Docker image and publish it -->
|
|
<Docker-Build BaseDir="Engine" Files="#InputFiles" Tag="horde-server-bare" DockerFile="Engine/Source/Programs/Horde/Horde.Server/Dockerfile" Arguments="--build-arg msbuild_args="$(VersionArguments)""/>
|
|
</Node>
|
|
|
|
<Node Name="Test HordeServer Code Coverage">
|
|
<Tag Files="$(StagePaths)" Except=".../.vs/...;.../.git/...;.../bin/...;.../obj/..." With="#InputFiles"/>
|
|
<Docker-Build BaseDir="Engine" Files="#InputFiles" Tag="hordeserver-codecov" UseBuildKit="true" Target="build-env-output" Output="type=local,dest=/tmp/docker-output" DockerFile="Engine/Source/Programs/Horde/Horde.Server/Dockerfile" Arguments="--build-arg msbuild_args="$(VersionArguments)" --build-arg code_coverage="true"" />
|
|
<Copy From="/tmp/docker-output/dotcover-report.zip" To="$(RootDir)/Engine/Programs/AutomationTool/Saved/Logs/dotcover-report.zip" />
|
|
</Node>
|
|
|
|
<!-- Build server and dashboard on same agent as we rely on local, unpublished Docker images for bundling dashboard with server below -->
|
|
<Node Name="Build HordeDashboard">
|
|
<Copy From="Engine/Source/Programs/Horde/Docs/..." To="Engine/Source/Programs/Horde/HordeDashboard/documentation/Docs/..."/>
|
|
<Copy From="Engine/Source/Programs/Horde/README.md" To="Engine/Source/Programs/Horde/HordeDashboard/documentation/README.md"/>
|
|
<Tag Files="Engine/Source/Programs/Horde/HordeDashboard/..." Except="Engine/Source/Programs/Horde/HordeDashboard/node_modules/..." With="#InputFiles"/>
|
|
|
|
<!-- Build the dashboard Docker image and publish it -->
|
|
<Docker-Build BaseDir="Engine" Files="#InputFiles" Tag="hordedashboard-public" DockerFile="Engine/Source/Programs/Horde/HordeDashboard/Dockerfile" Arguments="--build-arg "VersionInfo=$(InformationalVersion)" --build-arg "DashboardConfig=$(HordeDashboardConfig)""/>
|
|
</Node>
|
|
|
|
<Node Name="Build HordeServer with Dashboard" Requires="Build HordeServer;Build HordeDashboard">
|
|
<!-- Create a new image by combining server and dashboard image into one -->
|
|
<Docker-Build BaseDir="Engine/Source/Programs/Horde/Horde.Server" Files="Dockerfile*" Tag="horde-server" DockerFile="Engine/Source/Programs/Horde/Horde.Server/Dockerfile.dashboard" />
|
|
</Node>
|
|
</Agent>
|
|
|
|
<!-- INSTALLER -->
|
|
|
|
<Property Name="InstallerDir" Value="$(RootDir)/Engine/Source/Programs/Horde/Installer"/>
|
|
<Property Name="InstallerConfig" Value="Debug"/>
|
|
<Property Name="InstallerOutputDir" Value="$(RootDir)/Engine/Source/Programs/Horde/Installer/bin/$(InstallerConfig)"/>
|
|
|
|
<Property Name="ServerToolsStagingDir" Value="$(RootDir)/Staging/ServerTools"/>
|
|
<Property Name="ServerToolsStagingDir_HordeCmd" Value="$(ServerToolsStagingDir)/HordeCmd"/>
|
|
<Property Name="ServerToolsStagingDir_HordeAgent" Value="$(ServerToolsStagingDir)/HordeAgent"/>
|
|
<Property Name="ServerToolsStagingDir_HordeAgentWin64" Value="$(ServerToolsStagingDir)/HordeAgentWin64"/>
|
|
<Property Name="ServerToolsStagingDir_HordeAgentMsi" Value="$(ServerToolsStagingDir)/HordeAgentMsi"/>
|
|
<Property Name="ServerToolsStagingDir_P4VUtils" Value="$(ServerToolsStagingDir)/P4VUtils"/>
|
|
<Property Name="ServerToolsStagingDir_UnrealGameSync" Value="$(ServerToolsStagingDir)/UnrealGameSync"/>
|
|
<Property Name="ServerToolsStagingDir_UnrealGameSyncCmd" Value="$(ServerToolsStagingDir)/UnrealGameSyncCmd"/>
|
|
<Property Name="ServerToolsStagingDir_UnrealGameSyncMsi" Value="$(ServerToolsStagingDir)/UnrealGameSyncMsi"/>
|
|
|
|
<Agent Name="HordeInstallerTools" Type="LicenseeWin64;Win64">
|
|
<Node Name="Build HordeCmd" Produces="#HordeCmdFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_HordeCmd)/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Horde/Horde.csproj" --output "$(ServerToolsStagingDir_HordeCmd)" --runtime win-x64 --self-contained $(VersionArguments)" DotNetPath="$(DotNetPath)" />
|
|
<Sign Files="$(ServerToolsStagingDir_HordeCmd)/Horde.exe;$(ServerToolsStagingDir_HordeCmd)/Horde.dll;$(ServerToolsStagingDir_HordeCmd)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
<Tag Files="$(ServerToolsStagingDir_HordeCmd)/..." With="#HordeCmdFiles"/>
|
|
</Node>
|
|
<Node Name="Build HordeAgent" Produces="#HordeAgentFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_HordeAgent)/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Horde.Agent/Horde.Agent.csproj" --output "$(ServerToolsStagingDir_HordeAgent)" $(VersionArguments)"/>
|
|
<Delete Files="$(ServerToolsStagingDir_HordeAgent)/appsettings.Local.json"/>
|
|
<Sign Files="$(ServerToolsStagingDir_HordeAgent)/HordeAgent.exe;$(ServerToolsStagingDir_HordeAgent)/HordeAgent.dll;$(ServerToolsStagingDir_HordeAgent)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
<Tag Files="$(ServerToolsStagingDir_HordeAgent)/..." With="#HordeAgentFiles"/>
|
|
</Node>
|
|
<Node Name="Build HordeAgent Win64" Produces="#HordeAgentWin64Files">
|
|
<Delete Files="$(ServerToolsStagingDir_HordeAgentWin64)/..."/>
|
|
|
|
<!-- Build the agent -->
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Horde.Agent/Horde.Agent.csproj" --output "$(ServerToolsStagingDir_HordeAgentWin64)" --runtime win7-x64 --self-contained $(VersionArguments)"/>
|
|
<Sign Files="$(ServerToolsStagingDir_HordeAgentWin64)/HordeAgent.exe;$(ServerToolsStagingDir_HordeAgentWin64)/HordeAgent.dll;$(ServerToolsStagingDir_HordeAgentWin64)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
|
|
<!-- Build the tray app -->
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Horde.Agent.TrayApp/Horde.Agent.TrayApp.csproj" --output "$(ServerToolsStagingDir_HordeAgentWin64)/TrayApp" --runtime win7-x64 --self-contained $(VersionArguments)"/>
|
|
<Sign Files="$(ServerToolsStagingDir_HordeAgentWin64)/TrayApp/Horde.Agent.TrayApp.exe;$(ServerToolsStagingDir_HordeAgentWin64)/TrayApp/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
|
|
<Delete Files="$(ServerToolsStagingDir_HordeAgentWin64)/appsettings.Local.json"/>
|
|
<Tag Files="$(ServerToolsStagingDir_HordeAgentWin64)/..." With="#HordeAgentWin64Files"/>
|
|
</Node>
|
|
<Node Name="Build P4VUtils" Produces="#P4VUtilsFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_P4VUtils)/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Extras/P4VUtils/P4VUtils.csproj" --configuration Release --runtime win-x64 --self-contained --output "$(ServerToolsStagingDir_P4VUtils)" /p:IsWindows=true /p:IsOSX=false /p:IsLinux=false /p:WithRestricted=false $(VersionArguments)"/>
|
|
<Tag Files="$(ServerToolsStagingDir_P4VUtils)/..." With="#P4VUtilsFiles"/>
|
|
</Node>
|
|
<Node Name="Build UnrealGameSync" Produces="#UnrealGameSyncFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_UnrealGameSync)/..."/>
|
|
<DotNet Arguments="publish "$(UgsDir)/UnrealGameSyncCmd/UnrealGameSyncCmd.csproj" --output="$(ServerToolsStagingDir_UnrealGameSync)" --self-contained -c ReleaseAutoUpdate -r win-x64 $(VersionArguments)"/>
|
|
<DotNet Arguments="publish "$(UgsDir)/UnrealGameSync/UnrealGameSync.csproj" --output="$(ServerToolsStagingDir_UnrealGameSync)" --self-contained -c ReleaseAutoUpdate -r win-x64 $(VersionArguments)"/>
|
|
<Sign Files="$(ServerToolsStagingDir_UnrealGameSync)/UnrealGameSync.exe;$(ServerToolsStagingDir_UnrealGameSync)/ugs.exe;$(ServerToolsStagingDir_UnrealGameSync)/ugs.dll;$(ServerToolsStagingDir_UnrealGameSync)/UnrealGameSync*.dll;$(ServerToolsStagingDir_UnrealGameSync)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
<Tag Files="$(ServerToolsStagingDir_UnrealGameSync)/..." With="#UnrealGameSyncFiles"/>
|
|
</Node>
|
|
<Node Name="Build UnrealGameSync Cmd" Produces="#UnrealGameSyncCmdFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_UnrealGameSyncCmd)/..."/>
|
|
<DotNet Arguments="publish "$(UgsDir)/UnrealGameSyncCmd/UnrealGameSyncCmd.csproj" --output="$(ServerToolsStagingDir_UnrealGameSyncCmd)" --no-self-contained -c Release -r osx-x64 $(VersionArguments)"/>
|
|
<DotNet Arguments="publish "$(UgsDir)/UnrealGameSyncCmd/UnrealGameSyncCmd.csproj" --output="$(ServerToolsStagingDir_UnrealGameSyncCmd)" --no-self-contained -c Release -r linux-x64 $(VersionArguments)"/>
|
|
<DotNet Arguments="publish "$(UgsDir)/UnrealGameSyncCmd/UnrealGameSyncCmd.csproj" --output="$(ServerToolsStagingDir_UnrealGameSyncCmd)" --no-self-contained -c Release -r win-x64 $(VersionArguments)"/>
|
|
<Sign Files="$(ServerToolsStagingDir_UnrealGameSyncCmd)/ugs.dll;$(ServerToolsStagingDir_UnrealGameSyncCmd)/UnrealGameSync*.dll;$(ServerToolsStagingDir_UnrealGameSyncCmd)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
<Tag Files="$(ServerToolsStagingDir_UnrealGameSyncCmd)/..." With="#UnrealGameSyncCmdFiles"/>
|
|
</Node>
|
|
<Node Name="Build UnrealGameSync Msi" Requires="Build UnrealGameSync" Produces="#UnrealGameSyncMsiFiles">
|
|
<Property Name="UgsInstallerDir" Value="$(RootDir)/Engine/Source/Programs/UnrealGameSync/Installer"/>
|
|
<Property Name="UgsPublishDir" Value="$(ServerToolsStagingDir_UnrealGameSync)"/>
|
|
|
|
<Spawn Exe="$(WixDir)/heat.exe" Arguments="dir "$(UgsPublishDir)" -cg UGSLauncher_Project -dr INSTALLFOLDER -scom -sreg -srd -var var.BasePath -gg -sfrag -out obj/Release/UGSLauncher.wxs" WorkingDir="$(UgsInstallerDir)"/>
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="-dBasePath="$(UgsPublishDir)" -out obj\Release\ -dConfiguration=Release -dPlatform=x64 -arch x86 -ext ..\..\..\ThirdParty\WiX\3.8\WixUtilExtension.dll Product.wxs obj/Release/UGSLauncher.wxs" WorkingDir="$(UgsInstallerDir)"/>
|
|
<Spawn Exe="$(WixDir)/light.exe" Arguments="-out "bin/Release/UnrealGameSync.msi" -pdbout "bin/Release/UnrealGameSync.wixpdb" -cultures:null -ext ..\..\..\ThirdParty\WiX\3.8\WixUtilExtension.dll -sice:ICE69 "obj\Release\Product.wixobj" "obj\Release\UGSLauncher.wixobj"" WorkingDir="$(UgsInstallerDir)"/>
|
|
|
|
<Sign Files="$(UgsInstallerDir)/bin/Release/UnrealGameSync.msi" Description="UnrealGameSync" If="'$(SignOutputs)' == 'true'"/>
|
|
<Copy From="$(UgsInstallerDir)/bin/Release/UnrealGameSync.msi" To="$(ServerToolsStagingDir_UnrealGameSyncMsi)/UnrealGameSync.msi" Tag="#UnrealGameSyncMsiFiles"/>
|
|
</Node>
|
|
|
|
</Agent>
|
|
|
|
<Agent Name="HordeInstallerDashboard" Type="Linux">
|
|
<Property Name="StagingDir" Value="$(RootDir)/Staging"/>
|
|
|
|
<Node Name="Stage Horde Installer Dashboard" Produces="#DashboardOutputFiles">
|
|
<Delete Files="$(StagingDir)/Dashboard/..."/>
|
|
<WriteTextFile File="$(StagingDir)/Dashboard/index.html" Text="placeholder"/>
|
|
|
|
<!-- Build the dashboard -->
|
|
<Tag Files="Engine/Source/Programs/Horde/HordeDashboard/..." With="#DashboardInputFiles"/>
|
|
<Docker-Build BaseDir="Engine/Source" Files="#DashboardInputFiles" Tag="hordedashboard:installer" DockerFile="Engine/Source/Programs/Horde/HordeDashboard/installer/Dockerfile" Arguments="--build-arg "VersionInfo=$(InformationalVersion)" --build-arg "DashboardConfig=$(HordeDashboardConfig)""/>
|
|
|
|
<!-- Create a container from the image that can copy files from, note that this does not start the container -->
|
|
<Docker Arguments="create --name horde-installer-container hordedashboard:installer"/>
|
|
|
|
<!-- Copy the dashboard build to the server -->
|
|
<Docker Arguments="cp horde-installer-container:/app/Dashboard/build/. "$(StagingDir)/Dashboard""/>
|
|
|
|
<!-- Remove the container now that files are copied -->
|
|
<Docker Arguments="rm horde-installer-container"/>
|
|
|
|
<!-- Copy the Horde documentation to the root folder -->
|
|
<Copy From="$(RootDir)/Engine/Source/Programs/Horde/Docs/..." To="$(StagingDir)/Dashboard/documentation/Docs/..."/>
|
|
<Copy From="$(RootDir)/Engine/Source/Programs/Horde/README.md" To="$(StagingDir)/Dashboard/documentation/README.md"/>
|
|
|
|
<Tag Files="$(StagingDir)/Dashboard/..." With="#DashboardOutputFiles"/>
|
|
</Node>
|
|
</Agent>
|
|
|
|
<Agent Name="HordeInstaller" Type="Win64;CompileWin64">
|
|
<Property Name="StagingDir" Value="$(RootDir)/Staging"/>
|
|
<Property Name="ObjDir" Value="obj/$(InstallerConfig)"/>
|
|
<Property Name="BinDir" Value="bin/$(InstallerConfig)"/>
|
|
<Property Name="CommonArgs" Value="-dConfiguration=$(InstallerConfig) -dPlatform=x64 -arch x64"/>
|
|
|
|
<Node Name="Build Horde Agent Installer" Requires="#HordeAgentWin64Files" Produces="#HordeAgentMsiFiles">
|
|
|
|
<!-- Create the agent file list -->
|
|
<Delete Files="$(StagingDir)/Agent-Bulk/..."/>
|
|
<Tag Files="#HordeAgentWin64Files" Except="HordeAgent.exe;Horde.Agent.TrayApp.exe" With="#AgentFiles"/>
|
|
<Copy Files="#AgentFiles" From="$(ServerToolsStagingDir_HordeAgentWin64)" To="$(StagingDir)/Agent-Bulk/Agent"/>
|
|
|
|
<Spawn Exe="$(WixDir)/heat.exe" Arguments="dir "$(StagingDir)/Agent-Bulk" -cg HordeAgentFiles -scom -sreg -gg -dr InstallDir -srd -var var.SourceDir -out "$(InstallerDir)/HordeAgentFiles.wxs""/>
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) HordeAgentFiles.wxs -dSourceDir="$(StagingDir)/Agent-Bulk" -out "$(ObjDir)/HordeAgentFiles.wixobj"" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- Main component -->
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) AgentInstaller.wxs -dStagingDir="$(ServerToolsStagingDir_HordeAgentWin64)" -out "$(ObjDir)/AgentInstaller.wixobj" -ext WixUtilExtension" WorkingDir="$(InstallerDir)"/>
|
|
<Spawn Exe="$(WixDir)/light.exe" Arguments="-out "$(BinDir)/UnrealHordeAgent.msi" -sw1076 -pdbout "$(BinDir)/UnrealHordeAgent.pdb" "$(ObjDir)/AgentInstaller.wixobj" "$(ObjDir)/HordeAgentFiles.wixobj" -ext WixUtilExtension -ext WixUIExtension" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- We need to sign here as will be included in the server msi -->
|
|
<Sign Files="$(InstallerOutputDir)/UnrealHordeAgent.msi" Description="Horde Agent" If="'$(SignOutputs)' == 'true'"/>
|
|
|
|
<!-- Copy files to the output directory -->
|
|
<Copy Files="UnrealHordeAgent.msi" From="$(InstallerOutputDir)" To="$(ServerToolsStagingDir_HordeAgentMsi)"/>
|
|
<Tag Files="$(ServerToolsStagingDir_HordeAgentMsi)/..." With="#HordeAgentMsiFiles"/>
|
|
|
|
</Node>
|
|
|
|
<Node Name="Stage Horde Server Installer" Requires="#DashboardOutputFiles;#HordeCmdFiles;#HordeAgentFiles;#HordeAgentMsiFiles;#P4VUtilsFiles;#UnrealGameSyncFiles;#UnrealGameSyncCmdFiles;#UnrealGameSyncMsiFiles;" Produces="#ServerWithToolsFiles">
|
|
|
|
<!-- Stage the server -->
|
|
<Delete Files="$(StagingDir)/Server/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" --output "$(StagingDir)/Server" --runtime win-x64 --self-contained $(VersionArguments)" DotNetPath="$(DotNetPath)" />
|
|
|
|
<!-- Remove the local config file. This is only used for local iteration. -->
|
|
<Delete Files="$(StagingDir)/Server/appsettings.Local.json"/>
|
|
|
|
<!-- Add the bundled tools into the installer -->
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=horde-cmd -name="Horde (Command-Line)" -description="Update package for the Horde command-line tool." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeCmd)" -serverdir="$(StagingDir)/Server" -public -showinugs -Category=Internal" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=horde-agent -name="Horde Agent (Cross-Platform)" -description="Cross-platform Horde Agent distribution. Allows hosts to take on work from the Horde Server." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeAgent)" -serverdir="$(StagingDir)/Server" -public" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=horde-agent-win64 -name="Horde Agent (Windows)" -description="Update package for older installations of Horde Agent through the MSI installer." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeAgentWin64)" -serverdir="$(StagingDir)/Server" -public -showindashboard=false -category=Internal" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=horde-agent-win64-installer -name="Horde Agent (Windows Installer)" -description="Installer for the Horde Agent on Windows, with tray application." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeAgentMsi)" -serverdir="$(StagingDir)/Server" -public" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=p4v-utils -name="P4V Extensions" -description="Update package for the P4VUtils tool." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_P4VUtils)" -serverdir="$(StagingDir)/Server" -public -showinugs -category=Internal" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=ugs-cmd -name="UnrealGameSync (Command-Line)" -description="Command-line version of UnrealGameSync. Supports Windows, MacOS and Linux." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealGameSyncCmd)" -serverdir="$(StagingDir)/Server" -public" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=ugs-msi -name="UnrealGameSync (Windows Installer)" -description="Installer for UnrealGameSync." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealGameSyncMsi)" -serverdir="$(StagingDir)/Server" -public" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/Horde.Server/Horde.Server.csproj" -- generate tooldata -id=ugs-win -name="UnrealGameSync (Windows Update Package)" -description="Update package for UGS on Windows." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealGameSync)" -serverdir="$(StagingDir)/Server" -public -showindashboard=false -category=Internal" DotNetPath="$(DotNetPath)" />
|
|
|
|
<!-- Separate copy of the command line tool for installation with the server on Windows -->
|
|
<Delete Files="$(StagingDir)/Tools/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Horde/Horde.csproj" --output "$(StagingDir)/Tools" --runtime win-x64 --self-contained $(VersionArguments)" DotNetPath="$(DotNetPath)" />
|
|
|
|
<!-- Copy the Dashboard -->
|
|
<Copy Files="#DashboardOutputFiles" From="$(StagingDir)/Dashboard/..." To="$(StagingDir)/Server/DashboardApp/..." />
|
|
|
|
<!-- Copy the VCREDIST files -->
|
|
<Copy From="$(StagingDir)/Server/ThirdParty/Mongo/*.dll" To="$(StagingDir)/Server"/>
|
|
|
|
<Tag Files="$(StagingDir)/Server/..." With="#ServerWithToolsFiles" />
|
|
</Node>
|
|
|
|
<Node Name="Build Horde Server Installer" Requires="Stage Horde Server Installer">
|
|
|
|
<!-- Create the tools file list -->
|
|
<Delete Files="$(StagingDir)/Tools-Bulk/..."/>
|
|
<Tag Files="$(StagingDir)/Tools/..." With="#ToolsFiles"/>
|
|
<Copy Files="#ToolsFiles" From="$(StagingDir)" To="$(StagingDir)/Tools-Bulk"/>
|
|
|
|
<Spawn Exe="$(WixDir)/heat.exe" Arguments="dir "$(StagingDir)/Tools-Bulk" -cg HordeToolsFiles -scom -sreg -gg -dr InstallDir -srd -var var.SourceDir -out "$(InstallerDir)/HordeToolsFiles.wxs""/>
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) HordeToolsFiles.wxs -dSourceDir="$(StagingDir)" -out $(ObjDir)/HordeToolsFiles.wixobj" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- Create the server file list -->
|
|
<Delete Files="$(StagingDir)/Server-Bulk/..."/>
|
|
<Tag Files="$(StagingDir)/Server/..." Except="HordeServer.exe" With="#ServerFiles"/>
|
|
<Copy Files="#ServerFiles" From="$(StagingDir)" To="$(StagingDir)/Server-Bulk"/>
|
|
|
|
<Spawn Exe="$(WixDir)/heat.exe" Arguments="dir "$(StagingDir)/Server-Bulk" -cg HordeServerFiles -scom -sreg -gg -dr InstallDir -srd -var var.SourceDir -out "$(InstallerDir)/HordeServerFiles.wxs""/>
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) HordeServerFiles.wxs -dSourceDir="$(StagingDir)" -out $(ObjDir)/HordeServerFiles.wixobj" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- Main component -->
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) ServerInstaller.wxs -dStagingDir="$(StagingDir)" -out $(ObjDir)/ServerInstaller.wixobj -ext WixUtilExtension" WorkingDir="$(InstallerDir)"/>
|
|
<Spawn Exe="$(WixDir)/light.exe" Arguments="-out $(BinDir)/UnrealHordeServer.msi -sw1076 -pdbout $(BinDir)/UnrealHordeServer.pdb $(ObjDir)/ServerInstaller.wixobj $(ObjDir)/HordeServerFiles.wixobj $(ObjDir)/HordeToolsFiles.wixobj -ext WixUtilExtension -ext WixUIExtension" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- We need to sign here as will be included in the server msi -->
|
|
<Sign Files="$(InstallerOutputDir)/UnrealHordeServer.msi" Description="Horde Server" If="'$(SignOutputs)' == 'true'"/>
|
|
<Copy Files="UnrealHordeServer.msi" From="$(InstallerOutputDir)" To="$(StagingDir)/Server-Installer"/>
|
|
|
|
</Node>
|
|
</Agent>
|
|
|
|
<Agent Name="HordeInstallerLinux" Type="Linux">
|
|
<Property Name="StagingDir" Value="$(RootDir)/Staging"/>
|
|
|
|
<Node Name="Build Bundled Docker Image" Requires="Stage Horde Server Installer;#ServerWithToolsFiles">
|
|
<Tag Files="$(StagePaths)" Except=".../.vs/...;.../.git/...;.../bin/...;.../obj/..." With="#InputFiles"/>
|
|
<Docker-Build BaseDir="Engine" Files="#InputFiles" Tag="horde-server-bare" DockerFile="Engine/Source/Programs/Horde/Horde.Server/Dockerfile" Arguments="--build-arg msbuild_args="$(VersionArguments)""/>
|
|
|
|
<!-- A Horde server image has already been built, and is referenced inside Dockerfile.bundled -->
|
|
<Copy From="Engine/Source/Programs/Horde/Horde.Server/Dockerfile.bundled" To="$(StagingDir)/Dockerfile.bundled" />
|
|
<Tag Files="$(StagingDir)/Dockerfile*;$(StagingDir)/Dashboard/...;$(StagingDir)/Server/Tools/...;$(StagingDir)/Server/*.json" With="#DockerFiles"/>
|
|
<Docker-Build BaseDir="$(StagingDir)" Files="#DockerFiles" Tag="horde-server:bundled" DockerFile="$(StagingDir)/Dockerfile.bundled" />
|
|
</Node>
|
|
|
|
<Node Name="Push Bundled Docker Image" Requires="Build Bundled Docker Image">
|
|
<Docker-Push Repository="$(ImageRepoUrl)" Image="horde-server:bundled" TargetImage="$(ImageName):$(ImageTag)$(ImageTagSuffix)" EnvironmentFile="$(ImageEnvFile)" RepositoryAuthFile="$(ImageRepoAuthFile)" />
|
|
</Node>
|
|
</Agent>
|
|
|
|
</BuildGraph>
|