diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dfe9c5..a18ac28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,3 +33,4 @@ 2026-11-09 iOS: dev builds (`ios/scripts/build-remote.sh dev`): bundle id org.cdnutter.stemify-dev, "Stemify Dev", own App Group, into ios/build/dev. Internal tests only, never on Gitea or Sideload. 2026-11-09 iOS: Duo unfolded redesign. Tabs move to a rail on the right edge by the status bar, Now Playing fills the screen with stems and queue on the left and the player on the right, picking a tab swaps the left pane, Swap flips the sides (remembered). Folded screen unchanged. 2026-11-09 iOS: build-remote.sh now builds dev + prov by default; public only with `public`. +2026-12-04 iOS 0.11.0 (build 67): public build is org.cdnutter.stemify (was -pub, reinstall needed), build modes public|dev|signed, tags v like Eze. Playlist create/delete, Stem playlist sorting/rename/cover/mix/copy to Plex, cover cropper, continuous Random Album Radio, lyrics Vocals/Softness turn karaoke on, softer icon glow, Duo orientation and Now Playing drag fixes. diff --git a/README.md b/README.md index d23b6c7..3f596d1 100644 --- a/README.md +++ b/README.md @@ -352,8 +352,8 @@ xcodegen generate # or open Stemify.xcodeproj in Xcode There are three builds. Public and signed share a bundle ID, dev installs beside them: -- `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/public): releases from `main`. `scripts/publish.sh public` tags `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 `v-dev.` and uploads it to Sideload Developer. Bump `CURRENT_PROJECT_VERSION` for each one. - `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/project.yml b/ios/project.yml index 6a9d048..a25e602 100644 --- a/ios/project.yml +++ b/ios/project.yml @@ -7,9 +7,9 @@ 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: "0.10.1" - VERSION_LABEL: "0.10.1" - CURRENT_PROJECT_VERSION: "66" + MARKETING_VERSION: "0.11.0" + VERSION_LABEL: "0.11.0" + CURRENT_PROJECT_VERSION: "67" # Dev builds override these (build-ipa.sh dev) so they install next to the release app. APP_ID: org.cdnutter.stemify APP_NAME: Stemify diff --git a/ios/scripts/make-source.py b/ios/scripts/make-source.py index 8f20428..faeb189 100755 --- a/ios/scripts/make-source.py +++ b/ios/scripts/make-source.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """Writes ios/source.json, an AltStore source (SideStore and Feather read it too), from the -ios-v* releases on Gitea. Only releases with a stemify-.ipa are listed, since older -ones used a different bundle ID. Set GITEA_TOKEN if the repo is private.""" +v* releases on Gitea (org.cdnutter.stemify). The older ios-v* releases were org.cdnutter.stemify-pub +and are left out. Set GITEA_TOKEN if the repo is private.""" import json, os, re, urllib.request REPO = "https://gitea.iamchrisama.com/cdnutter/stemify" @@ -34,10 +34,10 @@ builds[slug] = re.search(r'CURRENT_PROJECT_VERSION: "(.*)"', yml)[1] versions = [] for rel in get(API + "/releases?limit=50"): - v = rel["tag_name"].removeprefix("ios-v") + v = rel["tag_name"].removeprefix("v") ipa = next((a for a in rel["assets"] if a["name"] == f"stemify-{v}.ipa"), None) # Pre-releases are dev builds (org.cdnutter.stemify-dev), they go to Sideload Developer instead. - if not rel["tag_name"].startswith("ios-v") or not ipa or rel["prerelease"]: + if not rel["tag_name"].startswith("v") or not ipa or rel["prerelease"]: continue versions.append({ "version": v.split("-")[0], diff --git a/ios/scripts/publish.sh b/ios/scripts/publish.sh index 5421182..49ea634 100755 --- a/ios/scripts/publish.sh +++ b/ios/scripts/publish.sh @@ -1,32 +1,31 @@ #!/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 public on main, only when the owner says so: Gitea release ios-v + Personal (:8093, ?source=personal), then source.json +# publish.sh dev on the dev branch: Gitea pre-release v-dev. + iOS Repos /dev (WHITE-M1 :8093, ?source=dev) +# publish.sh public on main, only when the owner says so: Gitea release v + iOS Repos /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 +MODE=${1:-}; NAME=stemify; TAGP=v API=https://gitea.iamchrisama.com/api/v1/repos/cdnutter/stemify T=$(sed -n 's#.*://cdnutter:\([^@]*\)@.*#\1#p' ~/.config/gitea/cdnutter.credentials | head -1) V=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ (rc|beta) /-\1/; s/ /-/g') BUILD=$(sed -nE 's/^ *CURRENT_PROJECT_VERSION: "(.*)"/\1/p' project.yml) -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' ;; - 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' ;; + dev) WANT=dev; IPA=build/dev/$NAME-$V-dev.ipa; TAG=$TAGP$V-dev.$BUILD; PRE=true; UP=http://10.0.0.11:8093; Q='?source=dev' ;; + public) WANT=main; IPA=build/public/$NAME-$V.ipa; TAG=$TAGP$V; 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" git diff --quiet HEAD || die "uncommitted changes" [ "$(curl -s -o /dev/null -w '%{http_code}' -H "Authorization: token $T" $API/releases/tags/$TAG)" = 404 ] \ - || die "$TAG already exists, bump CURRENT_PROJECT_VERSION (dev) or VERSION_LABEL (release)" + || die "$TAG already exists, bump CURRENT_PROJECT_VERSION (dev) or VERSION_LABEL (public)" git push -q -u origin $BRANCH BODY=${NOTES:-$(git log -1 --format=%s)} -ID=$(jq -n --arg t "$TAG" --arg n "$TITLE" --arg c "$(git rev-parse HEAD)" --arg b "$BODY" --argjson p $PRE \ - '{tag_name:$t, target_commitish:$c, name:$n, body:$b, prerelease:$p}' | +ID=$(jq -n --arg t "$TAG" --arg c "$(git rev-parse HEAD)" --arg b "$BODY" --argjson p $PRE \ + '{tag_name:$t, target_commitish:$c, name:$t, body:$b, prerelease:$p}' | curl -fsS -H "Authorization: token $T" -H 'Content-Type: application/json' -d @- $API/releases | jq -r .id) 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"