Skip to content

Commit f8d8c0c

Browse files
committed
fix: signtool executable
1 parent 8ac9f77 commit f8d8c0c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,12 @@ jobs:
144144

145145
# Sign binary
146146
- name: Sign binary
147-
run: signtool sign /tr http://timestamp.digicert.com /td sha256 /fd SHA256 /f cert.pfx /p "${{ secrets.SIGNING_CERT_PASSWORD }}" ${{ matrix.filename }}
148-
shell: bash
147+
run: |
148+
$signtool = Get-ChildItem 'C:\Program Files (x86)\Windows Kits\10\bin' -Recurse -Filter signtool.exe |
149+
Where-Object { $_.FullName -like '*x64*' } |
150+
Sort-Object FullName -Descending |
151+
Select-Object -ExpandProperty FullName -First 1
152+
& "$signtool" sign /tr http://timestamp.digicert.com /td sha256 /fd SHA256 /f cert.pfx /p "${{ secrets.SIGNING_CERT_PASSWORD }}" ${{ matrix.filename }}
149153
150154
# Upload the built artifact
151155
- name: Upload binary artifact

0 commit comments

Comments
 (0)