mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 21:32:57 +08:00
Merge pull request #10381 from peppy/ios-update-notifications
Add update notifications for iOS builds
This commit is contained in:
commit
461fa22e74
@ -79,6 +79,11 @@ namespace osu.Game.Updater
|
|||||||
bestAsset = release.Assets?.Find(f => f.Name.EndsWith(".AppImage"));
|
bestAsset = release.Assets?.Find(f => f.Name.EndsWith(".AppImage"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case RuntimeInfo.Platform.iOS:
|
||||||
|
// iOS releases are available via testflight. this link seems to work well enough for now.
|
||||||
|
// see https://stackoverflow.com/a/32960501
|
||||||
|
return "itms-beta://beta.itunes.apple.com/v1/app/1447765923";
|
||||||
|
|
||||||
case RuntimeInfo.Platform.Android:
|
case RuntimeInfo.Platform.Android:
|
||||||
// on our testing device this causes the download to magically disappear.
|
// on our testing device this causes the download to magically disappear.
|
||||||
//bestAsset = release.Assets?.Find(f => f.Name.EndsWith(".apk"));
|
//bestAsset = release.Assets?.Find(f => f.Name.EndsWith(".apk"));
|
||||||
|
@ -11,5 +11,7 @@ namespace osu.iOS
|
|||||||
public class OsuGameIOS : OsuGame
|
public class OsuGameIOS : OsuGame
|
||||||
{
|
{
|
||||||
public override Version AssemblyVersion => new Version(NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString());
|
public override Version AssemblyVersion => new Version(NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString());
|
||||||
|
|
||||||
|
protected override UpdateManager CreateUpdateManager() => new SimpleUpdateManager();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user