From a1c169f2e65c05af5278daec828138f0733eecef Mon Sep 17 00:00:00 2001 From: "C.Lee Taylor" Date: Tue, 25 Feb 2025 17:39:56 +0200 Subject: [PATCH] chore(ci): windows - add description and verify signing --- .github/workflows/build_binaries.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_binaries.yml b/.github/workflows/build_binaries.yml index c6461fa41e..360bc97af0 100644 --- a/.github/workflows/build_binaries.yml +++ b/.github/workflows/build_binaries.yml @@ -62,11 +62,11 @@ jobs: # matrix=$( jq -s -c .[] .github/workflows/build_binaries.json ) # # build only single target image - # matrix_selection=$( jq -c '.[] | select( ."name" == "windows-x64" )' ${{ env.matrix-json-file }} ) + matrix_selection=$( jq -c '.[] | select( ."name" == "windows-x64" )' ${{ env.matrix-json-file }} ) # matrix_selection=$( jq -c '.[] | select( ."name" | contains("macos") )' ${{ env.matrix-json-file }} ) # # build select target images - build_enabled - matrix_selection=$( jq -c '.[] | select( ."build_enabled" != false )' ${{ env.matrix-json-file }} ) + #matrix_selection=$( jq -c '.[] | select( ."build_enabled" != false )' ${{ env.matrix-json-file }} ) # # Setup the json build matrix matrix=$(echo ${matrix_selection} | jq -s -c '{"builds": .}') @@ -516,7 +516,7 @@ jobs: name: ${{ env.TS_FILENAME }}-${{ matrix.builds.name }}-${{ env.TARI_VERSION }}.pkg path: "${{ env.distDirPKG }}/${{ env.TS_FILENAME }}-${{ matrix.builds.name }}-${{ env.TARI_VERSION }}*.pkg*" - - name: Sign files with Trusted Signing (windows binaries) + - name: Sign Windows files with Trusted Signing if: ${{ ( startsWith(runner.os,'Windows') ) && ( env.AZURE_TENANT_ID != '' ) }} env: AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} @@ -533,6 +533,8 @@ jobs: file-digest: SHA256 timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-digest: SHA256 + description: The Tari protocol + description-url: https://tari.com - name: Build the Windows installer if: startsWith(runner.os,'Windows') @@ -541,7 +543,7 @@ jobs: cd buildtools "%programfiles(x86)%\Inno Setup 6\iscc.exe" "/DMyAppVersion=${{ env.TARI_VERSION }}-${{ env.VSHA_SHORT }}-${{ matrix.builds.name }}-installer" "/DMinotariSuite=${{ env.TS_FILENAME }}" "/DTariSuitePath=${{ github.workspace }}${{ env.TS_DIST }}" "windows_inno_installer.iss" - - name: Sign files with Trusted Signing (windows installer) + - name: Sign Windows installer with Trusted Signing if: ${{ ( startsWith(runner.os,'Windows') ) && ( env.AZURE_TENANT_ID != '' ) }} env: AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} @@ -558,6 +560,17 @@ jobs: file-digest: SHA256 timestamp-rfc3161: http://timestamp.acs.microsoft.com timestamp-digest: SHA256 + description: The Tari protocol + description-url: https://tari.com + + - name: Verify Windows signing for installer + if: ${{ ( startsWith(runner.os,'Windows') ) && ( env.AZURE_TENANT_ID != '' ) }} + env: + AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} + shell: cmd + run: | + cd buildtools\Output + signtool.exe verify /pa "${{ env.TS_FILENAME }}-${{ env.TARI_VERSION }}-${{ env.VSHA_SHORT }}-${{ matrix.builds.name }}-installer.exe" - name: Windows installer Compute archive checksum if: startsWith(runner.os,'Windows')