File tree Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Expand file tree Collapse file tree 2 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 40
40
with :
41
41
fetch-depth : 0
42
42
submodules : true
43
- - name : Sign (Windows) # TODO- temporary here
44
- if : ${{ matrix.os == 'windows-latest' }}
45
- run : |
46
- .\scripts\build\windows\signtool.ps1 -cert_base64 '${{ secrets.SIGNTOOL_CERT }}' -cert_passwd '${{ secrets.SIGNTOOL_PASS }}' -cert_fingerprint '${{ secrets.SIGNTOOL_FINGERPRINT }}' -cert_name '${{ secrets.SIGNTOOL_NAME }}' -target "Achaka"
47
43
- name : Set up Python ${{ matrix.python-version }}
48
44
uses : actions/setup-python@v4
49
45
with :
88
84
run : |
89
85
$version_raw = Get-Content ./version.txt -Raw
90
86
$version = $version_raw -replace "`n","" -replace "`r",""
91
- $unsigned_filename = "scsd-gui_${version}_windows_amd64.exe"
87
+ $filename = "scsd-gui_${version}_windows_amd64.exe"
92
88
.\scripts\build\windows\set_version_from_template.ps1
93
- 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
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
90
+
91
+ - name : Sign (Windows)
92
+ if : ${{ matrix.os == 'windows-latest' }}
93
+ run : |
94
+ $version_raw = Get-Content ./version.txt -Raw
95
+ $version = $version_raw -replace "`n","" -replace "`r",""
96
+ $filename = "scsd-gui_${version}_windows_amd64.exe"
97
+
98
+ .\scripts\build\windows\signtool.ps1 -cert_base64 '${{ secrets.SIGNTOOL_CERT }}' -cert_passwd '${{ secrets.SIGNTOOL_PASS }}' -cert_fingerprint '${{ secrets.SIGNTOOL_FINGERPRINT }}' -cert_name '${{ secrets.SIGNTOOL_NAME }}' -target $filename
94
99
95
100
- name : Build
96
101
if : ${{ matrix.os == 'ubuntu-latest' }}
Original file line number Diff line number Diff line change @@ -38,15 +38,9 @@ foreach ($d in $dir) {
38
38
39
39
$leaf = $d.FullName.split (" \" )[-1 ]
40
40
41
- $version = $leaf -replace " ." , " "
42
- Write-Host " Leaf: $ ( $leaf ) "
43
- Write-Host " Version: $ ( $version ) "
41
+ $version = ($leaf -replace " \." , " " ) -as [int ]
42
+ Write-Host " Leaf: $ ( $leaf ) Version: $ ( $version ) "
44
43
45
- $version = $version -as [int ]
46
- Write-Host " Version: $ ( $version ) "
47
-
48
- Write-Host " CMP: $ ( $version ) $ ( $newest_version ) "
49
- Write-Host " CMP: $ ( $version.getType ()) $ ( $newest_version.getType ()) "
50
44
if ($version -gt $newest_version ) {
51
45
$newest_version = $version
52
46
$newest_version_path = $d.FullName
@@ -65,4 +59,7 @@ $cert_bytes = [Convert]::FromBase64String($cert_base64)
65
59
66
60
# Import Cert
67
61
certutil -f - p $cert_passwd - importpfx $certificate
68
- Set-Location Cert:\CurrentUser\My
62
+ Set-Location Cert:\CurrentUser\My
63
+
64
+ # Sign
65
+ $signtool sign / f $certificate / p $cert_passwd / fd SHA256 / tr http:// timestamp.digicert.com / td SHA256 $target
You can’t perform that action at this time.
0 commit comments