- Migrate from SwiftData to CoreData with CloudKit sync - Add core models: Split, Exercise, Workout, WorkoutLog - Implement tab-based UI: Workout Logs, Splits, Settings - Add SF Symbols picker for split icons - Add exercise picker filtered by split with exclusion of added exercises - Integrate IndieAbout for settings/about section - Add Yams for YAML exercise definition parsing - Include starter exercise libraries (bodyweight, Planet Fitness) - Add Date extensions for formatting (formattedTime, isSameDay) - Format workout date ranges to show time-only for same-day end dates - Add build number update script - Add app icons
36 lines
1.3 KiB
Bash
Executable File
36 lines
1.3 KiB
Bash
Executable File
#!/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
|