mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +01:00
do not install NSIS for PRs
This commit is contained in:
21
scripts/ps/appveyor_install.ps1
Normal file
21
scripts/ps/appveyor_install.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
#########################################################
|
||||
# Script to setup OpenRCT2 for building on AppVeyor
|
||||
#########################################################
|
||||
|
||||
if ($env:ENCKEY)
|
||||
{
|
||||
Write-Host "Downloading secure-file from NuGet" -ForegroundColor Cyan
|
||||
nuget install secure-file -ExcludeVersion
|
||||
secure-file\tools\secure-file -decrypt distribution\windows\code-sign-key-openrct2.org.pfx.enc -secret $env:ENCKEY
|
||||
}
|
||||
|
||||
if (${env:OPENRCT2.ORG_TOKEN})
|
||||
{
|
||||
Write-Host "Downloading NSIS from chocolatey" -ForegroundColor Cyan
|
||||
cinst nsis.portable --version=3.01-beta1 > $null
|
||||
|
||||
Write-Host "Downloading KillProcDLL for NSIS" -ForegroundColor Cyan
|
||||
curl "http://nsis.sourceforge.net/mediawiki/images/5/53/KillProcDll%26FindProcDll.zip" -OutFile nsisxtra.zip
|
||||
7z x nsisxtra.zip > $null
|
||||
cp FindProcDLL.dll "C:\ProgramData\chocolatey\lib\nsis.portable\tools\nsis-3.0b1\Plugins\x86-ansi"
|
||||
}
|
||||
Reference in New Issue
Block a user