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"