diff --git a/ue4-build.ps1 b/ue4-build.ps1 index 7f5c371..1481a0d 100644 --- a/ue4-build.ps1 +++ b/ue4-build.ps1 @@ -15,7 +15,7 @@ function Print-Usage { Write-Output " " Write-Output " -mode : Build mode" Write-Output " : dev = build Development Editor, dlls only (default)" - Write-Output " : dev = build Development Editor locally for editor" + Write-Output " : cleandev = build Development Editor CLEANLY" Write-Output " : test = build Development and pacakge for test (TODO)" Write-Output " : prod = build Shipping and package for production (TODO)" Write-Output " -src : Source folder (current folder if omitted)" @@ -45,7 +45,7 @@ if (-not $mode) { $mode = "dev" } -if (-not ($mode -in @('dev', 'test', 'prod'))) { +if (-not ($mode -in @('dev', 'cleandev', 'test', 'prod'))) { Print-Usage Write-Output "ERROR: Invalid mode argument: $mode" Exit 3 @@ -115,6 +115,10 @@ try { $uprojfileabs = Join-Path "$(Get-Location)" $uprojfile $buildargs = "${uprojname}Editor Win64 Development -Project=`"${uprojfileabs}`" -WaitMutex -FromMsBuild" } + 'cleandev' { + $uprojfileabs = Join-Path "$(Get-Location)" $uprojfile + $buildargs = "${uprojname}Editor Win64 Development -Project=`"${uprojfileabs}`" -WaitMutex -FromMsBuild -clean" + } default { # TODO # We probably want to use custom launch profiles for this