Skip to content

Commit e94dc16

Browse files
committed
Add Sparkle update framework
1 parent 7a96328 commit e94dc16

File tree

103 files changed

+2479
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2479
-5
lines changed

Documentation/ReleaseNotes.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
GitX Release Notes
22

3+
V0.2.1
4+
===
5+
* Added Sparkle update system
6+
37
V0.2: Changes since v0.1
48
====
59
* The graph now has colors

English.lproj/MainMenu.xib

+60-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<string key="IBDocument.HIToolboxVersion">352.00</string>
99
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
1010
<bool key="EncodedWithXMLCoder">YES</bool>
11-
<integer value="339"/>
11+
<integer value="57"/>
1212
</object>
1313
<object class="NSArray" key="IBDocument.PluginDependencies">
1414
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -87,6 +87,14 @@
8787
<reference key="NSOnImage" ref="889736156"/>
8888
<reference key="NSMixedImage" ref="37108609"/>
8989
</object>
90+
<object class="NSMenuItem" id="679871620">
91+
<reference key="NSMenu" ref="492995933"/>
92+
<string type="base64-UTF8" key="NSTitle">Q2hlY2sgZm9yIFVwZGF0ZXPigKY</string>
93+
<string key="NSKeyEquiv"/>
94+
<int key="NSMnemonicLoc">2147483647</int>
95+
<reference key="NSOnImage" ref="889736156"/>
96+
<reference key="NSMixedImage" ref="37108609"/>
97+
</object>
9098
<object class="NSMenuItem" id="254129686">
9199
<reference key="NSMenu" ref="492995933"/>
92100
<bool key="NSIsDisabled">YES</bool>
@@ -800,6 +808,9 @@
800808
<object class="NSUserDefaultsController" id="391227374">
801809
<bool key="NSSharedInstance">YES</bool>
802810
</object>
811+
<object class="NSCustomObject" id="203602687">
812+
<string key="NSClassName">SUUpdater</string>
813+
</object>
803814
</object>
804815
<object class="IBObjectContainer" key="IBDocument.Objects">
805816
<object class="NSMutableArray" key="connectionRecords">
@@ -1132,6 +1143,14 @@
11321143
</object>
11331144
<int key="connectionID">917</int>
11341145
</object>
1146+
<object class="IBConnectionRecord">
1147+
<object class="IBActionConnection" key="connection">
1148+
<string key="label">checkForUpdates:</string>
1149+
<reference key="source" ref="203602687"/>
1150+
<reference key="destination" ref="679871620"/>
1151+
</object>
1152+
<int key="connectionID">920</int>
1153+
</object>
11351154
</object>
11361155
<object class="IBMutableOrderedSet" key="objectRecords">
11371156
<object class="NSArray" key="orderedObjects">
@@ -1203,6 +1222,7 @@
12031222
<reference ref="950810233"/>
12041223
<reference ref="105066652"/>
12051224
<reference ref="332179816"/>
1225+
<reference ref="679871620"/>
12061226
</object>
12071227
<reference key="parent" ref="859553509"/>
12081228
</object>
@@ -1748,6 +1768,16 @@
17481768
<reference key="object" ref="552718495"/>
17491769
<reference key="parent" ref="245837913"/>
17501770
</object>
1771+
<object class="IBObjectRecord">
1772+
<int key="objectID">918</int>
1773+
<reference key="object" ref="203602687"/>
1774+
<reference key="parent" ref="91482642"/>
1775+
</object>
1776+
<object class="IBObjectRecord">
1777+
<int key="objectID">919</int>
1778+
<reference key="object" ref="679871620"/>
1779+
<reference key="parent" ref="492995933"/>
1780+
</object>
17511781
</object>
17521782
</object>
17531783
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -1930,6 +1960,8 @@
19301960
<string>909.IBPluginDependency</string>
19311961
<string>915.IBPluginDependency</string>
19321962
<string>916.IBPluginDependency</string>
1963+
<string>918.IBPluginDependency</string>
1964+
<string>919.IBPluginDependency</string>
19331965
</object>
19341966
<object class="NSMutableArray" key="dict.values">
19351967
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -2071,7 +2103,7 @@
20712103
<reference ref="9"/>
20722104
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
20732105
<reference ref="9"/>
2074-
<string>{{324, 680}, {262, 203}}</string>
2106+
<string>{{324, 660}, {262, 223}}</string>
20752107
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
20762108
<reference ref="9"/>
20772109
<string>{{309, 536}, {262, 203}}</string>
@@ -2109,6 +2141,8 @@
21092141
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
21102142
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
21112143
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2144+
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2145+
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
21122146
</object>
21132147
</object>
21142148
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -2131,7 +2165,7 @@
21312165
</object>
21322166
</object>
21332167
<nil key="sourceID"/>
2134-
<int key="maxID">917</int>
2168+
<int key="maxID">920</int>
21352169
</object>
21362170
<object class="IBClassDescriber" key="IBDocument.Classes">
21372171
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -2268,6 +2302,29 @@
22682302
</object>
22692303
</object>
22702304
</object>
2305+
<object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+">
2306+
<bool key="EncodedWithXMLCoder">YES</bool>
2307+
<object class="IBPartialClassDescription">
2308+
<string key="className">NSObject</string>
2309+
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="734249837">
2310+
<string key="majorKey">IBDocumentRelativeSource</string>
2311+
<string key="minorKey">../Sparkle.framework/Versions/A/Headers/SUUpdater.h</string>
2312+
</object>
2313+
</object>
2314+
<object class="IBPartialClassDescription">
2315+
<string key="className">SUUpdater</string>
2316+
<string key="superclassName">NSObject</string>
2317+
<object class="NSMutableDictionary" key="actions">
2318+
<string key="NS.key.0">checkForUpdates:</string>
2319+
<string key="NS.object.0">id</string>
2320+
</object>
2321+
<object class="NSMutableDictionary" key="outlets">
2322+
<string key="NS.key.0">delegate</string>
2323+
<string key="NS.object.0">id</string>
2324+
</object>
2325+
<reference key="sourceIdentifier" ref="734249837"/>
2326+
</object>
2327+
</object>
22712328
</object>
22722329
<int key="IBDocument.localizationMode">0</int>
22732330
<string key="IBDocument.LastKnownRelativeProjectPath">../GitX.xcodeproj</string>

