Skip to content

Commit

Permalink
Rename Cydia.* to MobileCydia.* and add Cydia.frappliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Nov 2, 2010
1 parent 283fc59 commit 471937c
Show file tree
Hide file tree
Showing 147 changed files with 152 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,5 +1,6 @@
sysroot
Cydia
MobileCydia
CydiaAppliance
_
*.deb
.DS_Store
1 change: 1 addition & 0 deletions Cydia.frappliance/English.lproj/InfoPlist.strings
@@ -0,0 +1 @@
CFBundleName = "Cydia";
60 changes: 60 additions & 0 deletions Cydia.frappliance/Info.plist
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

<dict>
<key>CFBundleExecutable</key>
<string>CydiaAppliance</string>

<key>CFBundleIdentifier</key>
<string>com.saurik.Cydia</string>

<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>

<key>CFBundlePackageType</key>
<string>BNDL</string>

<key>CFBundleSignature</key>
<string>fnrw</string>

<key>CFBundleSupportedPlatforms</key>
<array>
<string>iPhoneOS</string>
</array>

<key>CFBundleVersion</key>
<string>0.9</string>

<key>DTSDKName</key>
<string>iphoneos2.0.saurik</string>

<key>FRApplianceDataSourceType</key>
<string>All</string>

<key>FRAppliancePreferedOrderValue</key>
<integer>1</integer>

<key>FRHideIfNoCategories</key>
<false/>

<key>FRRemoteAppliance</key>
<true/>

<key>LSRequiresIPhoneOS</key>
<string>1</string>

<key>MinimumOSVersion</key>
<string>3.0</string>

<key>NSPrincipalClass</key>
<string>CydiaAppliance</string>

<key>UIDeviceFamily</key>
<array>
<integer>3</integer>
<integer>2</integer>
</array>
</dict>

</plist>
67 changes: 67 additions & 0 deletions CydiaAppliance.mm
@@ -0,0 +1,67 @@
#import <BackRow/BRAppliance.h>
#import <BackRow/BRApplianceCategory.h>
#import <BackRow/BRBaseAppliance.h>
#import <BackRow/BRTopShelfController.h>
#import <BackRow/BRTopShelfView.h>
#import <BackRow/BRViewController.h>

@interface CydiaTopShelfController : NSObject <BRTopShelfController> {
BRTopShelfView *view_;
}

@end

@implementation CydiaTopShelfController

- (void) dealloc {
[view_ release];

[super dealloc];
}

- (BRTopShelfView *) topShelfView {
return view_;
}

- (void) selectCategoryWithIdentifier:(NSString *)identifier {
}

@end


@interface CydiaManageViewController : BRViewController {
}
@end

@implementation CydiaManageViewController
@end


@interface CydiaAppliance : BRBaseAppliance {
}
@end

@implementation CydiaAppliance

- (id) applianceCategories {
return [NSArray arrayWithObjects:
[BRApplianceCategory categoryWithName:@"Install" identifier:@"cydia-install" preferredOrder:0],
[BRApplianceCategory categoryWithName:@"Manage" identifier:@"cydia-manage" preferredOrder:0],
[BRApplianceCategory categoryWithName:@"Search" identifier:@"cydia-search" preferredOrder:0],
nil];
}

- (id) controllerForIdentifier:(NSString *)identifier args:(NSDictionary *)args {
return nil;
}

- (id) topShelfController {
return [[[CydiaTopShelfController alloc] init] autorelease];
}

- (int) noContentBRError {
// XXX: research
return 0;
}

@end
2 changes: 1 addition & 1 deletion Cydia.app/Cydia → MobileCydia.app/Cydia
Expand Up @@ -3,4 +3,4 @@ C=/${0}
C=${C%/*}
declare -a flags
[[ :${DYLD_INSERT_LIBRARIES}: == */MobileSubstrate.dylib: ]] && flags[${#flags[@]}]=--substrate
exec "${C:-.}"/Cydia_ "${flags[@]}" -- "$@" 2>>/tmp/cydia.log
exec "${C:-.}"/MobileCydia "${flags[@]}" -- "$@" 2>>/tmp/cydia.log
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
30 changes: 21 additions & 9 deletions makefile
Expand Up @@ -29,7 +29,6 @@ link += -framework IOKit
link += -framework JavaScriptCore
link += -framework QuartzCore
link += -framework SystemConfiguration
link += -framework UIKit
link += -framework WebCore
link += -framework WebKit

Expand All @@ -39,20 +38,29 @@ link += -lpcre

link += -multiply_defined suppress

uikit :=
uikit += -framework UIKit

backrow :=
backrow += -FAppleTV -framework BackRow -framework AppleTV

#cycc = cycc -r4.2 -i$(ios) -o$@
gxx := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-$(gcc)
cycc = $(gxx) -arch armv6 -o $@ -mcpu=arm1176jzf-s -miphoneos-version-min=$(ios) -isysroot $(sdk) -idirafter /usr/include -F/Library/Frameworks

all: Cydia

This comment has been minimized.

Copy link
@Gracs

Gracs Nov 25, 2016

Dowload

all: MobileCydia

clean:
rm -f Cydia
rm -f MobileCydia

Cydia: Cydia.mm UICaboodle/*.mm iPhonePrivate.h
$(cycc) $(filter %.mm,$^) $(flags) $(link)
MobileCydia: MobileCydia.mm UICaboodle/*.mm iPhonePrivate.h
$(cycc) $(filter %.mm,$^) $(flags) $(link) $(uikit)
ldid -Slaunch.xml $@

package: Cydia
CydiaAppliance: CydiaAppliance.mm
$(cycc) $(filter %.mm,$^) $(flags) -bundle $(link) $(backrow)

package: MobileCydia
sudo rm -rf _
mkdir -p _/var/lib/cydia

Expand All @@ -64,8 +72,12 @@ package: Cydia
cp -a LaunchDaemons _/System/Library/LaunchDaemons

mkdir -p _/Applications
cp -a Cydia.app _/Applications/Cydia.app
cp -a Cydia _/Applications/Cydia.app/Cydia_
cp -a MobileCydia.app _/Applications/Cydia.app
cp -a MobileCydia _/Applications/Cydia.app/MobileCydia

#mkdir -p _/Applications/Lowtide.app/Appliances
#cp -a Cydia.frappliance _/Applications/Lowtide.app/Appliances
#cp -a CydiaAppliance _/Applications/Lowtide.app/Appliances/Cydia.frappliance

mkdir -p _/System/Library/PreferenceBundles
cp -a CydiaSettings.bundle _/System/Library/PreferenceBundles/CydiaSettings.bundle
Expand All @@ -75,7 +87,7 @@ package: Cydia

sudo chown -R 0 _
sudo chgrp -R 0 _
sudo chmod 6755 _/Applications/Cydia.app/Cydia_
sudo chmod 6755 _/Applications/Cydia.app/MobileCydia

$(dpkg) -b _ $(shell grep ^Package: control | cut -d ' ' -f 2-)_$(shell grep ^Version: control | cut -d ' ' -f 2)_iphoneos-arm.deb

Expand Down

0 comments on commit 471937c

Please sign in to comment.