Liquid Glass and Apple Music touches for the Spotify iOS app. A GPL-3.0 fork of spoti.pw 0.21.1.
C
chore: stop hosting builds and point people at building their own
Vojtěch Škopek5ac260cc649f
diff --git a/Makefile b/Makefileindex 9f1b4729..b145c8c6 100644--- a/Makefile+++ b/Makefile@@ -8,7 +8,7 @@ FLEX ?= 0FLEX_ARG := $(if $(filter 0,$(FLEX)),--no-flex,)# A local install is renamed and re-iconed so it is told apart from the released app on the home-# screen. It writes its own file, so publish's SKIP_BUILD=1 (newest *-glass.ipa) never picks it up.+# screen.DEV_NAME ?= spoti.devDEV_ICON ?= docs/icon.png@@ -19,9 +19,9 @@ release: ## glass only, no FLEX./scripts/pipeline.sh $(IPA) --no-flexinstall: ## build, sign with your certificate, push to the phone on USB (FLEX=1 to take FLEX too)./scripts/pipeline.sh $(IPA) --install $(FLEX_ARG) --name "$(DEV_NAME)" --icon "$(DEV_ICON)" -o out/spoti.dev.ipa-publish: ## VERSION=0.15.0 NOTES="..." : build, upload to catbox, write the site's release.json, print the link+publish: ## VERSION=0.15.0 NOTES="..." : bump control, write the site's release.json./scripts/publish.sh stage "$(IPA)" "$(VERSION)" "$(NOTES)"-push: ## commit and push the staged release in both repos (after testing the link)+push: ## commit and push the staged release in both repos./scripts/publish.sh pushtrees: ## record per-screen view trees into trees/ (needs a FLEX build on the phone)./scripts/record-trees.pydiff --git a/README.md b/README.mdindex 6258b883..a61871c1 100644--- a/README.md+++ b/README.md@@ -54,9 +54,9 @@ What is in, and what is next.## Get it-No IPA is distributed here. [spoti.pw](https://spoti.pw) carries the current build and doubles as a-source for SideStore, AltStore and Feather: add `https://spoti.pw` and later builds arrive on their-own.+No IPA is distributed, here or on [spoti.pw](https://spoti.pw). Fork the repo and+[build it yourself](#build-it-yourself) from your own decrypted Spotify IPA; the GitHub workflow+needs no Mac. The Mod page tells you when a newer version is out.The app keeps Spotify's bundle id, so it installs over the real Spotify. Sign it under a mismatchedApp ID and it still installs, but the lock screen card opens nothing.diff --git a/docs/tweaks.md b/docs/tweaks.mdindex 801f7b30..f78499f0 100644--- a/docs/tweaks.md+++ b/docs/tweaks.md@@ -12,7 +12,7 @@tweak/Sources/Features/ one directory per feature, see belowtweak/Sources/Diagnostics/ screen dumps and the tree server of FLEX buildsscripts/ pipeline.sh (build + inject), install.sh (sign + install), record-trees.py,- dump-log.sh, extract-flags.py, publish.sh (release: build, catbox, site manifest)+ dump-log.sh, extract-flags.py, publish.sh (release: version bump, site release.json)trees/ recorded view trees, one per screen; the input for every new hookplist/ Info.plist overrides merged into the app (turns UIDesignRequiresCompatibility off)vendor/ AutoFLEX debdiff --git a/scripts/publish.sh b/scripts/publish.shindex 088f9085..baee3f75 100755--- a/scripts/publish.sh+++ b/scripts/publish.sh@@ -1,15 +1,12 @@#!/usr/bin/env bash-# Cuts a release in two steps, so the link gets tested before anything goes live.+# Cuts a release in two steps. No IPA is hosted anywhere: people fork the repo and build their own,+# so a release is only the version bump and the line the site and the Updates row show.#-# make publish VERSION=0.15.0 NOTES="..." bump control, build, upload to catbox, write the site's-# content/release.json, print the link. Nothing is committed.-# make push commit and push both repos once the link is tested;-# Coolify rebuilds spoti.pw from that push.+# make publish VERSION=0.15.0 NOTES="..." bump control, write the site's content/release.json with+# the Spotify version read off ipa/. Nothing is committed.+# make push commit and push both repos; Coolify rebuilds spoti.pw.#-# The IPA never touches git: it goes to catbox and only its URL lands in release.json, next to the-# mod version, Spotify's version and build (read off the built IPA), size, date and notes.-# CATBOX_USERHASH uploads under your catbox account instead of anonymously (files then show up in-# its manager and can be deleted). WEB points at the site checkout, default ../custom_spotify_web.+# WEB points at the site checkout, default ../custom_spotify_web.set -euo pipefailROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"@@ -23,7 +20,7 @@ release_field() { python3 -c 'import json,sys; print(json.load(open(sys.argv[1])stage() {local ipa="$1" version="$2" notes="$3"- [ -f "$ipa" ] || die "no IPA: put a decrypted Spotify .ipa in ipa/, or pass one (make publish IPA=path.ipa ...)"+ [ -f "$ipa" ] || die "no IPA: put the decrypted Spotify .ipa you tested on in ipa/, or pass one (make publish IPA=path.ipa ...)"[[ "$version" =~ ^[0-9]+(\.[0-9]+)+$ ]] || die "VERSION must look like 0.15.0, got '${version:-nothing}'"[ -n "$notes" ] || die "NOTES is empty: say what changed, it is the changelog on the site and in the app"[ -d "$WEB/content" ] || die "no site checkout at $WEB (set WEB=...)"@@ -31,45 +28,22 @@ stage() {sed -i '' "s/^Version: .*/Version: $version/" "$CONTROL"- local out- out="$("$ROOT/scripts/pipeline.sh" "$ipa" --no-flex | tee /dev/stderr | sed -n 's/^==> done: //p')"- [ -f "$out" ] || die "pipeline did not report a built IPA"-- local app_dir plist- app_dir="$(unzip -Z1 "$out" | grep -oE '^Payload/[^/]+\.app/' | sort -u | head -1)"+ local app_dir plist spotify+ app_dir="$(unzip -Z1 "$ipa" | grep -oE '^Payload/[^/]+\.app/' | sort -u | head -1)"plist="$(mktemp)"- unzip -p "$out" "${app_dir}Info.plist" > "$plist"- local spotify build bundle min_os+ unzip -p "$ipa" "${app_dir}Info.plist" > "$plist"spotify="$(plutil -extract CFBundleShortVersionString raw -o - "$plist")"- build="$(plutil -extract CFBundleVersion raw -o - "$plist")"- bundle="$(plutil -extract CFBundleIdentifier raw -o - "$plist")"- min_os="$(plutil -extract MinimumOSVersion raw -o - "$plist")"rm -f "$plist"- echo "==> uploading $(du -h "$out" | cut -f1) to catbox"- local url- url="$(curl -fsS -F reqtype=fileupload ${CATBOX_USERHASH:+-F "userhash=$CATBOX_USERHASH"} \- -F "fileToUpload=@$out" https://catbox.moe/user/api.php)"- [[ "$url" == https://files.catbox.moe/* ]] || die "catbox did not return a link: $url"-- python3 - "$RELEASE" "$version" "$spotify" "$build" "$bundle" "$min_os" "$(stat -f %z "$out")" "$url" "$notes" <<'PY'+ python3 - "$RELEASE" "$version" "$spotify" "$notes" <<'PY'import json, sysfrom datetime import date-path, mod, spotify, build, bundle, min_os, size, url, notes = sys.argv[1:]-json.dump({- "mod": mod, "version": spotify, "buildVersion": build, "bundleId": bundle, "minOS": min_os,- "bytes": int(size), "date": date.today().isoformat(), "ipaUrl": url, "notes": notes,-}, open(path, "w"), indent=2)+path, mod, spotify, notes = sys.argv[1:]+json.dump({"mod": mod, "version": spotify, "date": date.today().isoformat(), "notes": notes}, open(path, "w"), indent=2)open(path, "a").write("\n")PY- cat <<MSG--==> staged $version on Spotify $spotify- $url- $RELEASE-Sign and install that link, check the About row says $version, then: make push-MSG+ echo "==> staged $version on Spotify $spotify in $RELEASE, then: make push"}commit_if_changed() {@@ -88,11 +62,11 @@ push() {git -C "$WEB" pushcommit_if_changed "$ROOT" tweak/control "$mod"git -C "$ROOT" push- echo "==> $mod is live once Coolify finishes: $(release_field ipaUrl)"+ echo "==> $mod is live once Coolify finishes"}case "${1:-}" instage) stage "$2" "$3" "$4" ;;push) push ;;- *) sed -n '2,12p' "$0"; exit 1 ;;+ *) sed -n '2,9p' "$0"; exit 1 ;;esacdiff --git a/tweak/Sources/Features/About/AboutSettings.m b/tweak/Sources/Features/About/AboutSettings.mindex b0b9e8f5..f65f49e9 100644--- a/tweak/Sources/Features/About/AboutSettings.m+++ b/tweak/Sources/Features/About/AboutSettings.m@@ -47,7 +47,7 @@ UIViewController *SGAboutPage(void) {}, ^{ SGCheckForUpdate(YES); }),]),SGSection(nil, @[- withSymbol(SGLinkRow(@"Website", @"Downloads, and the source to add to AltStore or SideStore", SGSiteURL), @"safari"),+ withSymbol(SGLinkRow(@"Website", @"Features, and how to build it yourself", SGSiteURL), @"safari"),withSymbol(SGLinkRow(@"GitHub", @"Source, releases and issues", SGRepoURL), @"chevron.left.forwardslash.chevron.right"),withSymbol(SGActionRow(@"Welcome tour", @"The pages from the first launch, again", ^{ SGShowOnboarding(); }), @"map"),]),