Skip to content

Commit ba1e22d

Browse files
committed
Prevent Sign Collision
1 parent a7bbc0f commit ba1e22d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/check-test-build.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ jobs:
8484
run: |
8585
$version_raw = Get-Content ./version.txt -Raw
8686
$version = $version_raw -replace "`n","" -replace "`r",""
87-
$filename = "scsd-gui_${version}_windows_amd64.exe"
87+
$unsigned_filename = "unsigned_${version}_windows_amd64.exe"
8888
.\scripts\build\windows\set_version_from_template.ps1
89-
pyinstaller --version-file "./version_windows.txt" --add-data "version.txt;." --icon "./steamCloudSaveDownloaderGUI/res/scsd_256.ico" --hide-console hide-late --collect-all steamCloudSaveDownloaderGUI --collect-all dateutil --collect-all steamCloudSaveDownloader --onefile ./scsd-gui --name $filename
89+
pyinstaller --version-file "./version_windows.txt" --add-data "version.txt;." --icon "./steamCloudSaveDownloaderGUI/res/scsd_256.ico" --hide-console hide-late --collect-all steamCloudSaveDownloaderGUI --collect-all dateutil --collect-all steamCloudSaveDownloader --onefile ./scsd-gui --name $unsigned_filename
9090
9191
- name: Sign (Windows)
9292
if: ${{ matrix.os == 'windows-latest' }}
@@ -101,6 +101,16 @@ jobs:
101101
folder: 'dist'
102102
recursive: true
103103

104+
# Rename because signing proecdure will collide filename & certname
105+
- name: Rename (Windows)
106+
if: ${{ matrix.os == 'windows-latest' }}
107+
run: |
108+
$version_raw = Get-Content ./version.txt -Raw
109+
$version = $version_raw -replace "`n","" -replace "`r",""
110+
$unsigned_filename = "unsigned_${version}_windows_amd64.exe"
111+
$signed_filename = "scsd-gui_${version}_windows_amd64.exe"
112+
Move-Item $unsigned_filename $signed_filename
113+
104114
- name: Build
105115
if: ${{ matrix.os == 'ubuntu-latest' }}
106116
run: |

0 commit comments

Comments
 (0)