GUI: For App Store published apps, include team ID. (#872)

With this change, the publisher field for an App Store published app will be  instead of

Fixes #758
This commit is contained in:
Russell Hancox
2022-08-11 08:15:42 -04:00
committed by GitHub
parent 06da796a4d
commit deccc8a148

View File

@@ -139,7 +139,9 @@
- (NSString *)publisherInfo {
MOLCertificate *leafCert = [self.event.signingChain firstObject];
if (leafCert.commonName && leafCert.orgName) {
if ([leafCert.commonName isEqualToString:@"Apple Mac OS Application Signing"]) {
return [NSString stringWithFormat:@"App Store (Team ID: %@)", self.event.teamID];
} else if (leafCert.commonName && leafCert.orgName) {
return [NSString stringWithFormat:@"%@ - %@", leafCert.orgName, leafCert.commonName];
} else if (leafCert.commonName) {
return leafCert.commonName;