diff --git a/build.ps1 b/build.ps1 index 119bd2afb..c05959df9 100644 --- a/build.ps1 +++ b/build.ps1 @@ -24,8 +24,7 @@ $version=$env:APPVEYOR_BUILD_VERSION $gitcommit=$env:APPVEYOR_REPO_COMMIT -$detailversion='$version-$gitcommit' - +$detailversion=$version + '-' + $gitcommit Write-Host "Building Greenshot $detailversion" # Create a MD5 string for the supplied filename @@ -38,7 +37,7 @@ Function MD5($filename) { # Fill the templates Function FillTemplates { - Write-Host "Filling templates for Git version $detailversion`n`n" + Write-Host "Filling templates for version $detailversion`n`n" Get-ChildItem . -recurse *.template | foreach { @@ -112,7 +111,7 @@ Function PackagePortable { $portableOutput = "$(get-location)\portable" $portableInstaller = "$(get-location)\greenshot\tools\PortableApps.comInstaller\PortableApps.comInstaller.exe" $arguments = @("$destbase\portabletmp") - Write-Hos "Starting $portableInstaller $arguments" + Write-Host "Starting $portableInstaller $arguments" $portableResult = Start-Process -wait -PassThru "$portableInstaller" -ArgumentList $arguments -NoNewWindow -RedirectStandardOutput "$portableOutput.log" -RedirectStandardError "$portableOutput.error" Write-Host "Log output:" Get-Content "$portableOutput.log"| Write-Host diff --git a/prebuild.ps1 b/prebuild.ps1 index 02f868185..53878727f 100644 --- a/prebuild.ps1 +++ b/prebuild.ps1 @@ -38,7 +38,7 @@ Function FillCredentials { $newtext += $line } # Write the new information to the file - Write-Host "Updating $_`n" + Write-Host "Updating $_" $newtext | Set-Content $_.FullName -encoding UTF8 } }