Skip to content

Commit

Permalink
Pass EnginePath to pre-BuildGraph prepare scripts (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que authored Dec 2, 2024
1 parent e29bd4d commit 93f2e24
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ await writer.WriteSpawnAsync(
@"""$(TargetPlatform)""",
"-TargetConfiguration",
@"""$(TargetConfiguration)""",
"-EnginePath",
@"""$(EnginePath)""",
},
If = "$(HostPlatform) == 'Win64'"
}).ConfigureAwait(false);
Expand All @@ -100,6 +102,8 @@ await writer.WriteSpawnAsync(
@"""$(TargetPlatform)""",
"-TargetConfiguration",
@"""$(TargetConfiguration)""",
"-EnginePath",
@"""$(EnginePath)""",
},
If = "$(HostPlatform) == 'Mac'"
}).ConfigureAwait(false);
Expand Down Expand Up @@ -146,6 +150,11 @@ public async Task<int> RunBeforeBuildGraphAsync(
{
arguments.Add(argument);
}
if (preBuildGraphArguments.TryGetValue("EnginePath", out var enginePath))
{
arguments.Add("-EnginePath");
arguments.Add(enginePath);
}

_logger.LogInformation($"Executing pre-BuildGraph custom preparation step '{entry.name}' in directory '{repositoryRoot}': '{scriptPath}'");
var exitCode = await _scriptExecutor.ExecutePowerShellAsync(
Expand Down

0 comments on commit 93f2e24

Please sign in to comment.