File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,32 @@ jobs:
221
221
run : |
222
222
make -C app dist
223
223
224
+ - name : Install and Invoke TrustedSigning @0.5.3 on dummy executable
225
+ # Work around from https://github.com/electron-userland/electron-builder/issues/9076#issuecomment-2855541018
226
+ if : startsWith(matrix.os, 'windows') && contains(needs.determine-build-type.outputs.type, 'release')
227
+ shell : pwsh
228
+ run : |
229
+ Install-Module -Name TrustedSigning -RequiredVersion 0.5.3 -Force -Repository PSGallery
230
+ # Create a dummy executable file
231
+ $dummyExePath = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "dummy.exe"
232
+ Set-Content -Path $dummyExePath -Value "This is a dummy executable for testing purposes."
233
+ # Invoke Trusted Signing on the dummy executable
234
+ # Necessary to force dependency resolution
235
+ try {
236
+ Invoke-TrustedSigning `
237
+ -Endpoint 'https://eus.codesigning.azure.net/' `
238
+ -CertificateProfileName 'dummyName' `
239
+ -CodeSigningAccountName 'dummyName' `
240
+ -TimestampRfc3161 'http://timestamp.acs.microsoft.com' `
241
+ -TimestampDigest 'SHA256' `
242
+ -FileDigest 'SHA256' `
243
+ -Files $dummyExePath
244
+ } catch {
245
+ Write-Host "Invoke-TrustedSigning failed: $($_.Exception.Message)"
246
+ # Prevent the script from exiting with a non-zero status
247
+ exit 0
248
+ }
249
+
224
250
# build the desktop app and deploy it
225
251
- name : ' build ${{matrix.variant}} app for ${{ matrix.os }}'
226
252
if : matrix.target == 'desktop'
You can’t perform that action at this time.
0 commit comments