Appveyor: fix building PRs during CI (#1710)

This commit is contained in:
Devin Alexander Torres 2019-02-07 21:16:40 -06:00 committed by Russel Waters
commit 7c1014b4ae

View file

@ -26,13 +26,14 @@ build:
verbosity: minimal
after_build:
- ps: |
$path = Join-Path -Path "$env:TMP" -ChildPath csc.p12
[IO.File]::WriteAllBytes($path, [Convert]::FromBase64String($env:CSC_LINK))
Set-AppveyorBuildVariable -Name 'CSC_LINK' -Value $path
- cmd: |
"C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe" sign /a /ph /tr http://timestamp.digicert.com /td sha256 /fd sha256 /f "%CSC_LINK%" /p "%CSC_KEY_PASSWORD%" "%APPVEYOR_BUILD_FOLDER%/%CONFIGURATION%/*.exe"
- ps: Remove-Item env:CSC_KEY_PASSWORD
- ps: Remove-Item -Path $env:CSC_LINK
if (Test-Path env:CSC_LINK) {
$path = Join-Path -Path "$env:TMP" -ChildPath csc.p12
[IO.File]::WriteAllBytes($path, [Convert]::FromBase64String($env:CSC_LINK))
$args = -split 'sign /a /ph /tr http://timestamp.digicert.com /td sha256 /fd sha256'
$args += @('/f', $path, '/p', $env:CSC_KEY_PASSWORD, "$env:APPVEYOR_BUILD_FOLDER\$env:CONFIGURATION\*.exe")
. 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin\signtool.exe' $args
}
- cmd: >-
cpack -C %CONFIGURATION% --verbose --config ./CPackConfig.cmake