Skip to content

Commit 1c36427

Browse files
committed
extract.ps1: generate and sign catalogs
1 parent 42a91d5 commit 1c36427

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

extract.ps1

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Param(
1+
Param(
22
[String]$CodeName="",
33
[String]$Folder=".\output",
44
[String]$Certificate="",
@@ -263,6 +263,22 @@ Function SignDrivers(
263263
Return $False
264264
}
265265
$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=@()
266282
$exe=(Resolve-Path -Path ".\tools\signtool.exe").Path
267283
$cmd+="sign"
268284
$cmd+="/fd";
@@ -276,7 +292,7 @@ Function SignDrivers(
276292
$drivers=Get-ChildItem `
277293
-Recurse `
278294
-Path $Destination `
279-
-Filter '*.sys'
295+
-Include '*.sys','*.cat'
280296
$i=0
281297
ForEach($driver in $drivers){
282298
$i++

0 commit comments

Comments
 (0)