diff --git a/UET/Redpoint.Uet.BuildPipeline.Providers.Prepare/Project/Custom/CustomProjectPrepareProvider.cs b/UET/Redpoint.Uet.BuildPipeline.Providers.Prepare/Project/Custom/CustomProjectPrepareProvider.cs index 54a97c3e..3ba5b87c 100644 --- a/UET/Redpoint.Uet.BuildPipeline.Providers.Prepare/Project/Custom/CustomProjectPrepareProvider.cs +++ b/UET/Redpoint.Uet.BuildPipeline.Providers.Prepare/Project/Custom/CustomProjectPrepareProvider.cs @@ -80,6 +80,8 @@ await writer.WriteSpawnAsync( @"""$(TargetPlatform)""", "-TargetConfiguration", @"""$(TargetConfiguration)""", + "-EnginePath", + @"""$(EnginePath)""", }, If = "$(HostPlatform) == 'Win64'" }).ConfigureAwait(false); @@ -100,6 +102,8 @@ await writer.WriteSpawnAsync( @"""$(TargetPlatform)""", "-TargetConfiguration", @"""$(TargetConfiguration)""", + "-EnginePath", + @"""$(EnginePath)""", }, If = "$(HostPlatform) == 'Mac'" }).ConfigureAwait(false); @@ -146,6 +150,11 @@ public async Task 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(