Generate correct badges filenames

This commit is contained in:
Matt Ellis 2016-05-29 22:38:14 -07:00 committed by Livar Cunha
parent a80dcbe5be
commit 2155a419ad
2 changed files with 16 additions and 1 deletions

View file

@ -30,6 +30,21 @@ namespace Microsoft.DotNet.Cli.Build
}
}
public static string GetBadgeMoniker()
{
switch (RuntimeEnvironment.GetRuntimeIdentifier())
{
case "ubuntu.16.04-x64":
return "Ubuntu_16_04_x64";
case "fedora.23-x64":
return "Fedora_23_x64";
case "opensuse.13.2-x64":
return "openSUSE_13_2_x64";
}
return $"{CurrentPlatform.Current}_{CurrentArchitecture.Current}";
}
public static string GetDebianPackageName(BuildTargetContext c)
{
var channel = c.BuildContext.Get<string>("Channel").ToLower();