From 5344bbfd21e198fe9440faf013c1323b309a6100 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Dec 2026 12:00:50 -0800 Subject: [PATCH] iOS builds: public is org.cdnutter.stemify, prov renamed signed Modes are now public|dev|signed (build/public, build/signed, -signed IPA). Co-Authored-By: Claude Opus 5.5 --- README.md | 14 +++++++------- ios/scripts/build-ipa.sh | 18 +++++++++--------- ios/scripts/build-remote.sh | 10 +++++----- ios/scripts/make-source.py | 2 +- ios/scripts/publish.sh | 10 +++++----- 5 files changed, 27 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index dded722..d23b6c7 100644 --- a/README.md +++ b/README.md @@ -343,18 +343,18 @@ docs/specs.txt original design doc for the desktop separator ```sh cd ios -scripts/build-remote.sh # from DevOps: dev build on WHITE-M1, pulled back to build/dev -scripts/build-remote.sh release # release build, build/release -scripts/build-remote.sh prov # personal signed build, build/prov -scripts/build-ipa.sh release|dev|prov # same thing directly on the Mac +scripts/build-remote.sh # from DevOps: dev build on WHITE-M1AIR, pulled back to build/dev +scripts/build-remote.sh public # public build, build/public +scripts/build-remote.sh signed # personal signed build, build/signed +scripts/build-ipa.sh public|dev|signed # same thing directly on the Mac xcodegen generate # or open Stemify.xcodeproj in Xcode ``` -There are three builds, each with its own bundle ID so they install side by side: +There are three builds. Public and signed share a bundle ID, dev installs beside them: -- `org.cdnutter.stemify-pub` (build/release): releases from `main`. `scripts/publish.sh release` tags `ios-v`, uploads the IPA to Gitea and Sideload, and regenerates `ios/source.json`. +- `org.cdnutter.stemify` (build/public): releases from `main`. `scripts/publish.sh public` tags `ios-v`, uploads the IPA to Gitea and Sideload, and regenerates `ios/source.json`. - `org.cdnutter.stemify-dev` (build/dev): ribbon icon, built from the `dev` branch. `scripts/publish.sh dev` makes a Gitea pre-release `ios-v-dev.` and uploads it to Sideload Developer. Bump `CURRENT_PROJECT_VERSION` for each one. -- `org.cdnutter.stemify` (build/prov): signed with the personal profile in `ios/prov/` so CarPlay and Siri work. Never published. +- `org.cdnutter.stemify` (build/signed, file ends `-signed`): signed with the personal profile in `ios/prov/` so CarPlay and Siri work. Never published. The version lives in `ios/project.yml` (`VERSION_LABEL`, `MARKETING_VERSION` and `CURRENT_PROJECT_VERSION`). diff --git a/ios/scripts/build-ipa.sh b/ios/scripts/build-ipa.sh index 4111cd8..7e516e0 100755 --- a/ios/scripts/build-ipa.sh +++ b/ios/scripts/build-ipa.sh @@ -1,11 +1,11 @@ #!/bin/bash -# Builds one Stemify IPA on a Mac. ios/scripts/build-remote.sh runs this on WHITE-M1 from DevOps. -# build-ipa.sh release build/release/stemify-.ipa org.cdnutter.stemify-pub, ad-hoc signed. Gitea releases (main) + Sideload. +# Builds one Stemify IPA on a Mac. ios/scripts/build-remote.sh runs this on WHITE-M1AIR from DevOps. +# build-ipa.sh public build/public/stemify-.ipa org.cdnutter.stemify, ad-hoc signed. Gitea releases (main) + Sideload. # build-ipa.sh dev build/dev/stemify--dev.ipa org.cdnutter.stemify-dev, ribbon icon, DEV BUILD banner. # Gitea pre-releases (dev branch) + Sideload Developer. -# build-ipa.sh prov build/prov/stemify--prov.ipa org.cdnutter.stemify, signed with the +# build-ipa.sh signed build/signed/stemify--signed.ipa org.cdnutter.stemify, signed with the # personal profile (CarPlay, Siri). Never published anywhere. -# prov needs prov/Stemify.mobileprovision (App ID org.cdnutter.stemify), prov/key.p12 and P12_PASS. +# signed needs prov/Stemify.mobileprovision (App ID org.cdnutter.stemify), prov/key.p12 and P12_PASS. # prov/StemifyWidgets.mobileprovision (org.cdnutter.stemify.widgets) is optional, without it the widgets are left out. # build/work is scratch and is wiped each run. set -euo pipefail @@ -14,10 +14,10 @@ export PATH=/opt/homebrew/bin:$PATH B=build; OUT=$B/work; APP=$OUT/Payload/Stemify.app; EXT=$APP/PlugIns/StemifyWidgets.appex MODE=${1:-dev} case $MODE in - release) APP_ID=org.cdnutter.stemify-pub; APP_NAME=Stemify; APP_ICON=AppIcon; SUFFIX= ;; + public) APP_ID=org.cdnutter.stemify; APP_NAME=Stemify; APP_ICON=AppIcon; SUFFIX= ;; dev) APP_ID=org.cdnutter.stemify-dev; APP_NAME=Stemify; APP_ICON=AppIconDev; SUFFIX=-dev ;; - prov) APP_ID=org.cdnutter.stemify; APP_NAME=Stemify; APP_ICON=AppIcon; SUFFIX=-prov ;; - *) echo "usage: $0 release|dev|prov" >&2; exit 1 ;; + signed) APP_ID=org.cdnutter.stemify; APP_NAME=Stemify; APP_ICON=AppIcon; SUFFIX=-signed ;; + *) echo "usage: $0 public|dev|signed" >&2; exit 1 ;; esac DD=$B/dd-$MODE # Dev builds are marked as such (Info key StemifyChannel) and put the build number in the @@ -31,7 +31,7 @@ BN=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml) 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 -if [ "$MODE" = prov ]; then +if [ "$MODE" = signed ]; then for f in prov/Stemify.mobileprovision prov/key.p12; do [ -f $f ] || { echo "missing $f" >&2; exit 1; }; done [ -n "${P12_PASS:-}" ] || { echo "P12_PASS not set" >&2; exit 1; } PROF_ID=$(security cms -D -i prov/Stemify.mobileprovision | plutil -extract Entitlements.application-identifier raw -) @@ -46,7 +46,7 @@ xcodebuild -project Stemify.xcodeproj -scheme Stemify -configuration Release -sd cp -R $DD/Build/Products/Release-iphoneos/Stemify.app $APP [ -d $EXT ] || { echo "widget extension missing" >&2; exit 1; } -if [ "$MODE" != prov ]; then +if [ "$MODE" != signed ]; then # Ad-hoc signature carrying only the App Group, so Sideloadly/AltStore keep the widgets' shared data when re-signing. cat > $OUT/group.plist < diff --git a/ios/scripts/build-remote.sh b/ios/scripts/build-remote.sh index 2ff2cac..6c7d8d9 100755 --- a/ios/scripts/build-remote.sh +++ b/ios/scripts/build-remote.sh @@ -1,17 +1,17 @@ #!/bin/bash # Run from DevOps: syncs ios/ to WHITE-M1AIR, builds there, and pulls the IPAs back into ios/build/. # build-remote.sh dev build (the usual one): build/dev -# build-remote.sh release release build, only when a release is asked for: build/release -# build-remote.sh prov personal signed build: build/prov -# build-remote.sh dev prov ... several at once +# build-remote.sh public public build, only when a release is asked for: build/public +# build-remote.sh signed personal signed build: build/signed +# build-remote.sh dev signed ... several at once set -euo pipefail cd "$(dirname "$0")/.." H=${BUILD_HOST:-white-m1air}; R=stemify-build/ios MODES=${*:-dev} -for m in $MODES; do case $m in release|dev|prov) ;; *) echo "usage: $0 [release|dev|prov]..." >&2; exit 1 ;; esac; done +for m in $MODES; do case $m in public|dev|signed) ;; *) echo "usage: $0 [public|dev|signed]..." >&2; exit 1 ;; esac; done rsync -a --exclude build --exclude prov --exclude Stemify.xcodeproj ./ $H:$R/ for m in $MODES; do ssh $H "cd $R && P12_PASS=\$(cat prov/cert_pass.txt 2>/dev/null) bash scripts/build-ipa.sh $m" mkdir -p build/$m && rsync -a $H:$R/build/$m/ build/$m/ done -ls build/{release,dev,prov}/stemify-$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g')*.ipa 2>/dev/null +ls build/{public,dev,signed}/stemify-$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g')*.ipa 2>/dev/null diff --git a/ios/scripts/make-source.py b/ios/scripts/make-source.py index 2b5bc46..8f20428 100755 --- a/ios/scripts/make-source.py +++ b/ios/scripts/make-source.py @@ -58,7 +58,7 @@ source = { "website": REPO, "apps": [{ "name": "Stemify", - "bundleIdentifier": "org.cdnutter.stemify-pub", + "bundleIdentifier": "org.cdnutter.stemify", "developerName": "cdnutter", "subtitle": "Plex music player with live stem mixing.", "localizedDescription": "Plays your Plex library and lets you mute vocals or remix stems on the fly. " diff --git a/ios/scripts/publish.sh b/ios/scripts/publish.sh index 256751f..5421182 100755 --- a/ios/scripts/publish.sh +++ b/ios/scripts/publish.sh @@ -1,8 +1,8 @@ #!/bin/bash # Publishes an IPA built by build-remote.sh. Run from DevOps with everything committed. # publish.sh dev on the dev branch: Gitea pre-release ios-v-dev. + Sideload Developer (WHITE-M1 :8093, ?source=dev) -# publish.sh release on main, only when the owner says so: Gitea release ios-v + Personal (:8093, ?source=personal), then source.json -# Release notes come from $NOTES, else the last commit subject. prov builds are never published. +# publish.sh public on main, only when the owner says so: Gitea release ios-v + Personal (:8093, ?source=personal), then source.json +# Release notes come from $NOTES, else the last commit subject. signed builds are never published. set -euo pipefail cd "$(dirname "$0")/.." MODE=${1:-}; NAME=stemify; TAGP=ios-v @@ -15,8 +15,8 @@ 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' ;; - 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" ;; + public) WANT=main; IPA=build/public/$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|public" ;; esac [ "$BRANCH" = "$WANT" ] || die "$MODE builds publish from $WANT (on $BRANCH)" [ -f "$IPA" ] || die "missing $IPA, run scripts/build-remote.sh $MODE" @@ -31,7 +31,7 @@ ID=$(jq -n --arg t "$TAG" --arg n "$TITLE" --arg c "$(git rev-parse HEAD)" --arg curl -fsS -o /dev/null -H "Authorization: token $T" -F "attachment=@$IPA" "$API/releases/$ID/assets?name=$(basename $IPA)" curl -fsS -o /dev/null -X POST --data-binary @$IPA "$UP/api/upload/ipa$Q" echo "published $TAG ($(basename $IPA)) to Gitea and $UP" -if [ $MODE = release ]; then +if [ $MODE = public ]; then GITEA_TOKEN=$T python3 scripts/make-source.py git add source.json && git commit -qm "iOS source.json for $TAG" && git push -q origin main fi