From 0fbd7c848f41c8fe94e6a0fa8f54b2d2da728e28 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 18 Nov 2026 15:03:09 -0800 Subject: [PATCH] iOS: version 0.9.0, dev title "Dev Build N", dev short version major.minor.build Co-Authored-By: Claude Opus 5.5 --- ios/project.yml | 4 ++-- ios/scripts/build-ipa.sh | 5 +++-- ios/scripts/publish.sh | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ios/project.yml b/ios/project.yml index e600398..50e4e4d 100644 --- a/ios/project.yml +++ b/ios/project.yml @@ -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 diff --git a/ios/scripts/build-ipa.sh b/ios/scripts/build-ipa.sh index d799014..4111cd8 100755 --- a/ios/scripts/build-ipa.sh +++ b/ios/scripts/build-ipa.sh @@ -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 diff --git a/ios/scripts/publish.sh b/ios/scripts/publish.sh index 4e2416a..d5b0bb0 100755 --- a/ios/scripts/publish.sh +++ b/ios/scripts/publish.sh @@ -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