summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-09-29 16:27:18 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2013-09-29 16:27:18 -0700
commitcc31c45d8cccfb22a694e81f795ab77a98dbf745 (patch)
treee9586c5f3a96c2e35c77115a10307933d197c2ac
parent323746d39bfa3830194974658233d0b45809b060 (diff)
Pretend to link against iOS 7 to get the flat UI.
-rw-r--r--compiling.txt2
-rw-r--r--makefile4
-rwxr-xr-xuikit.sh2
3 files changed, 6 insertions, 2 deletions
diff --git a/compiling.txt b/compiling.txt
index a01cc0d..d6bea4c 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 bcd811c..8719157 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 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"