From c72a6d929b569d8ca8fa978ce61d55f912a5f3d3 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 23 Jul 2025 15:29:03 +0900 Subject: [PATCH 1/2] Trim suffix from `CFBundleVersion` --- osu.iOS/osu.iOS.csproj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/osu.iOS/osu.iOS.csproj b/osu.iOS/osu.iOS.csproj index 19c0c610b5..a13120dc18 100644 --- a/osu.iOS/osu.iOS.csproj +++ b/osu.iOS/osu.iOS.csproj @@ -4,8 +4,12 @@ 13.4 Exe 0.1.0 - $(Version) - $(Version) + + + $([System.String]::Copy('$(Version)').Split('-')[0]) + + $(VersionNoSuffix) + $(VersionNoSuffix) From c91991a328d7104913fd0dc3283b98a6d041bdc6 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Wed, 23 Jul 2025 17:27:41 +0900 Subject: [PATCH 2/2] Embed full version into PList --- osu.iOS/OsuGameIOS.cs | 12 +++--------- osu.iOS/osu.iOS.csproj | 10 ++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/osu.iOS/OsuGameIOS.cs b/osu.iOS/OsuGameIOS.cs index c7ef1c885a..fff781f38f 100644 --- a/osu.iOS/OsuGameIOS.cs +++ b/osu.iOS/OsuGameIOS.cs @@ -20,15 +20,9 @@ namespace osu.iOS { private readonly AppDelegate appDelegate; - 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 Version AssemblyVersion => new Version(NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString()); + + public override string Version => NSBundle.MainBundle.InfoDictionary["OsuVersion"].ToString(); public override bool HideUnlicensedContent => true; diff --git a/osu.iOS/osu.iOS.csproj b/osu.iOS/osu.iOS.csproj index a13120dc18..3e8beddaa4 100644 --- a/osu.iOS/osu.iOS.csproj +++ b/osu.iOS/osu.iOS.csproj @@ -22,4 +22,14 @@ + + + + $(AppBundleDir)/Info.plist + OsuVersion + + +