mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
Changed way to identify the build type, using an environment variable in AppVeyor
This commit is contained in:
parent
605464d585
commit
da157cc52a
1 changed files with 4 additions and 9 deletions
13
build.ps1
13
build.ps1
|
@ -23,18 +23,13 @@
|
|||
################################################################
|
||||
|
||||
$version=$env:APPVEYOR_BUILD_VERSION
|
||||
$buildType=$env:build_type
|
||||
$gitcommit=$env:APPVEYOR_REPO_COMMIT
|
||||
$gitcommit=$gitcommit.SubString(0, [math]::Min($gitcommit.Length, 7))
|
||||
$detailversion=$version + '-' + $gitcommit
|
||||
$detailversion=$version + '-' + $gitcommit + " " + $buildType
|
||||
$release=(([version]$version).build) % 2 -eq 1
|
||||
$fileversion=$version
|
||||
# Add the UNSTABLE, if we aren't a release -> the build is even. (major.minor.build.revision)
|
||||
if ( ! $release) {
|
||||
$fileversion=$version + "-UNSTABLE"
|
||||
$detailversion=$detailversion + " UNSTABLE"
|
||||
} else {
|
||||
$detailversion=$detailversion + " Release"
|
||||
}
|
||||
$fileversion=$version + "-" + $buildType
|
||||
|
||||
Write-Host "Building Greenshot $detailversion"
|
||||
|
||||
# Create a MD5 string for the supplied filename
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue