Skip to content

Commit 0cade9d

Browse files
fix: Dynamic discovery of of signtool.exe (#1328)
* fix: windows signing issue with the path * fix: apply old formatting for readablity
1 parent 8d8ef63 commit 0cade9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ jobs:
181181
shell: pwsh
182182
run: |
183183
$exe = Get-ChildItem -Recurse extracted\Espressif-IDE\espressif-ide.exe | Select-Object -First 1
184-
& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe" sign `
184+
$signtool = Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits" -Recurse -Name "signtool.exe" | Select-Object -First 1
185+
& "C:\Program Files (x86)\Windows Kits\$signtool" sign `
185186
/f cert.pfx `
186187
/p $env:PFX_PASS `
187188
/tr http://timestamp.digicert.com `
@@ -192,7 +193,8 @@ jobs:
192193
- name: Verify Signature
193194
run: |
194195
$exe = Get-ChildItem -Recurse extracted\Espressif-IDE\espressif-ide.exe | Select-Object -First 1
195-
& "C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x86\signtool.exe" verify `
196+
$signtool = Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits" -Recurse -Name "signtool.exe" | Select-Object -First 1
197+
& "C:\Program Files (x86)\Windows Kits\$signtool" verify `
196198
/pa `
197199
$exe.FullName
198200

0 commit comments

Comments
 (0)