Skip to content

Commit 88c991d

Browse files
Mimic GitHub Actions build format for local development
🔧 Local Build Format Changes: - Added -dev suffix to version string to distinguish local builds - Version now shows as 'v1.0.29-dev' instead of 'v1.0.29' - Maintains same Info.plist structure as GitHub Actions builds - CFBundleShortVersionString: 'v1.0.29-dev' (with -dev suffix) - CFBundleVersion: '5e0c33d' (git short hash, same as before) - GitHash: full git commit hash (same as before) 📱 About Dialog Improvements: - Now correctly displays version with -dev suffix - Maintains consistent format across local and GitHub Actions builds - Clear distinction between development and release builds This ensures local builds are clearly identifiable while maintaining compatibility with GitHub Actions build format.
1 parent 5e0c33d commit 88c991d

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

A6Cutter/AboutView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ struct AboutView: View {
7272
private var appVersion: String {
7373
if let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String {
7474
// Remove 'v' prefix if present for consistent display
75-
return version.hasPrefix("v") ? String(version.dropFirst()) : version
75+
let cleanVersion = version.hasPrefix("v") ? String(version.dropFirst()) : version
76+
return cleanVersion
7677
}
7778
return "Deve"
7879
}

A6Cutter/Info.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
<key>CFBundlePackageType</key>
1414
<string>APPL</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>v1.0.29</string>
16+
<string>v1.0.29-dev</string>
1717
<key>CFBundleSignature</key>
1818
<string>????</string>
1919
<key>CFBundleVersion</key>
20-
<string>c6ccbb5</string>
20+
<string>5e0c33d</string>
2121
<key>GitHash</key>
22-
<string>c6ccbb50a317ad9e43c96c4e3d501b47081b49b8</string>
22+
<string>5e0c33da65abe781ae9c8aac98c4611b206665bc</string>
2323
<key>LSMinimumSystemVersion</key>
2424
<string>14.0</string>
2525
<key>NSHumanReadableCopyright</key>

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SCHEME = A6Cutter
77
CONFIGURATION = Release
88
DESTINATION = "platform=macOS"
99

10-
# Version information (can be overridden)
11-
VERSION ?= $(shell git describe --tags --abbrev=0 2>/dev/null || echo "v1.0.0")
10+
# Version information (mimics GitHub Actions format with -dev suffix)
11+
VERSION ?= $(shell git describe --tags --abbrev=0 2>/dev/null || echo "v1.0.0")-dev
1212
BUILD_NUMBER ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo "dev")
1313
GIT_HASH ?= $(shell git rev-parse HEAD 2>/dev/null || echo "dev")
1414

0 commit comments

Comments
 (0)