File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 - name : Build CodeEdit
4949 env :
5050 APPLE_TEAM_ID : ${{ secrets.APPLE_TEAM_ID }}
51- run : xcodebuild -scheme CodeEdit -configuration Release -derivedDataPath "$RUNNER_TEMP/DerivedData" -archivePath "$RUNNER_TEMP/CodeEdit.xcarchive" -skipPackagePluginValidation DEVELOPMENT_TEAM=$APPLE_TEAM_ID archive
51+ run : xcodebuild -scheme CodeEdit -configuration Alpha -derivedDataPath "$RUNNER_TEMP/DerivedData" -archivePath "$RUNNER_TEMP/CodeEdit.xcarchive" -skipPackagePluginValidation DEVELOPMENT_TEAM=$APPLE_TEAM_ID archive
5252
5353 # ###########################
5454 # Sign
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ public struct AboutView: View {
2020 Bundle . buildString ?? " No Build "
2121 }
2222
23+ private var appVersionPostfix : String {
24+ Bundle . versionPostfix ?? " "
25+ }
26+
2327 public var body : some View {
2428 HStack ( spacing: 0 ) {
2529 logo
@@ -45,7 +49,7 @@ public struct AboutView: View {
4549 private var topMetaData : some View {
4650 VStack ( alignment: . leading, spacing: 5 ) {
4751 Text ( " CodeEdit " ) . font ( . system( size: 38 , weight: . regular) )
48- Text ( " Version \( appVersion) ( \( appBuild) ) " )
52+ Text ( " Version \( appVersion) \( appVersionPostfix ) ( \( appBuild) ) " )
4953 . textSelection ( . enabled)
5054 . foregroundColor ( . secondary)
5155 . font ( . system( size: 13 , weight: . light) )
@@ -54,7 +58,9 @@ public struct AboutView: View {
5458
5559 private var bottomMetaData : some View {
5660 VStack ( alignment: . leading, spacing: 5 ) {
57- Text ( " Copyright © 2022 CodeEdit " )
61+ if let copyright = Bundle . copyrightString {
62+ Text ( copyright)
63+ }
5864 Text ( " MIT License " )
5965 }
6066 . foregroundColor ( . secondary)
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ struct WelcomeView: View {
5656 Bundle . buildString ?? " "
5757 }
5858
59+ private var appVersionPostfix : String {
60+ Bundle . versionPostfix ?? " "
61+ }
62+
5963 /// Get the macOS version & build
6064 private var macOSVersion : String {
6165 let url = URL ( fileURLWithPath: " /System/Library/CoreServices/SystemVersion.plist " )
@@ -87,7 +91,7 @@ struct WelcomeView: View {
8791
8892 /// Get program and operating system information
8993 private func copyInformation( ) {
90- var copyString = " CodeEdit: \( appVersion) ( \( appBuild) ) \n "
94+ var copyString = " CodeEdit: \( appVersion) \( appVersionPostfix ) ( \( appBuild) ) \n "
9195
9296 copyString. append ( " macOS: \( macOSVersion) \n " )
9397
@@ -111,8 +115,9 @@ struct WelcomeView: View {
111115 . font ( . system( size: 38 ) )
112116 Text (
113117 String (
114- format: NSLocalizedString ( " Version %@ (%@) " , comment: " " ) ,
118+ format: NSLocalizedString ( " Version %@%@ (%@) " , comment: " " ) ,
115119 appVersion,
120+ appVersionPostfix,
116121 appBuild
117122 )
118123 )
Original file line number Diff line number Diff line change 22<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33<plist version =" 1.0" >
44<dict >
5+ <key >CE_VERSION_POSTFIX </key >
6+ <string >${CE_VERSION_POSTFIX} </string >
57 <key >CFBundleDocumentTypes </key >
68 <array >
79 <dict >
12641266 <string >https://github.com/CodeEditApp/CodeEdit/releases/download/latest/appcast.xml </string >
12651267 <key >SUPublicEDKey </key >
12661268 <string >/vAnxnK9wj4IqnUt6wS9EN3Ug69zHb+S/Pb9CyZuwa0= </string >
1267- <key >CFBundleShortVersionString </key >
1268- <string >0.0.1 </string >
1269+ <key >CFBundleShortVersionString </key >
1270+ <string >0.0.1 </string >
12691271</dict >
12701272</plist >
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import Foundation
99
1010extension Bundle {
1111
12+ static var copyrightString : String ? {
13+ Bundle . main. object ( forInfoDictionaryKey: " NSHumanReadableCopyright " ) as? String
14+ }
15+
1216 /// Returns the main bundle's version string if available (e.g. 1.0.0)
1317 static var versionString : String ? {
1418 Bundle . main. object ( forInfoDictionaryKey: " CFBundleShortVersionString " ) as? String
@@ -18,4 +22,8 @@ extension Bundle {
1822 static var buildString : String ? {
1923 Bundle . main. object ( forInfoDictionaryKey: " CFBundleVersion " ) as? String
2024 }
25+
26+ static var versionPostfix : String ? {
27+ Bundle . main. object ( forInfoDictionaryKey: " CE_VERSION_POSTFIX " ) as? String
28+ }
2129}
Original file line number Diff line number Diff line change 1+ //
2+ // Alpha.xcconfig
3+ // CodeEdit
4+ //
5+ // Created by Lukas Pistrol on 14.01.23.
6+ //
7+
8+ // Configuration settings file format documentation can be found at:
9+ // https://help.apple.com/xcode/#/dev745c5c974
10+
11+ CE_APPICON_NAME = AppIconAlpha
12+ CE_VERSION_POSTFIX = -alpha
Original file line number Diff line number Diff line change 1+ //
2+ // Beta.xcconfig
3+ // CodeEdit
4+ //
5+ // Created by Lukas Pistrol on 14.01.23.
6+ //
7+
8+ // Configuration settings file format documentation can be found at:
9+ // https://help.apple.com/xcode/#/dev745c5c974
10+
11+ CE_APPICON_NAME = AppIconBeta
12+ CE_VERSION_POSTFIX = -beta
Original file line number Diff line number Diff line change 1+ //
2+ // Debug.xcconfig
3+ // CodeEdit
4+ //
5+ // Created by Lukas Pistrol on 14.01.23.
6+ //
7+
8+ // Configuration settings file format documentation can be found at:
9+ // https://help.apple.com/xcode/#/dev745c5c974
10+
11+ CE_APPICON_NAME = AppIconDev
12+ CE_VERSION_POSTFIX = -dev
Original file line number Diff line number Diff line change 1+ //
2+ // Release.xcconfig
3+ // CodeEdit
4+ //
5+ // Created by Lukas Pistrol on 14.01.23.
6+ //
7+
8+ // Configuration settings file format documentation can be found at:
9+ // https://help.apple.com/xcode/#/dev745c5c974
10+
11+ CE_APPICON_NAME = AppIcon
12+ // CE_VERSION_POSTFIX = // this is a placeholder since we don't want a postfix in final release
You can’t perform that action at this time.
0 commit comments