mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 00:34:46 +01:00
Merge pull request #2555 from JarnoVgr/distribution
Publisher script improvements (installer)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
@@ -138,7 +138,7 @@ function Do-Installer()
|
||||
return 1
|
||||
}
|
||||
|
||||
Copy-Item $binaries[0].FullName $artifactsDir
|
||||
Move-Item $binaries[0].FullName $artifactsDir
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user