mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Fixed version information
This commit is contained in:
parent
9b7f2b5dcd
commit
515170e44b
2 changed files with 4 additions and 5 deletions
|
@ -24,8 +24,7 @@
|
||||||
|
|
||||||
$version=$env:APPVEYOR_BUILD_VERSION
|
$version=$env:APPVEYOR_BUILD_VERSION
|
||||||
$gitcommit=$env:APPVEYOR_REPO_COMMIT
|
$gitcommit=$env:APPVEYOR_REPO_COMMIT
|
||||||
$detailversion='$version-$gitcommit'
|
$detailversion=$version + '-' + $gitcommit
|
||||||
|
|
||||||
Write-Host "Building Greenshot $detailversion"
|
Write-Host "Building Greenshot $detailversion"
|
||||||
|
|
||||||
# Create a MD5 string for the supplied filename
|
# Create a MD5 string for the supplied filename
|
||||||
|
@ -38,7 +37,7 @@ Function MD5($filename) {
|
||||||
|
|
||||||
# Fill the templates
|
# Fill the templates
|
||||||
Function FillTemplates {
|
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 |
|
Get-ChildItem . -recurse *.template |
|
||||||
foreach {
|
foreach {
|
||||||
|
@ -112,7 +111,7 @@ Function PackagePortable {
|
||||||
$portableOutput = "$(get-location)\portable"
|
$portableOutput = "$(get-location)\portable"
|
||||||
$portableInstaller = "$(get-location)\greenshot\tools\PortableApps.comInstaller\PortableApps.comInstaller.exe"
|
$portableInstaller = "$(get-location)\greenshot\tools\PortableApps.comInstaller\PortableApps.comInstaller.exe"
|
||||||
$arguments = @("$destbase\portabletmp")
|
$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"
|
$portableResult = Start-Process -wait -PassThru "$portableInstaller" -ArgumentList $arguments -NoNewWindow -RedirectStandardOutput "$portableOutput.log" -RedirectStandardError "$portableOutput.error"
|
||||||
Write-Host "Log output:"
|
Write-Host "Log output:"
|
||||||
Get-Content "$portableOutput.log"| Write-Host
|
Get-Content "$portableOutput.log"| Write-Host
|
||||||
|
|
|
@ -38,7 +38,7 @@ Function FillCredentials {
|
||||||
$newtext += $line
|
$newtext += $line
|
||||||
}
|
}
|
||||||
# Write the new information to the file
|
# Write the new information to the file
|
||||||
Write-Host "Updating $_`n"
|
Write-Host "Updating $_"
|
||||||
$newtext | Set-Content $_.FullName -encoding UTF8
|
$newtext | Set-Content $_.FullName -encoding UTF8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue