From 7c6346eb117a1e0e66c782b79be71067ead1e6b4 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sat, 4 Feb 2012 17:14:06 +0100 Subject: [PATCH] cec: let create-installer.cmd sign all binaries on the production build system. --- .gitignore | 2 ++ support/create-installer.cmd | 28 +++++++++++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 4da907e..3060870 100644 --- a/.gitignore +++ b/.gitignore @@ -14,6 +14,8 @@ *.suo *.user +/support/sign-binary.cmd + aclocal.m4 autom4te.cache config.guess diff --git a/support/create-installer.cmd b/support/create-installer.cmd index cd5227c..6a66486 100644 --- a/support/create-installer.cmd +++ b/support/create-installer.cmd @@ -77,7 +77,6 @@ echo. Compiling LibCecSharp (x86) %COMPILER9% LibCecSharp.sln /build "Release|x86" /project CecSharpTester :NOSDK9 -:CREATEINSTALLER echo. Copying driver installer copy "%DDK%\redist\DIFx\dpinst\MultiLin\amd64\dpinst.exe" ..\build\dpinst-amd64.exe copy "%DDK%\redist\DIFx\dpinst\MultiLin\x86\dpinst.exe" ..\build\dpinst-x86.exe @@ -92,9 +91,31 @@ del ..\build\libcec.x64.dll copy ..\build\libcec.x64.lib ..\build\x64\libcec.x64.lib del ..\build\libcec.x64.lib +rem Check for sign-binary.cmd, only present on the Pulse-Eight production build system +rem Calls signtool.exe and signs the DLLs with Pulse-Eight's code signing key +IF NOT EXIST "..\support\sign-binary.cmd" GOTO CREATEINSTALLER +echo. Signing all binaries +CALL ..\support\sign-binary.cmd ..\build\cec-client.exe +CALL ..\support\sign-binary.cmd ..\build\CecSharpTester.exe +CALL ..\support\sign-binary.cmd ..\build\libcec.dll +CALL ..\support\sign-binary.cmd ..\build\LibCecSharp.dll +CALL ..\support\sign-binary.cmd ..\build\x64\cec-client.x64.exe +CALL ..\support\sign-binary.cmd ..\build\x64\CecSharpTester.exe +CALL ..\support\sign-binary.cmd ..\build\x64\libcec.x64.dll +CALL ..\support\sign-binary.cmd ..\build\x64\LibCecSharp.dll + +:CREATEINSTALLER echo. Creating the installer %NSIS% /V1 /X"SetCompressor /FINAL lzma" "libCEC.nsi" +IF NOT EXIST "..\build\libCEC-installer.exe" GOTO :ERRORCREATINGINSTALLER + +rem Sign the installer if sign-binary.cmd exists +IF EXIST "..\support\sign-binary.cmd" ( + echo. Signing the installer binaries + CALL ..\support\sign-binary.cmd ..\build\libCEC-installer.exe +) + echo. The installer can be found here: ..\build\libCEC-installer.exe GOTO EXIT @@ -109,5 +130,10 @@ GOTO EXIT :NODDK echo. Windows DDK could not be found on your system +GOTO EXIT + +:ERRORCREATINGINSTALLER +echo. The installer could not be created. The most likely cause is that something went wrong while compiling. :EXIT +cd ..\support \ No newline at end of file -- 2.34.1