From 16ccf3d4bf7e1996ee61bbb775d644cf2e28a3f1 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Sat, 19 Oct 2024 01:53:17 -0700 Subject: [PATCH] Fixed code sign scripts. --- sign.assembly.ps1 | 2 +- sign3.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sign.assembly.ps1 b/sign.assembly.ps1 index 86cb44e5..77c21c67 100644 --- a/sign.assembly.ps1 +++ b/sign.assembly.ps1 @@ -8,7 +8,7 @@ if ($null -eq $cert) { exit 0 } -$signtool = Get-ChildItem -Path "${env:ProgramFiles(x86)}\Windows Kits" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName +$signtool = Get-ChildItem -Path "${env:ProgramFiles(x86)}\Windows Kits", "${env:ProgramFiles(x86)}\Microsoft SDKs" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName Write-host "Signtool path: $signtool" if (Test-Path $signtool) { Write-Output "sign the assembly" diff --git a/sign3.ps1 b/sign3.ps1 index 17a9acc5..09ca3c80 100644 --- a/sign3.ps1 +++ b/sign3.ps1 @@ -2,7 +2,7 @@ if ($env:CI -eq "true") { exit 0 } -$signtool = Get-ChildItem -Path "${env:ProgramFiles(x86)}\Windows Kits" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName +$signtool = Get-ChildItem -Path "${env:ProgramFiles(x86)}\Windows Kits", "${env:ProgramFiles(x86)}\Microsoft SDKs" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName Write-host "Signtool path: $signtool" if (Test-Path $signtool) { New-Item -ItemType Directory -Path ".\SharpSnmpLib\bin\Release" -Force | Out-Null