mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-30 09:44:09 +00:00
Update UpdateService.cs
This commit is contained in:
parent
109f072745
commit
d1a4bd6f2c
1 changed files with 2 additions and 6 deletions
|
|
@ -302,14 +302,10 @@ public class UpdateService(Config config, Func<bool, string, Task> updateFunc)
|
||||||
|
|
||||||
else if (Utils.IsLinux())
|
else if (Utils.IsLinux())
|
||||||
{
|
{
|
||||||
var arch = RuntimeInformation.ProcessArchitecture;
|
return RuntimeInformation.ProcessArchitecture switch
|
||||||
if (arch.ToString().Equals("RiscV64", StringComparison.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
return coreInfo?.DownloadUrlLinuxRiscV64;
|
|
||||||
}
|
|
||||||
return arch switch
|
|
||||||
{
|
{
|
||||||
Architecture.Arm64 => coreInfo?.DownloadUrlLinuxArm64,
|
Architecture.Arm64 => coreInfo?.DownloadUrlLinuxArm64,
|
||||||
|
Architecture.RiscV64 => coreInfo?.DownloadUrlLinuxRiscV64,
|
||||||
Architecture.X64 => coreInfo?.DownloadUrlLinux64,
|
Architecture.X64 => coreInfo?.DownloadUrlLinux64,
|
||||||
_ => null,
|
_ => null,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue