Skip to content

Commit 51925fd

Browse files
committed
Update build script
1 parent 306505b commit 51925fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build/internal/build.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ function InitializeBuildEnvironment()
111111
$global:latestGitRevision = (& "$git" "rev-list", "--count", ($global:latestGitTag.Trim() + "..master")) | Out-String
112112

113113
$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]
115115
$global:fileVersion = "3.0." + $global:latestGitRevision.Trim() #${env:APPVEYOR_BUILD_VERSION}
116116

117-
Write-Host "$global:fileVersion ($global:buildMessage)" -ForegroundColor White
117+
Write-Host "$global:fileVersion ($global:buildMessageLine)" -ForegroundColor White
118118
}
119119

120120
if (!(Test-Path "${env:BUILD_OUTPUT_FOLDER}"))
@@ -768,6 +768,7 @@ function SetupSignatureFiles()
768768
function BuildSignatureFiles()
769769
{
770770
$sign_file = "tools\CustomSignTool\bin\Release32\CustomSignTool.exe";
771+
$rootPath = (Get-Location).Path;
771772

772773
Write-Host "Update build signatures" -NoNewline -ForegroundColor Cyan
773774

@@ -785,7 +786,7 @@ function BuildSignatureFiles()
785786

786787
$global:signature_output = ( & "$sign_file" "sign",
787788
"-k",
788-
"build\internal\private.key",
789+
"$rootPath\build\internal\private.key",
789790
"${env:BUILD_OUTPUT_FOLDER}\processhacker-build-setup.exe",
790791
"-h" | Out-String) -replace "`n|`r"
791792

0 commit comments

Comments
 (0)