passepartout-apple/ci/version-number.sh
Davide bce2694694
Fix lookup of pilot metadata (#601)
- [x] Fetch app version/build without agvtool, unavailable on
ubuntu-latest
- [x] Move TestFlight preface to a repository variable
- [x] Move TestFlight URL to README instead
2024-09-24 17:51:01 +02:00

8 lines
219 B
Bash
Executable File

#!/bin/sh
if [ -z "$1" ]; then
echo "Path to Xcode project required"
exit 1
fi
XCODEPROJ="$1"
grep MARKETING_VERSION $XCODEPROJ | uniq | sed -E "s/^.*MARKETING_VERSION = ([0-9]\.[0-9]\.[0-9]);/\1/" | tr -d '\n'