Appveyor: fix building PRs during CI (#1710)
This commit is contained in:
parent
1c54a6f31e
commit
7c1014b4ae
1 changed files with 8 additions and 7 deletions
15
appveyor.yml
15
appveyor.yml
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue