forked from rosebudai/OpenRCT2-Web
call build script from publish script
This commit is contained in:
1 parent
5d393deb2e
commit
dffcc895cf
2 files changed
+12
-3
No files matched your search
+11
-2
@@ -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
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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