changeset 2394:32107caa1aaa

Add /a flag to do the right thing if more than one cert is found
author Chris Cannam
date Tue, 22 Oct 2019 16:32:14 +0100
parents 0a2cdcbc22e6
children 5d2d3fdae354
files deploy/win64/build-and-package.bat
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/win64/build-and-package.bat	Fri Oct 18 14:20:32 2019 +0100
+++ b/deploy/win64/build-and-package.bat	Tue Oct 22 16:32:14 2019 +0100
@@ -23,7 +23,7 @@
 @   echo NOTE: starting by codesigning an unrelated executable, so we know
 @   echo NOTE: whether it'll work before doing the entire build
 copy sv-dependency-builds\win64-msvc\bin\capnp.exe signtest.exe
-signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 signtest.exe
+signtool sign /v /n /a "%NAME%" /t http://time.certum.pl /fd sha1 signtest.exe
 if errorlevel 1 exit /b %errorlevel%
 signtool verify /pa signtest.exe
 if errorlevel 1 exit /b %errorlevel%
@@ -43,7 +43,7 @@
 
 if "%ARG%" == "sign" (
 @echo Signing 32-bit executables and libraries
-signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 build_win32\release\*.exe build_win32\release\*.dll
+signtool sign /v /n /a "%NAME%" /t http://time.certum.pl /fd sha1 build_win32\release\*.exe build_win32\release\*.dll
 )
 
 @echo Rebuilding 64-bit
@@ -55,7 +55,7 @@
 
 if "%ARG%" == "sign" (
 @echo Signing 64-bit executables and libraries
-signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 build_win64\release\*.exe build_win64\release\*.dll
+signtool sign /v /n /a "%NAME%" /t http://time.certum.pl /fd sha1 build_win64\release\*.exe build_win64\release\*.dll
 )
 
 set PATH=%PATH%;"C:\Program Files (x86)\WiX Toolset v3.11\bin"
@@ -72,7 +72,7 @@
 
 if "%ARG%" == "sign" (
 @echo Signing 32-bit package
-signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 sonic-visualiser.msi
+signtool sign /v /n /a "%NAME%" /t http://time.certum.pl /fd sha1 sonic-visualiser.msi
 signtool verify /pa sonic-visualiser.msi
 )
 
@@ -88,7 +88,7 @@
 
 if "%ARG%" == "sign" (
 @echo Signing 64-bit package
-signtool sign /v /n "%NAME%" /t http://time.certum.pl /fd sha1 sonic-visualiser.msi
+signtool sign /v /n /a "%NAME%" /t http://time.certum.pl /fd sha1 sonic-visualiser.msi
 signtool verify /pa sonic-visualiser.msi
 )