Skip to content

Commit

Permalink
adjust versioning scheme to fix automatic deploy to nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Jul 11, 2019
1 parent 4bb94c3 commit 7e678a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions set_appveyor_version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ function getVersion() {
if ($version -match "^[1-9]+(\.[0-9]+){3}$")
{
$versionParts = $version.Split(".");
$version = $versionParts[0] + "." + $versionParts[1] + "." + $versionParts[2] + "-" + $versionParts[3];
$version = $versionParts[0] + "." + $versionParts[1] + "." + $versionParts[2] + "-alpha-" + $versionParts[3];
}
elseif ($version -match "^[1-9]+(\.[0-9]+){2}$")
{
$version = $version + "-" + $buildNumber;
$version = $version + "-alpha-" + $buildNumber;
}

$dbgSuffix = If ($env:CONFIGURATION -eq "Debug") { "-dbg" } else { "" };
Expand All @@ -39,7 +39,7 @@ function getVersion() {
}
else
{
$packageVersion = $version + "-" + $env:APPVEYOR_REPO_TAG_NAME + "-" + $buildNumber;
$packageVersion = $version + "-" + $env:APPVEYOR_REPO_TAG_NAME;
}
}
else
Expand All @@ -49,7 +49,7 @@ function getVersion() {

if ($branch -eq "master" -And $noPR)
{
$packageVersion = $version + "-dev" + $dbgSuffix;
$packageVersion = $version + $dbgSuffix;
}
else
{
Expand Down

0 comments on commit 7e678a8

Please sign in to comment.