Skip to content

Commit

Permalink
Include version number in Linux archives
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinCampbell committed Apr 27, 2017
1 parent dd67654 commit 73d9109
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions scripts/archiving.cake
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,14 @@ string GetBuildIdentifier(string runtime, string framework)
}
else
{
// Remove version number. Note: because there are separate versions for Ubuntu 14 and 16,
// we treat Ubuntu as a special case.
if (runtime.StartsWith("ubuntu.14"))
// Remove version number for Windows and OSX.
if (runtime.StartsWith("win") || runtime.StartsWith("osx"))
{
runtimeShort = "ubuntu14-x64";
}
else if (runtime.StartsWith("ubuntu.16"))
{
runtimeShort = "ubuntu16-x64";
runtimeShort = Regex.Replace(runtime, "(\\d|\\.)*-", "-");
}
else
{
runtimeShort = Regex.Replace(runtime, "(\\d|\\.)*-", "-");
runtimeShort = runtime;
}
}

Expand Down

0 comments on commit 73d9109

Please sign in to comment.