Use copyright value from Info.plist in about window

This commit is contained in:
Brandon Evans 2020-12-27 11:26:02 -07:00
parent bc209f6112
commit dbff012dc8
No known key found for this signature in database
GPG key ID: D58A4B8DB64F8E93
3 changed files with 9 additions and 5 deletions

View file

@ -12,4 +12,8 @@ extension Bundle {
var version: String? {
infoDictionary?["CFBundleVersion"] as? String
}
var humanReadableCopyright: String? {
infoDictionary?["NSHumanReadableCopyright"] as? String
}
}

View file

@ -30,7 +30,7 @@ struct AboutView: View {
.buttonStyle(LinkButtonStyle())
}
Text("Copyright © 2020 Robots and Pencils")
Text(Bundle.main.humanReadableCopyright!)
.font(.footnote)
}
}

View file

@ -23,7 +23,7 @@
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2020 Robots and Pencils. All rights reserved.</string>
<string>Copyright © 2020 Robots and Pencils.</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticTermination</key>
@ -33,9 +33,9 @@
<key>SMPrivilegedExecutables</key>
<dict>
<key>com.robotsandpencils.XcodesApp.Helper</key>
<string>identifier "com.robotsandpencils.XcodesApp.Helper" and info [CFBundleShortVersionString] >= "1.0.0" and anchor apple generic and certificate leaf[subject.OU] = "$(CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT)"</string>
<string>identifier &quot;com.robotsandpencils.XcodesApp.Helper&quot; and info [CFBundleShortVersionString] &gt;= &quot;1.0.0&quot; and anchor apple generic and certificate leaf[subject.OU] = &quot;$(CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT)&quot;</string>
</dict>
<key>CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT</key>
<string>$(CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT)</string>
<key>CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT</key>
<string>$(CODE_SIGNING_SUBJECT_ORGANIZATIONAL_UNIT)</string>
</dict>
</plist>