@@ -39,15 +39,15 @@ public struct WelcomeView: View {
3939 }
4040
4141 private var appVersion : String {
42- Bundle . main . object ( forInfoDictionaryKey : " CFBundleShortVersionString " ) as? String ?? " "
42+ Bundle . versionString ?? " "
4343 }
4444
4545 private var appBuild : String {
46- Bundle . main . object ( forInfoDictionaryKey : " CFBundleVersion " ) as? String ?? " "
46+ Bundle . buildString ?? " "
4747 }
4848
49- /// Get the MacOS version & build
50- private var macOsVersion : String {
49+ /// Get the macOS version & build
50+ private var macOSVersion : String {
5151 let url = URL ( fileURLWithPath: " /System/Library/CoreServices/SystemVersion.plist " )
5252 guard let dict = NSDictionary ( contentsOf: url) ,
5353 let version = dict [ " ProductUserVisibleVersion " ] ,
@@ -75,24 +75,11 @@ public struct WelcomeView: View {
7575 return " \( version) ( \( build) ) "
7676 }
7777
78- /// Get the last commit hash.
79- private var getGitHash : String ? {
80- if let hash = Bundle . main. infoDictionary ? [ " GitHash " ] as? String {
81- return hash
82- }
83-
84- return nil
85- }
86-
8778 /// Get program and operating system information
8879 private func copyInformation( ) {
8980 var copyString = " CodeEdit: \( appVersion) ( \( appBuild) ) \n "
9081
91- if let hash = getGitHash {
92- copyString. append ( " Commit: \( hash) \n " )
93- }
94-
95- copyString. append ( " MacOS: \( macOsVersion) \n " )
82+ copyString. append ( " macOS: \( macOSVersion) \n " )
9683
9784 if let xcodeVersion = xcodeVersion {
9885 copyString. append ( " Xcode: \( xcodeVersion) " )
0 commit comments