Skip to content

Commit c573d7b

Browse files
committed
sign fix 4
1 parent 5240d42 commit c573d7b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build_and_scan.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
run: |
4646
choco install windows-sdk-10-version-2004-all -y
4747
48+
- name: Sign EXE
49+
shell: powershell
50+
run: |
51+
$signtool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe"
52+
if (!(Test-Path $signtool)) {
53+
$signtool = "${env:ProgramFiles(x86)}\Windows Kits\10\bin\x64\signtool.exe"
54+
}
55+
& "$signtool" sign /f kingtriton.pfx /p "${{ secrets.PFX_PASSWORD }}" /tr http://timestamp.digicert.com /td sha256 /fd sha256 "dist\PythonProjectMngr.exe"
56+
4857
- name: Upload artifact
4958
uses: actions/upload-artifact@v4
5059
with:
@@ -55,4 +64,4 @@ jobs:
5564
uses: crazy-max/ghaction-virustotal@v4.0.0
5665
with:
5766
vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
58-
files: dist/PythonProjectMngr.exe
67+
files: dist/PythonProjectMngr.exe

0 commit comments

Comments
 (0)