mirror of
https://github.com/jamesstringer90/appsandbox.git
synced 2026-10-22 11:03:15 -05:00
Make Directory.Build.props the single place a version is ever set on macOS, matching how Windows derives its version from the same file. - Add a 'Stamp version' Run Script build phase to the AppSandbox and AppSandboxCore targets. It runs on every build (Xcode GUI, xcodebuild, Archive) and writes CFBundleShortVersionString / CFBundleVersion into the built bundle's Info.plist from Directory.Build.props. - A build phase (not an xcconfig) is used because xcconfig is read before build phases run, so a generated xcconfig couldn't version the current build. - tools/sign/asb-version.sh reads the version; tools/sign/stamp-version.sh is the build-phase wrapper. make-release-mac.sh uses asb-version.sh for the zip name. - Remove the committed, generated version.xcconfig and sync-mac-version.sh; Local.xcconfig no longer includes version.xcconfig. A fresh clone builds (ad-hoc or Personal Team, Xcode GUI or CLI) with the version stamped, and nothing but Directory.Build.props defines it.