Skip to content

Commit 5e4e904

Browse files
committed
Merge pull request sparkle-project#469 from kainjow/master
Add ability for host bundle to specify a custom name
2 parents 4d6d766 + 979ab66 commit 5e4e904

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Sparkle/SUHost.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,13 @@ - (NSString *)installationPath
102102

103103
- (NSString *)name
104104
{
105-
NSString *name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"];
105+
NSString *name;
106+
107+
// Allow host bundle to provide a custom name
108+
name = [self objectForInfoDictionaryKey:@"SUBundleName"];
109+
if (name) return name;
110+
111+
name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"];
106112
if (name) return name;
107113

108114
name = [self objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleNameKey];

0 commit comments

Comments
 (0)