]> git.saurik.com Git - cydia.git/commitdiff
Compile Cydia version into Binary: don't lookup with APT.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 24 Feb 2011 01:04:07 +0000 (17:04 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:11 +0000 (02:41 -0800)
MobileCydia.mm
makefile

index 55d9f9317737624a33af9e2ea07a4ec482cd700f..5158830328f18513cbe18688f9233bd88a61d457 100644 (file)
@@ -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];
index 9a1145dcf42b5ccd2466cf6f8457c7af8af4ba9f..f94af0d9a0a4b28561dea2bdafe9b6bc9af2da4e 100644 (file)
--- a/makefile
+++ b/makefile
@@ -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; }