Merge branch 'linux_rid_fix' of https://github.com/GoaLitiuM/FlaxEngine into 1.6
This commit is contained in:
@@ -194,9 +194,7 @@ namespace Flax.Build
|
|||||||
// TODO: Support /etc/dotnet/install_location
|
// TODO: Support /etc/dotnet/install_location
|
||||||
|
|
||||||
// Detect custom RID in some distros
|
// Detect custom RID in some distros
|
||||||
string osId = File.ReadAllLines("/etc/os-release").FirstOrDefault(x => x.StartsWith("ID="), "ID=linux").Substring("ID=".Length);
|
rid = Utilities.ReadProcessOutput("dotnet", "--info").Split('\n').FirstOrDefault(x => x.StartsWith(" RID:"), "").Replace("RID:", "").Trim();
|
||||||
|
|
||||||
rid = $"{osId}-{arch}";
|
|
||||||
ridFallback = $"linux-{arch}";
|
ridFallback = $"linux-{arch}";
|
||||||
if (rid == ridFallback)
|
if (rid == ridFallback)
|
||||||
ridFallback = "";
|
ridFallback = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user