mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
call build script from publish script
This commit is contained in:
@@ -7,7 +7,10 @@ param (
|
||||
[string]$Task = "openrct2",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[string]$Configuration = "Release"
|
||||
[string]$Configuration = "Release",
|
||||
|
||||
[Parameter(Mandatory = $false)]
|
||||
[switch]$Rebuild = $false
|
||||
)
|
||||
|
||||
# Get paths
|
||||
@@ -28,7 +31,13 @@ function Build-Data()
|
||||
function Build-OpenRCT2()
|
||||
{
|
||||
Write-Host "Building OpenRCT2 ($Configuration)..." -ForegroundColor Cyan
|
||||
msbuild ..\projects\openrct2.sln /p:Configuration=$Configuration /p:Platform=Win32 /v:minimal | Write-Host
|
||||
|
||||
$target = ""
|
||||
if ($Rebuild)
|
||||
{
|
||||
$target = "/t:rebuild"
|
||||
}
|
||||
msbuild ..\projects\openrct2.sln /p:Configuration=$Configuration /p:Platform=Win32 $target /v:minimal | Write-Host
|
||||
return $LASTEXITCODE
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ function do-prepareSource($build_server = "", $build_number = "")
|
||||
function do-build()
|
||||
{
|
||||
Write-Host "Building OpenRCT2..." -ForegroundColor Cyan
|
||||
msbuild $rootPath\projects\openrct2.sln /p:Configuration=Release /p:Platform=Win32 /t:rebuild /v:minimal
|
||||
& "$scriptsPath\build.ps1" all -Rebuild
|
||||
}
|
||||
|
||||
# Package
|
||||
|
||||
Reference in New Issue
Block a user