VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Signing/sign_test_debug.bat
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-05-29 15:09:49 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-05-31 23:56:13 (GMT)
commit029341a7474ab7aa858a9f427c4c5c34713ecff0 (patch)
treedaae259b25b43323f759ee4d949d35848dc481bc /src/Signing/sign_test_debug.bat
parente7873197a6171d89a9224c17bbc3c16a35395793 (diff)
downloadVeraCrypt-029341a7474ab7aa858a9f427c4c5c34713ecff0.zip
VeraCrypt-029341a7474ab7aa858a9f427c4c5c34713ecff0.tar.gz
Windows: Add bat file to package debug version of VeraCrypt used in testing/debugging purposes.
Diffstat (limited to 'src/Signing/sign_test_debug.bat')
-rw-r--r--src/Signing/sign_test_debug.bat52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/Signing/sign_test_debug.bat b/src/Signing/sign_test_debug.bat
new file mode 100644
index 0000000..eeb8595
--- /dev/null
+++ b/src/Signing/sign_test_debug.bat
@@ -0,0 +1,52 @@
+PATH=%PATH%;%WSDK81%\bin\x86;C:\Program Files\7-Zip;C:\Program Files (x86)\7-Zip
+
+set PFXNAME=TestCertificate\idrix_codeSign.pfx
+set PFXPASSWORD=idrix
+set PFXCA=TestCertificate\idrix_TestRootCA.crt
+set SHA256PFXNAME=TestCertificate\idrix_Sha256CodeSign.pfx
+set SHA256PFXPASSWORD=idrix
+set SHA256PFXCA=TestCertificate\idrix_SHA256TestRootCA.crt
+
+rem sign using SHA-1
+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"
+
+rem sign using SHA-256
+signtool sign /v /a /f %SHA256PFXNAME% /p %SHA256PFXPASSWORD% /ac %SHA256PFXCA% /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /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"
+
+cd "..\Debug\Setup Files\"
+
+copy ..\..\LICENSE .
+copy ..\..\License.txt .
+copy ..\..\NOTICE .
+copy "..\..\..\doc\VeraCrypt User Guide.pdf" .
+
+del *.xml
+copy /V /Y ..\..\..\Translations\*.xml .
+
+rmdir /S /Q docs
+mkdir docs\html\en
+copy /V /Y ..\..\..\doc\html\* docs\html\en\.
+
+del docs.zip
+7z a -y docs.zip docs
+
+"VeraCrypt Setup.exe" /p
+
+del LICENSE
+del License.txt
+del NOTICE
+del "VeraCrypt User Guide.pdf"
+
+del *.xml
+del docs.zip
+rmdir /S /Q docs
+
+cd "..\..\Signing"
+
+rem sign using SHA-1
+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 1.20-BETA2.exe"
+
+rem sign using SHA-256
+signtool sign /v /a /f %SHA256PFXNAME% /p %SHA256PFXPASSWORD% /ac %SHA256PFXCA% /as /fd sha256 /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 "..\Debug\Setup Files\VeraCrypt Setup 1.20-BETA2.exe"
+
+pause \ No newline at end of file