[Feature/Medium] Release-driven versioning: About shows release tag, monotonic build number #189
Closed
opened 2026-09-15 12:46:42 +01:00 by gronod
·
0 comments
No Branch/Tag Specified
main
docs/27-roadmap-candidates
develop
milestone/m13-print-ticket
feat/218-paper-source
feat/217-panel-ticket-restore
bugfix/211-print-output-flip
milestone/m12-native-spool
feat/202-airprint-detection
feat/201-native-print-operation
feat/201-raster-canvas
feat/201-ticket-capture
feat/201-pm-ticket-bridge
chore/m11-sync-develop
milestone/m11-print-settings
chore/m11-docs-hygiene
feat/186-panel-binding
feat/181-canon-media-locale
feat/180-epson-qual-options
feat/183-stage2-print-settings
chore/m11-tracking
docs/ui-interactive-map
v2.0.4-prerelease-docs27
v2.0.4
v2.0.3
v2.0.3-prerelease
v2.0.2
v2.0.1
v2.0.0
Labels
Clear labels
Bug/Architecture
Bug/Backend
Bug/DevOps
Bug/UI
Compat/Breaking
Feature/Architecture
Feature/Backend
Feature/DevOps
Feature/UI
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Project/ICCery-v2
Core / wizard / process infra defect
Argyll orchestration, file/data defect
Build, packaging, CI defect
Views, controls, dialogs defect
Breaking change that won't be backward compatible
Core / wizard / process infra
Argyll orchestration, file/data engines
Build, packaging, CI
Views, controls, dialogs
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
ICCery v2 Mac rewrite
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gronod/iccery-v2-mac#189
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Make the release tag the source of truth for app versioning:
v2.0.0-pre2-grok (2.0.0); exact-release tag dedupes tov2.0.0; untagged/dev builds fall back toCFBundleShortVersionString.CFBundleVersion/CURRENT_PROJECT_VERSION) becomes a monotonically increasing integer —git rev-list --count HEAD— per Apple TN2420 / macOS App Store convention (Mac build numbers must never reset across versions).MARKETING_VERSION(CFBundleShortVersionString) stays strictlyX.Y.Zand must equal the tag's numeric core — packaging hard-fails on mismatch.Implementation
scripts/version.sh: resolvesICCERY_RELEASE_TAG(RELEASE_TAGenv matchingv*elsegit describe --tags --always --dirty --match 'v[0-9]*'),MARKETING_VERSION(first 3 numeric components of tag core; 4-component tags likev2.0.0.0-xclamp),CURRENT_PROJECT_VERSION(BUILD_NUMBERenv override else commit count). EmitsKEY=valueforeval.project.yml:ICCERY_RELEASE_TAGbuild setting + a "Stamp release tag" post-build phase that writes it to a bundledContents/Resources/ICCeryReleaseTagfile. (A generated Info.plist cannot carry custom keys:INFOPLIST_KEY_*honours an Apple allowlist, andProcessInfoPlistFileruns after script phases — the resource approach lands before CodeSign regardless.)scripts/package-release.sh:eval "$(scripts/version.sh)", pass the three values asxcodebuildoverrides, DMG namedICCery-<tag-sans-v>-<build>.dmgfor tagged/described builds.ArtefactFiles.appInfo(): compose display version from the bundled tag +CFBundleShortVersionString;displayVersionhelper + newAppInfoTests..gitea/workflows/macos.yml+.github/workflows/macos.ymltwins):fetch-depth: 0(shallow checkout breaksgit describe/rev-list),RELEASE_TAG: ${{ github.ref_name }}job env, version overrides stamped intobuild-for-testing.Acceptance
v2.0.0-preN→ About showsv2.0.0-preN (2.0.0), DMGICCery-2.0.0-preN-<build>.dmg.RELEASE_TAG=v9.9.9while project.yml says2.0.0→ packaging fails with clear error.xcodebuild test -scheme ICCerygreen incl. newAppInfoTests.developpush andv*tag push both produce stamped DMGs on Gitea + GitHub.