X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=support%2Fcreate-installer.cmd;h=5023ddc3696b83bd36636bf3917f308ef0300afa;hb=ded7e7cea9571381bef47bb2f2fb0e5266671914;hp=6a6648679799c7fa75b57cf2470a3a9417613618;hpb=7c6346eb117a1e0e66c782b79be71067ead1e6b4;p=deb_libcec.git diff --git a/support/create-installer.cmd b/support/create-installer.cmd index 6a66486..5023ddc 100644 --- a/support/create-installer.cmd +++ b/support/create-installer.cmd @@ -20,12 +20,15 @@ IF "%VS100COMNTOOLS%"=="" ( set COMPILER10="%VS100COMNTOOLS%\..\IDE\devenv.exe" ) ELSE GOTO NOSDK10 -cd ..\project - del /s /f /q ..\build mkdir ..\build + +call create-driver-installer.cmd + mkdir ..\build\x64 +cd ..\project + rem Skip to libCEC/x86 when we're running on win32 if "%PROCESSOR_ARCHITECTURE%"=="x86" if "%PROCESSOR_ARCHITEW6432%"=="" goto libcecx86 @@ -77,19 +80,15 @@ echo. Compiling LibCecSharp (x86) %COMPILER9% LibCecSharp.sln /build "Release|x86" /project CecSharpTester :NOSDK9 -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 - rem Clean things up before creating the installer -del ..\build\LibCecSharp.pdb -del ..\build\CecSharpTester.pdb +del /q /f ..\build\LibCecSharp.pdb +del /q /f ..\build\CecSharpTester.pdb copy ..\build\cec-client.x64.exe ..\build\x64\cec-client.x64.exe -del ..\build\cec-client.x64.exe +del /q /f ..\build\cec-client.x64.exe copy ..\build\libcec.x64.dll ..\build\x64\libcec.x64.dll -del ..\build\libcec.x64.dll +del /q /f ..\build\libcec.x64.dll copy ..\build\libcec.x64.lib ..\build\x64\libcec.x64.lib -del ..\build\libcec.x64.lib +del /q /f ..\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 @@ -136,4 +135,11 @@ GOTO EXIT echo. The installer could not be created. The most likely cause is that something went wrong while compiling. :EXIT +del /q /f ..\build\cec-client.exe +del /q /f ..\build\CecSharpTester.exe +del /q /f ..\build\*.dll +del /q /f ..\build\*.lib +del /q /f ..\build\*.exp +del /s /f /q ..\build\x64 +rmdir ..\build\x64 cd ..\support \ No newline at end of file