fix(presence): hide cli sessions; use numeric mac build

This commit is contained in:
Peter Steinberger
2025-12-12 17:27:11 +00:00
parent c417517f43
commit 7dab927260
5 changed files with 71 additions and 17 deletions

View File

@@ -70,7 +70,10 @@ final class PresenceReporter {
private static func appVersionString() -> String {
let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String ?? "dev"
if let build = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String {
return "\(version) (\(build))"
let trimmed = build.trimmingCharacters(in: .whitespacesAndNewlines)
if !trimmed.isEmpty, trimmed != version {
return "\(version) (\(trimmed))"
}
}
return version
}