iOS: version 0.9.0, dev title "Dev Build N", dev short version major.minor.build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-11-18 15:03:09 -08:00
1 parent 4ddcfd7ff5
commit 0fbd7c848f
3 files changed
+6 -5

No files matched your search

+2 -2
View File
@@ -7,8 +7,8 @@ settings:
base:
SWIFT_VERSION: "5.0"
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
MARKETING_VERSION: "1.0"
VERSION_LABEL: "1.0 RC 4"
MARKETING_VERSION: "0.9.0"
VERSION_LABEL: "0.9.0"
CURRENT_PROJECT_VERSION: "27"
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
APP_ID: org.cdnutter.stemify
+3 -2
View File
@@ -25,8 +25,9 @@ DD=$B/dd-$MODE
CHANNEL=$([ "$MODE" = dev ] && echo dev || echo release)
MV=$(sed -nE 's/^ *MARKETING_VERSION: "(.*)"/\1/p' project.yml)
BN=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml)
[ "$MODE" = dev ] && MV=$MV.$BN
# "1.0 RC 1" -> 1.0-rc1, used in file names and release tags.
# iOS allows at most three numbers, so dev keeps major.minor and puts the build last (0.9.0 build 27 -> 0.9.27).
[ "$MODE" = dev ] && MV=$(echo "$MV" | cut -d. -f1-2).$BN
# "0.9.0" -> 0.9.0, "1.0 RC 1" -> 1.0-rc1, used in file names and release tags.
VERSION=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g')
IPA=$B/$MODE/stemify-$VERSION$SUFFIX.ipa
+1 -1
View File
@@ -14,7 +14,7 @@ LABEL=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
die() { echo "$*" >&2; exit 1; }
case $MODE in
dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; TITLE="Stemify iOS $LABEL (Dev Build $BUILD)"; PRE=true; UP=http://10.0.0.11:8093; Q='?source=dev' ;;
dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; TITLE="Stemify iOS $LABEL Dev Build $BUILD"; PRE=true; UP=http://10.0.0.11:8093; Q='?source=dev' ;;
release) WANT=main; IPA=build/release/$NAME-$V.ipa; TAG=$TAGP$V; TITLE="Stemify iOS $LABEL"; PRE=false; UP=http://10.0.0.11:8093; Q='?source=personal' ;;
*) die "usage: $0 dev|release" ;;
esac