Skip to content

Commit

Permalink
Fixed code sign scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Oct 19, 2024
1 parent 3e670b3 commit 16ccf3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sign.assembly.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sign3.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 16ccf3d

Please sign in to comment.