diff --git a/ue4-package.ps1 b/ue4-package.ps1 index 63a03be..c08c7e7 100644 --- a/ue4-package.ps1 +++ b/ue4-package.ps1 @@ -159,6 +159,11 @@ try { Write-Output "Maps to Cook : $mapsdesc" Write-Output "" + if (-not $dryrun) + { + $editorprojname = [System.IO.Path]::GetFileNameWithoutExtension($projfile) + Close-UE-Editor $editorprojname $dryrun + } if (([bool]$major + [bool]$minor + [bool]$patch + [bool]$hotfix) -eq 0) { $patch = $true @@ -206,10 +211,6 @@ try { if ($src -ne ".") { Pop-Location } } - - $editorprojname = [System.IO.Path]::GetFileNameWithoutExtension($projfile) - Close-UE-Editor $editorprojname $dryrun - $ueEditorCmd = Join-Path $ueinstall "Engine/Binaries/Win64/UE4Editor-Cmd$exeSuffix" $runUAT = Join-Path $ueinstall "Engine/Build/BatchFiles/RunUAT$batchSuffix"