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

chore: the unused tour setter and old install script are removed

My-Name-Is-Jeff8f1d036fa8c7
diff --git a/docs/tweaks.md b/docs/tweaks.md
index 47ca4448..040a77c7 100644
--- a/docs/tweaks.md
+++ b/docs/tweaks.md
@@ -22,7 +22,7 @@
scripts/ pipeline.sh (build + inject), build-extension.sh (the widget extension, without an
Xcode project), merge-appintents.py (the widget's intents into Spotify's), insert-dylib.py (a load command into
Spotify's widget), install.sh (sign + install), record-trees.py, record-session.py,
- dump-log.sh, extract-flags.py
+ dump-log.sh, extract-flags.py, check-layers.sh (the one-way imports between layers)
trees/ recorded view trees, one per screen; the input for every new hook. trees/clean/ holds
the numbered snapshots per screen of record-session.py, taken of Spotify as it came
plist/ Info.plist overrides merged into the app (turns UIDesignRequiresCompatibility off; the
diff --git a/scripts/install b/scripts/install
deleted file mode 100755
index 715f4cce..00000000
--- a/scripts/install
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/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
-#
-# 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"
-cd "$ROOT"
-: "${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; }
-
-# The bundle id has to equal the App ID of the profile. iOS may well install a mismatched pair, but
-# MediaRemote launches the now playing app by its application-identifier entitlement rather than by
-# CFBundleIdentifier, so tapping the lock screen card then asks for a bundle that does not exist and
-# nothing opens. A wildcard App ID needs no rewrite: the entitlement takes the IPA's own bundle id.
-PROFILE_PLIST="$(mktemp)"
-security cms -D -i "$SIGN_PROFILE" > "$PROFILE_PLIST" 2>/dev/null
-APP_ID="$(plutil -extract Entitlements.application-identifier raw -o - "$PROFILE_PLIST" 2>/dev/null || true)"
-rm -f "$PROFILE_PLIST"
-APP_ID="${APP_ID#*.}"
-
-sign() { # sign [bundle id]
- echo "==> signing${1:+ as $1}"
- zsign -k "$SIGN_P12" -p "$SIGN_P12_PASSWORD" -m "$SIGN_PROFILE" ${1:+-b "$1"} -z 1 -o "$SIGNED" "$IN" >/dev/null
-}
-
-if [ -n "$APP_ID" ] && [ "$APP_ID" != "*" ]; then sign "$APP_ID"; else sign; fi
-echo "==> installing $SIGNED"
-ideviceinstaller ${WIFI:+-n} install "$SIGNED" 2>&1 | tail -3
diff --git a/scripts/install.sh b/scripts/install.sh
index 017e2966..e1b93c04 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/vitrine-0.20.0.ipa
+# scripts/install.sh out/<name>.ipa
#
# Put the certificate details in .signing.env (gitignored):
# SIGN_P12=/path/to/cert.p12
diff --git a/tweak/Sources/Native/Player/NowPlaying.h b/tweak/Sources/Native/Player/NowPlaying.h
index b97acbd0..a7773d2d 100644
--- a/tweak/Sources/Native/Player/NowPlaying.h
+++ b/tweak/Sources/Native/Player/NowPlaying.h
@@ -25,12 +25,6 @@
#define SGHideMerch @"spotifyglass.hide.merch"
#define SGHideRecommendations @"spotifyglass.hide.recommendations"
-// The welcome tour's one switch for the player: on hides every card under the player but the
-// lyrics, off shows them again. The player's buttons are not its business. Only the tour reads
-// it; the hooks read the keys above.
-#define SGKeyPlayerLyricsOnly @"spotifyglass.hide.playerLyricsOnly"
-void SGSetPlayerLyricsOnly(BOOL on);
-
@class SGModRow, SGModSection;
// PlayerSettings.m: the player screen's sections of the Player page, the Queue & devices page and the
// "Glass lyrics" row of the Lyrics page.
diff --git a/tweak/Sources/Native/Player/PlayerDeclutter.x b/tweak/Sources/Native/Player/PlayerDeclutter.x
index 083d1d26..04de969a 100644
--- a/tweak/Sources/Native/Player/PlayerDeclutter.x
+++ b/tweak/Sources/Native/Player/PlayerDeclutter.x
@@ -129,13 +129,6 @@ static void finish(UIViewController *unit, BOOL changed) {
}
%end
-void SGSetPlayerLyricsOnly(BOOL on) {
- for (NSString *key in @[SGHideAboutArtist, SGHideRelatedVideos, SGHideSongDNA, SGHideLiveEvents,
- SGHideExploreArtist, SGHideCredits, SGHideMerch, SGHideRecommendations]) {
- SGSetEnabled(key, on);
- }
-}
-
%ctor {
if (!SGNativeUI()) return;
%init;