Skip to content

Commit

Permalink
Add Sparkle
Browse files Browse the repository at this point in the history
  • Loading branch information
dmdeller committed Dec 7, 2011
1 parent 8dfc549 commit 43c66fd
Show file tree
Hide file tree
Showing 103 changed files with 2,498 additions and 13 deletions.
33 changes: 32 additions & 1 deletion Launchpad Editor.xcodeproj/project.pbxproj
Expand Up @@ -21,6 +21,9 @@
C30BFBE4146C36D100395658 /* FMDatabaseAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = C30BFBE0146C36D100395658 /* FMDatabaseAdditions.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
C30BFBE5146C36D100395658 /* FMResultSet.m in Sources */ = {isa = PBXBuildFile; fileRef = C30BFBE2146C36D100395658 /* FMResultSet.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
C36B099F148FC0D2004B6998 /* HNToolbarController.m in Sources */ = {isa = PBXBuildFile; fileRef = C36B099E148FC0D2004B6998 /* HNToolbarController.m */; };
C36B09A2148FCA50004B6998 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C36B09A1148FCA50004B6998 /* Sparkle.framework */; };
C36B09A4148FCAC4004B6998 /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = C36B09A1148FCA50004B6998 /* Sparkle.framework */; };
C36B09A6148FD178004B6998 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = C36B09A5148FD178004B6998 /* dsa_pub.pem */; };
C371777D14897FEB00358BFA /* HNOutlineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C371777C14897FEB00358BFA /* HNOutlineViewController.m */; };
C3717783148E975700358BFA /* HNException.m in Sources */ = {isa = PBXBuildFile; fileRef = C3717782148E975600358BFA /* HNException.m */; };
C39EA2D6146CB281001356F5 /* HNLaunchpadPage.m in Sources */ = {isa = PBXBuildFile; fileRef = C39EA2D5146CB281001356F5 /* HNLaunchpadPage.m */; };
Expand All @@ -41,6 +44,19 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
C36B09A3148FCAAC004B6998 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
C36B09A4148FCAC4004B6998 /* Sparkle.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
C30BFBA5146C32AD00395658 /* Launchpad Editor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Launchpad Editor.app"; sourceTree = BUILT_PRODUCTS_DIR; };
C30BFBA9146C32AD00395658 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -72,7 +88,9 @@
C360687414856DC100B0FD54 /* Constants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Constants.h; sourceTree = "<group>"; };
C36B099D148FC0D2004B6998 /* HNToolbarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNToolbarController.h; sourceTree = "<group>"; };
C36B099E148FC0D2004B6998 /* HNToolbarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HNToolbarController.m; sourceTree = "<group>"; };
C371777B14897FEB00358BFA /* HNOutlineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; path = HNOutlineViewController.h; sourceTree = "<group>"; };
C36B09A1148FCA50004B6998 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
C36B09A5148FD178004B6998 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = "<group>"; };
C371777B14897FEB00358BFA /* HNOutlineViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNOutlineViewController.h; sourceTree = "<group>"; };
C371777C14897FEB00358BFA /* HNOutlineViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; path = HNOutlineViewController.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
C371777F1489940800358BFA /* Todo.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = Todo.txt; path = "Launchpad Editor/Todo.txt"; sourceTree = "<group>"; };
C3717781148E975600358BFA /* HNException.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HNException.h; sourceTree = "<group>"; };
Expand All @@ -98,6 +116,7 @@
files = (
C3E896C8146C472F0060AB93 /* libsqlite3.dylib in Frameworks */,
C30BFBAA146C32AD00395658 /* Cocoa.framework in Frameworks */,
C36B09A2148FCA50004B6998 /* Sparkle.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -137,6 +156,7 @@
C30BFBA8146C32AD00395658 /* Frameworks */ = {
isa = PBXGroup;
children = (
C36B09A1148FCA50004B6998 /* Sparkle.framework */,
C3E896C7146C472F0060AB93 /* libsqlite3.dylib */,
C30BFBA9146C32AD00395658 /* Cocoa.framework */,
C30BFBC7146C32AE00395658 /* SenTestingKit.framework */,
Expand Down Expand Up @@ -184,6 +204,7 @@
C30BFBB5146C32AD00395658 /* main.m */,
C30BFBB7146C32AD00395658 /* Launchpad Editor-Prefix.pch */,
C30BFBB8146C32AE00395658 /* Credits.rtf */,
C36B09A5148FD178004B6998 /* dsa_pub.pem */,
);
name = "Supporting Files";
sourceTree = "<group>";
Expand Down Expand Up @@ -257,6 +278,7 @@
C30BFBA1146C32AD00395658 /* Sources */,
C30BFBA2146C32AD00395658 /* Frameworks */,
C30BFBA3146C32AD00395658 /* Resources */,
C36B09A3148FCAAC004B6998 /* CopyFiles */,
);
buildRules = (
);
Expand Down Expand Up @@ -320,6 +342,7 @@
C30BFBB4146C32AD00395658 /* InfoPlist.strings in Resources */,
C30BFBBA146C32AE00395658 /* Credits.rtf in Resources */,
C30BFBC0146C32AE00395658 /* MainMenu.xib in Resources */,
C36B09A6148FD178004B6998 /* dsa_pub.pem in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -474,6 +497,10 @@
C30BFBD8146C32AE00395658 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Launchpad Editor/Launchpad Editor-Prefix.pch";
INFOPLIST_FILE = "Launchpad Editor/Launchpad Editor-Info.plist";
Expand All @@ -485,6 +512,10 @@
C30BFBD9146C32AE00395658 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(SRCROOT)\"",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Launchpad Editor/Launchpad Editor-Prefix.pch";
INFOPLIST_FILE = "Launchpad Editor/Launchpad Editor-Info.plist";
Expand Down
6 changes: 5 additions & 1 deletion Launchpad Editor/Launchpad Editor-Info.plist
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>0.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand All @@ -32,5 +32,9 @@
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>SUFeedURL</key>
<string>http://dmdeller.github.com/launchpad-editor/appcast.xml</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
</dict>
</plist>
20 changes: 20 additions & 0 deletions Launchpad Editor/dsa_pub.pem
@@ -0,0 +1,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ezcYbbEU4/mQC/8gst6hLfCof5Vq2a9oAimOzwbSoIL
IFydf0yNX2NUbZTRHgDZOVoMLVzASlvj5UirXw==
-----END PUBLIC KEY-----
84 changes: 73 additions & 11 deletions Launchpad Editor/en.lproj/MainMenu.xib
Expand Up @@ -74,6 +74,14 @@
<reference key="NSOnImage" ref="35465992"/>
<reference key="NSMixedImage" ref="502551668"/>
</object>
<object class="NSMenuItem" id="917738481">
<reference key="NSMenu" ref="110575045"/>
<string key="NSTitle">Check for Updates...</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="35465992"/>
<reference key="NSMixedImage" ref="502551668"/>
</object>
<object class="NSMenuItem" id="304266470">
<reference key="NSMenu" ref="110575045"/>
<bool key="NSIsDisabled">YES</bool>
Expand Down Expand Up @@ -1319,7 +1327,7 @@
<int key="NSToolbarDisplayMode">3</int>
<int key="NSToolbarSizeMode">1</int>
<dictionary class="NSMutableDictionary" key="NSToolbarIBIdentifiedItems">
<object class="NSToolbarItem" key="0FB5C21A-B918-4DD8-B401-53C7E728A2CC" id="1007862457">
<object class="NSToolbarItem" key="0FB5C21A-B918-4DD8-B401-53C7E728A2CC" id="706226365">
<object class="NSMutableString" key="NSToolbarItemIdentifier">
<characters key="NS.bytes">0FB5C21A-B918-4DD8-B401-53C7E728A2CC</characters>
</object>
Expand Down Expand Up @@ -1441,14 +1449,14 @@
</object>
</dictionary>
<array class="NSMutableArray" key="NSToolbarIBAllowedItems">
<reference ref="1007862457"/>
<reference ref="706226365"/>
<reference ref="1062925920"/>
<reference ref="737919873"/>
<reference ref="64678531"/>
<reference ref="883317070"/>
</array>
<array key="NSToolbarIBDefaultItems">
<reference ref="1007862457"/>
<reference ref="706226365"/>
<reference ref="737919873"/>
</array>
<array key="NSToolbarIBSelectableItems" id="0"/>
Expand Down Expand Up @@ -1676,9 +1684,12 @@
<object class="NSCustomObject" id="934697539">
<string key="NSClassName">HNOutlineViewController</string>
</object>
<object class="NSCustomObject" id="40712694">
<object class="NSCustomObject" id="945705784">
<string key="NSClassName">HNToolbarController</string>
</object>
<object class="NSCustomObject" id="169131242">
<string key="NSClassName">SUUpdater</string>
</object>
</array>
<object class="IBObjectContainer" key="IBDocument.Objects">
<array class="NSMutableArray" key="connectionRecords">
Expand Down Expand Up @@ -2413,19 +2424,27 @@
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">syncButton</string>
<reference key="source" ref="40712694"/>
<reference key="destination" ref="1007862457"/>
<reference key="source" ref="945705784"/>
<reference key="destination" ref="706226365"/>
</object>
<int key="connectionID">579</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">appDelegate</string>
<reference key="source" ref="40712694"/>
<reference key="source" ref="945705784"/>
<reference key="destination" ref="976324537"/>
</object>
<int key="connectionID">580</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">checkForUpdates:</string>
<reference key="source" ref="169131242"/>
<reference key="destination" ref="917738481"/>
</object>
<int key="connectionID">584</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
Expand Down Expand Up @@ -2746,6 +2765,7 @@
<reference ref="1046388886"/>
<reference ref="1056857174"/>
<reference ref="342932134"/>
<reference ref="917738481"/>
</array>
<reference key="parent" ref="694149608"/>
</object>
Expand Down Expand Up @@ -3484,7 +3504,7 @@
<reference ref="737919873"/>
<reference ref="64678531"/>
<reference ref="883317070"/>
<reference ref="1007862457"/>
<reference ref="706226365"/>
</array>
<reference key="parent" ref="972006081"/>
</object>
Expand Down Expand Up @@ -3515,14 +3535,24 @@
</object>
<object class="IBObjectRecord">
<int key="objectID">577</int>
<reference key="object" ref="1007862457"/>
<reference key="object" ref="706226365"/>
<reference key="parent" ref="657652678"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">578</int>
<reference key="object" ref="40712694"/>
<reference key="object" ref="945705784"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">582</int>
<reference key="object" ref="169131242"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">583</int>
<reference key="object" ref="917738481"/>
<reference key="parent" ref="110575045"/>
</object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
Expand Down Expand Up @@ -3687,6 +3717,8 @@
<boolean value="NO" key="577.toolbarItem.selectable"/>
<string key="578.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="58.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="582.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="583.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="72.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="73.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="74.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
Expand All @@ -3703,7 +3735,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">581</int>
<int key="maxID">584</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand Down Expand Up @@ -3816,6 +3848,36 @@
<string key="minorKey">./Classes/NSDocument.h</string>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">SUUpdater</string>
<string key="superclassName">NSObject</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">checkForUpdates:</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
<string key="NS.key.0">checkForUpdates:</string>
<object class="IBActionInfo" key="NS.object.0">
<string key="name">checkForUpdates:</string>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
<string key="NS.key.0">delegate</string>
<string key="NS.object.0">id</string>
</object>
<object class="NSMutableDictionary" key="toOneOutletInfosByName">
<string key="NS.key.0">delegate</string>
<object class="IBToOneOutletInfo" key="NS.object.0">
<string key="name">delegate</string>
<string key="candidateClassName">id</string>
</object>
</object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/SUUpdater.h</string>
</object>
</object>
</array>
</object>
<int key="IBDocument.localizationMode">0</int>
Expand Down
1 change: 1 addition & 0 deletions Sparkle.framework/Headers
1 change: 1 addition & 0 deletions Sparkle.framework/Resources
1 change: 1 addition & 0 deletions Sparkle.framework/Sparkle
33 changes: 33 additions & 0 deletions Sparkle.framework/Versions/A/Headers/SUAppcast.h
@@ -0,0 +1,33 @@
//
// SUAppcast.h
// Sparkle
//
// Created by Andy Matuschak on 3/12/06.
// Copyright 2006 Andy Matuschak. All rights reserved.
//

#ifndef SUAPPCAST_H
#define SUAPPCAST_H

@class SUAppcastItem;
@interface SUAppcast : NSObject {
NSArray *items;
NSString *userAgentString;
id delegate;
NSMutableData *incrementalData;
}

- (void)fetchAppcastFromURL:(NSURL *)url;
- (void)setDelegate:delegate;
- (void)setUserAgentString:(NSString *)userAgentString;

- (NSArray *)items;

@end

@interface NSObject (SUAppcastDelegate)
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
@end

#endif

0 comments on commit 43c66fd

Please sign in to comment.