@@ -111,10 +111,10 @@ function InitializeBuildEnvironment()
111
111
$global :latestGitRevision = (& " $git " " rev-list" , " --count" , ($global :latestGitTag.Trim () + " ..master" )) | Out-String
112
112
113
113
$global :buildMessage = $global :latestGitMessage -Replace " `r`n`r`n " , " `r`n "
114
- $global :buildMessage = ($global :buildMessage -split ' \r\n' )[0 ]
114
+ $global :buildMessageLine = ($global :buildMessage -split ' \r\n' )[0 ]
115
115
$global :fileVersion = " 3.0." + $global :latestGitRevision.Trim () # ${env:APPVEYOR_BUILD_VERSION}
116
116
117
- Write-Host " $global :fileVersion ($global :buildMessage )" - ForegroundColor White
117
+ Write-Host " $global :fileVersion ($global :buildMessageLine )" - ForegroundColor White
118
118
}
119
119
120
120
if (! (Test-Path " ${env: BUILD_OUTPUT_FOLDER} " ))
@@ -768,6 +768,7 @@ function SetupSignatureFiles()
768
768
function BuildSignatureFiles ()
769
769
{
770
770
$sign_file = " tools\CustomSignTool\bin\Release32\CustomSignTool.exe" ;
771
+ $rootPath = (Get-Location ).Path;
771
772
772
773
Write-Host " Update build signatures" - NoNewline - ForegroundColor Cyan
773
774
@@ -785,7 +786,7 @@ function BuildSignatureFiles()
785
786
786
787
$global :signature_output = ( & " $sign_file " " sign" ,
787
788
" -k" ,
788
- " build\internal\private.key" ,
789
+ " $rootPath \ build\internal\private.key" ,
789
790
" ${env: BUILD_OUTPUT_FOLDER} \processhacker-build-setup.exe" ,
790
791
" -h" | Out-String ) -replace " `n |`r "
791
792
0 commit comments