File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -768,7 +768,6 @@ function SetupSignatureFiles()
768
768
function BuildSignatureFiles ()
769
769
{
770
770
$sign_file = " tools\CustomSignTool\bin\Release32\CustomSignTool.exe" ;
771
- $rootPath = (Get-Location ).Path;
772
771
773
772
Write-Host " Update build signatures" - NoNewline - ForegroundColor Cyan
774
773
@@ -778,15 +777,21 @@ function BuildSignatureFiles()
778
777
return
779
778
}
780
779
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" ))
782
787
{
783
788
Write-Host " [SKIPPED] (processhacker-setup.exe)" - ForegroundColor Yellow
784
789
return
785
790
}
786
791
787
792
$global :signature_output = ( & " $sign_file " " sign" ,
788
793
" -k" ,
789
- " $rootPath \ build\internal\private.key" ,
794
+ " build\internal\private.key" ,
790
795
" ${env: BUILD_OUTPUT_FOLDER} \processhacker-build-setup.exe" ,
791
796
" -h" | Out-String ) -replace " `n |`r "
792
797
You can’t perform that action at this time.
0 commit comments