1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Added support for buildnumbers in installer

This commit is contained in:
Jarno Veuger
2015-12-25 14:41:39 +01:00
parent 06528da61b
commit d77c1039dc
2 changed files with 8 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
param (
[Parameter(Position = 1)]
[string]$BuildNumber = "",
[string]$GitBranch = ""
)
$path = Split-Path $Script:MyInvocation.MyCommand.Path
Write-Host "Building Windows Installer (NSIS script)";
makensis /DVERSION_INCLUDE=$path\win32.txt $path\install.nsi > $path\win32.log;
makensis /DAPPV_BUILD=$BuildNumber /DAPPV_EXTRA=-$GitBranch-b$BuildNumber /DVERSION_INCLUDE=$path\win32.txt $path\install.nsi > $path\win32.log;

View File

@@ -120,7 +120,7 @@ function Do-Installer()
New-Item -Force -ItemType Directory $artifactsDir > $null
# Create installer
& "$installerDir\build.ps1"
& "$installerDir\build.ps1" -BuildNumber $BuildNumber -GitBranch $GitBranch
if ($LASTEXITCODE -ne 0)
{
Write-Host "Failed to create installer." -ForegroundColor Red