Added core update function for macos

This commit is contained in:
2dust
2024-11-25 20:31:12 +08:00
parent 49a3c84fc5
commit d9c22de6b8
8 changed files with 36 additions and 3 deletions
@@ -450,6 +450,15 @@ namespace ServiceLib.Services
_ => null,
};
}
else if (Utils.IsOSX())
{
return RuntimeInformation.ProcessArchitecture switch
{
Architecture.Arm64 => coreInfo?.DownloadUrlOSXArm64,
Architecture.X64 => coreInfo?.DownloadUrlOSX64,
_ => null,
};
}
return null;
}