diff options
Diffstat (limited to 'sign-driver-on-windows.bat.in')
-rw-r--r-- | sign-driver-on-windows.bat.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sign-driver-on-windows.bat.in b/sign-driver-on-windows.bat.in new file mode 100644 index 0000000..a6fe075 --- /dev/null +++ b/sign-driver-on-windows.bat.in @@ -0,0 +1,16 @@ +@echo off + +set MYDIR=%~dp0 +set FILENAME_PREFIX=mingw-w64-dpp +set DRIVER={{ DRIVER_NAME }} + +where signtool.exe >nul 2>&1 +IF %ERRORLEVEL% NEQ 0 ( + echo ERROR: signtool.exe not found, pleae add it to your PATH + pause + exit /b 1 +) + +signtool.exe sign /v /f "%MYDIR%/%FILENAME_PREFIX%.pfx" "%MYDIR%/%DRIVER%" + +pause |