summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
diff options
context:
space:
mode:
authorJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-06 22:56:01 +0200
committerJan Holthuis <jan.holthuis@ruhr-uni-bochum.de>2020-08-08 12:29:54 +0200
commit2eb6c4af945cf18015272aed0cca0094272b9c12 (patch)
treecf7ee92983b6f70e26902f3e2b2fd3764e96b209 /appveyor.yml
parent7c442296dba3f49399c06abb28951e3950eb85a0 (diff)
AppVeyor: Check if requirements for codesigning are met
This fixes the Windows builds for private forks.
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml15
1 files changed, 9 insertions, 6 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 00208f4dad..d931a30ce8 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -191,10 +191,11 @@ for:
- python -m pip install git+https://github.com/frerich/clcache.git
# Decrypt the code signing certificate.
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
- - IF [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] (
+ - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == []
+ If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" (
appveyor-tools\secure-file -decrypt %CODESIGN_CERTIFICATE_PATH%.enc -secret %CODESIGN_CERTIFICATE_SECURE_FILE_SECRET% -salt %CODESIGN_CERTIFICATE_SECURE_FILE_SALT%
) else (
- echo "Skipping certificate decryption because we are in a pull request."
+ echo "Skipping certificate decryption because we are in a pull request or not on the mixxxdj account."
)
before_build:
@@ -248,17 +249,19 @@ for:
..
- cmake --build .
- cmake --build . --target install
- - IF [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] (
+ - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == []
+ If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" (
signtool sign /f ..\%CODESIGN_CERTIFICATE_PATH% /p %CODESIGN_CERTIFICATE_PASSWORD% *.exe
) else (
- echo "Skipping codesigning *.exe because we are in a pull request."
+ echo "Skipping certificate decryption because we are in a pull request or not on the mixxxdj account."
)
# Generate WIX installer
- cpack -G "WIX"
- - IF [%APPVEYOR_PULL_REQUEST_NUMBER%] == [] (
+ - If [%APPVEYOR_PULL_REQUEST_NUMBER%] == []
+ If "%APPVEYOR_ACCOUNT_NAME%" == "mixxxdj" (
signtool sign /f ..\%CODESIGN_CERTIFICATE_PATH% /p %CODESIGN_CERTIFICATE_PASSWORD% *.msi
) else (
- echo "Skipping codesigning *.msi because we are in a pull request."
+ echo "Skipping certificate decryption because we are in a pull request or not on the mixxxdj account."
)
test_script: