30 lines
760 B
Batchfile
30 lines
760 B
Batchfile
@echo off
|
|
setlocal EnableDelayedExpansion
|
|
|
|
set "ProductName=C4IT Light Identity Access Management"
|
|
set "SignTool=..\..\Common Code\Tools\signtool.exe"
|
|
set "TimeStamp=http://rfc3161timestamp.globalsign.com/advanced"
|
|
|
|
set "FileList="
|
|
|
|
if exist ".\bin\Release\LiamWorkflowDiagnostics.exe" (
|
|
set "FileList=!FileList! ".\bin\Release\LiamWorkflowDiagnostics.exe""
|
|
)
|
|
|
|
for %%F in (".\bin\Release\Liam*.dll") do (
|
|
if exist "%%~fF" (
|
|
set "FileList=!FileList! "%%F""
|
|
)
|
|
)
|
|
|
|
if not defined FileList (
|
|
echo No matching release binaries found to sign.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Signing all matching files at once...
|
|
call "%SignTool%" sign /a /tr %TimeStamp% /td SHA256 /fd SHA256 /d "%ProductName%" !FileList!
|
|
|
|
pause
|