hex/ios/scripts/marketing-release.sh
Ryan Vogel ff9aeec989
iOS: TestFlight stays on 0.9.0, and App Store releases are tagged 1.0.x (#2194)
0.2.0 builds stopped uploading once 0.2.1 was approved (Apple rejects uploads below the
highest approved App Store version), and every new version number needs its own beta
review before external testers get it. TestFlight now stays on one version, 0.9.0, that is
never submitted, so builds flow to testers after one beta review. App Store releases are
1.0.x, cut with the new scripts/marketing-release.sh, which tags ios-beta-appstore-<version>
for ci_post_clone.sh to stamp. Replaces the README's 0.2.2 rule.

Verified: project.yml sets 0.9.0 for the app, keyboard and widgets; the script parses.
2026-11-21 09:11:30 -05:00

21 lines
727 B
Shell
Executable file

#!/bin/sh
# Cut an App Store build: tag a dev commit ios-beta-appstore-<version>. Xcode Cloud builds
# it and ci_scripts/ci_post_clone.sh stamps <version> into project.yml for that build only.
set -eu
version="${1:-}"
commit="${2:-origin/dev}"
case "$version" in
"" | *[!0-9.]* | .* | *.) echo "usage: $0 <version, e.g. 1.0.1> [commit]" >&2; exit 1 ;;
esac
git fetch -q origin dev --tags
sha=$(git rev-parse --verify "$commit^{commit}")
tag="ios-beta-appstore-$version"
if git rev-parse -q --verify "refs/tags/$tag" >/dev/null; then
echo "$tag already exists" >&2
exit 1
fi
git tag -a "$tag" "$sha" -m "Hex Mobile $version App Store build"
git push -q origin "$tag"
echo "pushed $tag at $(git log --oneline -1 "$sha")"