Skip to content

Commit

Permalink
testing: powershell full run
Browse files Browse the repository at this point in the history
  • Loading branch information
leet4tari committed Feb 28, 2025
1 parent f722d5d commit 6ab10e9
Showing 1 changed file with 25 additions and 31 deletions.
56 changes: 25 additions & 31 deletions .github/workflows/build_binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,31 +120,6 @@ jobs:
run: |
Get-ChildItem -Path C:\Prog* -Directory -Recurse -Depth 1 | ForEach-Object { Write-Output $_.FullName }
- name: Quick powerShell find test
shell: pwsh
run: |
# Get the Program Files (x86) directory dynamically
$programFilesX86 = [System.Environment]::GetFolderPath("ProgramFilesX86")
$sdkBasePath = Join-Path $programFilesX86 "Windows Kits"
# Check if Windows Kits exists
if (-Not (Test-Path $sdkBasePath)) {
Write-Error "Windows Kits folder not found at $sdkBasePath"
exit 1
}
Write-Output "Searching for signtool.exe in: $sdkBasePath"
# Search for signtool.exe within Windows Kits
$signtoolPath = Get-ChildItem -Path $sdkBasePath -Recurse -Filter signtool.exe -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty FullName -First 1
if (-not $signtoolPath) {
Write-Error "signtool.exe not found in Windows Kits folder"
exit 1
}
Write-Output "Found signtool.exe at: $signtoolPath"
- name: List Program Files (x86) and Program Files if they exist
if: ${{ false }}
Expand Down Expand Up @@ -666,15 +641,34 @@ jobs:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
shell: powershell
run: |
cd buildtools\Output
$signtool = Get-Command signtool.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source
if (-not $signtool) {
Write-Error "signtool.exe not found!"
# Get the Program Files (x86) directory dynamically
$programFilesX86 = [System.Environment]::GetFolderPath("ProgramFilesX86")
$sdkBasePath = Join-Path $programFilesX86 "Windows Kits"
# Check if Windows Kits exists
if (-Not (Test-Path $sdkBasePath)) {
Write-Error "Windows Kits folder not found at $sdkBasePath!"
exit 1
}
Write-Output "Searching for signtool.exe in: $sdkBasePath"
# Search for signtool.exe within Windows Kits
$signtoolPath = Get-ChildItem -Path $sdkBasePath -Recurse -Filter signtool.exe -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty FullName -First 1
if (-not $signtoolPath) {
Write-Error "signtool.exe not found in Windows Kits folder!"
exit 1
}
& $signtool verify /pa "${{ env.TS_FILENAME }}-${{ env.TARI_VERSION }}-${{ env.VSHA_SHORT }}-${{ matrix.builds.name }}-installer.exe"
Write-Output "Found signtool.exe at: $signtoolPath"
cd buildtools\Output
& $signtoolPath verify /pa "${{ env.TS_FILENAME }}-${{ env.TARI_VERSION }}-${{ env.VSHA_SHORT }}-${{ matrix.builds.name }}-installer.exe"
if ($LASTEXITCODE -ne 0) {
Write-Error "Signature verification failed!"
Write-Error "!! Signature verification failed for ${{ env.TS_FILENAME }}-${{ env.TARI_VERSION }}-${{ env.VSHA_SHORT }}-${{ matrix.builds.name }}-installer.exe !!"
exit 1
}
Expand Down

0 comments on commit 6ab10e9

Please sign in to comment.