Fixed the Windows make script building in Release
This is a follow-up to PR 19379, which aimed to "provide an easy debug option for VSCode developers", but only did so for non-Windows users. VSCode has been building in Release mode for ever and continued to do so on Windows after that PR.
This commit is contained in:
10
make.ps1
10
make.ps1
@@ -10,7 +10,9 @@ function All-Command
|
||||
return
|
||||
}
|
||||
|
||||
dotnet build -c Release --nologo -p:TargetPlatform=win-x64
|
||||
Write-Host "Building in" $configuration "configuration..." -ForegroundColor Cyan
|
||||
dotnet build -c $configuration --nologo -p:TargetPlatform=win-x64
|
||||
|
||||
if ($lastexitcode -ne 0)
|
||||
{
|
||||
Write-Host "Build failed. If just the development tools failed to build, try installing Visual Studio. You may also still be able to run the game." -ForegroundColor Red
|
||||
@@ -236,6 +238,12 @@ else
|
||||
$env:ENGINE_DIR = ".."
|
||||
$utilityPath = "bin\OpenRA.Utility.exe"
|
||||
|
||||
$configuration = "Release"
|
||||
if ($args.Contains("CONFIGURATION=Debug"))
|
||||
{
|
||||
$configuration = "Debug"
|
||||
}
|
||||
|
||||
$execute = $command
|
||||
if ($command.Length -gt 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user