Close UE editor *before* tagging in case this fails. Also don't close the editor when using -dryrun

This commit is contained in:
Steve Streeting 2020-10-15 15:35:49 +01:00
parent 880d3483b1
commit 0b2cac7f34

View File

@ -159,6 +159,11 @@ try {
Write-Output "Maps to Cook : $mapsdesc" Write-Output "Maps to Cook : $mapsdesc"
Write-Output "" 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) { if (([bool]$major + [bool]$minor + [bool]$patch + [bool]$hotfix) -eq 0) {
$patch = $true $patch = $true
@ -206,10 +211,6 @@ try {
if ($src -ne ".") { Pop-Location } 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" $ueEditorCmd = Join-Path $ueinstall "Engine/Binaries/Win64/UE4Editor-Cmd$exeSuffix"
$runUAT = Join-Path $ueinstall "Engine/Build/BatchFiles/RunUAT$batchSuffix" $runUAT = Join-Path $ueinstall "Engine/Build/BatchFiles/RunUAT$batchSuffix"