windows: add /td sha256 argument to signtool

Recent versions of signtool require an additional /td sha256 argument to
indicate the timestamp hash type.
This commit is contained in:
Luke Howard
2021-08-12 15:50:22 +10:00
parent 6e3bc8341c
commit 15c82996a4

View File

@@ -517,7 +517,7 @@ SIGNTOOL_T_SHA256=http://timestamp.digicert.com
!endif
_CODESIGN=( $(SIGNTOOL) sign /fd sha1 $(SIGNTOOL_O) /t $(SIGNTOOL_T) $(SIGNTOOL_C) /v $@ )
_CODESIGN_SHA256=( $(SIGNTOOL) sign /as /fd sha256 $(SIGNTOOL_O) /tr $(SIGNTOOL_T_SHA256) $(SIGNTOOL_C) /v $@ )
_CODESIGN_SHA256=( $(SIGNTOOL) sign /as /fd sha256 /td sha256 $(SIGNTOOL_O) /tr $(SIGNTOOL_T_SHA256) $(SIGNTOOL_C) /v $@ )
!else
_CODESIGN=( echo Skipping code sign )
_CODESIGN_SHA256=( echo Skipping sha256 code sign )