Skip to content

Commit 1d85dbe

Browse files
committed
Use linux-x64/x86 runtime identifier on Linux
1 parent dc1c728 commit 1d85dbe

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Dotnet.Script.DependencyModel/Environment/RuntimeHelper.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@ private static string GetProcessArchitecture()
5252
}
5353

5454
public static string GetRuntimeIdentifier()
55-
{
55+
{
5656
var platformIdentifier = GetPlatformIdentifier();
57-
if (platformIdentifier == "osx")
57+
if (platformIdentifier == "osx" || platformIdentifier == "linux")
5858
{
5959
return $"{platformIdentifier}-{GetProcessArchitecture()}";
6060
}
61-
return RuntimeEnvironment.GetRuntimeIdentifier();
61+
var runtimeIdentifier = RuntimeEnvironment.GetRuntimeIdentifier();
62+
return runtimeIdentifier;
6263
}
6364

6465
public static string CreateTempFolder(string targetDirectory)

0 commit comments

Comments
 (0)