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: exit recorder cleanly on end of input

Vojtěch Škopek76702b23bd13
diff --git a/README.md b/README.md
index 1d4e8859..b959bc3b 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ signed and installed from the Mac.
make build # out/Spotify-<version>-glass.ipa with FLEX
make release # same without FLEX
make install # build, sign with your certificate, install over USB
- make trees # record view trees screen by screen
+ make trees # record view trees screen by screen (FLEX build open on the phone, USB)
make log # stream [spotifyglass] log lines from the phone
Needs Theos in `~/theos` with an iPhoneOS SDK, Homebrew `make ldid dpkg zsign ideviceinstaller
@@ -32,5 +32,5 @@ Signing reads `SIGN_P12`, `SIGN_PROFILE` and `SIGN_P12_PASSWORD` from `.signing.
1. `make trees`, record the screen, read `trees/<screen>.txt` for the classes and frames.
2. Add `tweak/src/ui/<Area>.x`: hook the classes, use `SGGlassFor`/`SGGlassAt` + `SGShapeGlass` for
glass, `SGStripBackgrounds` to clear Spotify's paint, and end with `%ctor { %init; SGRequireClasses(...); }`.
-3. `make install`. Log lines are prefixed `[spotifyglass]`; a FLEX build also dumps the visible
- screen whenever the app goes to the background.
+3. `make install`. Log lines are prefixed `[spotifyglass]`. A FLEX build serves the visible screen's
+ tree on the phone's port 8085, which `make trees` reaches over USB through iproxy.
diff --git a/scripts/record-trees.py b/scripts/record-trees.py
index a03d0773..fcf6c02b 100755
--- a/scripts/record-trees.py
+++ b/scripts/record-trees.py
@@ -111,6 +111,13 @@ def fetch(url):
return response.read().decode("utf-8", "replace")
+def ask(prompt):
+ try:
+ return input(prompt).strip().lower()
+ except EOFError:
+ return "q"
+
+
def pick(screens):
print("\nScreens in trees/:")
for i, (name, hint) in enumerate(screens, 1):
@@ -119,7 +126,7 @@ def pick(screens):
print(f" {i:2d}. {name:<14} {status:<26} {hint}")
print("\nSelect: numbers or ranges (1,3-5), 'a' all, 'm' missing only [default], 'n' add a new screen, 'q' quit")
while True:
- answer = input("> ").strip().lower()
+ answer = ask("> ")
if answer in ("q", "quit"):
return None
if answer == "n":
@@ -157,7 +164,7 @@ def record(url, name, hint):
print(f"\n▶ Now recording: {name}{' (will overwrite)' if exists else ''}")
print(f" {hint}. When it is on screen press Enter. [s] skip [q] quit")
while True:
- answer = input(" > ").strip().lower()
+ answer = ask(" > ")
if answer == "q":
return "quit"
if answer == "s":
diff --git a/tweak/control b/tweak/control
index 952e15ff..eb8d97c3 100644
--- a/tweak/control
+++ b/tweak/control
@@ -1,6 +1,6 @@
Package: com.vojta.spotifyglass
Name: spotifyglass
-Version: 0.5.0
+Version: 0.6.0
Architecture: iphoneos-arm
Description: Liquid Glass for the Spotify iOS app
Maintainer: vojta