Skip to content

Commit 4b0463b

Browse files
committed
correct path filter
1 parent 8263f5f commit 4b0463b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ jobs:
138138
Write-Error "Installer exe not found!"
139139
exit 1
140140
}
141-
$signtoolPath = Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits\10\bin" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName
141+
$signtoolPath = Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits\10\bin" -Recurse -Filter "signtool.exe" |
142+
Where-Object { $_.DirectoryName -like "*\x64" } |
143+
Select-Object -First 1 -ExpandProperty FullName
142144
if ($null -eq $signtoolPath) {
143145
Write-Error "signtool.exe not found!"
144146
exit 1

0 commit comments

Comments
 (0)