From da157cc52a0a69c39f334b9eb9b38044289b1d2a Mon Sep 17 00:00:00 2001 From: Robin Krom Date: Thu, 18 Sep 2014 14:44:54 +0000 Subject: [PATCH] Changed way to identify the build type, using an environment variable in AppVeyor --- build.ps1 | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/build.ps1 b/build.ps1 index cf23a9b47..32293955e 100644 --- a/build.ps1 +++ b/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