Default to 'dev' build

This commit is contained in:
Steve Streeting 2020-05-12 14:11:01 +01:00
parent bd85c82dee
commit 61e7b402be

View File

@ -11,10 +11,10 @@ function Print-Usage {
Write-Output "Steve's UE4 Build Tool"
Write-Output " This is a WIP, only builds for dev right now"
Write-Output "Usage:"
Write-Output " ue4-build.ps1 [-mode:]<dev|test|prod> [[-src:]sourcefolder] [Options]"
Write-Output " ue4-build.ps1 [[-mode:]<dev|test|prod>] [[-src:]sourcefolder] [Options]"
Write-Output " "
Write-Output " -mode : Build mode (required)"
Write-Output " : dev = build Development Editor, dlls only"
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 " : test = build Development and pacakge for test (TODO)"
Write-Output " : prod = build Shipping and package for production (TODO)"
@ -42,9 +42,7 @@ if ($help) {
}
if (-not $mode) {
Print-Usage
Write-Output "ERROR: Required argument: mode"
Exit 3
$mode = "dev"
}
if (-not ($mode -in @('dev', 'test', 'prod'))) {