diff options
| author | Rob Mensching <rob@firegiant.com> | 2026-02-06 06:39:45 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2026-02-06 06:39:45 -0800 |
| commit | cd5f73d939b6d91ce3d9efcc5b8a800542041698 (patch) | |
| tree | 17c32ddc4cf568f907aaeb9192bd66796bce1825 | |
| parent | c258b72508f1b25a56e5d3ee3df08650ba1cbe36 (diff) | |
| download | wix-cd5f73d939b6d91ce3d9efcc5b8a800542041698.tar.gz wix-cd5f73d939b6d91ce3d9efcc5b8a800542041698.tar.bz2 wix-cd5f73d939b6d91ce3d9efcc5b8a800542041698.zip | |
Use azure-cli for signing authenticationHEADv7.0.0-rc.1main
The previous method was deprecated by Azure.
| -rw-r--r-- | .github/workflows/build.yml | 21 | ||||
| -rw-r--r-- | src/Directory.Build.targets | 2 |
2 files changed, 11 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 554d3c17..800749cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml | |||
| @@ -41,7 +41,7 @@ jobs: | |||
| 41 | - name: Install sign tool | 41 | - name: Install sign tool |
| 42 | if: ${{ env.SignBuild == 'true' }} | 42 | if: ${{ env.SignBuild == 'true' }} |
| 43 | shell: cmd | 43 | shell: cmd |
| 44 | run: dotnet tool install --tool-path build\.tools sign --version 0.9.1-beta.24170.3 | 44 | run: dotnet tool install --tool-path build\.tools sign --version 0.9.1-beta.26102.1 |
| 45 | 45 | ||
| 46 | - name: Configure automated logging and crash dumps | 46 | - name: Configure automated logging and crash dumps |
| 47 | shell: cmd | 47 | shell: cmd |
| @@ -55,23 +55,22 @@ jobs: | |||
| 55 | reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f | 55 | reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpCount /d 10 /f |
| 56 | reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1 | 56 | reg add "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps" /t REG_DWORD /v DumpType /d 1 |
| 57 | 57 | ||
| 58 | # - name: 'Az CLI login' | 58 | - name: 'Az CLI login' |
| 59 | # if: ${{ env.SignBuild == 'true' }} | 59 | if: ${{ env.SignBuild == 'true' }} |
| 60 | # uses: azure/login@v1 | 60 | uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # tag: v2.3.0 |
| 61 | # with: | 61 | with: |
| 62 | # allow-no-subscriptions: true | 62 | allow-no-subscriptions: true |
| 63 | # client-id: ${{ secrets.WIX_SIGNING_CLIENTID }} | 63 | client-id: ${{ secrets.WIX_SIGNING_CLIENTID }} |
| 64 | # tenant-id: ${{ secrets.WIX_SIGNING_TENANTID }} | 64 | tenant-id: ${{ secrets.WIX_SIGNING_TENANTID }} |
| 65 | 65 | ||
| 66 | - name: Build wix7 | 66 | - name: Build wix7 |
| 67 | shell: cmd | 67 | shell: cmd |
| 68 | run: ./src/build_official.cmd | 68 | run: ./src/build_official.cmd |
| 69 | env: | 69 | env: |
| 70 | RuntimeTestsEnabled: true | 70 | RuntimeTestsEnabled: true |
| 71 | AZURE_CLIENT_ID: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_CLIENTID || '' }} | ||
| 72 | AZURE_TENANT_ID: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_TENANTID || '' }} | ||
| 71 | SigningKeyVaultUri: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_VAULTURI || '' }} | 73 | SigningKeyVaultUri: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_VAULTURI || '' }} |
| 72 | SigningTenantId: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_TENANTID || '' }} | ||
| 73 | SigningClientId: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_CLIENTID || '' }} | ||
| 74 | SigningClientSecret: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_SECRET || '' }} | ||
| 75 | SigningCertName: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_CERTNAME || '' }} | 74 | SigningCertName: ${{ env.SignBuild == 'true' && secrets.WIX_SIGNING_CERTNAME || '' }} |
| 76 | 75 | ||
| 77 | - name: Validate test results | 76 | - name: Validate test results |
diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index 45320d19..7e13ae83 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | <PropertyGroup> | 5 | <PropertyGroup> |
| 6 | <SigningToolExe>$(ToolsFolder)\sign.exe</SigningToolExe> | 6 | <SigningToolExe>$(ToolsFolder)\sign.exe</SigningToolExe> |
| 7 | <SigningCommand>code azure-key-vault</SigningCommand> | 7 | <SigningCommand>code azure-key-vault</SigningCommand> |
| 8 | <SigningConfiguration>--description "WiX Toolset" --description-url "https://wixtoolset.org/" --recurse-containers=false --azure-key-vault-url $(SigningKeyVaultUri) --azure-key-vault-tenant-id $(SigningTenantId) --azure-key-vault-client-id $(SigningClientId) --azure-key-vault-client-secret $(SigningClientSecret) --azure-key-vault-certificate $(SigningCertName) --timestamp-url "http://timestamp.digicert.com"</SigningConfiguration> | 8 | <SigningConfiguration>--publisher-name "WiX Toolset" --description "WiX Toolset" --description-url "https://wixtoolset.org/" --recurse-containers=false --azure-credential-type azure-cli --azure-key-vault-url "$(SigningKeyVaultUri)" --azure-key-vault-certificate "$(SigningCertName)"</SigningConfiguration> |
| 9 | </PropertyGroup> | 9 | </PropertyGroup> |
| 10 | 10 | ||
| 11 | <PropertyGroup Condition=" '$(IsWixTestSupportProject)'=='true' "> | 11 | <PropertyGroup Condition=" '$(IsWixTestSupportProject)'=='true' "> |
