speedo: Make signing optional for w32-release

* build-aux/speedo.mk (AUTHENTICODE_sign): Check if
certificates are available.
This commit is contained in:
Andre Heinecke 2019-12-19 13:14:19 +01:00
parent 28403cb5fe
commit a56c591f90
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C
1 changed files with 3 additions and 1 deletions

View File

@ -1391,13 +1391,15 @@ define AUTHENTICODE_sign
/fd sha256 /du https://gnupg.org a.exe ;\
scp "$(AUTHENTICODE_SIGNHOST):a.exe" $(2);\
echo "speedo: signed file is '$(2)'" ;\
else \
elif [ -e "$(AUTHENTICODE_KEY)" ]; then \
echo "speedo: Signing using key $(AUTHENTICODE_KEY)";\
osslsigncode sign -certs $(AUTHENTICODE_CERTS) \
-pkcs12 $(AUTHENTICODE_KEY) -askpass \
-ts "http://timestamp.globalsign.com/scripts/timstamp.dll" \
-h sha256 -n GnuPG -i https://gnupg.org \
-in $(1) -out $(2) ;\
else \
echo "speedo: WARNING: Binaries are not signed"; \
fi
endef