GitX.xcodeproj/project.pbxproj

+27
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
F57ABE2B0E04435100A088B8 /* prototype.js in Resources */ = {isa = PBXBuildFile; fileRef = F57ABE180E04431D00A088B8 /* prototype.js */; };
3636
F57CC3910E05DDF2000472E2 /* PBEasyPipe.m in Sources */ = {isa = PBXBuildFile; fileRef = F57CC3900E05DDF2000472E2 /* PBEasyPipe.m */; };
3737
F57CC4410E05E496000472E2 /* PBDetailController.m in Sources */ = {isa = PBXBuildFile; fileRef = F57CC4400E05E496000472E2 /* PBDetailController.m */; };
38+
F580E6AE0E733276009E2D3F /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F580E6AD0E733276009E2D3F /* Sparkle.framework */; };
39+
F580E6B10E73328C009E2D3F /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = F580E6AD0E733276009E2D3F /* Sparkle.framework */; };
3840
F58A8F280E043698007E3FC0 /* commits.css in Resources */ = {isa = PBXBuildFile; fileRef = F58A8F270E043698007E3FC0 /* commits.css */; };
3941
F5945E170E02B0C200706420 /* PBGitRepository.m in Sources */ = {isa = PBXBuildFile; fileRef = F5945E160E02B0C200706420 /* PBGitRepository.m */; };
4042
F5B721C40E05CF7E00AF29DC /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = F5B721C20E05CF7E00AF29DC /* MainMenu.xib */; };
@@ -55,6 +57,19 @@
5557
};
5658
/* End PBXContainerItemProxy section */
5759

