From 9b7f2b5dcd217bd9753d9c15a43c6091f2cfd9f7 Mon Sep 17 00:00:00 2001 From: RKrom Date: Wed, 11 Jun 2014 15:17:43 +0200 Subject: [PATCH] Changes for AppVeyor env variables. --- build.ps1 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/build.ps1 b/build.ps1 index 283c0ed29..119bd2afb 100644 --- a/build.ps1 +++ b/build.ps1 @@ -22,12 +22,11 @@ # along with this program. If not, see . ################################################################ -if ($args.length -eq 0) { - Write-Host "please supply the version and the detail version as arguments" - exit -1 -} -$version = $args[0] -$detailversion = $args[1] +$version=$env:APPVEYOR_BUILD_VERSION +$gitcommit=$env:APPVEYOR_REPO_COMMIT +$detailversion='$version-$gitcommit' + +Write-Host "Building Greenshot $detailversion" # Create a MD5 string for the supplied filename Function MD5($filename) {