From 44f415f94d1ff335f16d2566703dd85925e2c454 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 11 Oct 2018 18:45:29 -0700 Subject: [PATCH] Sign all deployed binaries in one signtool invocation --- scripts/generate-installers.bat | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/generate-installers.bat b/scripts/generate-installers.bat index c928beca..bc69de53 100644 --- a/scripts/generate-installers.bat +++ b/scripts/generate-installers.bat @@ -110,10 +110,12 @@ if !ERRORLEVEL! NEQ 0 goto Error if "%SIGN%"=="1" ( echo Signing deployed binaries + set FILES_TO_SIGN= for /r "%DEPLOY_FOLDER%" %%f in (*.dll *.exe) do ( - signtool %SIGNTOOL_PARAMS% %%f - if !ERRORLEVEL! NEQ 0 goto Error + set FILES_TO_SIGN=!FILES_TO_SIGN! %%f ) + signtool %SIGNTOOL_PARAMS% !FILES_TO_SIGN! + if !ERRORLEVEL! NEQ 0 goto Error ) echo Building MSI