Add debian package patches.
[deb_libcec.git] / support / create-driver-installer.cmd
index 6b6b5d39efee967af316de852fa68b60300729e9..153d9535caa2ca054cb2b2666f9ee78439c2cb3f 100644 (file)
@@ -11,25 +11,30 @@ rem Check for the Windows DDK
 IF NOT EXIST "C:\WinDDK\7600.16385.1" GOTO NODDK
 set DDK="C:\WinDDK\7600.16385.1"
 
-cd ..\project
-
-del /s /f /q ..\build
 mkdir ..\build
 
 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
 
+:CREATECAT
+cd ..\driver
+IF EXIST "..\support\private\create-cat.cmd" (
+  echo. Updating the catalogue
+  CALL ..\support\private\create-cat.cmd p8usb-cec.cat
+)
+
 :CREATEINSTALLER
 echo. Creating the installer
+cd ..\project
 %NSIS% /V1 /X"SetCompressor /FINAL lzma" "p8-usbcec-driver.nsi"
 
 IF NOT EXIST "..\build\p8-usbcec-driver-installer.exe" GOTO :ERRORCREATINGINSTALLER
 
 rem Sign the installer if sign-binary.cmd exists
-IF EXIST "..\support\sign-binary.cmd" (
+IF EXIST "..\support\private\sign-binary.cmd" (
   echo. Signing the installer binaries
-  CALL ..\support\sign-binary.cmd ..\build\p8-usbcec-driver-installer.exe
+  CALL ..\support\private\sign-binary.cmd ..\build\p8-usbcec-driver-installer.exe
 )
 
 echo. The installer can be found here: ..\build\p8-usbcec-driver-installer.exe