Files
UnrealEngine/Engine/Source/Programs/AutomationTool/Scripts/WrangleContentForDebugging.Automation.cs
2025-05-18 13:04:45 +08:00

40 lines
1.3 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using Microsoft.Extensions.Logging;
using System.Collections.Generic;
using AutomationTool;
using UnrealBuildTool;
using System.IO;
using EpicGames.Core;
namespace AutomationScripts
{
public class WrangleContentForDebugging : BuildCommand
{
public override void ExecuteBuild()
{
if (ParseParam("usage"))
{
Logger.LogInformation("Arguments : \n -platform=<platform> \n -ProjectFilePath=<path/ProjectName.uproject> Mandatory. Path to the project you want to debug. \n -SourcePackage=<path/PackageName.ipa> Optional. Specify the .ipa to wrangle data for debug from. When not specified, [ProjectPath]/Build/[IOS|TVOS]/[ProjectName].ipa will be used.");
}
FileReference ProjectFile = new FileReference(ParseParamValue("ProjectFilePath=", null));
var Params = new ProjectParams
(
Command: this,
RawProjectPath: ProjectFile
);
Logger.LogInformation("======= WrangleContentForDebugging - Start =======");
var SC = Project.CreateDeploymentContext(Params, false);
//Project newProject;
SC[0].StageTargetPlatform.PrepareForDebugging(ParseParamValue("SourcePackage=", null), ParseParamValue("ProjectFilePath=", null), ParseParamValue("platform=", null));
Logger.LogInformation("======= WrangleContentForDebugging - Done ========");
}
}
}