Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/app-test-build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,32 @@ jobs:
run: |
make -C app dist

- name: Install and Invoke TrustedSigning @0.5.3 on dummy executable
# Work around from https://github.com/electron-userland/electron-builder/issues/9076#issuecomment-2855541018
if: startsWith(matrix.os, 'windows') && contains(needs.determine-build-type.outputs.type, 'release')
shell: pwsh
run: |
Install-Module -Name TrustedSigning -RequiredVersion 0.5.3 -Force -Repository PSGallery
# Create a dummy executable file
$dummyExePath = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath "dummy.exe"
Set-Content -Path $dummyExePath -Value "This is a dummy executable for testing purposes."
# Invoke Trusted Signing on the dummy executable
# Necessary to force dependency resolution
try {
Invoke-TrustedSigning `
-Endpoint 'https://eus.codesigning.azure.net/' `
-CertificateProfileName 'dummyName' `
-CodeSigningAccountName 'dummyName' `
-TimestampRfc3161 'http://timestamp.acs.microsoft.com' `
-TimestampDigest 'SHA256' `
-FileDigest 'SHA256' `
-Files $dummyExePath
} catch {
Write-Host "Invoke-TrustedSigning failed: $($_.Exception.Message)"
# Prevent the script from exiting with a non-zero status
exit 0
}

# build the desktop app and deploy it
- name: 'build ${{matrix.variant}} app for ${{ matrix.os }}'
if: matrix.target == 'desktop'
Expand Down
Loading