2222 args : ' --target x86_64-apple-darwin'
2323 - platform : ' ubuntu-22.04'
2424 args : ' '
25- - platform : ' windows-latest '
25+ - platform : ' windows-2022 '
2626 args : ' '
2727 runs-on : ${{ matrix.platform }}
2828 steps :
@@ -159,13 +159,13 @@ jobs:
159159 SHA256SUMS.asc
160160
161161 - name : Set up certificate
162- if : matrix.platform == 'windows-latest '
162+ if : matrix.platform == 'windows-2022 '
163163 run : |
164164 echo "${{ secrets.DIGICERT_CLIENT_AUTH_CERT }}" | base64 --decode > /d/Certificate_pkcs12.p12
165165 shell : bash
166166
167167 - name : Set DigiCert environment variables
168- if : matrix.platform == 'windows-latest '
168+ if : matrix.platform == 'windows-2022 '
169169 run : |
170170 echo "SM_HOST=${{ secrets.DIGICERT_HOST }}" >> "$GITHUB_ENV"
171171 echo "SM_API_KEY=${{ secrets.DIGICERT_KEY_LOCKER_API_KEY }}" >> "$GITHUB_ENV"
@@ -175,35 +175,35 @@ jobs:
175175 shell : bash
176176
177177 - name : Code signing with Software Trust Manager
178- if : matrix.platform == 'windows-latest '
178+ if : matrix.platform == 'windows-2022 '
179179 uses : digicert/ssm-code-signing@v1.1.0
180180 env :
181181 FORCE_DOWNLOAD_TOOLS : ' true'
182182
183183 - name : DigiCert tools healthcheck
184- if : matrix.platform == 'windows-latest '
184+ if : matrix.platform == 'windows-2022 '
185185 shell : cmd
186186 run : |
187187 smctl version
188188 smctl healthcheck
189189
190190 - name : Sync KeyLocker certificate to Windows store (KSP)
191- if : matrix.platform == 'windows-latest '
191+ if : matrix.platform == 'windows-2022 '
192192 shell : cmd
193193 run : |
194194 "%LOCALAPPDATA%\Temp\smtools-windows-x64\smksp_cert_sync.exe"
195195 certutil.exe -csp "DigiCert Software Trust Manager KSP" -key -user
196196
197197 - name : Sign Windows executables with DigiCert (KSP)
198- if : matrix.platform == 'windows-latest '
198+ if : matrix.platform == 'windows-2022 '
199199 shell : cmd
200200 run : |
201201 for /r "src-tauri\target\release\bundle" %%f in (*.exe *.msi) do (
202202 smctl sign --fingerprint %SM_FINGERPRINT% --input "%%f"
203203 )
204204
205205 - name : Verify Windows Signatures
206- if : matrix.platform == 'windows-latest '
206+ if : matrix.platform == 'windows-2022 '
207207 shell : pwsh
208208 run : |
209209 $signtool = Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin\*\x64\signtool.exe" -ErrorAction SilentlyContinue | Select-Object -First 1 -ExpandProperty FullName
@@ -214,15 +214,15 @@ jobs:
214214 }
215215
216216 - name : Upload Windows Artifact - MSI
217- if : matrix.platform == 'windows-latest '
217+ if : matrix.platform == 'windows-2022 '
218218 uses : actions/upload-artifact@v4
219219 with :
220220 name : windows-msi-artifact
221221 path : src-tauri/target/release/bundle/msi/*.msi
222222 if-no-files-found : warn
223223
224224 - name : Upload Windows Artifact - EXE
225- if : matrix.platform == 'windows-latest '
225+ if : matrix.platform == 'windows-2022 '
226226 uses : actions/upload-artifact@v4
227227 with :
228228 name : windows-exe-artifact
@@ -232,7 +232,7 @@ jobs:
232232 if-no-files-found : warn
233233
234234 - name : List Windows build artifacts for debugging
235- if : matrix.platform == 'windows-latest '
235+ if : matrix.platform == 'windows-2022 '
236236 shell : powershell
237237 run : |
238238 Write-Host "Checking build directory structure:"
0 commit comments