2022-11-15 22:39:50 -05:00
// 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" ) )
{
2023-03-08 12:43:35 -05:00
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." ) ;
2022-11-15 22:39:50 -05:00
}
FileReference ProjectFile = new FileReference ( ParseParamValue ( "ProjectFilePath=" , null ) ) ;
var Params = new ProjectParams
(
Command : this ,
RawProjectPath : ProjectFile
) ;
2023-02-01 23:02:14 -05:00
2023-03-08 12:43:35 -05:00
Logger . LogInformation ( "======= WrangleContentForDebugging - Start =======" ) ;
2023-02-01 23:02:14 -05:00
2022-11-15 22:39:50 -05:00
var SC = Project . CreateDeploymentContext ( Params , false ) ;
//Project newProject;
SC [ 0 ] . StageTargetPlatform . PrepareForDebugging ( ParseParamValue ( "SourcePackage=" , null ) , ParseParamValue ( "ProjectFilePath=" , null ) , ParseParamValue ( "platform=" , null ) ) ;
2023-03-08 12:43:35 -05:00
Logger . LogInformation ( "======= WrangleContentForDebugging - Done ========" ) ;
2022-11-15 22:39:50 -05:00
}
}
2023-02-19 21:45:46 -05:00
}