"Fossies" - the Fresh Open Source Software Archive

Member "src/Signing/sign.bat" (10 Oct 2018, 2942 Bytes) of package /windows/misc/VeraCrypt_1.23-Hotfix-2_Source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "sign.bat": 1.22_Source_vs_1.23_Source.

    1 PATH=%PATH%;%WSDK81%\bin\x86;C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
    2 
    3 set VC_VERSION=1.23-Hotfix-2
    4 set SIGNINGPATH=%~dp0
    5 cd %SIGNINGPATH%
    6 
    7 call "..\..\doc\chm\create_chm.bat"
    8 
    9 cd %SIGNINGPATH%
   10 
   11 rem sign using SHA-1
   12 signtool sign /v /a /n IDRIX /i Thawte /ac thawte_Primary_MS_Cross_Cert.cer /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\veracrypt.sys" "..\Release\Setup Files\veracrypt-x64.sys"
   13 signtool sign /v /a /n IDRIX /i Thawte /ac Thawt_CodeSigning_CA.crt /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt.exe" "..\Release\Setup Files\VeraCrypt Format.exe" "..\Release\Setup Files\VeraCryptExpander.exe" "..\Release\Setup Files\VeraCrypt-x64.exe" "..\Release\Setup Files\VeraCrypt Format-x64.exe" "..\Release\Setup Files\VeraCryptExpander-x64.exe"
   14 
   15 rem sign using SHA-256
   16 signtool sign /v /a /n "IDRIX SARL" /i GlobalSign /ac GlobalSign_Root_CA_MS_Cross_Cert.crt /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "..\Release\Setup Files\veracrypt.sys" "..\Release\Setup Files\veracrypt-x64.sys"
   17 signtool sign /v /a /n "IDRIX SARL" /i GlobalSign /ac GlobalSign_SHA256_EV_CodeSigning_CA.cer /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "..\Release\Setup Files\VeraCrypt.exe" "..\Release\Setup Files\VeraCrypt Format.exe" "..\Release\Setup Files\VeraCryptExpander.exe" "..\Release\Setup Files\VeraCrypt-x64.exe" "..\Release\Setup Files\VeraCrypt Format-x64.exe" "..\Release\Setup Files\VeraCryptExpander-x64.exe"
   18 
   19 
   20 cd "..\Release\Setup Files\"
   21 
   22 copy ..\..\LICENSE .
   23 copy ..\..\License.txt .
   24 copy ..\..\NOTICE .
   25 
   26 del *.xml
   27 rmdir /S /Q Languages
   28 mkdir Languages
   29 copy /V /Y ..\..\..\Translations\*.xml Languages\.
   30 del Languages.zip
   31 7z a -y Languages.zip Languages
   32 
   33 rmdir /S /Q docs
   34 mkdir docs\html\en
   35 mkdir docs\EFI-DCS
   36 copy /V /Y ..\..\..\doc\html\* docs\html\en\.
   37 copy "..\..\..\doc\chm\VeraCrypt User Guide.chm" docs\.
   38 copy "..\..\..\doc\EFI-DCS\*.pdf" docs\EFI-DCS\.
   39 
   40 del docs.zip
   41 7z a -y docs.zip docs
   42 
   43 "VeraCrypt Setup.exe" /p
   44 "VeraCrypt Portable.exe" /p
   45 
   46 del LICENSE
   47 del License.txt
   48 del NOTICE
   49 del "VeraCrypt User Guide.chm"
   50 
   51 del Languages.zip
   52 del docs.zip
   53 rmdir /S /Q Languages
   54 rmdir /S /Q docs
   55 
   56 cd %SIGNINGPATH%
   57 
   58 rem sign using SHA-1
   59 signtool sign /v /a /n IDRIX /i Thawte /ac Thawt_CodeSigning_CA.crt /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Release\Setup Files\VeraCrypt Setup %VC_VERSION%.exe" "..\Release\Setup Files\VeraCrypt Portable %VC_VERSION%.exe"
   60 rem sign using SHA-256
   61 signtool sign /v /a /n "IDRIX SARL" /i GlobalSign /ac GlobalSign_SHA256_EV_CodeSigning_CA.cer /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "..\Release\Setup Files\VeraCrypt Setup %VC_VERSION%.exe" "..\Release\Setup Files\VeraCrypt Portable %VC_VERSION%.exe"
   62 
   63 pause