Skip to content

Commit b06d321

Browse files
laurentftechclaude
andcommitted
chore: Simplify version management, bump to 0.1.13
- Remove hardcoded version from main.swift - Use Info.plist as single source of truth for version - Fallback to "dev" when running outside bundle (swift run) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b4e1e83 commit b06d321

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Resources/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0.0</string>
20+
<string>0.1.13</string>
2121
<key>CFBundleVersion</key>
22-
<string>1</string>
22+
<string>13</string>
2323
<key>LSMinimumSystemVersion</key>
2424
<string>13.0</string>
2525
<key>LSUIElement</key>

Sources/main.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@ import Foundation
22
import UserNotifications
33
import AppKit
44

5-
/// App constants - used when running via symlink where Bundle.main.bundleIdentifier is nil
5+
/// App constants
66
enum AppConstants {
77
static let bundleIdentifier = "com.laurentftech.ntfy-macos"
8-
static let version = "0.1.6"
98

109
/// Returns the bundle identifier, falling back to hardcoded value if running via symlink
1110
static var effectiveBundleIdentifier: String {
1211
Bundle.main.bundleIdentifier ?? bundleIdentifier
1312
}
1413

15-
/// Returns the app version from bundle or falls back to hardcoded value
14+
/// Returns the app version from Info.plist
1615
static var effectiveVersion: String {
17-
Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? version
16+
Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "dev"
1817
}
1918
}
2019

0 commit comments

Comments
 (0)