index
:
mingw-w64-dpp.git
"Mingw64 Driver Plus Plus": C++, DDK and (EA)STL made easy!
log msg
author
committer
range
main
release-1.0
release-1.1
release-1.2
release-1.3
tmp
about
summary
refs
log
tree
commit
diff
path:
root
/
sign-driver-on-windows.bat.in
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
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