28 lines
833 B
C#
28 lines
833 B
C#
using System;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using TeaBox.Macros;
|
|
|
|
namespace TeaBox.Code
|
|
{
|
|
public static partial class BuildMacros
|
|
{
|
|
public static void Postbuild(IExecutionContext context, Platform platform, string outputFolder)
|
|
{
|
|
switch (platform)
|
|
{
|
|
case Platform.Durango:
|
|
PostCopyXboxOne(outputFolder);
|
|
break;
|
|
}
|
|
// if no change list provided
|
|
}
|
|
|
|
private static void PostCopyXboxOne(string outputFolder)
|
|
{
|
|
var eraXvdFile = Path.Combine(Environment.GetEnvironmentVariable("XboxOneXDKLatest"), "sideload", "era.xvd");
|
|
var targetEraFile = Path.Combine(outputFolder, "era.xvd");
|
|
File.Copy(eraXvdFile,targetEraFile, true);
|
|
}
|
|
}
|
|
}
|