Skip to content

Commit dfc91e8

Browse files
committed
Fix build script signature checking
1 parent 51925fd commit dfc91e8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

build/internal/build.ps1

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,6 @@ function SetupSignatureFiles()
768768
function BuildSignatureFiles()
769769
{
770770
$sign_file = "tools\CustomSignTool\bin\Release32\CustomSignTool.exe";
771-
$rootPath = (Get-Location).Path;
772771

773772
Write-Host "Update build signatures" -NoNewline -ForegroundColor Cyan
774773

@@ -778,15 +777,21 @@ function BuildSignatureFiles()
778777
return
779778
}
780779

781-
if (!(Test-Path "$exeSetup"))
780+
if (!(Test-Path "build\internal\private.key"))
781+
{
782+
Write-Host " [SKIPPED] (private.key)" -ForegroundColor Yellow
783+
return
784+
}
785+
786+
if (!(Test-Path "${env:BUILD_OUTPUT_FOLDER}\processhacker-build-setup.exe"))
782787
{
783788
Write-Host " [SKIPPED] (processhacker-setup.exe)" -ForegroundColor Yellow
784789
return
785790
}
786791

787792
$global:signature_output = ( & "$sign_file" "sign",
788793
"-k",
789-
"$rootPath\build\internal\private.key",
794+
"build\internal\private.key",
790795
"${env:BUILD_OUTPUT_FOLDER}\processhacker-build-setup.exe",
791796
"-h" | Out-String) -replace "`n|`r"
792797

0 commit comments

Comments
 (0)