Skip to content

Commit 5aaf7f1

Browse files
committed
add sign
1 parent b62b3ea commit 5aaf7f1

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build_and_scan.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: '3.13'
22+
python-version: '3.12'
2323

2424
- name: Install dependencies
2525
run: |
@@ -29,10 +29,20 @@ jobs:
2929
3030
- name: Build EXE
3131
run: |
32-
python -m PyInstaller --noupx --onefile --windowed --icon=python.ico --add-data "python.ico;." --add-data "python.png;." --name="PythonProjectMngr" app.py
32+
python -m PyInstaller --clean --noupx --onefile --windowed --icon=python.ico --add-data "python.ico;." --add-data "python.png;." --name="PythonProjectMngr" app.py
3333
env:
3434
PYTHONIOENCODING: utf-8
3535

36+
- name: Restore code signing certificate
37+
run: |
38+
echo "${{ secrets.PFX_BASE64 }}" | certutil -decode - kingtriton.pfx
39+
shell: powershell
40+
41+
- name: Sign EXE
42+
run: |
43+
signtool sign /f kingtriton.pfx /p "${{ secrets.PFX_PASSWORD }}" /tr http://timestamp.digicert.com /td sha256 /fd sha256 dist\PythonProjectMngr.exe
44+
shell: powershell
45+
3646
- name: Upload artifact
3747
uses: actions/upload-artifact@v4
3848
with:
@@ -43,4 +53,4 @@ jobs:
4353
uses: crazy-max/ghaction-virustotal@v4.0.0
4454
with:
4555
vt_api_key: ${{ secrets.VIRUSTOTAL_API_KEY }}
46-
files: dist/PythonProjectMngr.exe
56+
files: dist/PythonProjectMngr.exe

0 commit comments

Comments
 (0)