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:
1 parent
4ddcfd7ff5
commit
0fbd7c848f
3 files changed
+6
-5
No files matched your search
+2
-2
@@ -7,8 +7,8 @@ settings:
|
|||||||
base:
|
base:
|
||||||
SWIFT_VERSION: "5.0"
|
SWIFT_VERSION: "5.0"
|
||||||
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
|
# iOS needs a plain number for the bundle version; the label is what the app and releases show.
|
||||||
MARKETING_VERSION: "1.0"
|
MARKETING_VERSION: "0.9.0"
|
||||||
VERSION_LABEL: "1.0 RC 4"
|
VERSION_LABEL: "0.9.0"
|
||||||
CURRENT_PROJECT_VERSION: "27"
|
CURRENT_PROJECT_VERSION: "27"
|
||||||
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
|
# Dev builds override these (build-ipa.sh dev) so they install next to the release app.
|
||||||
APP_ID: org.cdnutter.stemify
|
APP_ID: org.cdnutter.stemify
|
||||||
|
|||||||
@@ -25,8 +25,9 @@ DD=$B/dd-$MODE
|
|||||||
CHANNEL=$([ "$MODE" = dev ] && echo dev || echo release)
|
CHANNEL=$([ "$MODE" = dev ] && echo dev || echo release)
|
||||||
MV=$(sed -nE 's/^ *MARKETING_VERSION: "(.*)"/\1/p' project.yml)
|
MV=$(sed -nE 's/^ *MARKETING_VERSION: "(.*)"/\1/p' project.yml)
|
||||||
BN=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml)
|
BN=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml)
|
||||||
[ "$MODE" = dev ] && MV=$MV.$BN
|
# iOS allows at most three numbers, so dev keeps major.minor and puts the build last (0.9.0 build 27 -> 0.9.27).
|
||||||
# "1.0 RC 1" -> 1.0-rc1, used in file names and release tags.
|
[ "$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')
|
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
|
IPA=$B/$MODE/stemify-$VERSION$SUFFIX.ipa
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ LABEL=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml)
|
|||||||
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
die() { echo "$*" >&2; exit 1; }
|
die() { echo "$*" >&2; exit 1; }
|
||||||
case $MODE in
|
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' ;;
|
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" ;;
|
*) die "usage: $0 dev|release" ;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in new issue
Block a user