mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 04:25:45 +00:00
Update UpdateService.cs
This commit is contained in:
parent
6f3587d0ee
commit
d920e3018d
1 changed files with 8 additions and 1 deletions
|
|
@ -299,15 +299,22 @@ public class UpdateService(Config config, Func<bool, string, Task> updateFunc)
|
||||||
|
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (Utils.IsLinux())
|
else if (Utils.IsLinux())
|
||||||
{
|
{
|
||||||
return RuntimeInformation.ProcessArchitecture switch
|
var arch = RuntimeInformation.ProcessArchitecture;
|
||||||
|
if (arch.ToString().Equals("RiscV64", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
return coreInfo?.DownloadUrlLinuxRiscV64;
|
||||||
|
}
|
||||||
|
return arch switch
|
||||||
{
|
{
|
||||||
Architecture.Arm64 => coreInfo?.DownloadUrlLinuxArm64,
|
Architecture.Arm64 => coreInfo?.DownloadUrlLinuxArm64,
|
||||||
Architecture.X64 => coreInfo?.DownloadUrlLinux64,
|
Architecture.X64 => coreInfo?.DownloadUrlLinux64,
|
||||||
_ => null,
|
_ => null,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (Utils.IsMacOS())
|
else if (Utils.IsMacOS())
|
||||||
{
|
{
|
||||||
return RuntimeInformation.ProcessArchitecture switch
|
return RuntimeInformation.ProcessArchitecture switch
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue