Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: broaden signtool.exe search for Windows ARM builds

Louis Beaumont68e1fef28792
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 12d13911a..c767c14a8 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -753,11 +753,26 @@ jobs:
shell: powershell
run: |
dotnet tool install --global AzureSignTool
- # Ensure signtool.exe is on PATH — ARM runners only have it in the x64 SDK bin
- $sdkBin = Get-ChildItem "C:\Program Files (x86)\Windows Kits\10\bin\*\x64" -Directory | Sort-Object Name -Descending | Select-Object -First 1
- if ($sdkBin) {
- echo "$($sdkBin.FullName)" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- Write-Host "Added $($sdkBin.FullName) to PATH (signtool.exe)"
+ # Ensure signtool.exe is on PATH — search all Windows SDK bin directories
+ $found = $false
+ foreach ($base in @("C:\Program Files (x86)\Windows Kits\10\bin", "C:\Program Files\Windows Kits\10\bin")) {
+ if (Test-Path $base) {
+ foreach ($arch in @("x64", "arm64", "x86")) {
+ $sdkBin = Get-ChildItem "$base\*\$arch" -Directory -ErrorAction SilentlyContinue | Sort-Object Name -Descending | Select-Object -First 1
+ if ($sdkBin -and (Test-Path "$($sdkBin.FullName)\signtool.exe")) {
+ echo "$($sdkBin.FullName)" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
+ Write-Host "Added $($sdkBin.FullName) to PATH (signtool.exe)"
+ $found = $true
+ break
+ }
+ }
+ if ($found) { break }
+ }
+ }
+ if (-not $found) {
+ Write-Host "WARNING: signtool.exe not found in any Windows SDK bin directory"
+ # List available SDK paths for debugging
+ Get-ChildItem "C:\Program Files*\Windows Kits\10\bin" -Recurse -Filter "signtool.exe" -ErrorAction SilentlyContinue | ForEach-Object { Write-Host "Found: $($_.FullName)" }
}
- name: Build (Windows)