diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-23 17:04:07 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-07 02:41:11 -0800 |
commit | 44c1771c52b99d592437e867c64c1d56820b50a5 (patch) | |
tree | 3928fe3b4d44e88ba576bc97cbe8f2d82d6c1a63 | |
parent | c57867ead66c4519bee5e2c061ca7ab3ed84f8e6 (diff) |
Compile Cydia version into Binary: don't lookup with APT.
-rw-r--r-- | MobileCydia.mm | 9 | ||||
-rw-r--r-- | makefile | 5 |
2 files changed, 7 insertions, 7 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 55d9f93..5158830 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -125,6 +125,8 @@ extern "C" { #include "SDURLCache/SDURLCache.h" #include "substrate.h" + +#include "Version.h" /* }}} */ /* Profiler {{{ */ @@ -4501,12 +4503,7 @@ static NSString *Warning_; WebView *webview([[webview_ _documentView] webView]); - Package *package([[Database sharedInstance] packageWithName:@"cydia"]); - - NSString *application = package == nil ? @"Cydia" : [NSString - stringWithFormat:@"Cydia/%@", - [package installed] - ]; + NSString *application([NSString stringWithFormat:@"Cydia/%@", @ Cydia_]); if (Safari_ != nil) application = [NSString stringWithFormat:@"Safari/%@ %@", Safari_, application]; @@ -68,7 +68,10 @@ clean: %.o: %.c $(cycc) -c -o $@ -x c $< -MobileCydia: MobileCydia.mm UICaboodle/*.h UICaboodle/*.mm SDURLCache/SDURLCache.h SDURLCache/SDURLCache.m iPhonePrivate.h lookup3.o Cytore.hpp +Version.h: + ./Version.h.sh + +MobileCydia: Version.h MobileCydia.mm UICaboodle/*.h UICaboodle/*.mm SDURLCache/SDURLCache.h SDURLCache/SDURLCache.m iPhonePrivate.h lookup3.o Cytore.hpp $(cycc) $(filter %.mm,$^) $(filter %.o,$^) $(foreach m,$(filter %.m,$^),-x objective-c++ $(m)) $(flags) $(link) $(uikit) ldid -Slaunch.xml $@ || { rm -f $@ && false; } |