From cc31c45d8cccfb22a694e81f795ab77a98dbf745 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 29 Sep 2013 16:27:18 -0700 Subject: [PATCH] Pretend to link against iOS 7 to get the flat UI. --- compiling.txt | 2 +- makefile | 4 +++- uikit.sh | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 uikit.sh diff --git a/compiling.txt b/compiling.txt index a01cc0d9..d6bea4ca 100644 --- a/compiling.txt +++ b/compiling.txt @@ -2,6 +2,6 @@ 1) install the official Apple iOS SDK 2) install Fink (the only sane choice) 3) activate Fink (. /sw/bin/init.sh) -4) sudo fink install bash ldid tar wget xz +4) sudo fink install bash ldid sed tar wget xz 5) run ./sysroot.sh and wait a bit 6) type "make" to compile the executable diff --git a/makefile b/makefile index bcd811c5..8719157b 100644 --- a/makefile +++ b/makefile @@ -144,11 +144,13 @@ sysroot: sysroot.sh MobileCydia: sysroot $(object) entitlements.xml @echo "[link] $(object:Objects/%=%)" - @$(cycc) $(filter %.o,$^) $(flags) $(link) $(libs) $(uikit) + @$(cycc) $(filter %.o,$^) $(flags) $(link) $(libs) $(uikit) -Wl,-sdk_version,7.0 @mkdir -p bins @cp -a $@ bins/$@-$(version) @echo "[strp] $@" @strip -no_uuid $@ + @echo "[uikt] $@" + @./uikit.sh $@ @echo "[sign] $@" @ldid -T0 -Sentitlements.xml $@ || { rm -f $@ && false; } diff --git a/uikit.sh b/uikit.sh new file mode 100755 index 00000000..01ddfa6a --- /dev/null +++ b/uikit.sh @@ -0,0 +1,2 @@ +#!/bin/bash +exec /sw/bin/sed -i -e 's@\(\x0C\x00\x00\x00\x4C\x00\x00\x00\x18\x00\x00\x00\x02\x00\x00\x00\)\x00\x00\xA4\x06\(\x00\x00\x01\x00/System/Library/Frameworks/UIKit.framework/UIKit\x00\x00\x00\)@\1\x00\x02\x57\x0B\2@' "$1" -- 2.45.2