Repoint build stamping at the app-versioning skill's script
Replaces the repo-local Scripts/update_build_number.sh (which git-tagged on every build) with the shared update_build_info.sh referenced in place from indie-skills: same commit-count CFBundleVersion and BuildDate, adds BuildHash, and makes release tagging opt-in via RELEASE_TAGGING=1. Verified BuildDate/BuildHash/CFBundleVersion land in the built app.
This commit is contained in:
@@ -57,7 +57,7 @@ All in `Shared/Model/`:
|
|||||||
|
|
||||||
### Platforms, Tooling & Entitlements
|
### Platforms, Tooling & Entitlements
|
||||||
- iOS 26 / watchOS 26; Swift 6 with `SWIFT_STRICT_CONCURRENCY: complete` on both targets.
|
- iOS 26 / watchOS 26; Swift 6 with `SWIFT_STRICT_CONCURRENCY: complete` on both targets.
|
||||||
- Build number is set from the git commit count by `Scripts/update_build_number.sh` (a post-build phase); `Scripts/` also holds the App Store / TestFlight release pipeline.
|
- Build number (git commit count), `BuildDate`, and `BuildHash` are stamped by the `app-versioning` skill's `update_build_info.sh` (referenced in place from `../indie-skills`, a post-build phase; release tagging is opt-in via `RELEASE_TAGGING=1`). `Scripts/` holds the App Store / TestFlight release pipeline.
|
||||||
- Entitlements: iOS uses CloudDocuments + HealthKit; watch uses HealthKit only. **No CloudKit service, no App Group.**
|
- Entitlements: iOS uses CloudDocuments + HealthKit; watch uses HealthKit only. **No CloudKit service, no App Group.**
|
||||||
- SPM packages: `IndieSync` (file-side iCloud sync core), `IndieAbout` (in-app About / changelog / license UI), and `Yams` (YAML parsing).
|
- SPM packages: `IndieSync` (file-side iCloud sync core), `IndieAbout` (in-app About / changelog / license UI), and `Yams` (YAML parsing).
|
||||||
|
|
||||||
|
|||||||
@@ -1,35 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
## IMPORTANT ##
|
|
||||||
# Add the following files to Input Files configuraiton of the build phase
|
|
||||||
# $(TARGET_BUILD_DIR)/$(INFOPLIST_PATH)
|
|
||||||
# $(DWARF_DSYM_FOLDER_PATH)/$(DWARF_DSYM_FILE_NAME)/Contents/Info.plist
|
|
||||||
|
|
||||||
git=$(sh /etc/profile; which git)
|
|
||||||
number_of_commits=$("$git" rev-list HEAD --count)
|
|
||||||
git_release_version=$("$git" describe --tags --always --abbrev=0)
|
|
||||||
|
|
||||||
target_plist="$TARGET_BUILD_DIR/$INFOPLIST_PATH"
|
|
||||||
dsym_plist="$DWARF_DSYM_FOLDER_PATH/$DWARF_DSYM_FILE_NAME/Contents/Info.plist"
|
|
||||||
|
|
||||||
git_commit=`"$git" rev-parse --short HEAD`
|
|
||||||
bundle_version=`/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" "$target_plist"`
|
|
||||||
build_date=`date +%F`
|
|
||||||
|
|
||||||
build="v$bundle_version-$git_commit b$number_of_commits $build_date"
|
|
||||||
|
|
||||||
#echo "version=$bundle_version-$git_commit build $number_of_commits"
|
|
||||||
|
|
||||||
"$git" tag "$bundle_version"
|
|
||||||
|
|
||||||
for plist in "$target_plist" "$dsym_plist"; do
|
|
||||||
if [ -f "$plist" ]; then
|
|
||||||
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $number_of_commits" "$plist"
|
|
||||||
# /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${version}" "$plist"
|
|
||||||
# /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${git_release_version#*v}" "$plist"
|
|
||||||
|
|
||||||
# Add build date for AppInfoKit
|
|
||||||
/usr/libexec/PlistBuddy -c "Set :BuildDate $build_date" "$plist" 2>/dev/null || \
|
|
||||||
/usr/libexec/PlistBuddy -c "Add :BuildDate string $build_date" "$plist"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
+4
-4
@@ -52,8 +52,8 @@ targets:
|
|||||||
- package: Yams
|
- package: Yams
|
||||||
- target: Workouts Watch App
|
- target: Workouts Watch App
|
||||||
postBuildScripts:
|
postBuildScripts:
|
||||||
- script: '"${SRCROOT}/Scripts/update_build_number.sh"'
|
- script: '"${SRCROOT}/../indie-skills/skills/app-versioning/scripts/update_build_info.sh"'
|
||||||
name: Update Build Number
|
name: Update Build Info
|
||||||
shell: /bin/sh
|
shell: /bin/sh
|
||||||
basedOnDependencyAnalysis: false
|
basedOnDependencyAnalysis: false
|
||||||
inputFiles:
|
inputFiles:
|
||||||
@@ -89,8 +89,8 @@ targets:
|
|||||||
- target: Workouts Watch Widget
|
- target: Workouts Watch Widget
|
||||||
embed: true
|
embed: true
|
||||||
postBuildScripts:
|
postBuildScripts:
|
||||||
- script: '"${SRCROOT}/Scripts/update_build_number.sh"'
|
- script: '"${SRCROOT}/../indie-skills/skills/app-versioning/scripts/update_build_info.sh"'
|
||||||
name: Update Build Number
|
name: Update Build Info
|
||||||
shell: /bin/sh
|
shell: /bin/sh
|
||||||
basedOnDependencyAnalysis: false
|
basedOnDependencyAnalysis: false
|
||||||
inputFiles:
|
inputFiles:
|
||||||
|
|||||||
Reference in New Issue
Block a user