60+
/* Begin PBXCopyFilesBuildPhase section */
61+
F580E6BD0E73329C009E2D3F /* CopyFiles */ = {
62+
isa = PBXCopyFilesBuildPhase;
63+
buildActionMask = 2147483647;
64+
dstPath = "";
65+
dstSubfolderSpec = 10;
66+
files = (
67+
F580E6B10E73328C009E2D3F /* Sparkle.framework in CopyFiles */,
68+
);
69+
runOnlyForDeploymentPostprocessing = 0;
70+
};
71+
/* End PBXCopyFilesBuildPhase section */
72+
5873
/* Begin PBXFileReference section */
5974
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
6075
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
@@ -104,6 +119,7 @@
104119
F57CC3900E05DDF2000472E2 /* PBEasyPipe.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBEasyPipe.m; sourceTree = "<group>"; };
105120
F57CC43F0E05E496000472E2 /* PBDetailController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBDetailController.h; sourceTree = "<group>"; };
106121
F57CC4400E05E496000472E2 /* PBDetailController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBDetailController.m; sourceTree = "<group>"; };
122+
F580E6AD0E733276009E2D3F /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
107123
F58A8F270E043698007E3FC0 /* commits.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; name = commits.css; path = html/commits.css; sourceTree = "<group>"; };
108124
F5945E150E02B0C200706420 /* PBGitRepository.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBGitRepository.h; sourceTree = "<group>"; };
109125
F5945E160E02B0C200706420 /* PBGitRepository.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitRepository.m; sourceTree = "<group>"; };
@@ -128,6 +144,7 @@
128144
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
129145
F56526240E03D85900F03B52 /* WebKit.framework in Frameworks */,
130146
911112370E5A097800BF76B4 /* Security.framework in Frameworks */,
147+
F580E6AE0E733276009E2D3F /* Sparkle.framework in Frameworks */,
131148
);
132149
runOnlyForDeploymentPostprocessing = 0;
133150
};
@@ -151,6 +168,7 @@
151168
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
152169
isa = PBXGroup;
153170
children = (
171+
F580E6AD0E733276009E2D3F /* Sparkle.framework */,
154172
F56526230E03D85900F03B52 /* WebKit.framework */,
155173
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
156174
);
@@ -332,6 +350,7 @@
332350
8D1107290486CEB800E47090 /* Resources */,
333351
8D11072C0486CEB800E47090 /* Sources */,
334352
8D11072E0486CEB800E47090 /* Frameworks */,
353+
F580E6BD0E73329C009E2D3F /* CopyFiles */,
335354
);
336355
buildRules = (
337356
);
@@ -478,6 +497,10 @@
478497
isa = XCBuildConfiguration;
479498
buildSettings = {
480499
COPY_PHASE_STRIP = NO;
500+
FRAMEWORK_SEARCH_PATHS = (
501+
"$(inherited)",
502+
"\"$(SRCROOT)\"",
503+
);
481504
GCC_DYNAMIC_NO_PIC = NO;
482505
GCC_ENABLE_FIX_AND_CONTINUE = YES;
483506
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
@@ -497,6 +520,10 @@
497520
isa = XCBuildConfiguration;
498521
buildSettings = {
499522
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
523+
FRAMEWORK_SEARCH_PATHS = (
524+
"$(inherited)",
525+
"\"$(SRCROOT)\"",
526+
);
500527
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
501528
GCC_MODEL_TUNING = G5;
502529
GCC_PRECOMPILE_PREFIX_HEADER = YES;

Info.plist

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@
3939
<key>CFBundleSignature</key>
4040
<string>????</string>
4141
<key>CFBundleVersion</key>
42-
<string>22</string>
42+
<string>0.2.1</string>
4343
<key>CFBundleShortVersionString</key>
44-
<string>0.2</string>
44+
<string>0.2.1</string>
4545
<key>NSMainNibFile</key>
4646
<string>MainMenu</string>
4747
<key>NSPrincipalClass</key>
4848
<string>NSApplication</string>
49+
<key>SUFeedURL</key>
50+
<string>http://github.com/pieter/gitx/tree/master/feed.xml?raw=true</string>
4951
</dict>
5052
</plist>

Sparkle.framework/Headers

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Headers

Sparkle.framework/Resources

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources

Sparkle.framework/Sparkle

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Sparkle
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// SUAppcast.h
3+
// Sparkle
4+
//
5+
// Created by Andy Matuschak on 3/12/06.
6+
// Copyright 2006 Andy Matuschak. All rights reserved.
7+
//
8+
9+
#ifndef SUAPPCAST_H
10+
#define SUAPPCAST_H
11+
12+
@class SUAppcastItem;
13+
@interface SUAppcast : NSObject {
14+
NSArray *items;
15+
NSString *userAgentString;
16+
id delegate;
17+
NSMutableData *incrementalData;
18+
}
19+
20+
- (void)fetchAppcastFromURL:(NSURL *)url;
21+
- (void)setDelegate:delegate;
22+
- (void)setUserAgentString:(NSString *)userAgentString;
23+
24+
- (NSArray *)items;
25+
26+
@end
27+
28+
@interface NSObject (SUAppcastDelegate)
29+
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
30+
- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
31+
@end
32+
33+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//
2+
// SUAppcastItem.h
3+
// Sparkle
4+
//
5+
// Created by Andy Matuschak on 3/12/06.
6+
// Copyright 2006 Andy Matuschak. All rights reserved.
7+
//
8+
9+
#ifndef SUAPPCASTITEM_H
10+
#define SUAPPCASTITEM_H
11+
12+
@interface SUAppcastItem : NSObject {
13+
NSString *title;
14+
NSDate *date;
15+
NSString *description;
16+
17+
NSURL *releaseNotesURL;
18+
19+
NSString *DSASignature;
20+
NSString *minimumSystemVersion;
21+
22+
NSURL *fileURL;
23+
NSString *versionString;
24+
NSString *displayVersionString;
25+
26+
NSDictionary *propertiesDictionary;
27+
}
28+
29+
// Initializes with data from a dictionary provided by the RSS class.
30+
- initWithDictionary:(NSDictionary *)dict;
31+
32+
- (NSString *)title;
33+
- (NSString *)versionString;
34+
- (NSString *)displayVersionString;
35+
- (NSDate *)date;
36+
- (NSString *)description;
37+
- (NSURL *)releaseNotesURL;
38+
- (NSURL *)fileURL;
39+
- (NSString *)DSASignature;
40+
- (NSString *)minimumSystemVersion;
41+
42+
// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
43+
- (NSDictionary *)propertiesDictionary;
44+
45+
@end
46+
47+
#endif

0 commit comments

Comments
 (0)