Skip to content

Commit 749bb04

Browse files
committed
sign fix 2
1 parent 6c16cf4 commit 749bb04

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build_and_scan.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ jobs:
4141
[IO.File]::WriteAllBytes("kingtriton.pfx", $pfxBytes)
4242
4343
- name: Sign EXE
44-
run: |
45-
signtool sign /f kingtriton.pfx /p "${{ secrets.PFX_PASSWORD }}" /tr http://timestamp.digicert.com /td sha256 /fd sha256 dist\PythonProjectMngr.exe
4644
shell: powershell
45+
run: |
46+
$signtool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64\signtool.exe"
47+
if (!(Test-Path $signtool)) {
48+
$signtool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.22621.0\x64\signtool.exe"
49+
}
50+
& "$signtool" sign /f kingtriton.pfx /p "${{ secrets.PFX_PASSWORD }}" /tr http://timestamp.digicert.com /td sha256 /fd sha256 "dist\PythonProjectMngr.exe"
4751
4852
- name: Upload artifact
4953
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)