387 lines
35 KiB
XML
387 lines
35 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="DotNetRootPath" Value="$(RootDir)/Engine/Binaries/ThirdParty/DotNet/8.0.300"/>
|
|
<Property Name="DotNetPath" Value=""/>
|
|
<Property Name="DotNetPath" Value="$(DotNetRootPath)/win-x64/dotnet.exe" If="$(HostPlatform) == 'Win64' And $(HostArchitecture) == 'X64'"/>
|
|
<Property Name="DotNetPath" Value="$(DotNetRootPath)/win-arm64/dotnet.exe" If="$(HostPlatform) == 'Win64' And $(HostArchitecture) == 'Arm64'"/>
|
|
<Property Name="DotNetPath" Value="$(DotNetRootPath)/linux-x64/dotnet" If="$(HostPlatform) == 'Linux' And $(HostArchitecture) == 'X64'"/>
|
|
<Property Name="DotNetPath" Value="$(DotNetRootPath)/linux-arm64/dotnet" If="$(HostPlatform) == 'Linux' And $(HostArchitecture) == 'Arm64'"/>
|
|
<Property Name="DotNetPath" Value="$(DotNetRootPath)/mac-x64/dotnet" If="$(HostPlatform) == 'Mac' And $(HostArchitecture) == 'X64'"/>
|
|
<Property Name="DotNetPath" Value="$(DotNetRootPath)/mac-arm64/dotnet" If="$(HostPlatform) == 'Mac' And $(HostArchitecture) == 'Arm64'"/>
|
|
|
|
<!-- 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 Analyze" Type="Linux;Win64_Docker">
|
|
<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/HordeServer/HordeServer.csproj" /p:Configuration=Analyze $(VersionArguments)" DotNetPath="$(DotNetPath)"/>
|
|
<DotNet Arguments="build "$(RootDir)/Engine/Source/Programs/Horde/HordeServer.Tests/HordeServer.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/HordeServer" IgnorePackages="$(IgnorePackages)" LicenseDir="Engine/Source/Programs/Horde/ThirdParty/Licenses" DotNetPath="$(DotNetPath)"/>
|
|
</Node>
|
|
</Agent>
|
|
|
|
<Agent Name="HordeServer" Type="Linux;Win64_Docker">
|
|
<Property Name="StagingDir" Value="$(RootDir)/Engine/Saved/HordeServer"/>
|
|
|
|
<Node Name="Docker Prune">
|
|
<Docker Arguments="system prune --all --force --volumes"/>
|
|
</Node>
|
|
|
|
<Node Name="Build HordeServer">
|
|
<!-- 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/HordeServer/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/HordeServer/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/HordeServer" Files="Dockerfile*" Tag="horde-server" DockerFile="Engine/Source/Programs/Horde/HordeServer/Dockerfile.dashboard" />
|
|
</Node>
|
|
</Agent>
|
|
|
|
<Agent Name="UnrealToolbox" Type="Win64">
|
|
<Node Name="Analyze UnrealToolbox">
|
|
<DotNet Arguments="build "$(EngineDir)/Source/Programs/UnrealToolbox/UnrealToolbox.csproj" -p:Configuration=Analyze --nologo" DotNetPath="$(DotNetPath)"/>
|
|
</Node>
|
|
|
|
<Node Name="Check UnrealToolbox Licenses" Requires="Analyze UnrealToolbox">
|
|
<Property Name="IgnorePackages">
|
|
NETStandard.Library@2.0.0
|
|
Serilog.Enrichers.OpenTracing@0.0.2
|
|
SharpCompress@0.30.1
|
|
Humanizer.Core@2.2.0
|
|
Avalonia.BuildServices@0.0.29
|
|
</Property>
|
|
<NuGet-LicenseCheck BaseDir="Engine/Source/Programs/UnrealToolbox" IgnorePackages="$(IgnorePackages)" LicenseDir="Engine/Source/Programs/Horde/ThirdParty/Licenses" DotNetPath="$(DotNetPath)"/>
|
|
</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_HordeAgentMsiToolbox" Value="$(ServerToolsStagingDir)/HordeAgentMsiToolbox"/>
|
|
<Property Name="ServerToolsStagingDir_UnrealToolbox" Value="$(ServerToolsStagingDir)/UnrealToolbox"/>
|
|
<Property Name="ServerToolsStagingDir_UnrealToolboxMsi" Value="$(ServerToolsStagingDir)/UnrealToolboxMsi"/>
|
|
<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"/>
|
|
|
|
<!-- Changing the windows architecture value here means updates elsewhere in this XML, and in the Installer wxs file -->
|
|
<Property Name="ServerArchList" Value="win-x64;osx-arm64;linux-x64"/>
|
|
|
|
<Agent Name="HordeInstallerTools" Type="Win64_Licensee;Win64">
|
|
<Node Name="Build HordeCmd" Produces="#HordeCmdFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_HordeCmd)/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/HordeCmd/HordeCmd.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/HordeAgent/HordeAgent.csproj" --output "$(ServerToolsStagingDir_HordeAgent)" $(VersionArguments)"/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Drivers/JobDriver/JobDriver.csproj" --output "$(ServerToolsStagingDir_HordeAgent)/JobDriver" $(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'"/>
|
|
<Sign Files="$(ServerToolsStagingDir_HordeAgent)/JobDriver/JobDriver.exe;$(ServerToolsStagingDir_HordeAgent)/JobDriver/JobDriver.dll;$(ServerToolsStagingDir_HordeAgent)/JobDriver/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/HordeAgent/HordeAgent.csproj" --output "$(ServerToolsStagingDir_HordeAgentWin64)" --runtime win-x64 --self-contained $(VersionArguments)"/>
|
|
<Sign Files="$(ServerToolsStagingDir_HordeAgentWin64)/HordeAgent.exe;$(ServerToolsStagingDir_HordeAgentWin64)/HordeAgent.dll;$(ServerToolsStagingDir_HordeAgentWin64)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
|
|
<!-- Build the driver -->
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/Drivers/JobDriver/JobDriver.csproj" --output "$(ServerToolsStagingDir_HordeAgentWin64)/JobDriver" --runtime win-x64 --self-contained $(VersionArguments)"/>
|
|
<Sign Files="$(ServerToolsStagingDir_HordeAgentWin64)/JobDriver/JobDriver.exe;$(ServerToolsStagingDir_HordeAgentWin64)/JobDriver/JobDriver.dll;$(ServerToolsStagingDir_HordeAgentWin64)/JobDriver/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
|
|
<Delete Files="$(ServerToolsStagingDir_HordeAgentWin64)/appsettings.Local.json"/>
|
|
<Tag Files="$(ServerToolsStagingDir_HordeAgentWin64)/..." With="#HordeAgentWin64Files"/>
|
|
</Node>
|
|
<Node Name="Build UnrealToolbox" Produces="#UnrealToolboxFiles">
|
|
<Delete Files="$(ServerToolsStagingDir_UnrealToolbox)/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/UnrealToolbox/UnrealToolbox.csproj" --output "$(ServerToolsStagingDir_UnrealToolbox)" --runtime win-x64 --self-contained $(VersionArguments)" DotNetPath="$(DotNetPath)" />
|
|
<WriteTextFile File="$(ServerToolsStagingDir_UnrealToolbox)/Version.json" Text="{ "version": "$(InformationalVersion)" }"/>
|
|
<Sign Files="$(ServerToolsStagingDir_UnrealToolbox)/UnrealToolbox.exe;$(ServerToolsStagingDir_UnrealToolbox)/UnrealToolbox.dll;$(ServerToolsStagingDir_UnrealToolbox)/EpicGames.*.dll" If="'$(SignOutputs)' == 'true'"/>
|
|
<Tag Files="$(ServerToolsStagingDir_UnrealToolbox)/..." With="#UnrealToolboxFiles"/>
|
|
</Node>
|
|
<Node Name="Build UnrealToolbox Msi" Requires="Build UnrealToolbox" Produces="#UnrealToolboxMsiFiles">
|
|
<Property Name="StagingDir" Value="$(RootDir)/Staging"/>
|
|
<Property Name="CommonArgs" Value="-dPlatform=x64 -arch x64"/>
|
|
|
|
<!-- Create the toolbox file list -->
|
|
<Delete Files="$(StagingDir)/Toolbox-Bulk/..."/>
|
|
<Tag Files="#UnrealToolboxFiles" Except="UnrealToolbox.exe" With="#ToolboxBulkFiles"/>
|
|
<Copy Files="#ToolboxBulkFiles" From="$(ServerToolsStagingDir_UnrealToolbox)" To="$(StagingDir)/Toolbox-Bulk"/>
|
|
|
|
<Spawn Exe="$(WixDir)/heat.exe" Arguments="dir "$(StagingDir)/Toolbox-Bulk" -cg UnrealToolboxFiles -scom -sreg -gg -dr ToolboxInstallDir -srd -var var.SourceDir -out "$(InstallerDir)/UnrealToolboxFiles.wxs""/>
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) UnrealToolboxFiles.wxs -dSourceDir="$(StagingDir)/Toolbox-Bulk" -out "obj/UnrealToolboxFiles.wixobj"" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- Main component -->
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) ToolboxInstaller.wxs -dStagingDir="$(ServerToolsStagingDir_UnrealToolbox)" -out "obj/UnrealToolbox.wixobj" -ext WixUtilExtension" WorkingDir="$(InstallerDir)"/>
|
|
<Spawn Exe="$(WixDir)/light.exe" Arguments="-out "bin/UnrealToolbox.msi" -sw1076 -pdbout "bin/UnrealToolbox.pdb" "obj/UnrealToolbox.wixobj" "obj/UnrealToolboxFiles.wixobj" -ext WixUtilExtension -ext WixUIExtension" WorkingDir="$(InstallerDir)"/>
|
|
|
|
<!-- We need to sign here as will be included in the server msi -->
|
|
<Sign Files="$(InstallerDir)/bin/UnrealToolbox.msi" Description="Unreal Toolbox" If="'$(SignOutputs)' == 'true'"/>
|
|
|
|
<!-- Copy files to the output directory -->
|
|
<Copy Files="UnrealToolbox.msi" From="$(InstallerDir)/bin" To="$(ServerToolsStagingDir_UnrealToolboxMsi)"/>
|
|
<Tag Files="$(ServerToolsStagingDir_UnrealToolboxMsi)/..." With="#UnrealToolboxMsiFiles"/>
|
|
</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/dist/. "$(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;UnrealToolbox.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>
|
|
|
|
<ForEach Name="ServerArch" Values="$(ServerArchList)">
|
|
<Node Name="Stage Horde Server Installer ($(ServerArch))" Requires="#DashboardOutputFiles;#HordeCmdFiles;#HordeAgentFiles;#HordeAgentMsiFiles;#UnrealToolboxFiles;#UnrealToolboxMsiFiles;#P4VUtilsFiles;#UnrealGameSyncFiles;#UnrealGameSyncCmdFiles;#UnrealGameSyncMsiFiles;" Produces="#ServerWithToolsFiles_$(ServerArch)">
|
|
|
|
<!-- Stage the server -->
|
|
<Delete Files="$(StagingDir)/Server/$(ServerArch)/..."/>
|
|
<DotNet Arguments="publish "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" --output "$(StagingDir)/Server/$(ServerArch)" --runtime $(ServerArch) --self-contained $(VersionArguments)" DotNetPath="$(DotNetPath)" />
|
|
|
|
<!-- Remove the local config file. This is only used for local iteration. -->
|
|
<Delete Files="$(StagingDir)/Server/$(ServerArch)/appsettings.Local.json"/>
|
|
|
|
<!-- Add the bundled tools into the installer -->
|
|
|
|
<!-- General Tools -->
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=horde-agent -name="Horde Agent (Cross-Platform)" -group="horde-agent" -platforms=any -description="Cross-platform Horde Agent distribution. Allows hosts to take on work from the Horde Server." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeAgent)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=horde-agent-msi -name="Horde Agent (Windows Installer)" -group="horde-agent" -platforms=win-x64 -description="Installer for the Horde Agent on Windows." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeAgentMsi)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showintoolbox -metadata=msi-product-id:1A853492-7FD0-4F88-B120-25292474A829" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=unreal-toolbox-msi -name="Unreal Toolbox (Windows Installer)" -description="Windows installer for the Unreal Toolbox." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealToolboxMsi)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showinugs" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=ugs-cmd -name="UnrealGameSync (Command-Line)" -group="ugs" -platforms=any -description="Command-line version of UnrealGameSync. Supports Windows, MacOS and Linux." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealGameSyncCmd)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showintoolbox" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=ugs-msi -name="UnrealGameSync (Windows Installer)" -group="ugs" -platforms=win-x64 -description="Utility to allow syncing and building from Perforce." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealGameSyncMsi)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showintoolbox -metadata=msi-product-id:6465D644-E775-44B5-B978-7B9EF8F0EF33" DotNetPath="$(DotNetPath)" />
|
|
|
|
<!-- Internal Category -->
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=horde-cmd -name="Horde (Command-Line)" -Category=Internal -description="Allows interacting with Horde via the command-line." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeCmd)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showinugs -showintoolbox" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=horde-agent-win64 -name="Horde Agent (Windows)" -category=Internal -description="Update package for older installations of Horde Agent through the MSI installer." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_HordeAgentWin64)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showindashboard=false" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=unreal-toolbox -name="Unreal Toolbox" -Category=Internal -description="Update package for the Unreal Toolbox." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealToolbox)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showinugs" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=p4v-utils -name="P4V Extensions (Requires P4V Restart)" -category=Internal -description="Adds common Horde workflows such as preflight-and-submit to P4V." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_P4VUtils)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showinugs -showintoolbox" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=ugs-win -name="UnrealGameSync (Windows Update Package)" -category=Internal -description="Update package for UGS on Windows." -version="$(InformationalVersion)" -inputdir="$(ServerToolsStagingDir_UnrealGameSync)" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showindashboard=false" DotNetPath="$(DotNetPath)" />
|
|
<DotNet Arguments="run --project "$(RootDir)/Engine/Source/Programs/Horde/HordeServer/HordeServer.csproj" -- generate tooldata -id=ushell -name="Ushell" -Category=Internal -description="Implements many command line workflows for UE." -version="$(InformationalVersion)" -inputdir="$(RootDir)/Engine/Extras/ushell" -serverdir="$(StagingDir)/Server/$(ServerArch)" -public -showinugs -showintoolbox" 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/HordeCmd/HordeCmd.csproj" --output "$(StagingDir)/Tools" --runtime win-x64 --self-contained $(VersionArguments)" DotNetPath="$(DotNetPath)" />
|
|
|
|
<!-- Copy the Dashboard -->
|
|
<Copy Files="#DashboardOutputFiles" From="$(StagingDir)/Dashboard/..." To="$(StagingDir)/Server/$(ServerArch)/DashboardApp/..." />
|
|
|
|
<!-- Copy the VCREDIST files -->
|
|
<Copy From="$(StagingDir)/Server/$(ServerArch)/ThirdParty/Mongo/*.dll" To="$(StagingDir)/Server/$(ServerArch)"/>
|
|
|
|
<Tag Files="$(StagingDir)/Server/$(ServerArch)/..." With="#ServerWithToolsFiles_$(ServerArch)" />
|
|
</Node>
|
|
</ForEach>
|
|
|
|
<Node Name="Build Horde Server Installer" Requires="Stage Horde Server Installer (win-x64)">
|
|
|
|
<!-- 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/win-x64/..." Except="HordeServer.exe" With="#ServerFiles"/>
|
|
<Copy Files="#ServerFiles" From="$(StagingDir)/Server/win-x64" To="$(StagingDir)/Server-Bulk"/>
|
|
|
|
<Spawn Exe="$(WixDir)/heat.exe" Arguments="dir "$(StagingDir)/Server-Bulk" -cg HordeServerFiles -scom -sreg -gg -dr ServerInstallDir -srd -var var.SourceDir -out "$(InstallerDir)/HordeServerFiles.wxs""/>
|
|
<Spawn Exe="$(WixDir)/candle.exe" Arguments="$(CommonArgs) HordeServerFiles.wxs -dSourceDir="$(StagingDir)/Server/win-x64" -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 (win-x64);#ServerWithToolsFiles_win-x64">
|
|
<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/HordeServer/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/HordeServer/Dockerfile.bundled" To="$(StagingDir)/Dockerfile.bundled" />
|
|
<Tag Files="$(StagingDir)/Dockerfile*;$(StagingDir)/Dashboard/...;$(StagingDir)/Server/win-x64/Tools/...;$(StagingDir)/Server/win-x64/*.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>
|