Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
feat: add signing and device install
Vojtěch Škopek6aec10abfbfa
diff --git a/.gitignore b/.gitignoreindex eb0db572..de394c32 100644--- a/.gitignore+++ b/.gitignore@@ -4,3 +4,4 @@ tweak/.theos/tweak/obj/tweak/packages/.DS_Store+.signing.envdiff --git a/README.md b/README.mdindex 689db672..7470669e 100644--- a/README.md+++ b/README.md@@ -5,7 +5,9 @@ Liquid Glass for the Spotify iOS app, applied to a decrypted IPA without a jailb./pipeline.sh src/com.spotify.client-9.1.78-Decrypted.ipa # FLEX + glass./pipeline.sh src/com.spotify.client-9.1.78-Decrypted.ipa --no-flex-The result lands in `out/` fakesigned, ready for TrollStore. Sideloadly re-signs it.+The result lands in `out/` fakesigned. Add `--install` (or run `./install.sh out/<file>.ipa`) to sign it+with your own certificate and push it to the iPhone over USB; put `SIGN_P12`, `SIGN_PROFILE` and+`SIGN_P12_PASSWORD` into `.signing.env` first. Needs `brew install zsign ideviceinstaller`.- `tweak/` — Theos tweak. Flips Spotify's own Liquid Glass flags (`Reprise_LiquidGlassKit`),turns the now playing bar into a glass card with round artwork, and turns the tab bar into adiff --git a/install.sh b/install.shnew file mode 100755index 00000000..3c7df846--- /dev/null+++ b/install.sh@@ -0,0 +1,26 @@+#!/usr/bin/env bash+# Signs an IPA with your own certificate and installs it on the iPhone plugged into this Mac.+#+# ./install.sh out/Spotify-9.1.78-glass.ipa+#+# Put the certificate details in .signing.env (gitignored):+# SIGN_P12=/path/to/cert.p12+# SIGN_PROFILE=/path/to/profile.mobileprovision+# SIGN_P12_PASSWORD=...+# WIFI=1 installs over Wi-Fi instead of USB (the phone must be paired for wireless sync).+set -euo pipefail++ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+[ -f "$ROOT/.signing.env" ] && . "$ROOT/.signing.env"+: "${SIGN_P12:?set SIGN_P12 in .signing.env}" "${SIGN_PROFILE:?set SIGN_PROFILE in .signing.env}" "${SIGN_P12_PASSWORD:?set SIGN_P12_PASSWORD in .signing.env}"++IN="${1:?usage: $0 <ipa>}"+SIGNED="${IN%.ipa}-signed.ipa"++command -v zsign >/dev/null || { echo "missing zsign -> brew install zsign" >&2; exit 1; }+command -v ideviceinstaller >/dev/null || { echo "missing ideviceinstaller -> brew install ideviceinstaller" >&2; exit 1; }++echo "==> signing"+zsign -k "$SIGN_P12" -p "$SIGN_P12_PASSWORD" -m "$SIGN_PROFILE" -z 1 -o "$SIGNED" "$IN" >/dev/null+echo "==> installing $SIGNED"+ideviceinstaller ${WIFI:+-n} -i "$SIGNED"diff --git a/pipeline.sh b/pipeline.shindex 98a9e456..260330a9 100755--- a/pipeline.sh+++ b/pipeline.sh@@ -1,7 +1,9 @@#!/usr/bin/env bash# Builds the spotifyglass tweak and injects it (plus FLEX) into a decrypted Spotify IPA.#-# ./pipeline.sh <decrypted.ipa> [-o out.ipa] [--no-flex]+# ./pipeline.sh <decrypted.ipa> [-o out.ipa] [--no-flex] [--install]+#+# --install hands the result to install.sh (sign with your certificate, push to the plugged-in iPhone).## Needs: Theos in $THEOS (default ~/theos) with an iPhoneOS SDK in $THEOS/sdks,# gmake, ldid, dpkg-deb (brew) and cyan (uv tool install "cyan @ git+https://github.com/asdfzxcvbn/pyzule-rw").@@ -11,16 +13,17 @@ ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"THEOS="${THEOS:-$HOME/theos}"FLEX_DEB="$ROOT/deb/com.hopeless.autoflex_0.0.1_iphoneos-arm.deb"-IN="" OUT="" WITH_FLEX=1+IN="" OUT="" WITH_FLEX=1 INSTALL=0while [ $# -gt 0 ]; docase "$1" in-o) OUT="$2"; shift 2 ;;--no-flex) WITH_FLEX=0; shift ;;- -h|--help) sed -n '2,7p' "$0"; exit 0 ;;+ --install) INSTALL=1; shift ;;+ -h|--help) sed -n '2,9p' "$0"; exit 0 ;;*) IN="$1"; shift ;;esacdone-[ -f "$IN" ] || { echo "usage: $0 <decrypted.ipa> [-o out.ipa] [--no-flex]" >&2; exit 1; }+[ -f "$IN" ] || { echo "usage: $0 <decrypted.ipa> [-o out.ipa] [--no-flex] [--install]" >&2; exit 1; }need() { command -v "$1" >/dev/null 2>&1 || { echo "missing $1 -> $2" >&2; exit 1; }; }need gmake "brew install make"@@ -51,3 +54,5 @@ echo "==> injecting"cyan -i "$IN" -o "$OUT" -f "${FILES[@]}" -l "$ROOT/plist/liquid-glass.plist" -s --overwriteecho "==> done: $OUT"+[ "$INSTALL" = 1 ] && exec "$ROOT/install.sh" "$OUT"+exit 0