2014-12-07 19:09:38 -05:00
|
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
using AutomationTool;
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class Project : CommandUtils
|
|
|
|
|
|
{
|
|
|
|
|
|
#region Package Command
|
|
|
|
|
|
|
|
|
|
|
|
public static void Package(ProjectParams Params, int WorkingCL=-1)
|
|
|
|
|
|
{
|
|
|
|
|
|
Params.ValidateAndLog();
|
2014-09-18 18:55:01 -04:00
|
|
|
|
List<DeploymentContext> DeployContextList = new List<DeploymentContext>();
|
2014-03-14 14:13:41 -04:00
|
|
|
|
if (!Params.NoClient)
|
|
|
|
|
|
{
|
2014-09-18 18:55:01 -04:00
|
|
|
|
DeployContextList.AddRange(CreateDeploymentContext(Params, false, false));
|
|
|
|
|
|
}
|
|
|
|
|
|
if (Params.DedicatedServer)
|
|
|
|
|
|
{
|
|
|
|
|
|
DeployContextList.AddRange(CreateDeploymentContext(Params, true, false));
|
|
|
|
|
|
}
|
2014-10-01 12:54:25 -04:00
|
|
|
|
if (DeployContextList.Count > 0 && !Params.SkipStage)
|
2014-09-18 18:55:01 -04:00
|
|
|
|
{
|
|
|
|
|
|
Log("********** PACKAGE COMMAND STARTED **********");
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var SC in DeployContextList)
|
2014-03-14 14:13:41 -04:00
|
|
|
|
{
|
2014-09-18 18:55:01 -04:00
|
|
|
|
if (Params.Package || (SC.StageTargetPlatform.RequiresPackageToDeploy && Params.Deploy))
|
2014-03-14 14:13:41 -04:00
|
|
|
|
{
|
|
|
|
|
|
SC.StageTargetPlatform.Package(Params, SC, WorkingCL);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-09-18 18:55:01 -04:00
|
|
|
|
|
|
|
|
|
|
Log("********** PACKAGE COMMAND COMPLETED **********");
|
2014-03-14 14:13:41 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|