Skip to content

Commit

Permalink
Fixed CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
lextm committed Aug 6, 2024
1 parent 90ad0a6 commit 6322a57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion sign.assembly.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
if ($env:CI -eq "true") {
exit 0
}

$cert = Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert | Select-Object -First 1
if ($cert -eq $null) {
Write-Host "No code signing certificate found in MY store. Exit."
exit 1
Expand Down
5 changes: 4 additions & 1 deletion sign.nuget.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
$nuget = Join-Path $PSScriptRoot "nuget.exe"
if ($env:CI -eq "true") {
exit 0
}

$nuget = Join-Path $PSScriptRoot "nuget.exe"
if (!(Test-Path $nuget))
{
Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile nuget.exe
Expand Down
4 changes: 4 additions & 0 deletions sign3.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if ($env:CI -eq "true") {
exit 0
}

$signtool = Get-ChildItem -Path "C:\Program Files (x86)\Windows Kits" -Recurse -Filter "signtool.exe" | Select-Object -First 1 -ExpandProperty FullName
Write-host "Signtool path: $signtool"
if (Test-Path $signtool) {
Expand Down

0 comments on commit 6322a57

Please sign in to comment.