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
1.0 KB
Raw Blame
#!/bin/sh
# Builds the launch check for the Mac as Mac Catalyst, so the tweak's UIKit headers compile and the
# sources go in as the tweak builds them: the flag forcing of Core/, AdBlock.m's forcer, the redesign's
# and the generated flag table (copy tweak/Sources/Shared/Flags/SGFlagList.m in first, `make flags`).
set -e
cd "$(dirname "$0")"
SRC=../../tweak/Sources
mkdir -p build
SDK=$(xcrun --sdk macosx --show-sdk-path)
IOS="$SDK/System/iOSSupport"
xcrun clang -isysroot "$SDK" -iframework "$IOS/System/Library/Frameworks" -isystem "$IOS/usr/include" \
    -F "$IOS/System/Library/Frameworks" -L "$IOS/usr/lib" -fobjc-arc -O2 -g -Wall -Werror -target arm64-apple-ios17.0-macabi -I "$SRC" -DSG_VERSION='"0.0.0"' \
    main.m "$SRC"/Core/SGFlagForce.m "$SRC"/Core/SGPrefs.m "$SRC"/Core/SGLog.m "$SRC"/Core/SGUIMode.m \
    "$SRC"/Shared/AdBlock/AdBlock.m "$SRC"/Shared/Flags/SGFlagList.m "$SRC"/Redesigned/Kit/SGRedesign.m \
    -framework Foundation -framework UIKit -o build/launch-check
echo "built build/launch-check"