1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 13:37:51 +08:00

Update SimpleUpdateManager to handle new macOS build naming scheme

This commit is contained in:
Jamie Taylor 2022-03-17 18:45:31 +09:00
parent 93bc0ac869
commit 0d79dd5e62
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -3,6 +3,7 @@
using System; using System;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks; using System.Threading.Tasks;
using osu.Framework; using osu.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
@ -82,7 +83,8 @@ namespace osu.Game.Updater
break; break;
case RuntimeInfo.Platform.macOS: case RuntimeInfo.Platform.macOS:
bestAsset = release.Assets?.Find(f => f.Name.EndsWith(".app.zip", StringComparison.Ordinal)); string arch = RuntimeInformation.OSArchitecture == Architecture.Arm64 ? "Apple.Silicon" : "Intel";
bestAsset = release.Assets?.Find(f => f.Name.EndsWith($".app.{arch}.zip", StringComparison.Ordinal));
break; break;
case RuntimeInfo.Platform.Linux: case RuntimeInfo.Platform.Linux: