From bca0c1bf18ebd2955db9a3e221b88f6d0564241a Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Fri, 29 Sep 2023 20:56:33 +0100 Subject: [PATCH] Use Invoke-Expression to call nested ue-build, more reliable --- ue-package.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ue-package.ps1 b/ue-package.ps1 index ab0cbae..44ea396 100644 --- a/ue-package.ps1 +++ b/ue-package.ps1 @@ -233,7 +233,12 @@ try { # to run the "Cook" stage. If we don't do this, then any source plugins will # be missing in a clean checkout build and the cook stage will fail Write-Output "Building Editor (for Cooking)" - .\ue-build.ps1 -mode:dev -src:$src -nocloseeditor -dryrun:$dryrun + $cmdargs = @() + $cmdargs += "-src:$src" + if ($dryrun) { + $cmdargs += "-dryrun" + } + Invoke-Expression "&'$PSScriptRoot/ue-build.ps1' -mode:dev $cmdargs" $ueEditorCmd = Get-UEEditorCmd $ueVersion $ueinstall $runUAT = Join-Path $ueinstall "Engine/Build/BatchFiles/RunUAT$batchSuffix"