1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Don't suggest an update on mobile if it isn't available

This commit is contained in:
Susko3 2024-02-01 18:56:38 +01:00
parent b9d750cfee
commit f92751a7d2

View File

@ -94,15 +94,18 @@ namespace osu.Game.Updater
break; break;
case RuntimeInfo.Platform.iOS: case RuntimeInfo.Platform.iOS:
// iOS releases are available via testflight. this link seems to work well enough for now. if (release.Assets?.Exists(f => f.Name.EndsWith(".ipa", StringComparison.Ordinal)) == true)
// see https://stackoverflow.com/a/32960501 // iOS releases are available via testflight. this link seems to work well enough for now.
url = "itms-beta://beta.itunes.apple.com/v1/app/1447765923"; // see https://stackoverflow.com/a/32960501
url = "itms-beta://beta.itunes.apple.com/v1/app/1447765923";
break; break;
case RuntimeInfo.Platform.Android: case RuntimeInfo.Platform.Android:
// on our testing device using the .apk URL causes the download to magically disappear. if (release.Assets?.Exists(f => f.Name.EndsWith(".apk", StringComparison.Ordinal)) == true)
//bestAsset = release.Assets?.Find(f => f.Name.EndsWith(".apk")); // on our testing device using the .apk URL causes the download to magically disappear.
url = release.HtmlUrl; url = release.HtmlUrl;
break; break;
} }