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:
parent
93bc0ac869
commit
0d79dd5e62
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user