mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-03-25 08:55:46 +00:00
Use copyright value from Info.plist in about window
This commit is contained in:
parent
bc209f6112
commit
dbff012dc8
3 changed files with 9 additions and 5 deletions
|
|
@ -12,4 +12,8 @@ extension Bundle {
|
|||
var version: String? {
|
||||
infoDictionary?["CFBundleVersion"] as? String
|
||||
}
|
||||
|
||||
var humanReadableCopyright: String? {
|
||||
infoDictionary?["NSHumanReadableCopyright"] as? String
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ struct AboutView: View {
|
|||
.buttonStyle(LinkButtonStyle())
|
||||
}
|
||||
|
||||
Text("Copyright © 2020 Robots and Pencils")
|
||||
Text(Bundle.main.humanReadableCopyright!)
|
||||
.font(.footnote)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 "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>
|
||||
</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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue