mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix NSIS when branches contain slashes
This commit is contained in:
parent
e29c2555c3
commit
3deb2ef363
|
@ -41,7 +41,7 @@ Name "${APPNAMEANDVERSION} ${APPBITS}-bit for Windows ${EXTRA_VERSION}"
|
||||||
; NOTE: Keep trailing backslash!
|
; NOTE: Keep trailing backslash!
|
||||||
InstallDirRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Install Folder"
|
InstallDirRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenRCT2" "Install Folder"
|
||||||
!ifndef OUTFILE
|
!ifndef OUTFILE
|
||||||
!define OUTFILE "openrct2-${APPVERSION}-${APPARCH}.exe"
|
!define OUTFILE "openrct2-install.exe"
|
||||||
!endif
|
!endif
|
||||||
OutFile "${OUTFILE}"
|
OutFile "${OUTFILE}"
|
||||||
CRCCheck force
|
CRCCheck force
|
||||||
|
|
|
@ -18,17 +18,17 @@ param (
|
||||||
[switch]$Symbols = $false
|
[switch]$Symbols = $false
|
||||||
)
|
)
|
||||||
|
|
||||||
if ($GitTag -eq "")
|
if (-not $GitTag)
|
||||||
{
|
{
|
||||||
if ($GitBranch -eq $null)
|
if (-not $GitBranch)
|
||||||
{
|
{
|
||||||
$GitBranch = (git rev-parse --abbrev-ref HEAD)
|
$GitBranch = (git rev-parse --abbrev-ref HEAD)
|
||||||
}
|
}
|
||||||
if ($GitCommitSha1 -eq $null)
|
if (-not $GitCommitSha1)
|
||||||
{
|
{
|
||||||
$GitCommitSha1 = (git rev-parse HEAD)
|
$GitCommitSha1 = (git rev-parse HEAD)
|
||||||
}
|
}
|
||||||
if ($GitCommitSha1Short -eq $null)
|
if (-not $GitCommitSha1Short)
|
||||||
{
|
{
|
||||||
$GitCommitSha1Short = (git rev-parse --short HEAD)
|
$GitCommitSha1Short = (git rev-parse --short HEAD)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue