You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Move Project class into a namespace (rather than global class), and consequent using changes to consumers of the class. #jira none #trivial [CL 16933076 by jonathan adamczewski in ue5-main branch]
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Threading;
|
|
using System.Reflection;
|
|
using AutomationTool;
|
|
using UnrealBuildTool;
|
|
|
|
namespace AutomationScripts
|
|
{
|
|
public partial class Project : CommandUtils
|
|
{
|
|
public static void Package(ProjectParams Params, int WorkingCL = -1)
|
|
{
|
|
if ((!Params.SkipStage || Params.Package) && !Params.SkipPackage)
|
|
{
|
|
Params.ValidateAndLog();
|
|
List<DeploymentContext> DeployContextList = new List<DeploymentContext>();
|
|
if (!Params.NoClient)
|
|
{
|
|
DeployContextList.AddRange(CreateDeploymentContext(Params, false, false));
|
|
}
|
|
if (Params.DedicatedServer)
|
|
{
|
|
DeployContextList.AddRange(CreateDeploymentContext(Params, true, false));
|
|
}
|
|
|
|
if (DeployContextList.Count > 0)
|
|
{
|
|
LogInformation("********** PACKAGE COMMAND STARTED **********");
|
|
|
|
foreach (var SC in DeployContextList)
|
|
{
|
|
if (Params.Package || (SC.StageTargetPlatform.RequiresPackageToDeploy && Params.Deploy))
|
|
{
|
|
SC.StageTargetPlatform.Package(Params, SC, WorkingCL);
|
|
}
|
|
}
|
|
|
|
LogInformation("********** PACKAGE COMMAND COMPLETED **********");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|