File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
- Param (
1
+ Param (
2
2
[String ]$CodeName = " " ,
3
3
[String ]$Folder = " .\output" ,
4
4
[String ]$Certificate = " " ,
@@ -263,6 +263,22 @@ Function SignDrivers(
263
263
Return $False
264
264
}
265
265
$cmd = @ ()
266
+ $exe = (Resolve-Path - Path " .\tools\inf2cat.exe" ).Path
267
+ $cmd += " /os:10_VB_ARM64"
268
+ $drivers = Get-ChildItem `
269
+ - Recurse `
270
+ - Path $Destination `
271
+ - Filter ' *.inf'
272
+ $i = 0
273
+ ForEach ($driver in $drivers ){
274
+ $i ++
275
+ $dir = Split-Path - Parent - Path $driver.FullName
276
+ PrintLog " INFO" $dir
277
+ $out = & $exe $cmd (" /driver:" + $dir ) 2>&1
278
+ PrintLog " DEBUG" $out
279
+ PrintLog " INFO" (" {0}/{1}" -f $i , $drivers.Count )
280
+ }
281
+ $cmd = @ ()
266
282
$exe = (Resolve-Path - Path " .\tools\signtool.exe" ).Path
267
283
$cmd += " sign"
268
284
$cmd += " /fd" ;
@@ -276,7 +292,7 @@ Function SignDrivers(
276
292
$drivers = Get-ChildItem `
277
293
- Recurse `
278
294
- Path $Destination `
279
- - Filter ' *.sys'
295
+ - Include ' *.sys' , ' *.cat '
280
296
$i = 0
281
297
ForEach ($driver in $drivers ){
282
298
$i ++
You can’t perform that action at this time.
0 commit comments