"Fossies" - the Fresh Open Source Software Archive

Member "VeraCrypt_1.24-Update6/src/Signing/sign_test_debug.bat" (11 Mar 2020, 2793 Bytes) of package /linux/misc/VeraCrypt_1.24-Update6.tar.gz:


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 latest Fossies "Diffs" side-by-side code changes report for "sign_test_debug.bat": 1.24-Update5_vs_1.24-Update6.

    1 PATH=%PATH%;%WSDK81%\bin\x86;C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
    2 set VC_VERSION=1.24-Update6
    3 set PFXNAME=TestCertificate\idrix_codeSign.pfx
    4 set PFXPASSWORD=idrix
    5 set PFXCA=TestCertificate\idrix_TestRootCA.crt
    6 set SHA256PFXNAME=TestCertificate\idrix_Sha256CodeSign.pfx
    7 set SHA256PFXPASSWORD=idrix
    8 set SHA256PFXCA=TestCertificate\idrix_SHA256TestRootCA.crt
    9 
   10 set SIGNINGPATH=%~dp0
   11 cd %SIGNINGPATH%
   12 
   13 call "..\..\doc\chm\create_chm.bat"
   14 
   15 cd %SIGNINGPATH%
   16 
   17 rem sign using SHA-1
   18 signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac %PFXCA% /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Debug\Setup Files\veracrypt.sys" "..\Debug\Setup Files\veracrypt-x64.sys" "..\Debug\Setup Files\VeraCrypt.exe" "..\Debug\Setup Files\VeraCrypt Format.exe" "..\Debug\Setup Files\VeraCryptExpander.exe" "..\Debug\Setup Files\VeraCrypt-x64.exe" "..\Debug\Setup Files\VeraCrypt Format-x64.exe" "..\Debug\Setup Files\VeraCryptExpander-x64.exe"
   19 
   20 timeout /t 10
   21 
   22 rem sign using SHA-256
   23 signtool sign /v /a /f %SHA256PFXNAME% /p %SHA256PFXPASSWORD% /ac %SHA256PFXCA% /as /fd sha256 /tr http://rfc3161timestamp.globalsign.com/advanced /td SHA256 "..\Debug\Setup Files\veracrypt.sys" "..\Debug\Setup Files\veracrypt-x64.sys" "..\Debug\Setup Files\VeraCrypt.exe" "..\Debug\Setup Files\VeraCrypt Format.exe" "..\Debug\Setup Files\VeraCryptExpander.exe" "..\Debug\Setup Files\VeraCrypt-x64.exe" "..\Debug\Setup Files\VeraCrypt Format-x64.exe" "..\Debug\Setup Files\VeraCryptExpander-x64.exe"
   24 
   25 cd "..\Debug\Setup Files\"
   26 
   27 copy ..\..\LICENSE .
   28 copy ..\..\License.txt .
   29 copy ..\..\NOTICE .
   30 
   31 del *.xml
   32 rmdir /S /Q Languages
   33 mkdir Languages
   34 copy /V /Y ..\..\..\Translations\*.xml Languages\.
   35 del Languages.zip
   36 7z a -y Languages.zip Languages
   37 
   38 rmdir /S /Q docs
   39 mkdir docs\html\en
   40 mkdir docs\EFI-DCS
   41 copy /V /Y ..\..\..\doc\html\* docs\html\en\.
   42 copy "..\..\..\doc\chm\VeraCrypt User Guide.chm" docs\.
   43 copy "..\..\..\doc\EFI-DCS\*.pdf" docs\EFI-DCS\.
   44 copy "..\..\Release\Setup Files\*.cat" .
   45 copy "..\..\Release\Setup Files\veracrypt.inf" .
   46 
   47 del docs.zip
   48 7z a -y docs.zip docs
   49 
   50 "VeraCrypt Setup.exe" /p
   51 
   52 del LICENSE
   53 del License.txt
   54 del NOTICE
   55 del "VeraCrypt User Guide.chm"
   56 
   57 del Languages.zip
   58 del docs.zip
   59 rmdir /S /Q Languages
   60 rmdir /S /Q docs
   61 
   62 cd %SIGNINGPATH%
   63 
   64 rem sign using SHA-1
   65 signtool sign /v /a /f %PFXNAME% /p %PFXPASSWORD% /ac %PFXCA% /fd sha1 /t http://timestamp.verisign.com/scripts/timestamp.dll "..\Debug\Setup Files\VeraCrypt Setup %VC_VERSION%.exe"
   66 
   67 timeout /t 10
   68 
   69 rem sign using SHA-256
   70 signtool sign /v /a /f %SHA256PFXNAME% /p %SHA256PFXPASSWORD% /ac %SHA256PFXCA% /as /fd sha256 /tr http://rfc3161timestamp.globalsign.com/advanced /td SHA256 "..\Debug\Setup Files\VeraCrypt Setup %VC_VERSION%.exe"
   71 
   72 pause