Skip to content

Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.

C

fix: publish pipeline upload issue

Vojtěch Škopek731f3c189c1b
diff --git a/scripts/pipeline.sh b/scripts/pipeline.sh
index 09020469..65605382 100755
--- a/scripts/pipeline.sh
+++ b/scripts/pipeline.sh
@@ -44,7 +44,7 @@ need dpkg-deb "brew install dpkg"
need cyan "uv tool install 'cyan @ git+https://github.com/asdfzxcvbn/pyzule-rw'"
ls "$THEOS"/sdks/iPhoneOS*.sdk >/dev/null 2>&1 || { echo "no iPhoneOS SDK in $THEOS/sdks" >&2; exit 1; }
-APP_DIR="$(unzip -Z1 "$IN" | grep -oE '^Payload/[^/]+\.app/' | head -1)"
+APP_DIR="$(unzip -Z1 "$IN" | grep -oE '^Payload/[^/]+\.app/' | sort -u | head -1)"
[ -n "$APP_DIR" ] || { echo "no Payload/*.app in $IN" >&2; exit 1; }
VERSION="$(unzip -p "$IN" "${APP_DIR}Info.plist" > "$ROOT/out/.info.plist" && plutil -extract CFBundleShortVersionString raw -o - "$ROOT/out/.info.plist")"
rm -f "$ROOT/out/.info.plist"
diff --git a/scripts/publish.sh b/scripts/publish.sh
index 5e169317..2ca3834a 100755
--- a/scripts/publish.sh
+++ b/scripts/publish.sh
@@ -36,7 +36,7 @@ stage() {
[ -f "$out" ] || die "pipeline did not report a built IPA"
local app_dir plist
- app_dir="$(unzip -Z1 "$out" | grep -oE '^Payload/[^/]+\.app/' | head -1)"
+ app_dir="$(unzip -Z1 "$out" | grep -oE '^Payload/[^/]+\.app/' | sort -u | head -1)"
plist="$(mktemp)"
unzip -p "$out" "${app_dir}Info.plist" > "$plist"
local spotify build bundle min_os