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: rename built ipa from workflow

Vojtěch Škopek4e0292dbd882
diff --git a/README.md b/README.md
index faccbc98..b5005fb8 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ in Settings → Mod Settings.
## Build it
No IPA is distributed. Bring a decrypted **Spotify 9.1.78** IPA; you get an unsigned
-`Spotify-<version>-glass.ipa` to sign with SideStore, Feather or any certificate signer. Each
+`spoti.pw-<mod version>.ipa` to sign with SideStore, Feather or any certificate signer. Each
[release](https://github.com/skopevoj/spoti.pw/releases) also carries the tweak's `.deb`.
### Build with GitHub Actions
@@ -68,7 +68,7 @@ alone builds too, but without the Live Activity. Then:
Put the decrypted `.ipa` in `ipa/`, then:
- make release # out/Spotify-<version>-glass.ipa, ready to sign
+ make release # out/spoti.pw-<version>.ipa, ready to sign
make install # the same, signed with your certificate and pushed over USB
`make install` reads `SIGN_P12`, `SIGN_PROFILE` and `SIGN_P12_PASSWORD` from `.signing.env`; copy
diff --git a/scripts/install.sh b/scripts/install.sh
index 715f4cce..91823a23 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Signs an IPA with your own certificate and installs it on the iPhone plugged into this Mac.
#
-# scripts/install.sh out/Spotify-9.1.78-glass.ipa
+# scripts/install.sh out/spoti.pw-0.20.0.ipa
#
# Put the certificate details in .signing.env (gitignored):
# SIGN_P12=/path/to/cert.p12
diff --git a/scripts/pipeline.sh b/scripts/pipeline.sh
index ace99a47..0300ad83 100755
--- a/scripts/pipeline.sh
+++ b/scripts/pipeline.sh
@@ -56,10 +56,15 @@ fi
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")"
+SPOTIFY_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"
-OUT="${OUT:-$ROOT/out/Spotify-$VERSION-glass.ipa}"
-echo "==> Spotify $VERSION -> $OUT"
+# The name carries the mod's version, not Spotify's: it is the one the About page shows and the one
+# worth telling builds apart by. version.txt is read the way tweak/Makefile reads it, so a build from
+# a fork left behind by a release is named for the version it really is.
+MOD_VERSION="$(cat "$ROOT/version.txt" 2>/dev/null || true)"
+: "${MOD_VERSION:=0.0.0}"
+OUT="${OUT:-$ROOT/out/spoti.pw-$MOD_VERSION.ipa}"
+echo "==> spoti.pw $MOD_VERSION on Spotify $SPOTIFY_VERSION -> $OUT"
# The flag table is generated rather than committed, so it always matches the IPA being built.
if [ ! -f "$ROOT/tweak/Sources/Shared/Flags/SGFlagList.m" ]; then