mirror of
https://github.com/ppy/osu.git
synced 2026-06-07 04:13:38 +08:00
Merge pull request #34300 from smoogipoo/fix-ios-build-parsing
Fix failing to parse bundle version on iOS
This commit is contained in:
+10
-1
@@ -19,7 +19,16 @@ namespace osu.iOS
|
||||
public partial class OsuGameIOS : OsuGame
|
||||
{
|
||||
private readonly AppDelegate appDelegate;
|
||||
public override Version AssemblyVersion => new Version(NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString());
|
||||
|
||||
public override Version AssemblyVersion
|
||||
{
|
||||
get
|
||||
{
|
||||
// Example: 2025.613.0-tachyon
|
||||
string bundleVersion = NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString();
|
||||
return new Version(bundleVersion.Split('-')[0]);
|
||||
}
|
||||
}
|
||||
|
||||
public override bool HideUnlicensedContent => true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user