Skip to content

Commit

Permalink
extract.ps1: generate and sign catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
BigfootACA committed Oct 25, 2022
1 parent 42a91d5 commit 1c36427
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions extract.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Param(
Param(
[String]$CodeName="",
[String]$Folder=".\output",
[String]$Certificate="",
Expand Down Expand Up @@ -263,6 +263,22 @@ Function SignDrivers(
Return $False
}
$cmd=@()
$exe=(Resolve-Path -Path ".\tools\inf2cat.exe").Path
$cmd+="/os:10_VB_ARM64"
$drivers=Get-ChildItem `
-Recurse `
-Path $Destination `
-Filter '*.inf'
$i=0
ForEach($driver in $drivers){
$i++
$dir=Split-Path -Parent -Path $driver.FullName
PrintLog "INFO" $dir
$out=&$exe $cmd ("/driver:"+$dir) 2>&1
PrintLog "DEBUG" $out
PrintLog "INFO" ("{0}/{1}" -f $i,$drivers.Count)
}
$cmd=@()
$exe=(Resolve-Path -Path ".\tools\signtool.exe").Path
$cmd+="sign"
$cmd+="/fd";
Expand All @@ -276,7 +292,7 @@ Function SignDrivers(
$drivers=Get-ChildItem `
-Recurse `
-Path $Destination `
-Filter '*.sys'
-Include '*.sys','*.cat'
$i=0
ForEach($driver in $drivers){
$i++
Expand Down

0 comments on commit 1c36427

Please sign in to comment.