From 979ab661de54f0195f0accddeb1092cc7762d60c Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Tue, 23 Dec 2014 08:47:11 -0800 Subject: [PATCH] Add ability for host bundle to specify a custom name --- Sparkle/SUHost.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index 20a8791e..8f559a87 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -102,7 +102,13 @@ typedef struct { - (NSString *)name { - NSString *name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; + NSString *name; + + // Allow host bundle to provide a custom name + name = [self objectForInfoDictionaryKey:@"SUBundleName"]; + if (name) return name; + + name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; if (name) return name; name = [self objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleNameKey];