]> git.saurik.com Git - cydia.git/commitdiff
Pretend to link against iOS 7 to get the flat UI.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 29 Sep 2013 23:27:18 +0000 (16:27 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 29 Sep 2013 23:27:18 +0000 (16:27 -0700)
compiling.txt
makefile
uikit.sh [new file with mode: 0755]

index a01cc0d9ee2d4836f09c413aceb2e5c2df6c0b55..d6bea4ca60ab967ea8585f4622ee550bb05c7afb 100644 (file)
@@ -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
index bcd811c555bd03d48e91e0feb66824ed739559cc..8719157b49a9721516ed6434cac5ea5832e5145d 100644 (file)
--- 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 (executable)
index 0000000..01ddfa6
--- /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"