Use different moniker for the new distros
This commit is contained in:
parent
7963018d3d
commit
6ccc40e146
2 changed files with 14 additions and 4 deletions
|
@ -38,6 +38,6 @@
|
||||||
"centos.7-x64": {},
|
"centos.7-x64": {},
|
||||||
"rhel.7.2-x64": {},
|
"rhel.7.2-x64": {},
|
||||||
"debian.8-x64": {},
|
"debian.8-x64": {},
|
||||||
"fedora.23-x64"
|
"fedora.23-x64": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using Microsoft.DotNet.Cli.Build.Framework;
|
using Microsoft.DotNet.Cli.Build.Framework;
|
||||||
|
using Microsoft.DotNet.InternalAbstractions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -15,9 +16,18 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
|
|
||||||
public static string GetProductMoniker(BuildTargetContext c, string artifactPrefix, string version)
|
public static string GetProductMoniker(BuildTargetContext c, string artifactPrefix, string version)
|
||||||
{
|
{
|
||||||
string osname = GetOSShortName();
|
string rid = RuntimeEnvironment.GetRuntimeIdentifier();
|
||||||
var arch = CurrentArchitecture.Current.ToString();
|
|
||||||
return $"{artifactPrefix}-{osname}-{arch}.{version}";
|
if (rid == "ubuntu.16.04-x64" || rid == "fedora.23-x64" || rid == "opensuse.13.2-x64")
|
||||||
|
{
|
||||||
|
return $"{artifactPrefix}-{rid}.{version}";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
string osname = GetOSShortName();
|
||||||
|
var arch = CurrentArchitecture.Current.ToString();
|
||||||
|
return $"{artifactPrefix}-{osname}-{arch}.{version}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string GetDebianPackageName(BuildTargetContext c)
|
public static string GetDebianPackageName(BuildTargetContext c)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue