Skip to content

Commit

Permalink
Sign windows (#1698)
Browse files Browse the repository at this point in the history
* Add Code signing to binaries before packaging

* Sign depending on what was built
  • Loading branch information
argakiig authored Feb 4, 2019
1 parent 5b7ff77 commit 2fa404e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ build:
parallel: true
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
- cmd: >-
cpack -C %CONFIGURATION% --verbose --config ./CPackConfig.cmake
Expand Down

0 comments on commit 2fa404e

Please sign in to comment.