diff --git a/Configurations/ConfigBinaryDelta.xcconfig b/Configurations/ConfigBinaryDelta.xcconfig
new file mode 100644
index 00000000..a53f74cb
--- /dev/null
+++ b/Configurations/ConfigBinaryDelta.xcconfig
@@ -0,0 +1,9 @@
+// BinaryDelta tool only
+
+PRODUCT_NAME = BinaryDelta
+GCC_PREFIX_HEADER =
+SDKROOT = macosx10.5
+MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.5
+MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5
+MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.5
+MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.5
diff --git a/Configurations/ConfigBinaryDeltaDebug.xcconfig b/Configurations/ConfigBinaryDeltaDebug.xcconfig
new file mode 100644
index 00000000..170c9756
--- /dev/null
+++ b/Configurations/ConfigBinaryDeltaDebug.xcconfig
@@ -0,0 +1,5 @@
+#include "ConfigCommon.xcconfig"
+#include "ConfigCommonDebug.xcconfig"
+#include "ConfigBinaryDelta.xcconfig"
+
+OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG
diff --git a/Configurations/ConfigBinaryDeltaRelease.xcconfig b/Configurations/ConfigBinaryDeltaRelease.xcconfig
new file mode 100644
index 00000000..cb462259
--- /dev/null
+++ b/Configurations/ConfigBinaryDeltaRelease.xcconfig
@@ -0,0 +1,3 @@
+#include "ConfigCommon.xcconfig"
+#include "ConfigCommonRelease.xcconfig"
+#include "ConfigBinaryDelta.xcconfig"
diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig
index 7e3307c6..3be0cb86 100644
--- a/Configurations/ConfigCommon.xcconfig
+++ b/Configurations/ConfigCommon.xcconfig
@@ -3,7 +3,7 @@
PREBINDING = NO
ZERO_LINK = NO
CURRENT_PROJECT_VERSION = 1.5
-SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk
+SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk
MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.4
MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5
MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.4
@@ -14,8 +14,9 @@ GCC_DEBUGGING_SYMBOLS = full
GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_PREFIX_HEADER = $(SDKROOT)/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h
GCC_FAST_OBJC_DISPATCH = YES
-GCC_VERSION = 4.0;
-ARCHS = ppc i386
+GCC_ENABLE_PASCAL_STRINGS = NO
+ARCHS = ppc i386 x86_64
+GCC_VERSION = com.apple.compilers.llvm.clang.1_0
// Enable warnings
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
@@ -37,4 +38,13 @@ GCC_WARN_UNKNOWN_PRAGMAS = YES
GCC_WARN_UNUSED_VARIABLE = YES
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
-WARNING_CFLAGS = -Wall
+GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
+GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
+GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES
+GCC_WARN_UNUSED_FUNCTION = YES
+GCC_WARN_UNUSED_LABEL = YES
+GCC_WARN_UNUSED_VALUE = YES
+GCC_WARN_UNUSED_PARAMETER = YES
+GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
+GCC_WARN_UNDECLARED_SELECTOR = YES
+WARNING_CFLAGS = -Wall -Wno-unused-parameter -Werror -Wundef -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-format-attribute -Wpacked -Wredundant-decls -Winline -Wdisabled-optimization -Wformat=2 -Winvalid-pch
diff --git a/Configurations/ConfigCommonDebug.xcconfig b/Configurations/ConfigCommonDebug.xcconfig
index fdf006d6..36003c98 100644
--- a/Configurations/ConfigCommonDebug.xcconfig
+++ b/Configurations/ConfigCommonDebug.xcconfig
@@ -3,5 +3,8 @@
GCC_OPTIMIZATION_LEVEL = 0
DEBUG_INFORMATION_FORMAT = dwarf
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
-SPARKLE_EXTRA_DEBUG = -DDEBUG -fstack-protector -D_FORTIFY_SOURCE=2
-OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG)
\ No newline at end of file
+SPARKLE_EXTRA_DEBUG_10_5_ONLY = -fstack-protector -D_FORTIFY_SOURCE=2
+SPARKLE_EXTRA_DEBUG = -DDEBUG
+OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG)
+
+// Add $(SPARKLE_EXTRA_DEBUG_10_5_ONLY) to SPARKLE_EXTRA_DEBUG if your deployment is 10.5 or greater.
\ No newline at end of file
diff --git a/Configurations/ConfigUnitTest.xcconfig b/Configurations/ConfigUnitTest.xcconfig
new file mode 100644
index 00000000..ab0124b0
--- /dev/null
+++ b/Configurations/ConfigUnitTest.xcconfig
@@ -0,0 +1,9 @@
+// Unit Test only
+
+INFOPLIST_FILE = Tests/Sparkle Unit Tests-Info.plist
+OTHER_LDFLAGS = -framework Cocoa -framework SenTestingKit
+PRODUCT_NAME = Sparkle Unit Tests
+WRAPPER_EXTENSION = octest
+FRAMEWORK_SEARCH_PATHS = $(DEVELOPER_LIBRARY_DIR)/Frameworks
+GCC_PREFIX_HEADER = $(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h
+GCC_PRECOMPILE_PREFIX_HEADER = YES
diff --git a/Configurations/ConfigUnitTestDebug.xcconfig b/Configurations/ConfigUnitTestDebug.xcconfig
new file mode 100644
index 00000000..354e9361
--- /dev/null
+++ b/Configurations/ConfigUnitTestDebug.xcconfig
@@ -0,0 +1,3 @@
+#include "ConfigCommon.xcconfig"
+#include "ConfigCommonDebug.xcconfig"
+#include "ConfigUnitTest.xcconfig"
diff --git a/Configurations/ConfigUnitTestRelease.xcconfig b/Configurations/ConfigUnitTestRelease.xcconfig
new file mode 100644
index 00000000..53dd6b93
--- /dev/null
+++ b/Configurations/ConfigUnitTestRelease.xcconfig
@@ -0,0 +1,3 @@
+#include "ConfigCommon.xcconfig"
+#include "ConfigCommonRelease.xcconfig"
+#include "ConfigUnitTest.xcconfig"
diff --git a/Configurations/ConfigUnitTestReleaseGCSupport.xcconfig b/Configurations/ConfigUnitTestReleaseGCSupport.xcconfig
new file mode 100644
index 00000000..1b648d16
--- /dev/null
+++ b/Configurations/ConfigUnitTestReleaseGCSupport.xcconfig
@@ -0,0 +1,3 @@
+#include "ConfigUnitTestRelease.xcconfig"
+
+GCC_ENABLE_OBJC_GC = required
\ No newline at end of file
diff --git a/License.txt b/License.txt
index f81c9d4f..978193f9 100644
--- a/License.txt
+++ b/License.txt
@@ -123,4 +123,31 @@ Original SSLeay License
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
-*/
\ No newline at end of file
+*/
+
+License for bspatch.c and bsdiff.c, from bsdiff 4.3 (:
+/*-
+ * Copyright 2003-2005 Colin Percival
+ * All rights reserved
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted providing that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
diff --git a/NTSynchronousTask.h b/NTSynchronousTask.h
index 7f2a14d1..e8510731 100644
--- a/NTSynchronousTask.h
+++ b/NTSynchronousTask.h
@@ -11,6 +11,7 @@
@interface NTSynchronousTask : NSObject
{
+@private
NSTask *mv_task;
NSPipe *mv_outputPipe;
NSPipe *mv_inputPipe;
diff --git a/NTSynchronousTask.m b/NTSynchronousTask.m
index b64c2dab..b3b7135f 100644
--- a/NTSynchronousTask.m
+++ b/NTSynchronousTask.m
@@ -13,154 +13,8 @@
#import "SUVersionComparisonProtocol.h"
#import "NTSynchronousTask.h"
-@interface NTSynchronousTask (Private)
-- (void)run:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
-
-- (NSTask *)task;
-- (void)setTask:(NSTask *)theTask;
-
-- (NSPipe *)outputPipe;
-- (void)setOutputPipe:(NSPipe *)theOutputPipe;
-
-- (NSPipe *)inputPipe;
-- (void)setInputPipe:(NSPipe *)theInputPipe;
-
-- (NSData *)output;
-- (void)setOutput:(NSData *)theOutput;
-
-- (BOOL)done;
-- (void)setDone:(BOOL)flag;
-
-- (int)result;
-- (void)setResult:(int)theResult;
-@end
-
@implementation NTSynchronousTask
-- (id)init;
-{
- self = [super init];
- if (self)
- {
- [self setTask:[[[NSTask alloc] init] autorelease]];
- [self setOutputPipe:[[[NSPipe alloc] init] autorelease]];
- [self setInputPipe:[[[NSPipe alloc] init] autorelease]];
-
- [[self task] setStandardInput:[self inputPipe]];
- [[self task] setStandardOutput:[self outputPipe]];
- [[self task] setStandardError:[self outputPipe]];
- }
-
- return self;
-}
-
-//----------------------------------------------------------
-// dealloc
-//----------------------------------------------------------
-- (void)dealloc
-{
- [[NSNotificationCenter defaultCenter] removeObserver:self];
-
- [self setTask:nil];
- [self setOutputPipe:nil];
- [self setInputPipe:nil];
- [self setOutput:nil];
-
- [super dealloc];
-}
-
-+(int) task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input output: (NSData**)outData
-{
- // we need this wacky pool here, otherwise we run out of pipes, the pipes are internally autoreleased
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- int taskResult = 0;
- if( outData )
- *outData = nil;
-
- NS_DURING
- {
- NTSynchronousTask* task = [[NTSynchronousTask alloc] init];
-
- [task run:toolPath directory:currentDirectory withArgs:args input:input];
-
- taskResult = [task result];
- if( outData )
- *outData = [[task output] retain];
-
- [task release];
- }
- NS_HANDLER;
- taskResult = errCppGeneral;
- NS_ENDHANDLER;
-
- [pool drain];
-
- // retained above
- if( outData )
- [*outData autorelease];
-
- return taskResult;
-}
-
-@end
-
-@implementation NTSynchronousTask (Private)
-
-- (void)run:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
-{
- BOOL success = NO;
-
- if (currentDirectory)
- [[self task] setCurrentDirectoryPath: currentDirectory];
-
- [[self task] setLaunchPath:toolPath];
- [[self task] setArguments:args];
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(taskOutputAvailable:)
- name:NSFileHandleReadToEndOfFileCompletionNotification
- object:[[self outputPipe] fileHandleForReading]];
-
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(taskDidTerminate:)
- name:NSTaskDidTerminateNotification
- object:[self task]];
-
- [[[self outputPipe] fileHandleForReading] readToEndOfFileInBackgroundAndNotifyForModes:[NSArray arrayWithObjects:NSDefaultRunLoopMode, NSModalPanelRunLoopMode, NSEventTrackingRunLoopMode, nil]];
-
- NS_DURING
- [[self task] launch];
- success = YES;
- NS_HANDLER
- ;
- NS_ENDHANDLER
-
- if (success)
- {
- if (input)
- {
- // feed the running task our input
- [[[self inputPipe] fileHandleForWriting] writeData:input];
- [[[self inputPipe] fileHandleForWriting] closeFile];
- }
-
- // loop until we are done receiving the data
- if (![self done])
- {
- double resolution = 1;
- BOOL isRunning;
- NSDate* next;
-
- do {
- next = [NSDate dateWithTimeIntervalSinceNow:resolution];
-
- isRunning = [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode
- beforeDate:next];
- } while (isRunning && ![self done]);
- }
- }
-}
-
//----------------------------------------------------------
// task
//----------------------------------------------------------
@@ -251,10 +105,6 @@
mv_result = theResult;
}
-@end
-
-@implementation NTSynchronousTask (Notifications)
-
- (void)taskOutputAvailable:(NSNotification*)note
{
[self setOutput:[[note userInfo] objectForKey:NSFileHandleNotificationDataItem]];
@@ -267,6 +117,117 @@
[self setResult:[[self task] terminationStatus]];
}
+- (id)init;
+{
+ self = [super init];
+ if (self)
+ {
+ [self setTask:[[[NSTask alloc] init] autorelease]];
+ [self setOutputPipe:[[[NSPipe alloc] init] autorelease]];
+ [self setInputPipe:[[[NSPipe alloc] init] autorelease]];
+
+ [[self task] setStandardInput:[self inputPipe]];
+ [[self task] setStandardOutput:[self outputPipe]];
+ }
+
+ return self;
+}
+
+//----------------------------------------------------------
+// dealloc
+//----------------------------------------------------------
+- (void)dealloc
+{
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
+
+ [mv_task release];
+ [mv_outputPipe release];
+ [mv_inputPipe release];
+ [mv_output release];
+
+ [super dealloc];
+}
+
+- (void)run:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
+{
+ BOOL success = NO;
+
+ if (currentDirectory)
+ [[self task] setCurrentDirectoryPath: currentDirectory];
+
+ [[self task] setLaunchPath:toolPath];
+ [[self task] setArguments:args];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(taskOutputAvailable:)
+ name:NSFileHandleReadToEndOfFileCompletionNotification
+ object:[[self outputPipe] fileHandleForReading]];
+
+ [[NSNotificationCenter defaultCenter] addObserver:self
+ selector:@selector(taskDidTerminate:)
+ name:NSTaskDidTerminateNotification
+ object:[self task]];
+
+ [[[self outputPipe] fileHandleForReading] readToEndOfFileInBackgroundAndNotifyForModes:[NSArray arrayWithObjects:NSDefaultRunLoopMode, NSModalPanelRunLoopMode, NSEventTrackingRunLoopMode, nil]];
+
+ @try
+ {
+ [[self task] launch];
+ success = YES;
+ }
+ @catch (NSException *localException) { }
+
+ if (success)
+ {
+ if (input)
+ {
+ // feed the running task our input
+ [[[self inputPipe] fileHandleForWriting] writeData:input];
+ [[[self inputPipe] fileHandleForWriting] closeFile];
+ }
+
+ // loop until we are done receiving the data
+ if (![self done])
+ {
+ double resolution = 1;
+ BOOL isRunning;
+ NSDate* next;
+
+ do {
+ next = [NSDate dateWithTimeIntervalSinceNow:resolution];
+
+ isRunning = [[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode
+ beforeDate:next];
+ } while (isRunning && ![self done]);
+ }
+ }
+}
+
++ (NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input;
+{
+ // we need this wacky pool here, otherwise we run out of pipes, the pipes are internally autoreleased
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ NSData* result=nil;
+
+ @try
+ {
+ NTSynchronousTask* task = [[NTSynchronousTask alloc] init];
+
+ [task run:toolPath directory:currentDirectory withArgs:args input:input];
+
+ if ([task result] == 0)
+ result = [[task output] retain];
+
+ [task release];
+ }
+ @catch (NSException *localException) { }
+
+ [pool drain];
+
+ // retained above
+ [result autorelease];
+
+ return result;
+}
+
@end
-
-
diff --git a/SUAppcast.h b/SUAppcast.h
index a29492c5..5a60d2fd 100644
--- a/SUAppcast.h
+++ b/SUAppcast.h
@@ -10,11 +10,14 @@
#define SUAPPCAST_H
@class SUAppcastItem;
-@interface SUAppcast : NSObject {
+@interface SUAppcast : NSObject
+{
+@private
NSArray *items;
NSString *userAgentString;
id delegate;
NSString *downloadFilename;
+ NSURLDownload *download;
}
- (void)fetchAppcastFromURL:(NSURL *)url;
diff --git a/SUAppcast.m b/SUAppcast.m
index 9e261e52..b12ac78f 100644
--- a/SUAppcast.m
+++ b/SUAppcast.m
@@ -15,6 +15,22 @@
#import "SUConstants.h"
#import "SULog.h"
+@interface NSXMLElement (SUAppcastExtensions)
+- (NSDictionary *)attributesAsDictionary;
+@end
+
+@implementation NSXMLElement (SUAppcastExtensions)
+- (NSDictionary *)attributesAsDictionary
+{
+ NSEnumerator *attributeEnum = [[self attributes] objectEnumerator];
+ NSXMLNode *attribute;
+ NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
+
+ while ((attribute = [attributeEnum nextObject]))
+ [dictionary setObject:[attribute stringValue] forKey:[attribute name]];
+ return dictionary;
+}
+@end
@interface SUAppcast (Private)
- (void)reportError:(NSError *)error;
@@ -31,6 +47,8 @@
userAgentString = nil;
[downloadFilename release];
downloadFilename = nil;
+ [download release];
+ download = nil;
[super dealloc];
}
@@ -46,44 +64,50 @@
if (userAgentString)
[request setValue:userAgentString forHTTPHeaderField:@"User-Agent"];
- NSURLDownload *download = [[[NSURLDownload alloc] initWithRequest:request delegate:self] autorelease];
- CFRetain(download);
+ download = [[NSURLDownload alloc] initWithRequest:request delegate:self];
}
-- (void)download:(NSURLDownload *)download decideDestinationWithSuggestedFilename:(NSString *)filename
+- (void)download:(NSURLDownload *)aDownload decideDestinationWithSuggestedFilename:(NSString *)filename
{
- NSString *destinationFilename = [NSTemporaryDirectory() stringByAppendingPathComponent:filename];
- [download setDestination:destinationFilename allowOverwrite:NO];
+ NSString* destinationFilename = NSTemporaryDirectory();
+ if (destinationFilename)
+ {
+ destinationFilename = [destinationFilename stringByAppendingPathComponent:filename];
+ [download setDestination:destinationFilename allowOverwrite:NO];
+ }
}
-- (void)download:(NSURLDownload *)download didCreateDestination:(NSString *)path
+- (void)download:(NSURLDownload *)aDownload didCreateDestination:(NSString *)path
{
[downloadFilename release];
downloadFilename = [path copy];
}
-- (void)downloadDidFinish:(NSURLDownload *)download
-{
- CFRelease(download);
-
+- (void)downloadDidFinish:(NSURLDownload *)aDownload
+{
NSError *error = nil;
- NSXMLDocument *document = [[NSXMLDocument alloc] initWithContentsOfURL:[NSURL fileURLWithPath:downloadFilename] options:0 error:&error];
+
+ NSXMLDocument *document = nil;
BOOL failed = NO;
NSArray *xmlItems = nil;
NSMutableArray *appcastItems = [NSMutableArray array];
-
- #if DEBUG
- NSString* debugXML = [NSString stringWithContentsOfFile: downloadFilename encoding: NSUTF8StringEncoding error: nil];
- SULog(@"<<<< XML >>>>\n%@\n>>>> XML <<<<", debugXML);
- #endif
+
+ if (downloadFilename)
+ {
+ document = [[[NSXMLDocument alloc] initWithContentsOfURL:[NSURL fileURLWithPath:downloadFilename] options:0 error:&error] autorelease];
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
- [[NSFileManager defaultManager] removeFileAtPath:downloadFilename handler:nil];
+ [[NSFileManager defaultManager] removeFileAtPath:downloadFilename handler:nil];
#else
- [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:NULL];
+ [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:nil];
#endif
- [downloadFilename release];
- downloadFilename = nil;
+ [downloadFilename release];
+ downloadFilename = nil;
+ }
+ else
+ {
+ failed = YES;
+ }
if (nil == document)
{
@@ -137,12 +161,7 @@
if ([name isEqualToString:@"enclosure"])
{
// enclosure is flattened as a separate dictionary for some reason
- NSEnumerator *attributeEnum = [[(NSXMLElement *)node attributes] objectEnumerator];
- NSXMLNode *attribute;
- NSMutableDictionary *encDict = [NSMutableDictionary dictionary];
-
- while ((attribute = [attributeEnum nextObject]))
- [encDict setObject:[attribute stringValue] forKey:[attribute name]];
+ NSDictionary *encDict = [(NSXMLElement *)node attributesAsDictionary];
[dict setObject:encDict forKey:@"enclosure"];
}
@@ -153,19 +172,29 @@
if (date)
[dict setObject:date forKey:name];
}
- else if (name != nil)
- {
+ else if ([name isEqualToString:@"sparkle:deltas"])
+ {
+ NSMutableArray *deltas = [NSMutableArray array];
+ NSEnumerator *childEnum = [[node children] objectEnumerator];
+ NSXMLNode *child;
+ while ((child = [childEnum nextObject])) {
+ if ([[child name] isEqualToString:@"enclosure"])
+ [deltas addObject:[(NSXMLElement *)child attributesAsDictionary]];
+ }
+ [dict setObject:deltas forKey:@"deltas"];
+ }
+ else if (name != nil)
+ {
// add all other values as strings
[dict setObject:[[node stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] forKey:name];
}
}
NSString *errString;
- SUAppcastItem *anItem = [[SUAppcastItem alloc] initWithDictionary:dict failureReason:&errString];
+ SUAppcastItem *anItem = [[[SUAppcastItem alloc] initWithDictionary:dict failureReason:&errString] autorelease];
if (anItem)
{
[appcastItems addObject:anItem];
- [anItem release];
}
else
{
@@ -175,8 +204,6 @@
[dict removeAllObjects];
}
}
-
- [document release];
if ([appcastItems count])
{
@@ -195,15 +222,14 @@
}
}
-- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error
+- (void)download:(NSURLDownload *)aDownload didFailWithError:(NSError *)error
{
- CFRelease(download);
if (downloadFilename)
{
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
[[NSFileManager defaultManager] removeFileAtPath:downloadFilename handler:nil];
#else
- [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:NULL];
+ [[NSFileManager defaultManager] removeItemAtPath:downloadFilename error:nil];
#endif
}
[downloadFilename release];
@@ -212,7 +238,7 @@
[self reportError:error];
}
-- (NSURLRequest *)download:(NSURLDownload *)download willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse
+- (NSURLRequest *)download:(NSURLDownload *)aDownload willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)redirectResponse
{
return request;
}
@@ -237,7 +263,7 @@
NSXMLElement *node;
NSMutableArray *languages = [NSMutableArray array];
NSString *lang;
- NSInteger i;
+ NSUInteger i;
while ((node = [nodeEnum nextObject]))
{
lang = [[node attributeForName:@"xml:lang"] stringValue];
diff --git a/SUAppcastItem.h b/SUAppcastItem.h
index 6cbd4748..d1067321 100644
--- a/SUAppcastItem.h
+++ b/SUAppcastItem.h
@@ -9,7 +9,9 @@
#ifndef SUAPPCASTITEM_H
#define SUAPPCASTITEM_H
-@interface SUAppcastItem : NSObject {
+@interface SUAppcastItem : NSObject
+{
+@private
NSString *title;
NSDate *date;
NSString *itemDescription;
@@ -22,7 +24,9 @@
NSURL *fileURL;
NSString *versionString;
NSString *displayVersionString;
-
+
+ NSDictionary *deltaUpdates;
+
NSDictionary *propertiesDictionary;
NSURL *infoURL; // UK 2007-08-31
@@ -41,6 +45,8 @@
- (NSURL *)fileURL;
- (NSString *)DSASignature;
- (NSString *)minimumSystemVersion;
+- (NSDictionary *)deltaUpdates;
+- (BOOL)isDeltaUpdate;
// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
- (NSDictionary *)propertiesDictionary;
diff --git a/SUAppcastItem.m b/SUAppcastItem.m
index d7a211bf..57680557 100644
--- a/SUAppcastItem.m
+++ b/SUAppcastItem.m
@@ -116,6 +116,20 @@
infoURL = [aFileURL copy];
}
+- (NSDictionary *)deltaUpdates { return [[deltaUpdates retain] autorelease]; }
+
+- (void)setDeltaUpdates:(NSDictionary *)updates
+{
+ if (deltaUpdates == updates) return;
+ [deltaUpdates release];
+ deltaUpdates = [updates copy];
+}
+
+- (BOOL)isDeltaUpdate
+{
+ return [[propertiesDictionary objectForKey:@"enclosure"] objectForKey:@"sparkle:deltaFrom"] != nil;
+}
+
- initWithDictionary:(NSDictionary *)dict
{
return [self initWithDictionary:dict failureReason:nil];
@@ -210,6 +224,26 @@
[self setReleaseNotesURL:[NSURL URLWithString:[self itemDescription]]];
else
[self setReleaseNotesURL:nil];
+
+ if ([dict objectForKey:@"deltas"])
+ {
+ NSMutableDictionary *deltas = [NSMutableDictionary dictionary];
+ NSArray *deltaDictionaries = [dict objectForKey:@"deltas"];
+ NSEnumerator *deltaDictionariesEnum = [deltaDictionaries objectEnumerator];
+ NSDictionary *deltaDictionary;
+ while ((deltaDictionary = [deltaDictionariesEnum nextObject]))
+ {
+ NSMutableDictionary *fakeAppCastDict = [dict mutableCopy];
+ [fakeAppCastDict removeObjectForKey:@"deltas"];
+ [fakeAppCastDict setObject:deltaDictionary forKey:@"enclosure"];
+ SUAppcastItem *deltaItem = [[[self class] alloc] initWithDictionary:fakeAppCastDict];
+ [fakeAppCastDict release];
+
+ [deltas setObject:deltaItem forKey:[deltaDictionary objectForKey:@"sparkle:deltaFrom"]];
+ [deltaItem release];
+ }
+ [self setDeltaUpdates:deltas];
+ }
}
return self;
}
@@ -221,6 +255,7 @@
[self setItemDescription:nil];
[self setReleaseNotesURL:nil];
[self setDSASignature:nil];
+ [self setMinimumSystemVersion: nil];
[self setFileURL:nil];
[self setVersionString:nil];
[self setDisplayVersionString:nil];
diff --git a/SUAutomaticUpdateDriver.h b/SUAutomaticUpdateDriver.h
index f63c194e..266f6b69 100644
--- a/SUAutomaticUpdateDriver.h
+++ b/SUAutomaticUpdateDriver.h
@@ -13,7 +13,9 @@
#import "SUBasicUpdateDriver.h"
@class SUAutomaticUpdateAlert;
-@interface SUAutomaticUpdateDriver : SUBasicUpdateDriver {
+@interface SUAutomaticUpdateDriver : SUBasicUpdateDriver
+{
+@private
BOOL postponingInstallation, showErrors;
SUAutomaticUpdateAlert *alert;
}
diff --git a/SUBasicUpdateDriver.h b/SUBasicUpdateDriver.h
index 21317496..ecdc769b 100644
--- a/SUBasicUpdateDriver.h
+++ b/SUBasicUpdateDriver.h
@@ -15,6 +15,7 @@
@class SUAppcastItem, SUUnarchiver, SUAppcast, SUUnarchiver, SUHost;
@interface SUBasicUpdateDriver : SUUpdateDriver {
SUAppcastItem *updateItem;
+ SUAppcastItem *nonDeltaUpdateItem;
NSURLDownload *download;
NSString *downloadPath;
@@ -43,6 +44,7 @@
- (void)extractUpdate;
- (void)unarchiverDidFinish:(SUUnarchiver *)ua;
- (void)unarchiverDidFail:(SUUnarchiver *)ua;
+- (void)failedToApplyDeltaUpdate;
- (void)installUpdate;
- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error;
diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m
index 5b6c3b6a..c4ee5df1 100644
--- a/SUBasicUpdateDriver.m
+++ b/SUBasicUpdateDriver.m
@@ -17,6 +17,7 @@
#import "SULog.h"
#import "SUPlainInstaller.h"
#import "SUPlainInstallerInternals.h"
+#import "SUBinaryDeltaCommon.h"
@implementation SUBasicUpdateDriver
@@ -39,7 +40,7 @@
[appcast fetchAppcastFromURL:URL];
}
-- (id )_versionComparator
+- (id )versionComparator
{
id comparator = nil;
@@ -56,7 +57,7 @@
- (BOOL)isItemNewer:(SUAppcastItem *)ui
{
- return [[self _versionComparator] compareVersion:[host version] toVersion:[ui versionString]] == NSOrderedAscending;
+ return [[self versionComparator] compareVersion:[host version] toVersion:[ui versionString]] == NSOrderedAscending;
}
- (BOOL)hostSupportsItem:(SUAppcastItem *)ui
@@ -69,7 +70,7 @@
{
NSString *skippedVersion = [host objectForUserDefaultsKey:SUSkippedVersionKey];
if (skippedVersion == nil) { return NO; }
- return [[self _versionComparator] compareVersion:[ui versionString] toVersion:skippedVersion] != NSOrderedDescending;
+ return [[self versionComparator] compareVersion:[ui versionString] toVersion:skippedVersion] != NSOrderedDescending;
}
- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui
@@ -96,10 +97,18 @@
do {
item = [updateEnumerator nextObject];
} while (item && ![self hostSupportsItem:item]);
+
+ if (binaryDeltaSupported()) {
+ SUAppcastItem *deltaUpdateItem = [[item deltaUpdates] objectForKey:[host version]];
+ if (deltaUpdateItem && [self hostSupportsItem:deltaUpdateItem]) {
+ nonDeltaUpdateItem = [item retain];
+ item = deltaUpdateItem;
+ }
+ }
}
updateItem = [item retain];
- CFRelease(ac); // Remember that we're explicitly managing the memory of the appcast.
+ if (ac) { CFRelease(ac); } // Remember that we're explicitly managing the memory of the appcast.
if (updateItem == nil) { [self didNotFindUpdate]; return; }
if ([self itemContainsValidUpdate:updateItem])
@@ -110,7 +119,7 @@
- (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error
{
- CFRelease(ac); // Remember that we're explicitly managing the memory of the appcast.
+ if (ac) { CFRelease(ac); } // Remember that we're explicitly managing the memory of the appcast.
[self abortUpdateWithError:error];
}
@@ -206,7 +215,7 @@
- (void)extractUpdate
{
- SUUnarchiver *unarchiver = [SUUnarchiver unarchiverForPath:downloadPath];
+ SUUnarchiver *unarchiver = [SUUnarchiver unarchiverForPath:downloadPath updatingHost:host];
if (!unarchiver)
{
SULog(@"Sparkle Error: No valid unarchiver for %@!", downloadPath);
@@ -218,6 +227,16 @@
[unarchiver start];
}
+- (void)failedToApplyDeltaUpdate
+{
+ // When a delta update fails to apply we fall back on updating via a full install.
+ [updateItem release];
+ updateItem = nonDeltaUpdateItem;
+ nonDeltaUpdateItem = nil;
+
+ [self downloadUpdate];
+}
+
- (void)unarchiverDidFinish:(SUUnarchiver *)ua
{
if (ua) { CFRelease(ua); }
@@ -227,6 +246,12 @@
- (void)unarchiverDidFail:(SUUnarchiver *)ua
{
if (ua) { CFRelease(ua); }
+
+ if ([updateItem isDeltaUpdate]) {
+ [self failedToApplyDeltaUpdate];
+ return;
+ }
+
[self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:[NSDictionary dictionaryWithObject:SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil) forKey:NSLocalizedDescriptionKey]]];
}
@@ -236,10 +261,12 @@
{
if ([[updater delegate] respondsToSelector:@selector(updater:willInstallUpdate:)])
[[updater delegate] updater:updater willInstallUpdate:updateItem];
+
// Copy the relauncher into a temporary directory so we can get to it after the new version's installed.
- NSString *relaunchPathToCopy = [[NSBundle bundleForClass:[self class]] pathForResource:@"finish_installation" ofType:@"app"];
- NSString *appSupportFolder = [[@"~/Library/Application Support/" stringByExpandingTildeInPath] stringByAppendingPathComponent: [host name]];
- NSString *targetPath = [appSupportFolder stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]];
+ NSString *relaunchPathToCopy = [SPARKLE_BUNDLE pathForResource:@"relaunch" ofType:@""];
+ NSString *targetPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]];
+ // Only the paranoid survive: if there's already a stray copy of relaunch there, we would have problems.
+ NSError *error = nil;
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
[[NSFileManager defaultManager] createDirectoryAtPath: [targetPath stringByDeletingLastPathComponent] attributes: [NSDictionary dictionary]];
#else
@@ -335,6 +362,7 @@
- (void)dealloc
{
[updateItem release];
+ [nonDeltaUpdateItem release];
[download release];
[downloadPath release];
[tempDir release];
diff --git a/SUBinaryDeltaApply.h b/SUBinaryDeltaApply.h
new file mode 100644
index 00000000..d4450109
--- /dev/null
+++ b/SUBinaryDeltaApply.h
@@ -0,0 +1,15 @@
+//
+// SUBinaryDeltaApply.h
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-01.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#ifndef SUBINARYDELTAAPPLY_H
+#define SUBINARYDELTAAPPLY_H
+
+@class NSString;
+int applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFile);
+
+#endif
diff --git a/SUBinaryDeltaApply.m b/SUBinaryDeltaApply.m
new file mode 100644
index 00000000..7c086d3a
--- /dev/null
+++ b/SUBinaryDeltaApply.m
@@ -0,0 +1,101 @@
+//
+// SUBinaryDeltaApply.m
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-01.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#import "SUBinaryDeltaApply.h"
+#import "SUBinaryDeltaCommon.h"
+#import
+#import
+#import
+#import
+#import
+#import
+
+static void applyBinaryDeltaToFile(xar_t x, xar_file_t file, NSString *sourceFilePath, NSString *destinationFilePath)
+{
+ NSString *patchFile = temporaryFilename(@"apply-binary-delta");
+ xar_extract_tofile(x, file, [patchFile fileSystemRepresentation]);
+ const char *argv[] = {"/usr/bin/bspatch", [sourceFilePath fileSystemRepresentation], [destinationFilePath fileSystemRepresentation], [patchFile fileSystemRepresentation]};
+ bspatch(4, (char **)argv);
+ unlink([patchFile fileSystemRepresentation]);
+}
+
+int applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFile)
+{
+ xar_t x = xar_open([patchFile UTF8String], READ);
+ if (!x) {
+ fprintf(stderr, "Unable to open %s. Giving up.\n", [patchFile UTF8String]);
+ return 1;
+ }
+
+ NSString *expectedBeforeHash = nil;
+ NSString *expectedAfterHash = nil;
+ xar_subdoc_t subdoc;
+ for (subdoc = xar_subdoc_first(x); subdoc; subdoc = xar_subdoc_next(subdoc)) {
+ if (!strcmp(xar_subdoc_name(subdoc), "binary-delta-attributes")) {
+ const char *value = 0;
+ xar_subdoc_prop_get(subdoc, "before-sha1", &value);
+ if (value)
+ expectedBeforeHash = [NSString stringWithUTF8String:value];
+
+ xar_subdoc_prop_get(subdoc, "after-sha1", &value);
+ if (value)
+ expectedAfterHash = [NSString stringWithUTF8String:value];
+ }
+ }
+
+ if (!expectedBeforeHash || !expectedAfterHash) {
+ fprintf(stderr, "Unable to find before-sha1 or after-sha1 metadata in delta. Giving up.\n");
+ return 1;
+ }
+
+ fprintf(stderr, "Verifying source... ");
+ NSString *beforeHash = hashOfTree(source);
+
+ if (![beforeHash isEqualToString:expectedBeforeHash]) {
+ fprintf(stderr, "Source doesn't have expected hash (%s != %s). Giving up.\n", [expectedBeforeHash UTF8String], [beforeHash UTF8String]);
+ return 1;
+ }
+
+ fprintf(stderr, "\nCopying files... ");
+ removeTree(destination);
+ copyTree(source, destination);
+
+ fprintf(stderr, "\nPatching... ");
+ xar_file_t file;
+ xar_iter_t iter = xar_iter_new();
+ for (file = xar_file_first(x, iter); file; file = xar_file_next(iter)) {
+ NSString *path = [NSString stringWithUTF8String:xar_get_path(file)];
+ NSString *sourceFilePath = [source stringByAppendingPathComponent:path];
+ NSString *destinationFilePath = [destination stringByAppendingPathComponent:path];
+
+ const char *value;
+ if (!xar_prop_get(file, "delete", &value) || !xar_prop_get(file, "delete-then-extract", &value)) {
+ removeTree(destinationFilePath);
+ if (!xar_prop_get(file, "delete", &value))
+ continue;
+ }
+
+ if (!xar_prop_get(file, "binary-delta", &value))
+ applyBinaryDeltaToFile(x, file, sourceFilePath, destinationFilePath);
+ else
+ xar_extract_tofile(x, file, [destinationFilePath fileSystemRepresentation]);
+ }
+ xar_close(x);
+
+ fprintf(stderr, "\nVerifying destination... ");
+ NSString *afterHash = hashOfTree(destination);
+
+ if (![afterHash isEqualToString:expectedAfterHash]) {
+ fprintf(stderr, "Destination doesn't have expected hash (%s != %s). Giving up.\n", [expectedAfterHash UTF8String], [afterHash UTF8String]);
+ removeTree(destination);
+ return 1;
+ }
+
+ fprintf(stderr, "\nDone!\n");
+ return 0;
+}
diff --git a/SUBinaryDeltaCommon.h b/SUBinaryDeltaCommon.h
new file mode 100644
index 00000000..5048c866
--- /dev/null
+++ b/SUBinaryDeltaCommon.h
@@ -0,0 +1,26 @@
+//
+// SUBinaryDeltaCommon.h
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-01.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#ifndef SUBINARYDELTACOMMON_H
+#define SUBINARYDELTACOMMON_H
+
+#include
+
+@class NSString;
+@class NSData;
+
+extern int binaryDeltaSupported(void);
+extern int compareFiles(const FTSENT **a, const FTSENT **b);
+extern NSData *hashOfFile(FTSENT *ent);
+extern NSString *hashOfTree(NSString *path);
+extern void removeTree(NSString *path);
+extern void copyTree(NSString *source, NSString *dest);
+extern NSString *pathRelativeToDirectory(NSString *directory, NSString *path);
+NSString *temporaryFilename(NSString *base);
+
+#endif
diff --git a/SUBinaryDeltaCommon.m b/SUBinaryDeltaCommon.m
new file mode 100644
index 00000000..4315d95d
--- /dev/null
+++ b/SUBinaryDeltaCommon.m
@@ -0,0 +1,165 @@
+//
+// SUBinaryDeltaCommon.m
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-01.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#include "SUBinaryDeltaCommon.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+extern int xar_close(void*) __attribute__((weak_import));
+
+int binaryDeltaSupported(void)
+{
+ // OS X 10.4 didn't include libxar, so we link against it weakly.
+ // This checks whether libxar is available at runtime.
+ return xar_close != 0;
+}
+
+int compareFiles(const FTSENT **a, const FTSENT **b)
+{
+ return strcoll((*a)->fts_name, (*b)->fts_name);
+}
+
+NSString *pathRelativeToDirectory(NSString *directory, NSString *path)
+{
+ NSUInteger directoryLength = [directory length];
+ if ([path hasPrefix:directory])
+ return [path substringFromIndex:directoryLength];
+
+ return path;
+}
+
+NSString *temporaryFilename(NSString *base)
+{
+ NSString *template = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.XXXXXXXXXX", base]];
+ char buffer[MAXPATHLEN];
+ strcpy(buffer, [template fileSystemRepresentation]);
+ return [NSString stringWithUTF8String:mktemp(buffer)];
+}
+
+static void _hashOfBuffer(unsigned char *hash, const char* buffer, size_t bufferLength)
+{
+ assert(bufferLength <= UINT32_MAX);
+ CC_SHA1_CTX hashContext;
+ CC_SHA1_Init(&hashContext);
+ CC_SHA1_Update(&hashContext, buffer, (CC_LONG)bufferLength);
+ CC_SHA1_Final(hash, &hashContext);
+}
+
+static void _hashOfFile(unsigned char* hash, FTSENT *ent)
+{
+ if (ent->fts_info == FTS_SL) {
+ char linkDestination[MAXPATHLEN + 1];
+ ssize_t linkDestinationLength = readlink(ent->fts_path, linkDestination, MAXPATHLEN);
+ if (linkDestinationLength < 0) {
+ perror("readlink");
+ return;
+ }
+
+ _hashOfBuffer(hash, linkDestination, linkDestinationLength);
+ return;
+ }
+
+ if (ent->fts_info == FTS_F) {
+ int fileDescriptor = open(ent->fts_path, O_RDONLY);
+ if (fileDescriptor == -1) {
+ perror("open");
+ return;
+ }
+
+ size_t fileSize = (size_t)ent->fts_statp->st_size;
+ if (fileSize == 0) {
+ _hashOfBuffer(hash, NULL, 0);
+ close(fileDescriptor);
+ return;
+ }
+
+ void *buffer = mmap(0, fileSize, PROT_READ, MAP_FILE | MAP_PRIVATE, fileDescriptor, 0);
+ if (buffer == (void*)-1) {
+ close(fileDescriptor);
+ perror("mmap");
+ return;
+ }
+
+ _hashOfBuffer(hash, buffer, fileSize);
+ munmap(buffer, fileSize);
+ close(fileDescriptor);
+ return;
+ }
+
+ if (ent->fts_info == FTS_D)
+ memset(hash, 0xdd, CC_SHA1_DIGEST_LENGTH);
+}
+
+NSData *hashOfFile(FTSENT *ent)
+{
+ unsigned char fileHash[CC_SHA1_DIGEST_LENGTH];
+ _hashOfFile(fileHash, ent);
+ return [NSData dataWithBytes:fileHash length:CC_SHA1_DIGEST_LENGTH];
+}
+
+NSString *hashOfTree(NSString *path)
+{
+ const char *sourcePaths[] = {[path UTF8String], 0};
+ FTS *fts = fts_open((char* const*)sourcePaths, FTS_PHYSICAL | FTS_NOCHDIR, compareFiles);
+ if (!fts) {
+ perror("fts_open");
+ return nil;
+ }
+
+ CC_SHA1_CTX hashContext;
+ CC_SHA1_Init(&hashContext);
+
+ FTSENT *ent = 0;
+ while ((ent = fts_read(fts))) {
+ if (ent->fts_info != FTS_F && ent->fts_info != FTS_SL)
+ continue;
+
+ unsigned char fileHash[CC_SHA1_DIGEST_LENGTH];
+ _hashOfFile(fileHash, ent);
+ CC_SHA1_Update(&hashContext, fileHash, sizeof(fileHash));
+
+ NSString *relativePath = pathRelativeToDirectory(path, [NSString stringWithUTF8String:ent->fts_path]);
+ NSData *relativePathBytes = [relativePath dataUsingEncoding:NSUTF8StringEncoding];
+ CC_SHA1_Update(&hashContext, [relativePathBytes bytes], (uint32_t)[relativePathBytes length]);
+ }
+ fts_close(fts);
+
+ unsigned char hash[CC_SHA1_DIGEST_LENGTH];
+ CC_SHA1_Final(hash, &hashContext);
+
+ char hexHash[CC_SHA1_DIGEST_LENGTH * 2 + 1];
+ size_t i;
+ for (i = 0; i < CC_SHA1_DIGEST_LENGTH; i++)
+ sprintf(hexHash + i * 2, "%02x", hash[i]);
+
+ return [NSString stringWithUTF8String:hexHash];
+}
+
+void removeTree(NSString *path)
+{
+#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
+ [[NSFileManager defaultManager] removeItemAtPath:path error:0];
+#else
+ [[NSFileManager defaultManager] removeFileAtPath:path handler:nil];
+#endif
+}
+
+void copyTree(NSString *source, NSString *dest)
+{
+#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
+ [[NSFileManager defaultManager] copyItemAtPath:source toPath:dest error:0];
+#else
+ [[NSFileManager defaultManager] copyPath:source toPath:dest handler:nil];
+#endif
+}
diff --git a/SUBinaryDeltaTool.m b/SUBinaryDeltaTool.m
new file mode 100644
index 00000000..2aa93a42
--- /dev/null
+++ b/SUBinaryDeltaTool.m
@@ -0,0 +1,269 @@
+//
+// SUBinaryDeltaTool.m
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-01.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#define _DARWIN_NO_64_BIT_INODE 1
+
+#include "SUBinaryDeltaCommon.h"
+#include "SUBinaryDeltaApply.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+extern int bsdiff(int argc, const char **argv);
+
+@interface CreateBinaryDeltaOperation : NSOperation
+{
+ NSString *_relativePath;
+ NSString *_fromPath;
+ NSString *_toPath;
+ NSString *_resultPath;
+}
+- (id)initWithRelativePath:(NSString *)relativePath oldTree:(NSString *)oldTree newTree:(NSString *)newTree;
+
+- (NSString *)relativePath;
+- (NSString *)resultPath;
+@end
+
+@implementation CreateBinaryDeltaOperation
+
+- (id)initWithRelativePath:(NSString *)relativePath oldTree:(NSString *)oldTree newTree:(NSString *)newTree
+{
+ if ((self = [super init])) {
+ _relativePath = [relativePath copy];
+ _fromPath = [[oldTree stringByAppendingPathComponent:relativePath] retain];
+ _toPath = [[newTree stringByAppendingPathComponent:relativePath] retain];
+ }
+ return self;
+}
+
+- (NSString *)relativePath
+{
+ return [[_relativePath retain] autorelease];
+}
+
+- (NSString *)resultPath
+{
+ return [[_resultPath retain] autorelease];
+}
+
+- (void)main
+{
+ NSString *temporaryFile = temporaryFilename(@"BinaryDelta");
+ const char *argv[] = {"/usr/bin/bsdiff", [_fromPath fileSystemRepresentation], [_toPath fileSystemRepresentation], [temporaryFile fileSystemRepresentation]};
+ int result = bsdiff(4, argv);
+ if (!result)
+ _resultPath = [temporaryFile retain];
+}
+
+@end
+
+static NSDictionary *infoForFile(FTSENT *ent)
+{
+ NSData *hash = hashOfFile(ent);
+ NSNumber *size = nil;
+ if (ent->fts_info != FTS_D)
+ size = [NSNumber numberWithUnsignedLongLong:ent->fts_statp->st_size];
+ return [NSDictionary dictionaryWithObjectsAndKeys:hash, @"hash", [NSNumber numberWithUnsignedShort:ent->fts_info], @"type", size, @"size", nil];
+}
+
+static NSString *absolutePath(NSString *path)
+{
+ NSURL *url = [[[NSURL alloc] initFileURLWithPath:path] autorelease];
+ return [[url absoluteURL] path];
+}
+
+static NSString *temporaryPatchFile(NSString *patchFile)
+{
+ NSString *path = absolutePath(patchFile);
+ NSString *directory = [path stringByDeletingLastPathComponent];
+ NSString *file = [path lastPathComponent];
+ return [NSString stringWithFormat:@"%@/.%@.tmp", directory, file];
+}
+
+static BOOL shouldSkipDeltaCompression(NSString *key, NSDictionary* originalInfo, NSDictionary *newInfo)
+{
+ unsigned long long fileSize = [[newInfo objectForKey:@"size"] unsignedLongLongValue];
+ if (fileSize < 4096)
+ return YES;
+
+ if (!originalInfo)
+ return YES;
+
+ if ([[originalInfo objectForKey:@"type"] unsignedShortValue] != [[newInfo objectForKey:@"type"] unsignedShortValue])
+ return YES;
+
+ return NO;
+}
+
+static BOOL shouldDeleteThenExtract(NSString *key, NSDictionary* originalInfo, NSDictionary *newInfo)
+{
+ if (!originalInfo)
+ return NO;
+
+ if ([[originalInfo objectForKey:@"type"] unsignedShortValue] != [[newInfo objectForKey:@"type"] unsignedShortValue])
+ return YES;
+
+ return NO;
+}
+
+int main(int argc, char **argv)
+{
+ if (argc != 5) {
+usage:
+ fprintf(stderr, "Usage: BinaryDelta [create | apply] before-tree after-tree patch-file\n");
+ exit(1);
+ }
+
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ NSString *command = [NSString stringWithUTF8String:argv[1]];
+ NSString *oldPath = [NSString stringWithUTF8String:argv[2]];
+ NSString *newPath = [NSString stringWithUTF8String:argv[3]];
+ NSString *patchFile = [NSString stringWithUTF8String:argv[4]];
+
+ if ([command isEqualToString:@"apply"]) {
+ int result = applyBinaryDelta(oldPath, newPath, patchFile);
+ [pool drain];
+ return result;
+ }
+ if (![command isEqualToString:@"create"]) {
+ [pool drain];
+ goto usage;
+ }
+
+ NSMutableDictionary *originalTreeState = [NSMutableDictionary dictionary];
+
+ const char *sourcePaths[] = {[oldPath fileSystemRepresentation], 0};
+ FTS *fts = fts_open((char* const*)sourcePaths, FTS_PHYSICAL | FTS_NOCHDIR, compareFiles);
+ if (!fts) {
+ [pool drain];
+ perror("fts_open");
+ return 1;
+ }
+
+ fprintf(stderr, "Processing %s...", [oldPath UTF8String]);
+ FTSENT *ent = 0;
+ while ((ent = fts_read(fts))) {
+ if (ent->fts_info != FTS_F && ent->fts_info != FTS_SL && ent->fts_info != FTS_D)
+ continue;
+
+ NSString *key = pathRelativeToDirectory(oldPath, [NSString stringWithUTF8String:ent->fts_path]);
+ if (![key length])
+ continue;
+
+ NSDictionary *info = infoForFile(ent);
+ [originalTreeState setObject:info forKey:key];
+ }
+ fts_close(fts);
+
+ NSString *beforeHash = hashOfTree(oldPath);
+
+ NSMutableDictionary *newTreeState = [NSMutableDictionary dictionary];
+ for (NSString *key in originalTreeState)
+ {
+ [newTreeState setObject:[NSNull null] forKey:key];
+ }
+
+ fprintf(stderr, "\nProcessing %s... ", [newPath UTF8String]);
+ sourcePaths[0] = [newPath fileSystemRepresentation];
+ fts = fts_open((char* const*)sourcePaths, FTS_PHYSICAL | FTS_NOCHDIR, compareFiles);
+ if (!fts) {
+ [pool drain];
+ perror("fts_open");
+ return 1;
+ }
+
+
+ while ((ent = fts_read(fts))) {
+ if (ent->fts_info != FTS_F && ent->fts_info != FTS_SL && ent->fts_info != FTS_D)
+ continue;
+
+ NSString *key = pathRelativeToDirectory(newPath, [NSString stringWithUTF8String:ent->fts_path]);
+ if (![key length])
+ continue;
+
+ NSDictionary *info = infoForFile(ent);
+ NSDictionary *oldInfo = [originalTreeState objectForKey:key];
+
+ if ([info isEqual:oldInfo])
+ [newTreeState removeObjectForKey:key];
+ else
+ [newTreeState setObject:info forKey:key];
+ }
+ fts_close(fts);
+
+ NSString *afterHash = hashOfTree(newPath);
+
+ fprintf(stderr, "\nGenerating delta... ");
+
+ NSString *temporaryFile = temporaryPatchFile(patchFile);
+ xar_t x = xar_open([temporaryFile fileSystemRepresentation], WRITE);
+ xar_opt_set(x, XAR_OPT_COMPRESSION, "bzip2");
+ xar_subdoc_t attributes = xar_subdoc_new(x, "binary-delta-attributes");
+ xar_subdoc_prop_set(attributes, "before-sha1", [beforeHash UTF8String]);
+ xar_subdoc_prop_set(attributes, "after-sha1", [afterHash UTF8String]);
+
+ NSOperationQueue *deltaQueue = [[NSOperationQueue alloc] init];
+ NSMutableArray *deltaOperations = [NSMutableArray array];
+
+ NSArray *keys = [[newTreeState allKeys] sortedArrayUsingSelector:@selector(compare:)];
+ for (NSString* key in keys) {
+ id value = [newTreeState valueForKey:key];
+
+ if ([value isEqual:[NSNull null]]) {
+ xar_file_t newFile = xar_add_frombuffer(x, 0, [key fileSystemRepresentation], (char *)"", 1);
+ assert(newFile);
+ xar_prop_set(newFile, "delete", "true");
+ continue;
+ }
+
+ NSDictionary *originalInfo = [originalTreeState objectForKey:key];
+ NSDictionary *newInfo = [newTreeState objectForKey:key];
+ if (shouldSkipDeltaCompression(key, originalInfo, newInfo)) {
+ NSString *path = [newPath stringByAppendingPathComponent:key];
+ xar_file_t newFile = xar_add_frompath(x, 0, [key fileSystemRepresentation], [path fileSystemRepresentation]);
+ assert(newFile);
+ if (shouldDeleteThenExtract(key, originalInfo, newInfo))
+ xar_prop_set(newFile, "delete-then-extract", "true");
+ } else {
+ CreateBinaryDeltaOperation *operation = [[CreateBinaryDeltaOperation alloc] initWithRelativePath:key oldTree:oldPath newTree:newPath];
+ [deltaQueue addOperation:operation];
+ [deltaOperations addObject:operation];
+ [operation release];
+ }
+ }
+
+ [deltaQueue waitUntilAllOperationsAreFinished];
+ [deltaQueue release];
+
+ for (CreateBinaryDeltaOperation *operation in deltaOperations) {
+ NSString *resultPath = [operation resultPath];
+ xar_file_t newFile = xar_add_frompath(x, 0, [[operation relativePath] fileSystemRepresentation], [resultPath fileSystemRepresentation]);
+ assert(newFile);
+ xar_prop_set(newFile, "binary-delta", "true");
+ unlink([resultPath fileSystemRepresentation]);
+ }
+
+ xar_close(x);
+
+ unlink([patchFile fileSystemRepresentation]);
+ link([temporaryFile fileSystemRepresentation], [patchFile fileSystemRepresentation]);
+ unlink([temporaryFile fileSystemRepresentation]);
+ fprintf(stderr, "Done!\n");
+
+ [pool drain];
+ return 0;
+}
diff --git a/SUBinaryDeltaUnarchiver.h b/SUBinaryDeltaUnarchiver.h
new file mode 100644
index 00000000..2f2e7651
--- /dev/null
+++ b/SUBinaryDeltaUnarchiver.h
@@ -0,0 +1,20 @@
+//
+// SUBinaryDeltaUnarchiver.h
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-03.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#ifndef SUBINARYDELTAUNARCHIVER_H
+#define SUBINARYDELTAUNARCHIVER_H
+
+#import
+#import "SUUnarchiver.h"
+
+@interface SUBinaryDeltaUnarchiver : SUUnarchiver {
+}
+
+@end
+
+#endif
diff --git a/SUBinaryDeltaUnarchiver.m b/SUBinaryDeltaUnarchiver.m
new file mode 100644
index 00000000..e7b612ac
--- /dev/null
+++ b/SUBinaryDeltaUnarchiver.m
@@ -0,0 +1,48 @@
+//
+// SUBinaryDeltaUnarchiver.m
+// Sparkle
+//
+// Created by Mark Rowe on 2009-06-03.
+// Copyright 2009 Mark Rowe. All rights reserved.
+//
+
+#import "SUBinaryDeltaCommon.h"
+#import "SUBinaryDeltaUnarchiver.h"
+#import "SUBinaryDeltaApply.h"
+#import "SUUnarchiver_Private.h"
+#import "SUHost.h"
+#import "NTSynchronousTask.h"
+
+@implementation SUBinaryDeltaUnarchiver
+
++ (BOOL)canUnarchivePath:(NSString *)path
+{
+ return binaryDeltaSupported() && [[path pathExtension] isEqualToString:@"delta"];
+}
+
+- (void)applyBinaryDelta
+{
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+ NSString *sourcePath = [[updateHost bundle] bundlePath];
+ NSString *targetPath = [[archivePath stringByDeletingLastPathComponent] stringByAppendingPathComponent:[sourcePath lastPathComponent]];
+
+ int result = applyBinaryDelta(sourcePath, targetPath, archivePath);
+ if (!result)
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfSuccess) withObject:nil waitUntilDone:NO];
+ else
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfFailure) withObject:nil waitUntilDone:NO];
+
+ [pool drain];
+}
+
+- (void)start
+{
+ [NSThread detachNewThreadSelector:@selector(applyBinaryDelta) toTarget:self withObject:nil];
+}
+
++ (void)load
+{
+ [self registerImplementation:self];
+}
+
+@end
diff --git a/SUConstants.h b/SUConstants.h
index bc5f7a07..24735f5d 100644
--- a/SUConstants.h
+++ b/SUConstants.h
@@ -30,37 +30,37 @@
// Notifications:
// -----------------------------------------------------------------------------
-extern NSString *SUUpdaterWillRestartNotification;
+extern NSString *const SUUpdaterWillRestartNotification;
-extern NSString *SUTechnicalErrorInformationKey;
+extern NSString *const SUTechnicalErrorInformationKey;
// -----------------------------------------------------------------------------
// PList keys::
// -----------------------------------------------------------------------------
-extern NSString *SUFeedURLKey;
-extern NSString *SUHasLaunchedBeforeKey;
-extern NSString *SUShowReleaseNotesKey;
-extern NSString *SUSkippedVersionKey;
-extern NSString *SUScheduledCheckIntervalKey;
-extern NSString *SULastCheckTimeKey;
-extern NSString *SUPublicDSAKeyKey;
-extern NSString *SUPublicDSAKeyFileKey;
-extern NSString *SUAutomaticallyUpdateKey;
-extern NSString *SUAllowsAutomaticUpdatesKey;
-extern NSString *SUEnableAutomaticChecksKey;
-extern NSString *SUEnableAutomaticChecksKeyOld;
-extern NSString *SUEnableSystemProfilingKey;
-extern NSString *SUSendProfileInfoKey;
-extern NSString *SULastProfileSubmitDateKey;
-extern NSString *SUFixedHTMLDisplaySizeKey;
-extern NSString *SUKeepDownloadOnFailedInstallKey;
+extern NSString *const SUFeedURLKey;
+extern NSString *const SUHasLaunchedBeforeKey;
+extern NSString *const SUShowReleaseNotesKey;
+extern NSString *const SUSkippedVersionKey;
+extern NSString *const SUScheduledCheckIntervalKey;
+extern NSString *const SULastCheckTimeKey;
+extern NSString *const SUPublicDSAKeyKey;
+extern NSString *const SUPublicDSAKeyFileKey;
+extern NSString *const SUAutomaticallyUpdateKey;
+extern NSString *const SUAllowsAutomaticUpdatesKey;
+extern NSString *const SUEnableAutomaticChecksKey;
+extern NSString *const SUEnableAutomaticChecksKeyOld;
+extern NSString *const SUEnableSystemProfilingKey;
+extern NSString *const SUSendProfileInfoKey;
+extern NSString *const SULastProfileSubmitDateKey;
+extern NSString *const SUFixedHTMLDisplaySizeKey;
+extern NSString *const SUKeepDownloadOnFailedInstallKey;
// -----------------------------------------------------------------------------
// Errors:
// -----------------------------------------------------------------------------
-extern NSString *SUSparkleErrorDomain;
+extern NSString *const SUSparkleErrorDomain;
// Appcast phase errors.
extern OSStatus SUAppcastParseError;
extern OSStatus SUNoUpdateError;
diff --git a/SUConstants.m b/SUConstants.m
index 941137ba..80ec6edf 100644
--- a/SUConstants.m
+++ b/SUConstants.m
@@ -13,29 +13,29 @@
#import "SUVersionComparisonProtocol.h"
#import "SUConstants.h"
-NSString *SUUpdaterWillRestartNotification = @"SUUpdaterWillRestartNotificationName";
-NSString *SUTechnicalErrorInformationKey = @"SUTechnicalErrorInformation";
+NSString *const SUUpdaterWillRestartNotification = @"SUUpdaterWillRestartNotificationName";
+NSString *const SUTechnicalErrorInformationKey = @"SUTechnicalErrorInformation";
-NSString *SUHasLaunchedBeforeKey = @"SUHasLaunchedBefore";
-NSString *SUFeedURLKey = @"SUFeedURL";
-NSString *SUShowReleaseNotesKey = @"SUShowReleaseNotes";
-NSString *SUSkippedVersionKey = @"SUSkippedVersion";
-NSString *SUScheduledCheckIntervalKey = @"SUScheduledCheckInterval";
-NSString *SULastCheckTimeKey = @"SULastCheckTime";
-NSString *SUExpectsDSASignatureKey = @"SUExpectsDSASignature";
-NSString *SUPublicDSAKeyKey = @"SUPublicDSAKey";
-NSString *SUPublicDSAKeyFileKey = @"SUPublicDSAKeyFile";
-NSString *SUAutomaticallyUpdateKey = @"SUAutomaticallyUpdate";
-NSString *SUAllowsAutomaticUpdatesKey = @"SUAllowsAutomaticUpdates";
-NSString *SUEnableSystemProfilingKey = @"SUEnableSystemProfiling";
-NSString *SUEnableAutomaticChecksKey = @"SUEnableAutomaticChecks";
-NSString *SUEnableAutomaticChecksKeyOld = @"SUCheckAtStartup";
-NSString *SUSendProfileInfoKey = @"SUSendProfileInfo";
-NSString *SULastProfileSubmitDateKey = @"SULastProfileSubmissionDate";
-NSString *SUFixedHTMLDisplaySizeKey = @"SUFixedHTMLDisplaySize";
-NSString *SUKeepDownloadOnFailedInstallKey = @"SUKeepDownloadOnFailedInstall";
+NSString *const SUHasLaunchedBeforeKey = @"SUHasLaunchedBefore";
+NSString *const SUFeedURLKey = @"SUFeedURL";
+NSString *const SUShowReleaseNotesKey = @"SUShowReleaseNotes";
+NSString *const SUSkippedVersionKey = @"SUSkippedVersion";
+NSString *const SUScheduledCheckIntervalKey = @"SUScheduledCheckInterval";
+NSString *const SULastCheckTimeKey = @"SULastCheckTime";
+NSString *const SUExpectsDSASignatureKey = @"SUExpectsDSASignature";
+NSString *const SUPublicDSAKeyKey = @"SUPublicDSAKey";
+NSString *const SUPublicDSAKeyFileKey = @"SUPublicDSAKeyFile";
+NSString *const SUAutomaticallyUpdateKey = @"SUAutomaticallyUpdate";
+NSString *const SUAllowsAutomaticUpdatesKey = @"SUAllowsAutomaticUpdates";
+NSString *const SUEnableSystemProfilingKey = @"SUEnableSystemProfiling";
+NSString *const SUEnableAutomaticChecksKey = @"SUEnableAutomaticChecks";
+NSString *const SUEnableAutomaticChecksKeyOld = @"SUCheckAtStartup";
+NSString *const SUSendProfileInfoKey = @"SUSendProfileInfo";
+NSString *const SULastProfileSubmitDateKey = @"SULastProfileSubmissionDate";
+NSString *const SUFixedHTMLDisplaySizeKey = @"SUFixedHTMLDisplaySize";
+NSString *const SUKeepDownloadOnFailedInstallKey = @"SUKeepDownloadOnFailedInstall";
-NSString *SUSparkleErrorDomain = @"SUSparkleErrorDomain";
+NSString *const SUSparkleErrorDomain = @"SUSparkleErrorDomain";
OSStatus SUAppcastParseError = 1000;
OSStatus SUNoUpdateError = 1001;
OSStatus SUAppcastError = 1002;
diff --git a/SUDSAVerifier.m b/SUDSAVerifier.m
index ebf419db..fb69f050 100644
--- a/SUDSAVerifier.m
+++ b/SUDSAVerifier.m
@@ -19,11 +19,11 @@
#import
// Alex: Avoid prototype warning
-long b64decode(unsigned char* str);
-EVP_PKEY* load_dsa_key(char *key);
+static long b64decode(unsigned char* str);
+static EVP_PKEY* load_dsa_key(char *key);
-long b64decode(unsigned char* str)
+static long b64decode(unsigned char* str)
{
unsigned char *cur, *start;
int d, dlast, phase;
@@ -47,12 +47,12 @@ long b64decode(unsigned char* str)
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 /* F0-FF */
};
- d = dlast = phase = 0;
+ dlast = phase = 0;
start = str;
for (cur = str; *cur != '\0'; ++cur )
{
if(*cur == '\n' || *cur == '\r'){phase = dlast = 0; continue;}
- d = table[(int)*cur];
+ d = table[(unsigned int)*cur];
if(d != -1)
{
switch(phase)
@@ -83,26 +83,30 @@ long b64decode(unsigned char* str)
return str - start;
}
-EVP_PKEY* load_dsa_key(char *key)
+static EVP_PKEY* load_dsa_key(char *key)
{
EVP_PKEY* pkey = NULL;
- BIO *bio;
- if((bio = BIO_new_mem_buf(key, (int)strlen(key))))
+ size_t keylen = strlen(key);
+ if (keylen <= INT_MAX)
{
- DSA* dsa_key = 0;
- if(PEM_read_bio_DSA_PUBKEY(bio, &dsa_key, NULL, NULL))
+ BIO *bio;
+ if((bio = BIO_new_mem_buf(key, (int)keylen)))
{
- if((pkey = EVP_PKEY_new()))
+ DSA* dsa_key = 0;
+ if(PEM_read_bio_DSA_PUBKEY(bio, &dsa_key, NULL, NULL))
{
- if(EVP_PKEY_assign_DSA(pkey, dsa_key) != 1)
+ if((pkey = EVP_PKEY_new()))
{
- DSA_free(dsa_key);
- EVP_PKEY_free(pkey);
- pkey = NULL;
+ if(EVP_PKEY_assign_DSA(pkey, dsa_key) != 1)
+ {
+ DSA_free(dsa_key);
+ EVP_PKEY_free(pkey);
+ pkey = NULL;
+ }
}
}
+ BIO_free(bio);
}
- BIO_free(bio);
}
return pkey;
}
@@ -125,13 +129,17 @@ EVP_PKEY* load_dsa_key(char *key)
}
pkeyString = [pkeyTrimmedLines componentsJoinedByString:@"\n"]; // Put them back together.
+ NSMutableData* pkeyData = [[[pkeyString dataUsingEncoding:NSUTF8StringEncoding] mutableCopy] autorelease];
+ void *pkeyBytes = [pkeyData mutableBytes];
EVP_PKEY* pkey = NULL;
- pkey = load_dsa_key((char *)[pkeyString UTF8String]);
+ pkey = load_dsa_key(pkeyBytes);
if (!pkey) { return NO; }
// Now, the signature is in base64; we have to decode it into a binary stream.
- unsigned char *signature = (unsigned char *)[encodedSignature UTF8String];
+ NSMutableData* signatureData = [[[encodedSignature dataUsingEncoding:NSUTF8StringEncoding] mutableCopy] autorelease];
+ void *signature = [signatureData mutableBytes];
long length = b64decode(signature); // Decode the signature in-place and get the new length of the signature string.
+ if ((length < 0) || (length > 0x7FFFFFFF)) { return NO; } // test before cast below
// We've got the signature, now get the file data.
NSData *pathData = [NSData dataWithContentsOfFile:path];
@@ -143,14 +151,23 @@ EVP_PKEY* load_dsa_key(char *key)
// Actually verify the signature on the file.
EVP_MD_CTX ctx;
+ EVP_MD_CTX_init(&ctx);
if(EVP_VerifyInit(&ctx, EVP_dss1()) == 1) // We're using DSA keys.
{
EVP_VerifyUpdate(&ctx, md, SHA_DIGEST_LENGTH);
- result = (EVP_VerifyFinal(&ctx, signature, (unsigned int)length, pkey) == 1);
+
+ result = EVP_VerifyFinal(&ctx, signature, (unsigned int)length, pkey);
}
+ EVP_MD_CTX_cleanup(&ctx);
EVP_PKEY_free(pkey);
- return result;
+
+ // Prevent these from being collected earlier than we want (our only reference is an inner pointer).
+ [pkeyData self];
+ [signatureData self];
+ [pathData self];
+
+ return result == 1;
}
@end
diff --git a/SUDiskImageUnarchiver.m b/SUDiskImageUnarchiver.m
index 908a7722..7bc37b6a 100644
--- a/SUDiskImageUnarchiver.m
+++ b/SUDiskImageUnarchiver.m
@@ -15,17 +15,12 @@
@implementation SUDiskImageUnarchiver
-+ (BOOL)_canUnarchivePath:(NSString *)path
++ (BOOL)canUnarchivePath:(NSString *)path
{
return [[path pathExtension] isEqualToString:@"dmg"];
}
-- (void)start
-{
- [NSThread detachNewThreadSelector:@selector(_extractDMG) toTarget:self withObject:nil];
-}
-
-- (void)_extractDMG
+- (void)extractDMG
{
// GETS CALLED ON NON-MAIN THREAD!!!
@@ -41,14 +36,16 @@
do
{
CFUUIDRef uuid = CFUUIDCreate(NULL);
- mountPointName = (NSString *)CFUUIDCreateString(NULL, uuid);
- CFRelease(uuid);
-#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4
- [NSMakeCollectable((CFStringRef)mountPointName) autorelease];
-#else
- [mountPointName autorelease];
-#endif
- mountPoint = [@"/Volumes" stringByAppendingPathComponent:mountPointName];
+ if (uuid)
+ {
+ CFStringRef uuidString = CFUUIDCreateString(NULL, uuid);
+ if (uuidString)
+ {
+ mountPoint = [@"/Volumes" stringByAppendingPathComponent:(NSString*)uuidString];
+ CFRelease(uuidString);
+ }
+ CFRelease(uuid);
+ }
}
while (noErr == FSPathMakeRefWithOptions((UInt8 *)[mountPoint fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &tmpRef, NULL));
@@ -69,7 +66,7 @@
// Now that we've mounted it, we need to copy out its contents.
FSRef srcRef, dstRef;
- OSErr err;
+ OSStatus err;
err = FSPathMakeRef((UInt8 *)[mountPoint fileSystemRepresentation], &srcRef, NULL);
if (err != noErr) goto reportError;
err = FSPathMakeRef((UInt8 *)[[archivePath stringByDeletingLastPathComponent] fileSystemRepresentation], &dstRef, NULL);
@@ -78,11 +75,11 @@
err = FSCopyObjectSync(&srcRef, &dstRef, (CFStringRef)mountPointName, NULL, kFSFileOperationSkipSourcePermissionErrors);
if (err != noErr) goto reportError;
- [self performSelectorOnMainThread:@selector(_notifyDelegateOfSuccess) withObject:nil waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfSuccess) withObject:nil waitUntilDone:NO];
goto finally;
reportError:
- [self performSelectorOnMainThread:@selector(_notifyDelegateOfFailure) withObject:nil waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfFailure) withObject:nil waitUntilDone:NO];
finally:
if (mountedSuccessfully)
@@ -92,9 +89,14 @@ finally:
[pool drain];
}
+- (void)start
+{
+ [NSThread detachNewThreadSelector:@selector(extractDMG) toTarget:self withObject:nil];
+}
+
+ (void)load
{
- [self _registerImplementation:self];
+ [self registerImplementation:self];
}
@end
diff --git a/SUHost.h b/SUHost.h
index 136ece08..e8395719 100644
--- a/SUHost.h
+++ b/SUHost.h
@@ -12,6 +12,7 @@
@interface SUHost : NSObject
{
+@private
NSBundle *bundle;
}
diff --git a/SUHost.m b/SUHost.m
index f770297a..7f2cb392 100644
--- a/SUHost.m
+++ b/SUHost.m
@@ -18,9 +18,9 @@
- (id)initWithBundle:(NSBundle *)aBundle
{
- if (aBundle == nil) aBundle = [NSBundle mainBundle];
if ((self = [super init]))
{
+ if (aBundle == nil) aBundle = [NSBundle mainBundle];
bundle = [aBundle retain];
if (![bundle bundleIdentifier])
SULog(@"Sparkle Error: the bundle being updated at %@ has no CFBundleIdentifier! This will cause preference read/write to not work properly.", bundle);
@@ -96,7 +96,17 @@
iconPath = [bundle pathForResource:[bundle objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType: nil];
NSImage *icon = [[[NSImage alloc] initWithContentsOfFile:iconPath] autorelease];
// Use a default icon if none is defined.
- if (!icon) { icon = [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(bundle == [NSBundle mainBundle] ? kGenericApplicationIcon : UTGetOSTypeFromString(CFSTR("BNDL")))]; }
+ if (!icon) {
+ BOOL isMainBundle = (bundle == [NSBundle mainBundle]);
+
+ // Starting with 10.6, iconForFileType: accepts a UTI.
+ NSString *fileType = nil;
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_5)
+ fileType = isMainBundle ? NSFileTypeForHFSTypeCode(kGenericApplicationIcon) : @".bundle";
+ else
+ fileType = isMainBundle ? (NSString*)kUTTypeApplication : (NSString*)kUTTypeBundle;
+ icon = [[NSWorkspace sharedWorkspace] iconForFileType:fileType];
+ }
return icon;
}
@@ -111,8 +121,8 @@
{
ProcessSerialNumber PSN;
GetCurrentProcess(&PSN);
- NSDictionary * processInfo = (NSDictionary *)ProcessInformationCopyDictionary(&PSN, kProcessDictionaryIncludeAllInformationMask);
- BOOL isElement = [[processInfo objectForKey:@"LSUIElement"] boolValue];
+ CFDictionaryRef processInfo = ProcessInformationCopyDictionary(&PSN, kProcessDictionaryIncludeAllInformationMask);
+ BOOL isElement = [[(NSDictionary *)processInfo objectForKey:@"LSUIElement"] boolValue];
if (processInfo)
CFRelease(processInfo);
return isElement;
@@ -148,18 +158,14 @@
- (id)objectForUserDefaultsKey:(NSString *)defaultName
{
- // Under Tiger, CFPreferencesCopyAppValue doesn't get values from NSRegistratioDomain, so anything
+ // Under Tiger, CFPreferencesCopyAppValue doesn't get values from NSRegistrationDomain, so anything
// passed into -[NSUserDefaults registerDefaults:] is ignored. The following line falls
// back to using NSUserDefaults, but only if the host bundle is the main bundle.
if (bundle == [NSBundle mainBundle])
return [[NSUserDefaults standardUserDefaults] objectForKey:defaultName];
CFPropertyListRef obj = ThreadSafePreferences_CopyAppValue((CFStringRef)defaultName, (CFStringRef)[bundle bundleIdentifier]);
-#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_4
- return [NSMakeCollectable(obj) autorelease];
-#else
- return [(id)obj autorelease];
-#endif
+ return [(id)CFMakeCollectable(obj) autorelease];
}
- (void)setObject:(id)value forUserDefaultsKey:(NSString *)defaultName;
diff --git a/SUInstaller.h b/SUInstaller.h
index e1fd13bc..9ef2f1e1 100644
--- a/SUInstaller.h
+++ b/SUInstaller.h
@@ -15,10 +15,7 @@
@class SUHost;
@interface SUInstaller : NSObject { }
+ (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host delegate:delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator;
-+ (void)_finishInstallationWithResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate;
-
-+ (NSString*)updateFolder;
-+ (void)notifyDelegateOfFailure: (NSDictionary*)dict;
++ (void)finishInstallationWithResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate;
@end
@interface NSObject (SUInstallerDelegateInformalProtocol)
diff --git a/SUInstaller.m b/SUInstaller.m
index a2037bf4..8057fd89 100644
--- a/SUInstaller.m
+++ b/SUInstaller.m
@@ -23,7 +23,7 @@ static NSString* sUpdateFolder = nil;
return sUpdateFolder;
}
-+ (BOOL)_isAliasFolderAtPath:(NSString *)path
++ (BOOL)isAliasFolderAtPath:(NSString *)path
{
FSRef fileRef;
OSStatus err = noErr;
@@ -95,7 +95,7 @@ static NSString* sUpdateFolder = nil;
}
// Some DMGs have symlinks into /Applications! That's no good!
- if ([self _isAliasFolderAtPath:currentPath])
+ if ([self isAliasFolderAtPath:currentPath])
[dirEnum skipDescendents];
}
@@ -109,7 +109,7 @@ static NSString* sUpdateFolder = nil;
if (newAppDownloadPath == nil)
{
- [self _finishInstallationWithResult:NO host:host error:[NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingUpdateError userInfo:[NSDictionary dictionaryWithObject:@"Couldn't find an appropriate update in the downloaded package." forKey:NSLocalizedDescriptionKey]] delegate:delegate];
+ [self finishInstallationWithResult:NO host:host error:[NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingUpdateError userInfo:[NSDictionary dictionaryWithObject:@"Couldn't find an appropriate update in the downloaded package." forKey:NSLocalizedDescriptionKey]] delegate:delegate];
}
else
{
@@ -117,7 +117,7 @@ static NSString* sUpdateFolder = nil;
}
}
-+ (void)_mdimportHost:(SUHost *)host
++ (void)mdimportHost:(SUHost *)host
{
// *** GETS CALLED ON NON-MAIN THREAD!
@@ -143,13 +143,11 @@ static NSString* sUpdateFolder = nil;
#define SUNotifyDictErrorKey @"SUNotifyDictError"
#define SUNotifyDictDelegateKey @"SUNotifyDictDelegate"
-+ (void)_finishInstallationWithResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate
++ (void)finishInstallationWithResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate
{
- // *** GETS CALLED ON NON-MAIN THREAD!
-
- if (result == YES)
+ if (result)
{
- [self _mdimportHost:host];
+ [self mdimportHost:host];
if ([delegate respondsToSelector:@selector(installerFinishedForHost:)])
[delegate performSelectorOnMainThread: @selector(installerFinishedForHost:) withObject: host waitUntilDone: NO];
}
diff --git a/SUPackageInstaller.m b/SUPackageInstaller.m
index 7be44994..0eb24d92 100644
--- a/SUPackageInstaller.m
+++ b/SUPackageInstaller.m
@@ -10,10 +10,6 @@
#import
#import "SUConstants.h"
-#ifndef NSAppKitVersionNumber10_4
-#define NSAppKitVersionNumber10_4 824
-#endif
-
NSString *SUPackageInstallerCommandKey = @"SUPackageInstallerCommand";
NSString *SUPackageInstallerArgumentsKey = @"SUPackageInstallerArguments";
NSString *SUPackageInstallerHostKey = @"SUPackageInstallerHost";
@@ -21,12 +17,12 @@ NSString *SUPackageInstallerDelegateKey = @"SUPackageInstallerDelegate";
@implementation SUPackageInstaller
-+ (void)_finishInstallationWithInfo:(NSDictionary *)info
++ (void)finishInstallationWithInfo:(NSDictionary *)info
{
- [self _finishInstallationWithResult:YES host:[info objectForKey:SUPackageInstallerHostKey] error:nil delegate:[info objectForKey:SUPackageInstallerDelegateKey]];
+ [self finishInstallationWithResult:YES host:[info objectForKey:SUPackageInstallerHostKey] error:nil delegate:[info objectForKey:SUPackageInstallerDelegateKey]];
}
-+ (void)_performInstallationWithInfo:(NSDictionary *)info
++ (void)performInstallationWithInfo:(NSDictionary *)info
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@@ -34,7 +30,7 @@ NSString *SUPackageInstallerDelegateKey = @"SUPackageInstallerDelegate";
[installer waitUntilExit];
// Known bug: if the installation fails or is canceled, Sparkle goes ahead and restarts, thinking everything is fine.
- [self performSelectorOnMainThread:@selector(_finishInstallationWithInfo:) withObject:info waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(finishInstallationWithInfo:) withObject:info waitUntilDone:NO];
[pool drain];
}
@@ -46,7 +42,7 @@ NSString *SUPackageInstallerDelegateKey = @"SUPackageInstallerDelegate";
if (floor(NSAppKitVersionNumber) == NSAppKitVersionNumber10_4) {
// 10.4 uses Installer.app because the "open" command in 10.4 doesn't support -W and -n
- command = [[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.apple.installer"];
+ command = [[NSBundle bundleWithIdentifier:@"com.apple.installer"] executablePath];
args = [NSArray arrayWithObjects:path, nil];
} else {
// 10.5 and later. Run installer using the "open" command to ensure it is launched in front of current application.
@@ -60,15 +56,15 @@ NSString *SUPackageInstallerDelegateKey = @"SUPackageInstallerDelegate";
if (![[NSFileManager defaultManager] fileExistsAtPath:command])
{
NSError *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingInstallerToolError userInfo:[NSDictionary dictionaryWithObject:@"Couldn't find Apple's installer tool!" forKey:NSLocalizedDescriptionKey]];
- [self _finishInstallationWithResult:NO host:host error:error delegate:delegate];
+ [self finishInstallationWithResult:NO host:host error:error delegate:delegate];
}
else
{
NSDictionary *info = [NSDictionary dictionaryWithObjectsAndKeys:command, SUPackageInstallerCommandKey, args, SUPackageInstallerArgumentsKey, host, SUPackageInstallerHostKey, delegate, SUPackageInstallerDelegateKey, nil];
if (synchronously)
- [self _performInstallationWithInfo:info];
+ [self performInstallationWithInfo:info];
else
- [NSThread detachNewThreadSelector:@selector(_performInstallationWithInfo:) toTarget:self withObject:info];
+ [NSThread detachNewThreadSelector:@selector(performInstallationWithInfo:) toTarget:self withObject:info];
}
}
diff --git a/SUPipedUnarchiver.m b/SUPipedUnarchiver.m
index c216f44c..3a2e4cf3 100644
--- a/SUPipedUnarchiver.m
+++ b/SUPipedUnarchiver.m
@@ -13,14 +13,14 @@
@implementation SUPipedUnarchiver
-+ (SEL)_selectorConformingToTypeOfPath:(NSString *)path
++ (SEL)selectorConformingToTypeOfPath:(NSString *)path
{
static NSDictionary *typeSelectorDictionary;
if (!typeSelectorDictionary)
- typeSelectorDictionary = [[NSDictionary dictionaryWithObjectsAndKeys:@"_extractZIP", @".zip", @"_extractTAR", @".tar",
- @"_extractTGZ", @".tar.gz", @"_extractTGZ", @".tgz",
- @"_extractTBZ", @".tar.bz2", @"_extractTBZ", @".tbz", nil] retain];
-
+ typeSelectorDictionary = [[NSDictionary dictionaryWithObjectsAndKeys:@"extractZIP", @".zip", @"extractTAR", @".tar",
+ @"extractTGZ", @".tar.gz", @"extractTGZ", @".tgz",
+ @"extractTBZ", @".tar.bz2", @"extractTBZ", @".tbz", nil] retain];
+
NSString *lastPathComponent = [path lastPathComponent];
NSEnumerator *typeEnumerator = [typeSelectorDictionary keyEnumerator];
id currentType;
@@ -35,16 +35,16 @@
- (void)start
{
- [NSThread detachNewThreadSelector:[[self class] _selectorConformingToTypeOfPath:archivePath] toTarget:self withObject:nil];
+ [NSThread detachNewThreadSelector:[[self class] selectorConformingToTypeOfPath:archivePath] toTarget:self withObject:nil];
}
-+ (BOOL)_canUnarchivePath:(NSString *)path
++ (BOOL)canUnarchivePath:(NSString *)path
{
- return ([self _selectorConformingToTypeOfPath:path] != nil);
+ return ([self selectorConformingToTypeOfPath:path] != nil);
}
// This method abstracts the types that use a command line tool piping data from stdin.
-- (void)_extractArchivePipingDataToCommand:(NSString *)command
+- (void)extractArchivePipingDataToCommand:(NSString *)command
{
// *** GETS CALLED ON NON-MAIN THREAD!!!
@@ -55,9 +55,9 @@
// Get the file size.
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
- NSNumber *fs = [[[NSFileManager defaultManager] fileAttributesAtPath:archivePath traverseLink:NO] objectForKey:NSFileSize];
+ NSNumber *fs = [[[NSFileManager defaultManager] fileAttributesAtPath:archivePath traverseLink:NO] objectForKey:NSFileSize];
#else
- NSNumber *fs = [[[NSFileManager defaultManager] attributesOfItemAtPath:archivePath error:NULL] objectForKey:NSFileSize];
+ NSNumber *fs = [[[NSFileManager defaultManager] attributesOfItemAtPath:archivePath error:nil] objectForKey:NSFileSize];
#endif
if (fs == nil) goto reportError;
@@ -68,11 +68,11 @@
setenv("DESTINATION", [[archivePath stringByDeletingLastPathComponent] fileSystemRepresentation], 1);
cmdFP = popen([command fileSystemRepresentation], "w");
- long written;
+ size_t written;
if (!cmdFP) goto reportError;
char buf[32*1024];
- long len;
+ size_t len;
while((len = fread(buf, 1, 32*1024, fp)))
{
written = fwrite(buf, 1, len, cmdFP);
@@ -82,18 +82,18 @@
goto reportError;
}
- [self performSelectorOnMainThread:@selector(_notifyDelegateOfExtractedLength:) withObject:[NSNumber numberWithLong:len] waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfExtractedLength:) withObject:[NSNumber numberWithUnsignedLong:len] waitUntilDone:NO];
}
pclose(cmdFP);
if( ferror( fp ) )
goto reportError;
- [self performSelectorOnMainThread:@selector(_notifyDelegateOfSuccess) withObject:nil waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfSuccess) withObject:nil waitUntilDone:NO];
goto finally;
reportError:
- [self performSelectorOnMainThread:@selector(_notifyDelegateOfFailure) withObject:nil waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(notifyDelegateOfFailure) withObject:nil waitUntilDone:NO];
finally:
if (fp)
@@ -101,37 +101,37 @@ finally:
[pool drain];
}
-- (void)_extractTAR
+- (void)extractTAR
{
// *** GETS CALLED ON NON-MAIN THREAD!!!
- return [self _extractArchivePipingDataToCommand:@"tar -xC \"$DESTINATION\""];
+ return [self extractArchivePipingDataToCommand:@"tar -xC \"$DESTINATION\""];
}
-- (void)_extractTGZ
+- (void)extractTGZ
{
// *** GETS CALLED ON NON-MAIN THREAD!!!
- return [self _extractArchivePipingDataToCommand:@"tar -zxC \"$DESTINATION\""];
+ return [self extractArchivePipingDataToCommand:@"tar -zxC \"$DESTINATION\""];
}
-- (void)_extractTBZ
+- (void)extractTBZ
{
// *** GETS CALLED ON NON-MAIN THREAD!!!
- return [self _extractArchivePipingDataToCommand:@"tar -jxC \"$DESTINATION\""];
+ return [self extractArchivePipingDataToCommand:@"tar -jxC \"$DESTINATION\""];
}
-- (void)_extractZIP
+- (void)extractZIP
{
// *** GETS CALLED ON NON-MAIN THREAD!!!
- return [self _extractArchivePipingDataToCommand:@"ditto -x -k - \"$DESTINATION\""];
+ return [self extractArchivePipingDataToCommand:@"ditto -x -k - \"$DESTINATION\""];
}
+ (void)load
{
- [self _registerImplementation:self];
+ [self registerImplementation:self];
}
@end
diff --git a/SUPlainInstaller.m b/SUPlainInstaller.m
index edff5f7a..33d42683 100644
--- a/SUPlainInstaller.m
+++ b/SUPlainInstaller.m
@@ -11,25 +11,24 @@
#import "SUConstants.h"
#import "SUHost.h"
-
-NSString *SUInstallerPathKey = @"SUInstallerPath";
-NSString *SUInstallerTargetPathKey = @"SUInstallerTargetPath";
-NSString *SUInstallerTempNameKey = @"SUInstallerTempName";
-NSString *SUInstallerHostKey = @"SUInstallerHost";
-NSString *SUInstallerDelegateKey = @"SUInstallerDelegate";
-NSString *SUInstallerResultKey = @"SUInstallerResult";
-NSString *SUInstallerErrorKey = @"SUInstallerError";
+static NSString * const SUInstallerPathKey = @"SUInstallerPath";
+static NSString * const SUInstallerTargetPathKey = @"SUInstallerTargetPath";
+static NSString * const SUInstallerTempNameKey = @"SUInstallerTempName";
+static NSString * const SUInstallerHostKey = @"SUInstallerHost";
+static NSString * const SUInstallerDelegateKey = @"SUInstallerDelegate";
+static NSString * const SUInstallerResultKey = @"SUInstallerResult";
+static NSString * const SUInstallerErrorKey = @"SUInstallerError";
@implementation SUPlainInstaller
-+ (void)_finishInstallationWithInfo:(NSDictionary *)info
++ (void)finishInstallationWithInfo:(NSDictionary *)info
{
// *** GETS CALLED ON NON-MAIN THREAD!
- [self _finishInstallationWithResult:[[info objectForKey:SUInstallerResultKey] boolValue] host:[info objectForKey:SUInstallerHostKey] error:[info objectForKey:SUInstallerErrorKey] delegate:[info objectForKey:SUInstallerDelegateKey]];
+ [self finishInstallationWithResult:[[info objectForKey:SUInstallerResultKey] boolValue] host:[info objectForKey:SUInstallerHostKey] error:[info objectForKey:SUInstallerErrorKey] delegate:[info objectForKey:SUInstallerDelegateKey]];
}
-+ (void)_performInstallationWithInfo:(NSDictionary *)info
++ (void)performInstallationWithInfo:(NSDictionary *)info
{
// *** GETS CALLED ON NON-MAIN THREAD!
@@ -52,7 +51,7 @@ NSString *SUInstallerErrorKey = @"SUInstallerError";
[mutableInfo setObject:[NSNumber numberWithBool:result] forKey:SUInstallerResultKey];
if (!result && error)
[mutableInfo setObject:error forKey:SUInstallerErrorKey];
- [self performSelectorOnMainThread:@selector(_finishInstallationWithInfo:) withObject:mutableInfo waitUntilDone:NO];
+ [self performSelectorOnMainThread:@selector(finishInstallationWithInfo:) withObject:mutableInfo waitUntilDone:NO];
[pool drain];
}
@@ -65,7 +64,7 @@ NSString *SUInstallerErrorKey = @"SUInstallerError";
{
NSString * errorMessage = [NSString stringWithFormat:@"Sparkle Updater: Possible attack in progress! Attempting to \"upgrade\" from %@ to %@. Aborting update.", [host version], [[NSBundle bundleWithPath:path] objectForInfoDictionaryKey:@"CFBundleVersion"]];
NSError *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUDowngradeError userInfo:[NSDictionary dictionaryWithObject:errorMessage forKey:NSLocalizedDescriptionKey]];
- [self _finishInstallationWithResult:NO host:host error:error delegate:delegate];
+ [self finishInstallationWithResult:NO host:host error:error delegate:delegate];
return;
}
#endif
@@ -74,9 +73,9 @@ NSString *SUInstallerErrorKey = @"SUInstallerError";
NSString *tempName = [self temporaryNameForPath:targetPath];
NSDictionary *info = [NSDictionary dictionaryWithObjectsAndKeys:path, SUInstallerPathKey, targetPath, SUInstallerTargetPathKey, tempName, SUInstallerTempNameKey, host, SUInstallerHostKey, delegate, SUInstallerDelegateKey, nil];
if (synchronously)
- [self _performInstallationWithInfo:info];
+ [self performInstallationWithInfo:info];
else
- [NSThread detachNewThreadSelector:@selector(_performInstallationWithInfo:) toTarget:self withObject:info];
+ [NSThread detachNewThreadSelector:@selector(performInstallationWithInfo:) toTarget:self withObject:info];
}
@end
diff --git a/SUPlainInstallerInternals.m b/SUPlainInstallerInternals.m
index a20fb74b..5618ed10 100644
--- a/SUPlainInstallerInternals.m
+++ b/SUPlainInstallerInternals.m
@@ -89,9 +89,9 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
NSString *prefix = [[path stringByDeletingPathExtension] stringByAppendingFormat:@" (%@)", postFix];
NSString *tempDir = [prefix stringByAppendingPathExtension:[path pathExtension]];
// Now let's make sure we get a unique path.
- int cnt=2;
+ unsigned int cnt=2;
while ([[NSFileManager defaultManager] fileExistsAtPath:tempDir] && cnt <= 999)
- tempDir = [NSString stringWithFormat:@"%@ %d.%@", prefix, cnt++, [path pathExtension]];
+ tempDir = [NSString stringWithFormat:@"%@ %u.%@", prefix, cnt++, [path pathExtension]];
return [tempDir lastPathComponent];
}
@@ -255,13 +255,13 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
{
// Something went wrong somewhere along the way, but we're not sure exactly where.
NSString *errorMessage = [NSString stringWithFormat:@"Authenticated file copy from %@ to %@ failed.", src, dst];
- if (error != NULL)
+ if (error != nil)
*error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:[NSDictionary dictionaryWithObject:errorMessage forKey:NSLocalizedDescriptionKey]];
}
}
else
{
- if (error != NULL)
+ if (error != nil)
*error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:[NSDictionary dictionaryWithObject:@"Couldn't get permission to authenticate." forKey:NSLocalizedDescriptionKey]];
}
return res;
@@ -427,7 +427,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
+ (BOOL)copyPathWithAuthentication:(NSString *)src overPath:(NSString *)dst temporaryName:(NSString *)tmp error:(NSError **)error
{
FSRef srcRef, dstRef, dstDirRef, movedRef, tmpDirRef;
- OSErr err;
+ OSStatus err;
BOOL hadFileAtDest = NO, didFindTrash = NO;
NSString *tmpPath = [self _temporaryCopyNameForPath: dst didFindTrash: &didFindTrash];
@@ -498,9 +498,9 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
@end
-#include
-#include
-#include
+#import
+#import
+#import
@implementation SUPlainInstaller (MMExtendedAttributes)
@@ -552,8 +552,11 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
// Only recurse if it's actually a directory. Don't recurse into a
// root-level symbolic link.
- NSDictionary* rootAttributes =
- [[NSFileManager defaultManager] fileAttributesAtPath:root traverseLink:NO];
+#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
+ NSDictionary* rootAttributes = [[NSFileManager defaultManager] fileAttributesAtPath:root traverseLink:NO];
+#else
+ NSDictionary* rootAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:root error:nil];
+#endif
NSString* rootType = [rootAttributes objectForKey:NSFileType];
if (rootType == NSFileTypeDirectory) {
diff --git a/SUScheduledUpdateDriver.h b/SUScheduledUpdateDriver.h
index 892a6a74..64b8022d 100644
--- a/SUScheduledUpdateDriver.h
+++ b/SUScheduledUpdateDriver.h
@@ -12,7 +12,9 @@
#import
#import "SUUIBasedUpdateDriver.h"
-@interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver {
+@interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver
+{
+@private
BOOL showErrors;
}
diff --git a/SUStandardVersionComparator.m b/SUStandardVersionComparator.m
index c2066a0c..863c4829 100644
--- a/SUStandardVersionComparator.m
+++ b/SUStandardVersionComparator.m
@@ -48,7 +48,8 @@ typedef enum {
{
NSString *character;
NSMutableString *s;
- NSInteger i, n, oldType, newType;
+ NSUInteger i, n;
+ SUCharacterType oldType, newType;
NSMutableArray *parts = [NSMutableArray array];
if ([version length] == 0) {
// Nothing to do here
@@ -62,9 +63,8 @@ typedef enum {
newType = [self typeOfCharacter:character];
if (oldType != newType || oldType == kSeparatorType) {
// We've reached a new segment
- NSString *aPart = [[NSString alloc] initWithString:s];
+ NSString *aPart = [[[NSString alloc] initWithString:s] autorelease];
[parts addObject:aPart];
- [aPart release];
[s setString:character];
} else {
// Add character to string and continue
@@ -84,8 +84,10 @@ typedef enum {
NSArray *partsB = [self splitVersionString:versionB];
NSString *partA, *partB;
- NSInteger i, n, typeA, typeB, intA, intB;
-
+ NSUInteger i, n;
+ int intA, intB;
+ SUCharacterType typeA, typeB;
+
n = MIN([partsA count], [partsB count]);
for (i = 0; i < n; ++i) {
partA = [partsA objectAtIndex:i];
diff --git a/SUStatusController.h b/SUStatusController.h
index c73ea5b8..5dfd9775 100644
--- a/SUStatusController.h
+++ b/SUStatusController.h
@@ -12,7 +12,9 @@
#import "SUWindowController.h"
@class SUHost;
-@interface SUStatusController : SUWindowController {
+@interface SUStatusController : SUWindowController
+{
+@private
double progressValue, maxProgressValue;
NSString *title, *statusText, *buttonTitle;
IBOutlet NSButton *actionButton;
diff --git a/SUStatusController.m b/SUStatusController.m
index 3376ff07..be5d6756 100644
--- a/SUStatusController.m
+++ b/SUStatusController.m
@@ -120,10 +120,10 @@
- (void)setMaxProgressValue:(double)value
{
- if (value < 0) value = 0;
+ if (value < 0.0) value = 0.0;
maxProgressValue = value;
- [self setProgressValue:0];
- [progressBar setIndeterminate:(value == 0)];
+ [self setProgressValue:0.0];
+ [progressBar setIndeterminate:(value == 0.0)];
[progressBar startAnimation:self];
[progressBar setUsesThreadedAnimation: YES];
}
diff --git a/SUSystemProfiler.m b/SUSystemProfiler.m
index 7263e8be..a4db3583 100644
--- a/SUSystemProfiler.m
+++ b/SUSystemProfiler.m
@@ -34,9 +34,9 @@
// Gather profile information and append it to the URL.
NSMutableArray *profileArray = [NSMutableArray array];
NSArray *profileDictKeys = [NSArray arrayWithObjects:@"key", @"displayKey", @"value", @"displayValue", nil];
- int error = 0 ;
- int value = 0 ;
- unsigned long length = sizeof(value) ;
+ int error = 0;
+ int value = 0;
+ size_t length = sizeof(value);
// OS version
NSString *currentSystemVersion = [SUHost systemVersionString];
@@ -89,18 +89,18 @@
}
error = sysctlbyname("hw.model", NULL, &length, NULL, 0);
if (error == 0) {
- char *cpuModel;
- cpuModel = (char *)malloc(sizeof(char) * length);
- error = sysctlbyname("hw.model", cpuModel, &length, NULL, 0);
- if (error == 0) {
- NSString *rawModelName = [NSString stringWithUTF8String:cpuModel];
- NSString *visibleModelName = [modelTranslation objectForKey:rawModelName];
- if (visibleModelName == nil)
- visibleModelName = rawModelName;
- [profileArray addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"model",@"Mac Model", rawModelName, visibleModelName, nil] forKeys:profileDictKeys]];
- }
- if (cpuModel != NULL)
+ char *cpuModel = (char *)malloc(sizeof(char) * length);
+ if (cpuModel != NULL) {
+ error = sysctlbyname("hw.model", cpuModel, &length, NULL, 0);
+ if (error == 0) {
+ NSString *rawModelName = [NSString stringWithUTF8String:cpuModel];
+ NSString *visibleModelName = [modelTranslation objectForKey:rawModelName];
+ if (visibleModelName == nil)
+ visibleModelName = rawModelName;
+ [profileArray addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"model",@"Mac Model", rawModelName, visibleModelName, nil] forKeys:profileDictKeys]];
+ }
free(cpuModel);
+ }
}
// Number of CPUs
@@ -111,7 +111,7 @@
// User preferred language
NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];
NSArray *languages = [defs objectForKey:@"AppleLanguages"];
- if (languages && ([languages count] > 0))
+ if ([languages count] > 0)
[profileArray addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"lang",@"Preferred Language", [languages objectAtIndex:0], [languages objectAtIndex:0],nil] forKeys:profileDictKeys]];
// Application sending the request
@@ -124,9 +124,8 @@
// Number of displays?
// CPU speed
- OSErr err;
SInt32 gestaltInfo;
- err = Gestalt(gestaltProcClkSpeedMHz,&gestaltInfo);
+ OSErr err = Gestalt(gestaltProcClkSpeedMHz,&gestaltInfo);
if (err == noErr)
[profileArray addObject:[NSDictionary dictionaryWithObjects:[NSArray arrayWithObjects:@"cpuFreqMHz",@"CPU Speed (GHz)", [NSNumber numberWithInt:gestaltInfo], [NSNumber numberWithDouble:gestaltInfo/1000.0],nil] forKeys:profileDictKeys]];
diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m
index f25ba211..eb17f028 100644
--- a/SUUIBasedUpdateDriver.m
+++ b/SUUIBasedUpdateDriver.m
@@ -68,7 +68,7 @@
{
case SUInstallUpdateChoice:
statusController = [[SUStatusController alloc] initWithHost:host];
- [statusController beginActionWithTitle:SULocalizedString(@"Downloading update...", @"Take care not to overflow the status window.") maxProgressValue:0 statusText:nil];
+ [statusController beginActionWithTitle:SULocalizedString(@"Downloading update...", @"Take care not to overflow the status window.") maxProgressValue:0.0 statusText:nil];
[statusController setButtonTitle:SULocalizedString(@"Cancel", nil) target:self action:@selector(cancelDownload:) isDefault:NO];
[statusController showWindow:self];
[self downloadUpdate];
@@ -95,28 +95,27 @@
[statusController setMaxProgressValue:[response expectedContentLength]];
}
-
-- (NSString *)_humanReadableSizeFromDouble:(double)value
+- (NSString *)humanReadableSizeFromDouble:(double)value
{
- if (value < 1024)
+ if (value < 1000)
return [NSString stringWithFormat:@"%.0lf %@", value, SULocalizedString(@"B", @"the unit for bytes")];
- if (value < 1024 * 1024)
- return [NSString stringWithFormat:@"%.0lf %@", value / 1024.0, SULocalizedString(@"KB", @"the unit for kilobytes")];
+ if (value < 1000 * 1000)
+ return [NSString stringWithFormat:@"%.0lf %@", value / 1000.0, SULocalizedString(@"KB", @"the unit for kilobytes")];
- if (value < 1024 * 1024 * 1024)
- return [NSString stringWithFormat:@"%.1lf %@", value / 1024.0 / 1024.0, SULocalizedString(@"MB", @"the unit for megabytes")];
+ if (value < 1000 * 1000 * 1000)
+ return [NSString stringWithFormat:@"%.1lf %@", value / 1000.0 / 1000.0, SULocalizedString(@"MB", @"the unit for megabytes")];
- return [NSString stringWithFormat:@"%.2lf %@", value / 1024.0 / 1024.0 / 1024.0, SULocalizedString(@"GB", @"the unit for gigabytes")];
+ return [NSString stringWithFormat:@"%.2lf %@", value / 1000.0 / 1000.0 / 1000.0, SULocalizedString(@"GB", @"the unit for gigabytes")];
}
- (void)download:(NSURLDownload *)download didReceiveDataOfLength:(NSUInteger)length
{
- [statusController setProgressValue:[statusController progressValue] + length];
- if ([statusController maxProgressValue] > 0)
- [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ of %@", nil), [self _humanReadableSizeFromDouble:[statusController progressValue]], [self _humanReadableSizeFromDouble:[statusController maxProgressValue]]]];
+ [statusController setProgressValue:[statusController progressValue] + (double)length];
+ if ([statusController maxProgressValue] > 0.0)
+ [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ of %@", nil), [self humanReadableSizeFromDouble:[statusController progressValue]], [self humanReadableSizeFromDouble:[statusController maxProgressValue]]]];
else
- [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ downloaded", nil), [self _humanReadableSizeFromDouble:[statusController progressValue]]]];
+ [statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ downloaded", nil), [self humanReadableSizeFromDouble:[statusController progressValue]]]];
}
- (IBAction)cancelDownload: (id)sender
@@ -134,27 +133,31 @@
- (void)extractUpdate
{
// Now we have to extract the downloaded archive.
- [statusController beginActionWithTitle:SULocalizedString(@"Extracting update...", @"Take care not to overflow the status window.") maxProgressValue:0 statusText:nil];
+ [statusController beginActionWithTitle:SULocalizedString(@"Extracting update...", @"Take care not to overflow the status window.") maxProgressValue:0.0 statusText:nil];
[statusController setButtonEnabled:NO];
[super extractUpdate];
}
-- (void)unarchiver:(SUUnarchiver *)ua extractedLength:(long)length
+- (void)unarchiver:(SUUnarchiver *)ua extractedLength:(unsigned long)length
{
// We do this here instead of in extractUpdate so that we only have a determinate progress bar for archives with progress.
- if ([statusController maxProgressValue] == 0)
+ if ([statusController maxProgressValue] == 0.0)
+ {
+ NSDictionary * attributes;
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
- [statusController setMaxProgressValue:[[[[NSFileManager defaultManager] fileAttributesAtPath:downloadPath traverseLink:NO] objectForKey:NSFileSize] doubleValue]];
+ attributes = [[NSFileManager defaultManager] fileAttributesAtPath:downloadPath traverseLink:NO];
#else
- [statusController setMaxProgressValue:[[[[NSFileManager defaultManager] attributesOfItemAtPath:downloadPath error:NULL] objectForKey:NSFileSize] doubleValue]];
+ attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:downloadPath error:nil];
#endif
- [statusController setProgressValue:[statusController progressValue] + length];
+ [statusController setMaxProgressValue:[[attributes objectForKey:NSFileSize] doubleValue]];
+ }
+ [statusController setProgressValue:[statusController progressValue] + (double)length];
}
- (void)unarchiverDidFinish:(SUUnarchiver *)ua
{
- [statusController beginActionWithTitle:SULocalizedString(@"Ready to Install", nil) maxProgressValue:1 statusText:nil];
- [statusController setProgressValue:1]; // Fill the bar.
+ [statusController beginActionWithTitle:SULocalizedString(@"Ready to Install", nil) maxProgressValue:1.0 statusText:nil];
+ [statusController setProgressValue:1.0]; // Fill the bar.
[statusController setButtonEnabled:YES];
[statusController setButtonTitle:SULocalizedString(@"Install and Relaunch", nil) target:self action:@selector(installAndRestart:) isDefault:YES];
[[statusController window] makeKeyAndOrderFront: self];
@@ -169,7 +172,7 @@
- (void)installUpdate
{
- [statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"Take care not to overflow the status window.") maxProgressValue:0 statusText:nil];
+ [statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"Take care not to overflow the status window.") maxProgressValue:0.0 statusText:nil];
[statusController setButtonEnabled:NO];
[super installUpdate];
diff --git a/SUUnarchiver.h b/SUUnarchiver.h
index 1b237210..261187c5 100644
--- a/SUUnarchiver.h
+++ b/SUUnarchiver.h
@@ -9,12 +9,15 @@
#ifndef SUUNARCHIVER_H
#define SUUNARCHIVER_H
+@class SUHost;
+
@interface SUUnarchiver : NSObject {
id delegate;
NSString *archivePath;
+ SUHost *updateHost;
}
-+ (SUUnarchiver *)unarchiverForPath:(NSString *)path;
++ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHost:(SUHost *)host;
- (void)setDelegate:delegate;
- (void)start;
@@ -22,7 +25,7 @@
@end
@interface NSObject (SUUnarchiverDelegate)
-- (void)unarchiver:(SUUnarchiver *)unarchiver extractedLength:(long)length;
+- (void)unarchiver:(SUUnarchiver *)unarchiver extractedLength:(unsigned long)length;
- (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver;
- (void)unarchiverDidFail:(SUUnarchiver *)unarchiver;
@end
diff --git a/SUUnarchiver.m b/SUUnarchiver.m
index 3c4a803e..ca437b4a 100644
--- a/SUUnarchiver.m
+++ b/SUUnarchiver.m
@@ -17,16 +17,14 @@
@implementation SUUnarchiver
-extern NSMutableArray *__unarchiverImplementations;
-
-+ (SUUnarchiver *)unarchiverForPath:(NSString *)path
++ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHost:(SUHost *)host
{
- NSEnumerator *implementationEnumerator = [[self _unarchiverImplementations] objectEnumerator];
+ NSEnumerator *implementationEnumerator = [[self unarchiverImplementations] objectEnumerator];
id current;
while ((current = [implementationEnumerator nextObject]))
{
- if ([current _canUnarchivePath:path])
- return [[[current alloc] _initWithPath:path] autorelease];
+ if ([current canUnarchivePath:path])
+ return [[[current alloc] initWithPath:path host:host] autorelease];
}
return nil;
}
diff --git a/SUUnarchiver_Private.h b/SUUnarchiver_Private.h
index 5928b278..00cb008e 100644
--- a/SUUnarchiver_Private.h
+++ b/SUUnarchiver_Private.h
@@ -13,14 +13,14 @@
#import "SUUnarchiver.h"
@interface SUUnarchiver (Private)
-+ (void)_registerImplementation:(Class)implementation;
-+ (NSArray *)_unarchiverImplementations;
-+ (BOOL)_canUnarchivePath:(NSString *)path;
-- _initWithPath:(NSString *)path;
++ (void)registerImplementation:(Class)implementation;
++ (NSArray *)unarchiverImplementations;
++ (BOOL)canUnarchivePath:(NSString *)path;
+- (id)initWithPath:(NSString *)path host:(SUHost *)host;;
-- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length;
-- (void)_notifyDelegateOfSuccess;
-- (void)_notifyDelegateOfFailure;
+- (void)notifyDelegateOfExtractedLength:(NSNumber *)length;
+- (void)notifyDelegateOfSuccess;
+- (void)notifyDelegateOfFailure;
@end
#endif
diff --git a/SUUnarchiver_Private.m b/SUUnarchiver_Private.m
index ead77eeb..bad6f6f3 100644
--- a/SUUnarchiver_Private.m
+++ b/SUUnarchiver_Private.m
@@ -10,54 +10,58 @@
@implementation SUUnarchiver (Private)
-- _initWithPath:(NSString *)path
+- (id)initWithPath:(NSString *)path host:(SUHost *)host
{
if ((self = [super init]))
+ {
archivePath = [path copy];
+ updateHost = [host retain];
+ }
return self;
}
- (void)dealloc
{
[archivePath release];
+ [updateHost release];
[super dealloc];
}
-+ (BOOL)_canUnarchivePath:(NSString *)path
++ (BOOL)canUnarchivePath:(NSString *)path
{
return NO;
}
-- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length
+- (void)notifyDelegateOfExtractedLength:(NSNumber *)length
{
if ([delegate respondsToSelector:@selector(unarchiver:extractedLength:)])
- [delegate unarchiver:self extractedLength:[length longValue]];
+ [delegate unarchiver:self extractedLength:[length unsignedLongValue]];
}
-- (void)_notifyDelegateOfSuccess
+- (void)notifyDelegateOfSuccess
{
if ([delegate respondsToSelector:@selector(unarchiverDidFinish:)])
[delegate performSelector:@selector(unarchiverDidFinish:) withObject:self];
}
-- (void)_notifyDelegateOfFailure
+- (void)notifyDelegateOfFailure
{
if ([delegate respondsToSelector:@selector(unarchiverDidFail:)])
[delegate performSelector:@selector(unarchiverDidFail:) withObject:self];
}
-static NSMutableArray *__unarchiverImplementations;
+static NSMutableArray *gUnarchiverImplementations;
-+ (void)_registerImplementation:(Class)implementation
++ (void)registerImplementation:(Class)implementation
{
- if (!__unarchiverImplementations)
- __unarchiverImplementations = [[NSMutableArray alloc] init];
- [__unarchiverImplementations addObject:implementation];
+ if (!gUnarchiverImplementations)
+ gUnarchiverImplementations = [[NSMutableArray alloc] init];
+ [gUnarchiverImplementations addObject:implementation];
}
-+ (NSArray *)_unarchiverImplementations
++ (NSArray *)unarchiverImplementations
{
- return [NSArray arrayWithArray:__unarchiverImplementations];
+ return [NSArray arrayWithArray:gUnarchiverImplementations];
}
@end
diff --git a/SUUpdateAlert.m b/SUUpdateAlert.m
index 621c01d2..bf3e35ee 100644
--- a/SUUpdateAlert.m
+++ b/SUUpdateAlert.m
@@ -304,7 +304,7 @@
- (void)webView:sender decidePolicyForNavigationAction:(NSDictionary *)actionInformation request:(NSURLRequest *)request frame:frame decisionListener:listener
{
- if (webViewFinishedLoading == YES) {
+ if (webViewFinishedLoading) {
[[NSWorkspace sharedWorkspace] openURL:[request URL]];
[listener ignore];
diff --git a/SUUpdateDriver.h b/SUUpdateDriver.h
index 5d181647..1a305d11 100644
--- a/SUUpdateDriver.h
+++ b/SUUpdateDriver.h
@@ -11,7 +11,7 @@
#import
-extern NSString *SUUpdateDriverFinishedNotification;
+extern NSString * const SUUpdateDriverFinishedNotification;
@class SUHost, SUUpdater;
@interface SUUpdateDriver : NSObject
diff --git a/SUUpdateDriver.m b/SUUpdateDriver.m
index 66b5880f..d98282a9 100644
--- a/SUUpdateDriver.m
+++ b/SUUpdateDriver.m
@@ -9,7 +9,7 @@
#import "SUUpdateDriver.h"
#import "SUHost.h"
-NSString *SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished";
+NSString * const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished";
@implementation SUUpdateDriver
- initWithUpdater:(SUUpdater *)anUpdater
diff --git a/SUUpdatePermissionPrompt.m b/SUUpdatePermissionPrompt.m
index 0a4106fc..74954afc 100644
--- a/SUUpdatePermissionPrompt.m
+++ b/SUUpdatePermissionPrompt.m
@@ -40,7 +40,7 @@
// the user would not know why the application was paused.
if ([aHost isBackgroundApplication]) { [NSApp activateIgnoringOtherApps:YES]; }
- id prompt = [[[self class] alloc] initWithHost:aHost systemProfile:profile delegate:d];
+ id prompt = [[[[self class] alloc] initWithHost:aHost systemProfile:profile delegate:d] autorelease];
[NSApp runModalForWindow:[prompt window]];
}
@@ -126,7 +126,6 @@
[delegate updatePermissionPromptFinishedWithResult:([sender tag] == 1 ? SUAutomaticallyCheck : SUDoNotAutomaticallyCheck)];
[[self window] close];
[NSApp stopModal];
- [self autorelease];
}
@end
diff --git a/SUUpdater.h b/SUUpdater.h
index fecac2d5..12f865a9 100644
--- a/SUUpdater.h
+++ b/SUUpdater.h
@@ -30,6 +30,7 @@
@interface SUUpdater : NSObject
{
+@private
NSTimer *checkTimer;
SUUpdateDriver *driver;
diff --git a/SUUpdater.m b/SUUpdater.m
index cfd54e5f..7d764400 100644
--- a/SUUpdater.m
+++ b/SUUpdater.m
@@ -41,7 +41,7 @@
#pragma mark Initialization
static NSMutableDictionary *sharedUpdaters = nil;
-static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";
+static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext";
+ (SUUpdater *)sharedUpdater
{
@@ -54,7 +54,7 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
if (bundle == nil) bundle = [NSBundle mainBundle];
id updater = [sharedUpdaters objectForKey:[NSValue valueWithNonretainedObject:bundle]];
if (updater == nil)
- updater = [[[self class] alloc] initForBundle:bundle];
+ updater = [[[[self class] alloc] initForBundle:bundle] autorelease];
return updater;
}
@@ -63,6 +63,11 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
{
self = [super init];
if (bundle == nil) bundle = [NSBundle mainBundle];
+
+ // Register as observer straight away to avoid exceptions on -dealloc when -unregisterAsObserver is called:
+ if (self)
+ [self registerAsObserver];
+
id updater = [sharedUpdaters objectForKey:[NSValue valueWithNonretainedObject:bundle]];
if (updater)
{
@@ -75,7 +80,6 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
sharedUpdaters = [[NSMutableDictionary alloc] init];
[sharedUpdaters setObject:self forKey:[NSValue valueWithNonretainedObject:bundle]];
host = [[SUHost alloc] initWithBundle:bundle];
- [self registerAsObserver];
#if !ENDANGER_USERS_WITH_INSECURE_UPDATES
// Saving-the-developer-from-a-stupid-mistake-check:
@@ -308,22 +312,22 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
- (void)registerAsObserver
{
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDriverDidFinish:) name:SUUpdateDriverFinishedNotification object:nil];
- // No sense observing the shared NSUserDefaultsController when we're not updating the main bundle.
- if ([host bundle] != [NSBundle mainBundle]) return;
[[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:[@"values." stringByAppendingString:SUScheduledCheckIntervalKey] options:0 context:SUUpdaterDefaultsObservationContext];
[[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:[@"values." stringByAppendingString:SUEnableAutomaticChecksKey] options:0 context:SUUpdaterDefaultsObservationContext];
}
- (void)unregisterAsObserver
{
- [[NSNotificationCenter defaultCenter] removeObserver:self];
- // Removing self as a KVO observer if no observer was registered leads to an NSException. But we don't care.
@try
{
+ [[NSNotificationCenter defaultCenter] removeObserver:self];
[[NSUserDefaultsController sharedUserDefaultsController] removeObserver:self forKeyPath:[@"values." stringByAppendingString:SUScheduledCheckIntervalKey]];
[[NSUserDefaultsController sharedUserDefaultsController] removeObserver:self forKeyPath:[@"values." stringByAppendingString:SUEnableAutomaticChecksKey]];
}
- @catch (NSException *e) { }
+ @catch (NSException *e)
+ {
+ NSLog(@"Sparkle Error: [SUUpdater unregisterAsObserver] called, but the updater wasn't registered as an observer.");
+ }
}
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
@@ -455,14 +459,14 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
parameters = [parameters arrayByAddingObjectsFromArray:[host systemProfile]];
[host setObject:[NSDate date] forUserDefaultsKey:SULastProfileSubmitDateKey];
}
- if (parameters == nil || [parameters count] == 0) { return baseFeedURL; }
+ if ([parameters count] == 0) { return baseFeedURL; }
// Build up the parameterized URL.
NSMutableArray *parameterStrings = [NSMutableArray array];
NSEnumerator *profileInfoEnumerator = [parameters objectEnumerator];
NSDictionary *currentProfileInfo;
while ((currentProfileInfo = [profileInfoEnumerator nextObject]))
- [parameterStrings addObject:[NSString stringWithFormat:@"%@=%@", [currentProfileInfo objectForKey:@"key"], [currentProfileInfo objectForKey:@"value"]]];
+ [parameterStrings addObject:[NSString stringWithFormat:@"%@=%@", [[[currentProfileInfo objectForKey:@"key"] description] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding], [[[currentProfileInfo objectForKey:@"value"] description] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
NSString *separatorCharacter = @"?";
if ([baseFeedURL query])
@@ -470,7 +474,7 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
NSString *appcastStringWithProfile = [NSString stringWithFormat:@"%@%@%@", [baseFeedURL absoluteString], separatorCharacter, [parameterStrings componentsJoinedByString:@"&"]];
// Clean it up so it's a valid URL
- return [NSURL URLWithString:[appcastStringWithProfile stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
+ return [NSURL URLWithString:appcastStringWithProfile];
}
- (void)setUpdateCheckInterval:(NSTimeInterval)updateCheckInterval
diff --git a/SUUserInitiatedUpdateDriver.h b/SUUserInitiatedUpdateDriver.h
index 9d9a3041..8df5f89d 100644
--- a/SUUserInitiatedUpdateDriver.h
+++ b/SUUserInitiatedUpdateDriver.h
@@ -12,7 +12,9 @@
#import
#import "SUUIBasedUpdateDriver.h"
-@interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver {
+@interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver
+{
+@private
SUStatusController *checkingController;
BOOL isCanceled;
}
diff --git a/SUUserInitiatedUpdateDriver.m b/SUUserInitiatedUpdateDriver.m
index 92ad3f2e..276b032b 100644
--- a/SUUserInitiatedUpdateDriver.m
+++ b/SUUserInitiatedUpdateDriver.m
@@ -13,23 +13,6 @@
@implementation SUUserInitiatedUpdateDriver
-- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost
-{
- checkingController = [[SUStatusController alloc] initWithHost:aHost];
- [[checkingController window] center]; // Force the checking controller to load its window.
- [checkingController beginActionWithTitle:SULocalizedString(@"Checking for updates...", nil) maxProgressValue:0 statusText:nil];
- [checkingController setButtonTitle:SULocalizedString(@"Cancel", nil) target:self action:@selector(cancelCheckForUpdates:) isDefault:NO];
- [checkingController showWindow:self];
- [super checkForUpdatesAtURL:URL host:aHost];
-
- // For background applications, obtain focus.
- // Useful if the update check is requested from another app like System Preferences.
- if ([aHost isBackgroundApplication])
- {
- [NSApp activateIgnoringOtherApps:YES];
- }
-}
-
- (void)closeCheckingWindow
{
if (checkingController)
@@ -46,6 +29,23 @@
isCanceled = YES;
}
+- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost
+{
+ checkingController = [[SUStatusController alloc] initWithHost:aHost];
+ [[checkingController window] center]; // Force the checking controller to load its window.
+ [checkingController beginActionWithTitle:SULocalizedString(@"Checking for updates...", nil) maxProgressValue:0.0 statusText:nil];
+ [checkingController setButtonTitle:SULocalizedString(@"Cancel", nil) target:self action:@selector(cancelCheckForUpdates:) isDefault:NO];
+ [checkingController showWindow:self];
+ [super checkForUpdatesAtURL:URL host:aHost];
+
+ // For background applications, obtain focus.
+ // Useful if the update check is requested from another app like System Preferences.
+ if ([aHost isBackgroundApplication])
+ {
+ [NSApp activateIgnoringOtherApps:YES];
+ }
+}
+
- (void)appcastDidFinishLoading:(SUAppcast *)ac
{
if (isCanceled)
diff --git a/SUWindowController.m b/SUWindowController.m
index c1c5d713..038900ac 100644
--- a/SUWindowController.m
+++ b/SUWindowController.m
@@ -20,7 +20,8 @@
NSBundle *framework = [NSBundle bundleWithPath:frameworkPath];
path = [framework pathForResource:nibName ofType:@"nib"];
}
- return [super initWithWindowNibPath:path owner:self];
+ self = [super initWithWindowNibPath:path owner:self];
+ return self;
}
@end
diff --git a/Sparkle.pch b/Sparkle.pch
index c1bca45b..9bd4777f 100644
--- a/Sparkle.pch
+++ b/Sparkle.pch
@@ -6,11 +6,25 @@
// Copyright 2008 Andy Matuschak. All rights reserved.
//
+#ifndef NSAppKitVersionNumber10_4
+#define NSAppKitVersionNumber10_4 824
+#endif
+
+#ifndef NSAppKitVersionNumber10_5
+#define NSAppKitVersionNumber10_5 949
+#endif
+
+#ifndef NSAppKitVersionNumber10_6
+#define NSAppKitVersionNumber10_6 1038
+#endif
+
+#ifdef __OBJC__
+
#define SPARKLE_BUNDLE [NSBundle bundleWithIdentifier:@"org.andymatuschak.Sparkle"]
#define SULocalizedString(key,comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", SPARKLE_BUNDLE, comment)
#define SUAbstractFail() NSAssert2(nil, @"Can't call %@ on an instance of %@; this is an abstract method!", __PRETTY_FUNCTION__, [self class]);
-#ifdef __OBJC__
#import
#import "SUConstants.h"
+
#endif
diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj
index 34ea3cec..df90fd75 100644
--- a/Sparkle.xcodeproj/project.pbxproj
+++ b/Sparkle.xcodeproj/project.pbxproj
@@ -3,33 +3,31 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 44;
+ objectVersion = 46;
objects = {
/* Begin PBXBuildFile section */
- 55D8F80A10C58B210011E7FA /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55D8F80810C58B210011E7FA /* SULog.m */; };
- 55D8F80B10C58B210011E7FA /* SULog.h in Headers */ = {isa = PBXBuildFile; fileRef = 55D8F80710C58B210011E7FA /* SULog.h */; };
- 55D8F80C10C58B210011E7FA /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55D8F80810C58B210011E7FA /* SULog.m */; };
- 55D8F80D10C58B210011E7FA /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55D8F80810C58B210011E7FA /* SULog.m */; };
- 55DAF0701131A24A00701FC7 /* SUUpdateAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55DAF06E1131A24A00701FC7 /* SUUpdateAlert.xib */; };
- 55F9B62E10C6BD590099848A /* finish_installation.m in Sources */ = {isa = PBXBuildFile; fileRef = 613242130CD06CEF00106AA4 /* finish_installation.m */; };
- 55F9B62F10C6BD610099848A /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; };
- 55F9B63010C6BD650099848A /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; };
- 55F9B63510C6BE900099848A /* SUInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5000DAE88B40026945C /* SUInstaller.m */; };
- 55F9B63610C6BE940099848A /* SUPlainInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5040DAE8AB80026945C /* SUPlainInstaller.m */; };
- 55F9B63710C6BE970099848A /* SUPlainInstallerInternals.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E509C4CE3C00B25A18 /* SUPlainInstallerInternals.m */; };
- 55F9B63810C6BE9A0099848A /* SUPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */; };
- 55F9B63910C6BE9F0099848A /* SUStandardVersionComparator.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */; };
- 55F9B63A10C6BEA50099848A /* SUSystemProfiler.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A2279B0D1CEE7600430CCD /* SUSystemProfiler.m */; };
- 55F9B63D10C6BEC00099848A /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55D8F80810C58B210011E7FA /* SULog.m */; };
- 55F9B67F10C6BED60099848A /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; };
- 55F9B73810C6BEDC0099848A /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; };
- 55F9B7B810C6BEE20099848A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; };
- 55F9B7D010C6DDD60099848A /* Sparkle.icns in Resources */ = {isa = PBXBuildFile; fileRef = 61BBDF810A49220C00378739 /* Sparkle.icns */; };
- 55F9B7D110C6DDE50099848A /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; };
- 55F9B7D710C6E2FF0099848A /* SUStatusController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6196CFE409C71ADE000DC222 /* SUStatusController.m */; };
- 55F9B7D810C6E3020099848A /* SUWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 61180BC90D64138900B4E0D1 /* SUWindowController.m */; };
- 55F9B7F410C6E8B50099848A /* SUStatus.nib in Resources */ = {isa = PBXBuildFile; fileRef = 610D5A740A1670A4004AAD9C /* SUStatus.nib */; };
+ 525A2790133D6AE900FD8D70 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 525A278F133D6AE900FD8D70 /* Cocoa.framework */; };
+ 525A27A0133D6B9700FD8D70 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 525A278F133D6AE900FD8D70 /* Cocoa.framework */; };
+ 525A27A3133D6BAE00FD8D70 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 525A278F133D6AE900FD8D70 /* Cocoa.framework */; };
+ 5D06E8D80FD68C8E005AE3F6 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; };
+ 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; settings = {COMPILER_FLAGS = "-Wno-shorten-64-to-32"; }; };
+ 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */; };
+ 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; settings = {COMPILER_FLAGS = "-Wno-shorten-64-to-32"; }; };
+ 5D06E8EC0FD68CE4005AE3F6 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; };
+ 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; };
+ 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; };
+ 5D06E8FF0FD68D6D005AE3F6 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; };
+ 5D06E9050FD68D7D005AE3F6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; };
+ 5D06E9390FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D06E9370FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h */; };
+ 5D06E93A0FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */; };
+ 5D1AF58A0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; settings = {ATTRIBUTES = (Weak, ); }; };
+ 5D1AF58B0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; };
+ 5D1AF5900FD767AD0065DB48 /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */; };
+ 5D1AF59A0FD767E50065DB48 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5990FD767E50065DB48 /* libz.dylib */; };
+ 5D1AF59C0FD768010065DB48 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF59B0FD768010065DB48 /* libcrypto.dylib */; };
+ 5D1AF82B0FD768180065DB48 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5990FD767E50065DB48 /* libz.dylib */; };
+ 5D1AF82C0FD7681A0065DB48 /* libcrypto.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF59B0FD768010065DB48 /* libcrypto.dylib */; };
610134730DD250470049ACDF /* SUUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 610134710DD250470049ACDF /* SUUpdateDriver.h */; settings = {ATTRIBUTES = (); }; };
610134740DD250470049ACDF /* SUUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 610134720DD250470049ACDF /* SUUpdateDriver.m */; };
6101347B0DD2541A0049ACDF /* SUProbingUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 610134790DD2541A0049ACDF /* SUProbingUpdateDriver.h */; settings = {ATTRIBUTES = (); }; };
@@ -39,9 +37,9 @@
6102FE4B0E07803800F85D09 /* SUDiskImageUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 6102FE490E07803800F85D09 /* SUDiskImageUnarchiver.m */; };
6102FE5B0E08C7EC00F85D09 /* SUUnarchiver_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 6102FE590E08C7EC00F85D09 /* SUUnarchiver_Private.h */; settings = {ATTRIBUTES = (); }; };
6102FE5C0E08C7EC00F85D09 /* SUUnarchiver_Private.m in Sources */ = {isa = PBXBuildFile; fileRef = 6102FE5A0E08C7EC00F85D09 /* SUUnarchiver_Private.m */; };
- 610D5A1A0A1661B8004AAD9C /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; };
610D5A750A1670A4004AAD9C /* SUStatus.nib in Resources */ = {isa = PBXBuildFile; fileRef = 610D5A740A1670A4004AAD9C /* SUStatus.nib */; };
610EC1E00CF3A5FE00AE239E /* NTSynchronousTask.m in Sources */ = {isa = PBXBuildFile; fileRef = 610EC1BF0CF3914D00AE239E /* NTSynchronousTask.m */; };
+ 611142E910FB1BE5009810AA /* bspatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 611142E810FB1BE5009810AA /* bspatch.h */; };
61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6117796E0D1112E000749C97 /* IOKit.framework */; };
61180BCA0D64138900B4E0D1 /* SUWindowController.h in Headers */ = {isa = PBXBuildFile; fileRef = 61180BC80D64138900B4E0D1 /* SUWindowController.h */; settings = {ATTRIBUTES = (); }; };
61180BCB0D64138900B4E0D1 /* SUWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 61180BC90D64138900B4E0D1 /* SUWindowController.m */; };
@@ -61,6 +59,10 @@
61407C390A4099050009F71F /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; };
615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */; };
6160E7E10D3B4A8800E9CD71 /* NTSynchronousTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 610EC1C00CF3914D00AE239E /* NTSynchronousTask.h */; settings = {ATTRIBUTES = (); }; };
+ 6160FD84134ABCC8007FFC5F /* SUAutomaticUpdateAlert.nib in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8240A321A7F00D8810D /* SUAutomaticUpdateAlert.nib */; };
+ 6160FD88134ABCD5007FFC5F /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8DC2EF5A0486A6940098B216 /* Info.plist */; };
+ 6160FD89134ABCD5007FFC5F /* SUModelTranslation.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */; };
+ 6160FD8A134ABCD5007FFC5F /* License.txt in Resources */ = {isa = PBXBuildFile; fileRef = 61C268090E2DB5D000175E6C /* License.txt */; };
61699BCC0DDB92BD005878A4 /* SUVersionComparisonTest.h in Headers */ = {isa = PBXBuildFile; fileRef = 61227A140DB548B800AB99EA /* SUVersionComparisonTest.h */; settings = {ATTRIBUTES = (); }; };
618E9CFD0E7328F1004646D8 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 618E9CFC0E7328F1004646D8 /* dsa_pub.pem */; };
618FA5010DAE88B40026945C /* SUInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 618FA4FF0DAE88B40026945C /* SUInstaller.h */; settings = {ATTRIBUTES = (); }; };
@@ -80,6 +82,7 @@
61A354560DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A354540DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m */; };
61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; };
61AAE8290A321A8000D8810D /* SUAutomaticUpdateAlert.nib in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8240A321A7F00D8810D /* SUAutomaticUpdateAlert.nib */; };
+ 61AAE82A0A321A8000D8810D /* SUUpdateAlert.nib in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8260A321A7F00D8810D /* SUUpdateAlert.nib */; };
61B5F8ED09C4CE3C00B25A18 /* SUUpdater.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5F8E309C4CE3C00B25A18 /* SUUpdater.h */; settings = {ATTRIBUTES = (Public, ); }; };
61B5F8EE09C4CE3C00B25A18 /* SUUpdater.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E409C4CE3C00B25A18 /* SUUpdater.m */; };
61B5F8EF09C4CE3C00B25A18 /* SUPlainInstallerInternals.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E509C4CE3C00B25A18 /* SUPlainInstallerInternals.m */; };
@@ -111,15 +114,18 @@
61F83F720DBFE140006FDD30 /* SUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */; };
61F83F740DBFE141006FDD30 /* SUBasicUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */; settings = {ATTRIBUTES = (); }; };
61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (Required, ); }; };
- E0AA6C9E10D2598E0009485A /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E0AA6C4910D259600009485A /* SystemConfiguration.framework */; };
- E0AA6D0E10D262DE0009485A /* finish_installation.app in Resources */ = {isa = PBXBuildFile; fileRef = 55F9B5E410C68F890099848A /* finish_installation.app */; };
- FAEFA2F70D94AA7500472538 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; };
- FAEFA2F80D94AA7900472538 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; };
- FAEFA3040D94AB3400472538 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; };
- FAEFA3050D94AB3400472538 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; };
+ DAAEFD4E0DA572330051E0D0 /* relaunch.m in Sources */ = {isa = PBXBuildFile; fileRef = 613242130CD06CEF00106AA4 /* relaunch.m */; };
+ DAAEFD510DA572550051E0D0 /* relaunch in Resources */ = {isa = PBXBuildFile; fileRef = DAAEFC960DA571DF0051E0D0 /* relaunch */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
+ 5D06E8D50FD68C86005AE3F6 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
+ remoteInfo = Sparkle;
+ };
61227AB90DB5C4BB00AB99EA /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
@@ -141,12 +147,12 @@
remoteGlobalIDString = 8DC2EF4F0486A6940098B216;
remoteInfo = Sparkle;
};
- E0AA6D0C10D262C10009485A /* PBXContainerItemProxy */ = {
+ DAAEFD4F0DA572460051E0D0 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
proxyType = 1;
- remoteGlobalIDString = 55F9B5E310C68F890099848A;
- remoteInfo = finish_installation;
+ remoteGlobalIDString = DAAEFC950DA571DF0051E0D0;
+ remoteInfo = relaunch;
};
/* End PBXContainerItemProxy section */
@@ -166,32 +172,25 @@
/* Begin PBXFileReference section */
0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; };
0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = ""; };
- 55D8F80410C589F40011E7FA /* ThreadSafePreferences.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ThreadSafePreferences.h; path = Elgato/ThreadSafePreferences.h; sourceTree = ""; };
- 55D8F80710C58B210011E7FA /* SULog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SULog.h; sourceTree = ""; };
- 55D8F80810C58B210011E7FA /* SULog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULog.m; sourceTree = ""; };
- 55DAF06F1131A24A00701FC7 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0711131A25800701FC7 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0721131A26200701FC7 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = it.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0731131A26E00701FC7 /* pt */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt; path = pt.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0741131A27800701FC7 /* sk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sk; path = sk.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0751131A29500701FC7 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0761131A29E00701FC7 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0771131A2AA00701FC7 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0781131A2B300701FC7 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0791131A2BC00701FC7 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = nl.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF07A1131A2C600701FC7 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF07B1131A2CE00701FC7 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF07C1131A2D800701FC7 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF07D1131A2E100701FC7 /* pl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pl; path = pl.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF07E1131A2E900701FC7 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF07F1131A2F300701FC7 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0801131A2FB00701FC7 /* ko */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ko; path = ko.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0811131A30600701FC7 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_BR; path = pt_BR.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55DAF0821131A31000701FC7 /* is */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = is; path = is.lproj/SUUpdateAlert.xib; sourceTree = ""; };
- 55F9B5E410C68F890099848A /* finish_installation.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = finish_installation.app; sourceTree = BUILT_PRODUCTS_DIR; };
- 55F9B5E610C68F890099848A /* finish_installation-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "finish_installation-Info.plist"; sourceTree = ""; };
- 55F9B7C310C6C1740099848A /* finish_installation-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "finish_installation-Info.plist"; sourceTree = ""; };
- 55F9B7E010C6E4A00099848A /* finish_installation.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = finish_installation.pch; sourceTree = ""; };
+ 525A278F133D6AE900FD8D70 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = ""; };
+ 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = BinaryDelta; sourceTree = BUILT_PRODUCTS_DIR; };
+ 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */ = {isa = PBXFileReference; comments = "-Wno-shorten-64-to-32"; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bsdiff.c; sourceTree = ""; };
+ 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bspatch.c; sourceTree = ""; };
+ 5D06E8DF0FD68CC7005AE3F6 /* SUBinaryDeltaApply.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaApply.h; sourceTree = ""; };
+ 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaApply.m; sourceTree = ""; };
+ 5D06E8E10FD68CC7005AE3F6 /* SUBinaryDeltaCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCommon.h; sourceTree = ""; };
+ 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaCommon.m; sourceTree = ""; };
+ 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaTool.m; sourceTree = ""; };
+ 5D06E8F10FD68D21005AE3F6 /* ConfigBinaryDelta.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigBinaryDelta.xcconfig; sourceTree = ""; };
+ 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigBinaryDeltaDebug.xcconfig; sourceTree = ""; };
+ 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigBinaryDeltaRelease.xcconfig; sourceTree = ""; };
+ 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.dylib; path = /usr/lib/libbz2.dylib; sourceTree = ""; };
+ 5D06E9370FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaUnarchiver.h; sourceTree = ""; };
+ 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaUnarchiver.m; sourceTree = ""; };
+ 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxar.1.dylib; path = /usr/lib/libxar.1.dylib; sourceTree = ""; };
+ 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = /usr/lib/libxml2.dylib; sourceTree = ""; };
+ 5D1AF5990FD767E50065DB48 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = /usr/lib/libz.dylib; sourceTree = ""; };
+ 5D1AF59B0FD768010065DB48 /* libcrypto.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcrypto.dylib; path = /usr/lib/libcrypto.dylib; sourceTree = ""; };
610134710DD250470049ACDF /* SUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateDriver.h; sourceTree = ""; };
610134720DD250470049ACDF /* SUUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateDriver.m; sourceTree = ""; };
610134790DD2541A0049ACDF /* SUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbingUpdateDriver.h; sourceTree = ""; };
@@ -205,6 +204,7 @@
610D5A740A1670A4004AAD9C /* SUStatus.nib */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; path = SUStatus.nib; sourceTree = ""; };
610EC1BF0CF3914D00AE239E /* NTSynchronousTask.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NTSynchronousTask.m; sourceTree = ""; };
610EC1C00CF3914D00AE239E /* NTSynchronousTask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NTSynchronousTask.h; sourceTree = ""; };
+ 611142E810FB1BE5009810AA /* bspatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bspatch.h; sourceTree = ""; };
61131A050F846CE600E97AF6 /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/Sparkle.strings; sourceTree = ""; };
61131A090F846D0A00E97AF6 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_CN; path = zh_CN.lproj/Sparkle.strings; sourceTree = ""; };
61131A0A0F846D1100E97AF6 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = zh_TW; path = zh_TW.lproj/Sparkle.strings; sourceTree = ""; };
@@ -214,15 +214,20 @@
61131A0E0F846D5A00E97AF6 /* da */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = da; path = da.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
61131A0F0F846D6100E97AF6 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_CN; path = zh_CN.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
61131A100F846D6800E97AF6 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_TW; path = zh_TW.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 61131A110F846D7300E97AF6 /* da */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = da; path = da.lproj/SUUpdateAlert.nib; sourceTree = ""; };
+ 61131A120F846D7C00E97AF6 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_CN; path = zh_CN.lproj/SUUpdateAlert.nib; sourceTree = ""; };
+ 61131A130F846D8400E97AF6 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = zh_TW; path = zh_TW.lproj/SUUpdateAlert.nib; sourceTree = ""; };
6117796E0D1112E000749C97 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; };
61180BC80D64138900B4E0D1 /* SUWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUWindowController.h; sourceTree = ""; };
61180BC90D64138900B4E0D1 /* SUWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUWindowController.m; sourceTree = ""; };
611A904210240DD300CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Sparkle.strings; sourceTree = ""; };
611A904310240DE000CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pl; path = pl.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
611A904410240DE800CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pl; path = pl.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 611A904510240DF000CC659E /* pl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pl; path = pl.lproj/SUUpdateAlert.nib; sourceTree = ""; };
611A904610240DF700CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Sparkle.strings; sourceTree = ""; };
611A904710240DFF00CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ja; path = ja.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
611A904810240E0600CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ja; path = ja.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 611A904910240E0C00CC659E /* ja */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ja; path = ja.lproj/SUUpdateAlert.nib; sourceTree = ""; };
6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAutomaticUpdateAlert.h; sourceTree = ""; };
6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAutomaticUpdateAlert.m; sourceTree = ""; };
612279D90DB5470200AB99EA /* Sparkle Unit Tests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Sparkle Unit Tests.octest"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -243,13 +248,24 @@
613151B20FB4946A000DCD59 /* is */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = is; path = is.lproj/Sparkle.strings; sourceTree = ""; };
613151B30FB49480000DCD59 /* is */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = is; path = is.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
613151B40FB49488000DCD59 /* is */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = is; path = is.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
- 613242130CD06CEF00106AA4 /* finish_installation.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = finish_installation.m; sourceTree = ""; };
+ 613151B50FB49492000DCD59 /* is */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = is; path = is.lproj/SUUpdateAlert.nib; sourceTree = ""; };
+ 613242130CD06CEF00106AA4 /* relaunch.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = relaunch.m; sourceTree = ""; };
615409A8103BA09100125AF1 /* ConfigTestAppReleaseGCSupport.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigTestAppReleaseGCSupport.xcconfig; sourceTree = ""; };
615409C4103BBC4000125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Sparkle.strings; sourceTree = ""; };
615409C5103BBC5000125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = cs; path = cs.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
615409C6103BBD9F00125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = cs; path = cs.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 615409C7103BBDA600125AF1 /* cs */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = cs; path = cs.lproj/SUUpdateAlert.nib; sourceTree = ""; };
615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SUModelTranslation.plist; sourceTree = ""; };
+ 6160FD83134ABCC8007FFC5F /* tr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = tr; path = tr.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 6160FD85134ABCD5007FFC5F /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; };
+ 6160FD86134ABCD5007FFC5F /* tr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = tr; path = tr.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 6160FD87134ABCD5007FFC5F /* tr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = tr; path = tr.lproj/SUUpdateAlert.nib; sourceTree = ""; };
+ 6186554210D7484300B1E074 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_PT; path = pt_PT.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 6186554310D7484E00B1E074 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt_PT; path = pt_PT.lproj/Sparkle.strings; sourceTree = ""; };
+ 6186554410D7486E00B1E074 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_PT; path = pt_PT.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 6186554510D7488400B1E074 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_PT; path = pt_PT.lproj/SUUpdateAlert.nib; sourceTree = ""; };
618915700E35937600B5E981 /* sv */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = sv; path = sv.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 618915710E35937600B5E981 /* sv */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = sv; path = sv.lproj/SUUpdateAlert.nib; sourceTree = ""; };
618915720E35937600B5E981 /* sv */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = sv; path = sv.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
618915730E35937600B5E981 /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Sparkle.strings; sourceTree = ""; };
618E9CFC0E7328F1004646D8 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = dsa_pub.pem; path = "Test Application/dsa_pub.pem"; sourceTree = ""; };
@@ -260,12 +276,14 @@
618FA5200DAE8E8A0026945C /* SUPackageInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPackageInstaller.h; sourceTree = ""; };
618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUPackageInstaller.m; sourceTree = ""; };
6195D48F0E404AD600D41A50 /* ru */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ru; path = ru.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 6195D4900E404AD600D41A50 /* ru */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ru; path = ru.lproj/SUUpdateAlert.nib; sourceTree = ""; };
6195D4910E404AD600D41A50 /* ru */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = ru; path = ru.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
6195D4920E404AD700D41A50 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Sparkle.strings; sourceTree = ""; };
6196CFE309C71ADE000DC222 /* SUStatusController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStatusController.h; sourceTree = ""; };
6196CFE409C71ADE000DC222 /* SUStatusController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStatusController.m; sourceTree = ""; };
619B17200E1E9D0800E72754 /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Sparkle.strings; sourceTree = ""; };
619B17210E1E9D0800E72754 /* de */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = de; path = de.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 619B17220E1E9D0800E72754 /* de */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = de; path = de.lproj/SUUpdateAlert.nib; sourceTree = ""; };
619B17230E1E9D0800E72754 /* de */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = de; path = de.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
61A2259C0D1C495D00430CCD /* SUVersionComparisonProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUVersionComparisonProtocol.h; sourceTree = ""; };
61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardVersionComparator.h; sourceTree = ""; };
@@ -276,6 +294,7 @@
61A354540DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUserInitiatedUpdateDriver.m; sourceTree = ""; };
61AAE8230A321A7F00D8810D /* en */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Sparkle.strings; sourceTree = ""; };
61AAE8250A321A7F00D8810D /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = en.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 61AAE8270A321A7F00D8810D /* en */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = en; path = en.lproj/SUUpdateAlert.nib; sourceTree = ""; };
61AAE84F0A321AF700D8810D /* es */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Sparkle.strings; sourceTree = ""; };
61AAE8590A321B0400D8810D /* fr */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Sparkle.strings; sourceTree = ""; };
61AAE8710A321F7700D8810D /* nl */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/Sparkle.strings; sourceTree = ""; };
@@ -308,22 +327,27 @@
61E31A7F103299450051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_BR; path = pt_BR.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
61E31A80103299500051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt_BR; path = pt_BR.lproj/Sparkle.strings; sourceTree = ""; };
61E31A81103299560051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_BR; path = pt_BR.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 61E31A821032995F0051D188 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = pt_BR; path = pt_BR.lproj/SUUpdateAlert.nib; sourceTree = ""; };
61EF67550E25B58D00F754E0 /* SUHost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUHost.m; sourceTree = ""; };
61EF67580E25C5B400F754E0 /* SUHost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUHost.h; sourceTree = ""; };
61F3651A0E18987B007ECA02 /* es */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = es; path = es.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 61F3652A0E189883007ECA02 /* es */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = es; path = es.lproj/SUUpdateAlert.nib; sourceTree = ""; };
61F3652B0E189883007ECA02 /* es */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = es; path = es.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
61F3652E0E18988F007ECA02 /* fr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = fr; path = fr.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 61F3652F0E18988F007ECA02 /* fr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = fr; path = fr.lproj/SUUpdateAlert.nib; sourceTree = ""; };
61F365300E18988F007ECA02 /* fr */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = fr; path = fr.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
61F365330E1898A3007ECA02 /* nl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = nl; path = nl.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
+ 61F365340E1898A3007ECA02 /* nl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = nl; path = nl.lproj/SUUpdateAlert.nib; sourceTree = ""; };
61F365350E1898A3007ECA02 /* nl */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = nl; path = nl.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
61F614540E24A12D009F47E7 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Sparkle.strings; sourceTree = ""; };
61F614550E24A12D009F47E7 /* it */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = it; path = it.lproj/SUAutomaticUpdateAlert.nib; sourceTree = ""; };
+ 61F614560E24A12D009F47E7 /* it */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = it; path = it.lproj/SUUpdateAlert.nib; sourceTree = ""; };
61F614570E24A12D009F47E7 /* it */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = it; path = it.lproj/SUUpdatePermissionPrompt.nib; sourceTree = ""; };
61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBasicUpdateDriver.h; sourceTree = ""; };
61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBasicUpdateDriver.m; sourceTree = ""; };
8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; };
8DC2EF5B0486A6940098B216 /* Sparkle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Sparkle.framework; sourceTree = BUILT_PRODUCTS_DIR; };
- E0AA6C4910D259600009485A /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
+ DAAEFC960DA571DF0051E0D0 /* relaunch */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = relaunch; sourceTree = BUILT_PRODUCTS_DIR; };
FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigFrameworkDebug.xcconfig; sourceTree = ""; };
FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigTestAppDebug.xcconfig; sourceTree = ""; };
FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigCommonRelease.xcconfig; sourceTree = ""; };
@@ -336,16 +360,24 @@
FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigRelaunchDebug.xcconfig; sourceTree = ""; };
FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigRelaunchRelease.xcconfig; sourceTree = ""; };
FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigFrameworkRelease.xcconfig; sourceTree = ""; };
+ FA302AFD109D13190060F891 /* ConfigUnitTestReleaseGCSupport.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTestReleaseGCSupport.xcconfig; sourceTree = ""; };
+ FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTestRelease.xcconfig; sourceTree = ""; };
+ FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTestDebug.xcconfig; sourceTree = ""; };
+ FA3AAF3B1050B273004B3130 /* ConfigUnitTest.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTest.xcconfig; sourceTree = ""; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
- 55F9B5E210C68F890099848A /* Frameworks */ = {
+ 5D06E8CE0FD68C7C005AE3F6 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 55F9B73810C6BEDC0099848A /* AppKit.framework in Frameworks */,
- 55F9B67F10C6BED60099848A /* Security.framework in Frameworks */,
- 55F9B7B810C6BEE20099848A /* Foundation.framework in Frameworks */,
+ 5D06E8D80FD68C8E005AE3F6 /* Sparkle.framework in Frameworks */,
+ 5D06E8FF0FD68D6D005AE3F6 /* libbz2.dylib in Frameworks */,
+ 5D06E9050FD68D7D005AE3F6 /* Foundation.framework in Frameworks */,
+ 5D1AF58B0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */,
+ 5D1AF5900FD767AD0065DB48 /* libxml2.dylib in Frameworks */,
+ 5D1AF59A0FD767E50065DB48 /* libz.dylib in Frameworks */,
+ 5D1AF59C0FD768010065DB48 /* libcrypto.dylib in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -362,9 +394,7 @@
buildActionMask = 2147483647;
files = (
61B5F90F09C4CF3A00B25A18 /* Sparkle.framework in Frameworks */,
- 610D5A1A0A1661B8004AAD9C /* Sparkle.framework in Frameworks */,
- FAEFA3040D94AB3400472538 /* AppKit.framework in Frameworks */,
- FAEFA3050D94AB3400472538 /* Foundation.framework in Frameworks */,
+ 525A27A0133D6B9700FD8D70 /* Cocoa.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -372,12 +402,22 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- E0AA6C9E10D2598E0009485A /* SystemConfiguration.framework in Frameworks */,
61B5F8F709C4CEB300B25A18 /* Security.framework in Frameworks */,
61B5FC4C09C4FD5E00B25A18 /* WebKit.framework in Frameworks */,
61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */,
- FAEFA2F70D94AA7500472538 /* Foundation.framework in Frameworks */,
- FAEFA2F80D94AA7900472538 /* AppKit.framework in Frameworks */,
+ 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */,
+ 5D1AF58A0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */,
+ 5D1AF82B0FD768180065DB48 /* libz.dylib in Frameworks */,
+ 5D1AF82C0FD7681A0065DB48 /* libcrypto.dylib in Frameworks */,
+ 525A2790133D6AE900FD8D70 /* Cocoa.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ DAAEFC940DA571DF0051E0D0 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 525A27A3133D6BAE00FD8D70 /* Cocoa.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -389,8 +429,9 @@
children = (
8DC2EF5B0486A6940098B216 /* Sparkle.framework */,
61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */,
+ DAAEFC960DA571DF0051E0D0 /* relaunch */,
612279D90DB5470200AB99EA /* Sparkle Unit Tests.octest */,
- 55F9B5E410C68F890099848A /* finish_installation.app */,
+ 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */,
);
name = Products;
sourceTree = "";
@@ -398,23 +439,18 @@
0867D691FE84028FC02AAC07 /* Sparkle */ = {
isa = PBXGroup;
children = (
- 55D8F80710C58B210011E7FA /* SULog.h */,
- 55D8F80810C58B210011E7FA /* SULog.m */,
61F83F6E0DBFE07A006FDD30 /* Update Control */,
61299B3909CB055000B7442F /* Appcast Support */,
618FA6DB0DB485440026945C /* Installation */,
6101354A0DD25B7F0049ACDF /* Unarchiving */,
61299B3A09CB056100B7442F /* User Interface */,
61B5F8F309C4CE5900B25A18 /* Other Sources */,
- 6101355D0DD25BB70049ACDF /* finish_installation Sources */,
- 55F9B7C210C6C0DC0099848A /* finish_installation Resources */,
089C1665FE841158C02AAC07 /* Framework Resources */,
61227A100DB5484000AB99EA /* Tests */,
61B5F91D09C4CF7F00B25A18 /* Test Application Sources */,
0867D69AFE84028FC02AAC07 /* Apple Frameworks and Libraries */,
FA1941C40D94A6EA00DD942E /* Configurations */,
034768DFFF38A50411DB9C8B /* Products */,
- 55F9B5E610C68F890099848A /* finish_installation-Info.plist */,
);
name = Sparkle;
sourceTree = "";
@@ -422,12 +458,17 @@
0867D69AFE84028FC02AAC07 /* Apple Frameworks and Libraries */ = {
isa = PBXGroup;
children = (
- E0AA6C4910D259600009485A /* SystemConfiguration.framework */,
6117796E0D1112E000749C97 /* IOKit.framework */,
61B5FC3F09C4FD4000B25A18 /* WebKit.framework */,
61B5F8F609C4CEB300B25A18 /* Security.framework */,
0867D6A5FE840307C02AAC07 /* AppKit.framework */,
0867D69BFE84028FC02AAC07 /* Foundation.framework */,
+ 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */,
+ 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */,
+ 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */,
+ 5D1AF5990FD767E50065DB48 /* libz.dylib */,
+ 5D1AF59B0FD768010065DB48 /* libcrypto.dylib */,
+ 525A278F133D6AE900FD8D70 /* Cocoa.framework */,
);
name = "Apple Frameworks and Libraries";
sourceTree = "";
@@ -441,23 +482,33 @@
61AAE8220A321A7F00D8810D /* Sparkle.strings */,
61C46F330D9C54F300B06326 /* SUUpdatePermissionPrompt.nib */,
61AAE8240A321A7F00D8810D /* SUAutomaticUpdateAlert.nib */,
- 55DAF06E1131A24A00701FC7 /* SUUpdateAlert.xib */,
+ 61AAE8260A321A7F00D8810D /* SUUpdateAlert.nib */,
610D5A740A1670A4004AAD9C /* SUStatus.nib */,
);
name = "Framework Resources";
sourceTree = "";
};
- 55F9B7C210C6C0DC0099848A /* finish_installation Resources */ = {
+ 5D06E8D90FD68C95005AE3F6 /* Binary Delta */ = {
isa = PBXGroup;
children = (
- 55F9B7C310C6C1740099848A /* finish_installation-Info.plist */,
+ 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */,
+ 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */,
+ 5D06E8DF0FD68CC7005AE3F6 /* SUBinaryDeltaApply.h */,
+ 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */,
+ 5D06E8E10FD68CC7005AE3F6 /* SUBinaryDeltaCommon.h */,
+ 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */,
+ 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */,
+ 5D06E9370FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h */,
+ 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */,
+ 611142E810FB1BE5009810AA /* bspatch.h */,
);
- name = "finish_installation Resources";
+ name = "Binary Delta";
sourceTree = "";
};
6101354A0DD25B7F0049ACDF /* Unarchiving */ = {
isa = PBXGroup;
children = (
+ 5D06E8D90FD68C95005AE3F6 /* Binary Delta */,
61299A8B09CA790200B7442F /* SUUnarchiver.h */,
61299A8C09CA790200B7442F /* SUUnarchiver.m */,
6102FE590E08C7EC00F85D09 /* SUUnarchiver_Private.h */,
@@ -472,13 +523,12 @@
name = Unarchiving;
sourceTree = "";
};
- 6101355D0DD25BB70049ACDF /* finish_installation Sources */ = {
+ 6101355D0DD25BB70049ACDF /* Support */ = {
isa = PBXGroup;
children = (
- 55F9B7E010C6E4A00099848A /* finish_installation.pch */,
- 613242130CD06CEF00106AA4 /* finish_installation.m */,
+ 613242130CD06CEF00106AA4 /* relaunch.m */,
);
- name = "finish_installation Sources";
+ name = Support;
sourceTree = "";
};
61227A100DB5484000AB99EA /* Tests */ = {
@@ -535,6 +585,7 @@
61B5F8E509C4CE3C00B25A18 /* SUPlainInstallerInternals.m */,
618FA5200DAE8E8A0026945C /* SUPackageInstaller.h */,
618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */,
+ 6101355D0DD25BB70049ACDF /* Support */,
);
name = Installation;
sourceTree = "";
@@ -548,7 +599,6 @@
61CFB3280E385186007A1735 /* Sparkle.pch */,
61299A5B09CA6D4500B7442F /* SUConstants.h */,
61299A5F09CA6EB100B7442F /* SUConstants.m */,
- 55D8F80410C589F40011E7FA /* ThreadSafePreferences.h */,
);
includeInIndex = 1;
name = "Other Sources";
@@ -611,6 +661,9 @@
FA1941C40D94A6EA00DD942E /* Configurations */ = {
isa = PBXGroup;
children = (
+ 5D06E8F10FD68D21005AE3F6 /* ConfigBinaryDelta.xcconfig */,
+ 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */,
+ 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */,
FA1941D00D94A70100DD942E /* ConfigCommon.xcconfig */,
FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */,
FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */,
@@ -625,6 +678,10 @@
FA1941CE0D94A70100DD942E /* ConfigRelaunch.xcconfig */,
FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */,
FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */,
+ FA3AAF3B1050B273004B3130 /* ConfigUnitTest.xcconfig */,
+ FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */,
+ FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */,
+ FA302AFD109D13190060F891 /* ConfigUnitTestReleaseGCSupport.xcconfig */,
);
path = Configurations;
sourceTree = "";
@@ -669,29 +726,31 @@
6102FE5B0E08C7EC00F85D09 /* SUUnarchiver_Private.h in Headers */,
61EF67590E25C5B400F754E0 /* SUHost.h in Headers */,
61CFB3290E385186007A1735 /* Sparkle.pch in Headers */,
- 55D8F80B10C58B210011E7FA /* SULog.h in Headers */,
+ 5D06E9390FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h in Headers */,
+ 611142E910FB1BE5009810AA /* bspatch.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
- 55F9B5E310C68F890099848A /* finish_installation */ = {
+ 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */ = {
isa = PBXNativeTarget;
- buildConfigurationList = 55F9B5EB10C68F8A0099848A /* Build configuration list for PBXNativeTarget "finish_installation" */;
+ buildConfigurationList = 5D06E8DA0FD68C95005AE3F6 /* Build configuration list for PBXNativeTarget "BinaryDelta" */;
buildPhases = (
- 55F9B5E110C68F890099848A /* Sources */,
- 55F9B5E010C68F890099848A /* Resources */,
- 55F9B5E210C68F890099848A /* Frameworks */,
+ 5D06E8CD0FD68C7C005AE3F6 /* Sources */,
+ 5D06E8CE0FD68C7C005AE3F6 /* Frameworks */,
+ 5D06E90D0FD68DA3005AE3F6 /* Fix Install Name */,
);
buildRules = (
);
dependencies = (
+ 5D06E8D60FD68C86005AE3F6 /* PBXTargetDependency */,
);
- name = finish_installation;
- productName = finish_installation;
- productReference = 55F9B5E410C68F890099848A /* finish_installation.app */;
- productType = "com.apple.product-type.application";
+ name = BinaryDelta;
+ productName = BinaryDelta;
+ productReference = 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */;
+ productType = "com.apple.product-type.tool";
};
612279D80DB5470200AB99EA /* Sparkle Unit Tests */ = {
isa = PBXNativeTarget;
@@ -747,7 +806,7 @@
buildRules = (
);
dependencies = (
- E0AA6D0D10D262C10009485A /* PBXTargetDependency */,
+ DAAEFD500DA572460051E0D0 /* PBXTargetDependency */,
);
name = Sparkle;
productInstallPath = "$(HOME)/Library/Frameworks";
@@ -755,13 +814,30 @@
productReference = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */;
productType = "com.apple.product-type.framework";
};
+ DAAEFC950DA571DF0051E0D0 /* relaunch tool */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = DAAEFC9A0DA571FD0051E0D0 /* Build configuration list for PBXNativeTarget "relaunch tool" */;
+ buildPhases = (
+ DAAEFC930DA571DF0051E0D0 /* Sources */,
+ DAAEFC940DA571DF0051E0D0 /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = "relaunch tool";
+ productName = relaunch;
+ productReference = DAAEFC960DA571DF0051E0D0 /* relaunch */;
+ productType = "com.apple.product-type.tool";
+ };
/* End PBXNativeTarget section */
/* Begin PBXProject section */
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */;
- compatibilityVersion = "Xcode 3.0";
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
English,
@@ -797,7 +873,7 @@
zh_CN,
fr_ca,
pt_BR,
- pt,
+ pt_PT,
);
mainGroup = 0867D691FE84028FC02AAC07 /* Sparkle */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
@@ -806,23 +882,14 @@
targets = (
8DC2EF4F0486A6940098B216 /* Sparkle */,
61B5F90109C4CEE200B25A18 /* Sparkle Test App */,
+ DAAEFC950DA571DF0051E0D0 /* relaunch tool */,
612279D80DB5470200AB99EA /* Sparkle Unit Tests */,
- 55F9B5E310C68F890099848A /* finish_installation */,
+ 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
- 55F9B5E010C68F890099848A /* Resources */ = {
- isa = PBXResourcesBuildPhase;
- buildActionMask = 2147483647;
- files = (
- 55F9B7D110C6DDE50099848A /* Sparkle.strings in Resources */,
- 55F9B7D010C6DDD60099848A /* Sparkle.icns in Resources */,
- 55F9B7F410C6E8B50099848A /* SUStatus.nib in Resources */,
- );
- runOnlyForDeploymentPostprocessing = 0;
- };
612279D40DB5470200AB99EA /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -845,20 +912,39 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- E0AA6D0E10D262DE0009485A /* finish_installation.app in Resources */,
61C2680A0E2DB5D000175E6C /* License.txt in Resources */,
+ DAAEFD510DA572550051E0D0 /* relaunch in Resources */,
610D5A750A1670A4004AAD9C /* SUStatus.nib in Resources */,
61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */,
61AAE8290A321A8000D8810D /* SUAutomaticUpdateAlert.nib in Resources */,
+ 61AAE82A0A321A8000D8810D /* SUUpdateAlert.nib in Resources */,
615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */,
61C46F340D9C54F300B06326 /* SUUpdatePermissionPrompt.nib in Resources */,
- 55DAF0701131A24A00701FC7 /* SUUpdateAlert.xib in Resources */,
+ 6160FD84134ABCC8007FFC5F /* SUAutomaticUpdateAlert.nib in Resources */,
+ 6160FD88134ABCD5007FFC5F /* Info.plist in Resources */,
+ 6160FD89134ABCD5007FFC5F /* SUModelTranslation.plist in Resources */,
+ 6160FD8A134ABCD5007FFC5F /* License.txt in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXShellScriptBuildPhase section */
+ 5D06E90D0FD68DA3005AE3F6 /* Fix Install Name */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Fix Install Name";
+ outputPaths = (
+ "$(CONFIGURATION_BUILD_DIR)/BinaryDelta",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "install_name_tool -change \"@loader_path/../Frameworks/Sparkle.framework/Versions/A/Sparkle\" \"@loader_path/Sparkle.framework/Versions/A/Sparkle\" \"${CONFIGURATION_BUILD_DIR}/BinaryDelta\"";
+ };
612279D70DB5470200AB99EA /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
@@ -919,22 +1005,12 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
- 55F9B5E110C68F890099848A /* Sources */ = {
+ 5D06E8CD0FD68C7C005AE3F6 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- 55F9B62E10C6BD590099848A /* finish_installation.m in Sources */,
- 55F9B62F10C6BD610099848A /* SUHost.m in Sources */,
- 55F9B63010C6BD650099848A /* SUConstants.m in Sources */,
- 55F9B63510C6BE900099848A /* SUInstaller.m in Sources */,
- 55F9B63610C6BE940099848A /* SUPlainInstaller.m in Sources */,
- 55F9B63710C6BE970099848A /* SUPlainInstallerInternals.m in Sources */,
- 55F9B63810C6BE9A0099848A /* SUPackageInstaller.m in Sources */,
- 55F9B63910C6BE9F0099848A /* SUStandardVersionComparator.m in Sources */,
- 55F9B63A10C6BEA50099848A /* SUSystemProfiler.m in Sources */,
- 55F9B63D10C6BEC00099848A /* SULog.m in Sources */,
- 55F9B7D710C6E2FF0099848A /* SUStatusController.m in Sources */,
- 55F9B7D810C6E3020099848A /* SUWindowController.m in Sources */,
+ 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */,
+ 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -943,7 +1019,6 @@
buildActionMask = 2147483647;
files = (
61227A160DB548B800AB99EA /* SUVersionComparisonTest.m in Sources */,
- 55D8F80D10C58B210011E7FA /* SULog.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -952,7 +1027,6 @@
buildActionMask = 2147483647;
files = (
61B5F93009C4CFDC00B25A18 /* main.m in Sources */,
- 55D8F80A10C58B210011E7FA /* SULog.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -989,13 +1063,29 @@
6102FE5C0E08C7EC00F85D09 /* SUUnarchiver_Private.m in Sources */,
61D85D6D0E10B2ED00F9B4A9 /* SUPipedUnarchiver.m in Sources */,
61EF67560E25B58D00F754E0 /* SUHost.m in Sources */,
- 55D8F80C10C58B210011E7FA /* SULog.m in Sources */,
+ 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */,
+ 5D06E8EC0FD68CE4005AE3F6 /* SUBinaryDeltaApply.m in Sources */,
+ 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */,
+ 5D06E93A0FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+ DAAEFC930DA571DF0051E0D0 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ DAAEFD4E0DA572330051E0D0 /* relaunch.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
+ 5D06E8D60FD68C86005AE3F6 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 8DC2EF4F0486A6940098B216 /* Sparkle */;
+ targetProxy = 5D06E8D50FD68C86005AE3F6 /* PBXContainerItemProxy */;
+ };
61227ABA0DB5C4BB00AB99EA /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 612279D80DB5470200AB99EA /* Sparkle Unit Tests */;
@@ -1011,40 +1101,14 @@
target = 8DC2EF4F0486A6940098B216 /* Sparkle */;
targetProxy = 61FA528C0E2D9EB200EF58AD /* PBXContainerItemProxy */;
};
- E0AA6D0D10D262C10009485A /* PBXTargetDependency */ = {
+ DAAEFD500DA572460051E0D0 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
- target = 55F9B5E310C68F890099848A /* finish_installation */;
- targetProxy = E0AA6D0C10D262C10009485A /* PBXContainerItemProxy */;
+ target = DAAEFC950DA571DF0051E0D0 /* relaunch tool */;
+ targetProxy = DAAEFD4F0DA572460051E0D0 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
- 55DAF06E1131A24A00701FC7 /* SUUpdateAlert.xib */ = {
- isa = PBXVariantGroup;
- children = (
- 55DAF06F1131A24A00701FC7 /* zh_CN */,
- 55DAF0711131A25800701FC7 /* ja */,
- 55DAF0721131A26200701FC7 /* it */,
- 55DAF0731131A26E00701FC7 /* pt */,
- 55DAF0741131A27800701FC7 /* sk */,
- 55DAF0751131A29500701FC7 /* ru */,
- 55DAF0761131A29E00701FC7 /* da */,
- 55DAF0771131A2AA00701FC7 /* cs */,
- 55DAF0781131A2B300701FC7 /* fr */,
- 55DAF0791131A2BC00701FC7 /* nl */,
- 55DAF07A1131A2C600701FC7 /* en */,
- 55DAF07B1131A2CE00701FC7 /* sv */,
- 55DAF07C1131A2D800701FC7 /* es */,
- 55DAF07D1131A2E100701FC7 /* pl */,
- 55DAF07E1131A2E900701FC7 /* de */,
- 55DAF07F1131A2F300701FC7 /* zh_TW */,
- 55DAF0801131A2FB00701FC7 /* ko */,
- 55DAF0811131A30600701FC7 /* pt_BR */,
- 55DAF0821131A31000701FC7 /* is */,
- );
- name = SUUpdateAlert.xib;
- sourceTree = "";
- };
61AAE8220A321A7F00D8810D /* Sparkle.strings */ = {
isa = PBXVariantGroup;
children = (
@@ -1064,6 +1128,8 @@
611A904610240DF700CC659E /* ja */,
61E31A80103299500051D188 /* pt_BR */,
615409C4103BBC4000125AF1 /* cs */,
+ 6186554310D7484E00B1E074 /* pt_PT */,
+ 6160FD85134ABCD5007FFC5F /* tr */,
);
name = Sparkle.strings;
sourceTree = "";
@@ -1087,10 +1153,37 @@
611A904810240E0600CC659E /* ja */,
61E31A81103299560051D188 /* pt_BR */,
615409C6103BBD9F00125AF1 /* cs */,
+ 6186554410D7486E00B1E074 /* pt_PT */,
+ 6160FD86134ABCD5007FFC5F /* tr */,
);
name = SUAutomaticUpdateAlert.nib;
sourceTree = "";
};
+ 61AAE8260A321A7F00D8810D /* SUUpdateAlert.nib */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 61AAE8270A321A7F00D8810D /* en */,
+ 61F3652A0E189883007ECA02 /* es */,
+ 61F3652F0E18988F007ECA02 /* fr */,
+ 61F365340E1898A3007ECA02 /* nl */,
+ 619B17220E1E9D0800E72754 /* de */,
+ 61F614560E24A12D009F47E7 /* it */,
+ 618915710E35937600B5E981 /* sv */,
+ 6195D4900E404AD600D41A50 /* ru */,
+ 61131A110F846D7300E97AF6 /* da */,
+ 61131A120F846D7C00E97AF6 /* zh_CN */,
+ 61131A130F846D8400E97AF6 /* zh_TW */,
+ 613151B50FB49492000DCD59 /* is */,
+ 611A904510240DF000CC659E /* pl */,
+ 611A904910240E0C00CC659E /* ja */,
+ 61E31A821032995F0051D188 /* pt_BR */,
+ 615409C7103BBDA600125AF1 /* cs */,
+ 6186554510D7488400B1E074 /* pt_PT */,
+ 6160FD87134ABCD5007FFC5F /* tr */,
+ );
+ name = SUUpdateAlert.nib;
+ sourceTree = "";
+ };
61B5F92A09C4CFD800B25A18 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
@@ -1126,6 +1219,8 @@
611A904710240DFF00CC659E /* ja */,
61E31A7F103299450051D188 /* pt_BR */,
615409C5103BBC5000125AF1 /* cs */,
+ 6186554210D7484300B1E074 /* pt_PT */,
+ 6160FD83134ABCC8007FFC5F /* tr */,
);
name = SUUpdatePermissionPrompt.nib;
sourceTree = "";
@@ -1144,106 +1239,45 @@
isa = XCBuildConfiguration;
baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */;
buildSettings = {
- GCC_DEBUGGING_SYMBOLS = full;
};
name = Release;
};
1DEB91B208733DA50010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
- GCC_VERSION = 4.0;
- SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
- WARNING_CFLAGS = "-Wundeclared-selector";
};
name = Debug;
};
1DEB91B308733DA50010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
- GCC_VERSION = 4.0;
- SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
- WARNING_CFLAGS = "-Wundeclared-selector";
};
name = Release;
};
- 55F9B5E810C68F8A0099848A /* Debug */ = {
+ 5D06E8D20FD68C7D005AE3F6 /* Debug */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */;
+ baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- COPY_PHASE_STRIP = NO;
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = finish_installation.pch;
- INFOPLIST_FILE = "finish_installation-Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- OTHER_LDFLAGS = (
- "-framework",
- Foundation,
- "-framework",
- AppKit,
- );
- PREBINDING = NO;
- PRODUCT_NAME = finish_installation;
};
name = Debug;
};
- 55F9B5E910C68F8A0099848A /* Release */ = {
+ 5D06E8D30FD68C7D005AE3F6 /* Release */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */;
+ baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- GCC_ENABLE_FIX_AND_CONTINUE = NO;
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = finish_installation.pch;
- INFOPLIST_FILE = "finish_installation-Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- OTHER_LDFLAGS = (
- "-framework",
- Foundation,
- "-framework",
- AppKit,
- );
- PREBINDING = NO;
- PRODUCT_NAME = finish_installation;
- ZERO_LINK = NO;
};
name = Release;
};
- 55F9B5EA10C68F8A0099848A /* Release (GC dual-mode; 10.5-only) */ = {
+ 5D06E8D40FD68C7D005AE3F6 /* Release (GC dual-mode; 10.5-only) */ = {
isa = XCBuildConfiguration;
- baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */;
+ baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = YES;
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = finish_installation.pch;
- INFOPLIST_FILE = "finish_installation-Info.plist";
- INSTALL_PATH = "$(HOME)/Applications";
- OTHER_LDFLAGS = (
- "-framework",
- Foundation,
- "-framework",
- AppKit,
- );
- PREBINDING = NO;
- PRODUCT_NAME = finish_installation;
};
name = "Release (GC dual-mode; 10.5-only)";
};
61072EAD0DF263BD008FE88B /* Release (GC dual-mode; 10.5-only) */ = {
isa = XCBuildConfiguration;
buildSettings = {
- GCC_VERSION = 4.0;
- SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
- WARNING_CFLAGS = "-Wundeclared-selector";
};
name = "Release (GC dual-mode; 10.5-only)";
};
@@ -1251,7 +1285,6 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 61072EB20DF2640C008FE88B /* ConfigFrameworkReleaseGCSupport.xcconfig */;
buildSettings = {
- INSTALL_PATH = "@loader_path/../Frameworks";
};
name = "Release (GC dual-mode; 10.5-only)";
};
@@ -1262,89 +1295,31 @@
};
name = "Release (GC dual-mode; 10.5-only)";
};
+ 61072EB00DF263BD008FE88B /* Release (GC dual-mode; 10.5-only) */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */;
+ buildSettings = {
+ };
+ name = "Release (GC dual-mode; 10.5-only)";
+ };
61072EB10DF263BD008FE88B /* Release (GC dual-mode; 10.5-only) */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = FA302AFD109D13190060F891 /* ConfigUnitTestReleaseGCSupport.xcconfig */;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(NATIVE_ARCH)";
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
- GCC_ENABLE_FIX_AND_CONTINUE = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h";
- INFOPLIST_FILE = "Tests/Sparkle Unit Tests-Info.plist";
- INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
- OTHER_LDFLAGS = (
- "-framework",
- Cocoa,
- "-framework",
- SenTestingKit,
- );
- PREBINDING = NO;
- PRODUCT_NAME = "Sparkle Unit Tests";
- WARNING_CFLAGS = "";
- WRAPPER_EXTENSION = octest;
- ZERO_LINK = NO;
};
name = "Release (GC dual-mode; 10.5-only)";
};
612279DB0DB5470300AB99EA /* Debug */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(NATIVE_ARCH_ACTUAL)";
- COPY_PHASE_STRIP = NO;
- FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
- GCC_DYNAMIC_NO_PIC = NO;
- GCC_ENABLE_FIX_AND_CONTINUE = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_MODEL_TUNING = G5;
- GCC_OPTIMIZATION_LEVEL = 0;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h";
- INFOPLIST_FILE = "Tests/Sparkle Unit Tests-Info.plist";
- INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
- OTHER_LDFLAGS = (
- "-framework",
- Cocoa,
- "-framework",
- SenTestingKit,
- );
- PREBINDING = NO;
- PRODUCT_NAME = "Sparkle Unit Tests";
- WRAPPER_EXTENSION = octest;
- ZERO_LINK = NO;
};
name = Debug;
};
612279DC0DB5470300AB99EA /* Release */ = {
isa = XCBuildConfiguration;
+ baseConfigurationReference = FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */;
buildSettings = {
- ALWAYS_SEARCH_USER_PATHS = NO;
- ARCHS = "$(NATIVE_ARCH)";
- COPY_PHASE_STRIP = YES;
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
- FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_LIBRARY_DIR)/Frameworks";
- GCC_ENABLE_FIX_AND_CONTINUE = NO;
- GCC_ENABLE_OBJC_EXCEPTIONS = YES;
- GCC_MODEL_TUNING = G5;
- GCC_PRECOMPILE_PREFIX_HEADER = YES;
- GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h";
- INFOPLIST_FILE = "Tests/Sparkle Unit Tests-Info.plist";
- INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
- OTHER_LDFLAGS = (
- "-framework",
- Cocoa,
- "-framework",
- SenTestingKit,
- );
- PREBINDING = NO;
- PRODUCT_NAME = "Sparkle Unit Tests";
- WRAPPER_EXTENSION = octest;
- ZERO_LINK = NO;
};
name = Release;
};
@@ -1362,6 +1337,20 @@
};
name = Release;
};
+ DAAEFC980DA571DF0051E0D0 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */;
+ buildSettings = {
+ };
+ name = Debug;
+ };
+ DAAEFC990DA571DF0051E0D0 /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */;
+ buildSettings = {
+ };
+ name = Release;
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -1385,12 +1374,12 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
- 55F9B5EB10C68F8A0099848A /* Build configuration list for PBXNativeTarget "finish_installation" */ = {
+ 5D06E8DA0FD68C95005AE3F6 /* Build configuration list for PBXNativeTarget "BinaryDelta" */ = {
isa = XCConfigurationList;
buildConfigurations = (
- 55F9B5E810C68F8A0099848A /* Debug */,
- 55F9B5E910C68F8A0099848A /* Release */,
- 55F9B5EA10C68F8A0099848A /* Release (GC dual-mode; 10.5-only) */,
+ 5D06E8D20FD68C7D005AE3F6 /* Debug */,
+ 5D06E8D30FD68C7D005AE3F6 /* Release */,
+ 5D06E8D40FD68C7D005AE3F6 /* Release (GC dual-mode; 10.5-only) */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
@@ -1415,6 +1404,16 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ DAAEFC9A0DA571FD0051E0D0 /* Build configuration list for PBXNativeTarget "relaunch tool" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ DAAEFC980DA571DF0051E0D0 /* Debug */,
+ DAAEFC990DA571DF0051E0D0 /* Release */,
+ 61072EB00DF263BD008FE88B /* Release (GC dual-mode; 10.5-only) */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
/* End XCConfigurationList section */
};
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
diff --git a/bsdiff.c b/bsdiff.c
new file mode 100644
index 00000000..a742ea97
--- /dev/null
+++ b/bsdiff.c
@@ -0,0 +1,501 @@
+/*-
+ * Copyright 2003 - 2005 Colin Percival
+ * All rights reserved
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted providing that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if 0
+__FBSDID("$FreeBSD: src/usr.bin/bsdiff/bsdiff/bsdiff.c, v 1.1 2005/08/06 01:59:05 cperciva Exp $");
+#endif
+
+#include
+
+#include
+#include
+#include
+#include
+#include
+#include
+
+#define MIN(x, y) (((x)<(y)) ? (x) : (y))
+
+static void split(off_t *I, off_t *V, off_t start, off_t len, off_t h)
+{
+ off_t i, j, k, x, tmp, jj, kk;
+
+ if (len < 16) {
+ for (k = start; k < start + len; k += j) {
+ j = 1; x = V[I[k] + h];
+ for (i = 1; k + i < start + len; i++) {
+ if (V[I[k + i] + h] < x) {
+ x = V[I[k + i] + h];
+ j = 0;
+ };
+ if (V[I[k + i] + h] == x) {
+ tmp = I[k + j]; I[k + j] = I[k + i]; I[k + i] = tmp;
+ j++;
+ };
+ };
+ for (i = 0; i < j; i++)
+ V[I[k + i]] = k + j - 1;
+ if (j == 1)
+ I[k] = -1;
+ };
+ return;
+ };
+
+ x = V[I[start + len/2] + h];
+ jj = 0; kk = 0;
+ for (i = start; i < start + len; i++) {
+ if (V[I[i] + h] < x)
+ jj++;
+ if (V[I[i] + h] == x)
+ kk++;
+ };
+ jj += start; kk += jj;
+
+ i = start; j = 0; k = 0;
+ while (i < jj) {
+ if (V[I[i] + h] < x) {
+ i++;
+ } else if (V[I[i] + h] == x) {
+ tmp = I[i]; I[i] = I[jj + j]; I[jj + j] = tmp;
+ j++;
+ } else {
+ tmp = I[i]; I[i] = I[kk + k]; I[kk + k] = tmp;
+ k++;
+ };
+ };
+
+ while (jj + j < kk) {
+ if (V[I[jj + j] + h] == x) {
+ j++;
+ } else {
+ tmp = I[jj + j]; I[jj + j] = I[kk + k]; I[kk + k] = tmp;
+ k++;
+ };
+ };
+
+ if (jj > start)
+ split(I, V, start, jj - start, h);
+
+ for (i = 0; i < kk - jj; i++)
+ V[I[jj + i]] = kk - 1;
+ if (jj == kk - 1)
+ I[jj] = -1;
+
+ if (start + len > kk)
+ split(I, V, kk, start + len - kk, h);
+}
+
+/* qsufsort(I, V, old, oldsize)
+ *
+ * Computes the suffix sort of the string at 'old' and stores the resulting
+ * indices in 'I', using 'V' as a temporary array for the computation. */
+static void qsufsort(off_t *I, off_t *V, u_char *old, off_t oldsize)
+{
+ off_t buckets[256];
+ off_t i, h, len;
+
+ /* count number of each byte */
+ for (i = 0; i < 256; i++)
+ buckets[i] = 0;
+ for (i = 0; i < oldsize; i++)
+ buckets[old[i]]++;
+ /* make buckets cumulative */
+ for (i = 1; i < 256; i++)
+ buckets[i] += buckets[i - 1];
+ /* shift right by one */
+ for (i = 255; i > 0; i--)
+ buckets[i] = buckets[i - 1];
+ buckets[0] = 0;
+ /* at this point, buckets[c] is the number of bytes in the old file with
+ * value less than c. */
+
+ /* set up the sort order of the suffixes based solely on the first
+ * character */
+ for (i = 0; i < oldsize; i++)
+ I[++buckets[old[i]]] = i;
+ I[0] = oldsize;
+ /* ? */
+ for (i = 0; i < oldsize; i++)
+ V[i] = buckets[old[i]];
+ V[oldsize] = 0;
+ /* forward any entries in the ordering which have the same initial
+ * character */
+ for (i = 1; i < 256; i++) {
+ if (buckets[i] == buckets[i - 1] + 1)
+ I[buckets[i]] = -1;
+ }
+ I[0] = -1;
+
+ for (h = 1; I[0] != -(oldsize + 1); h += h) {
+ len = 0;
+ for (i = 0; i < oldsize + 1;) {
+ if (I[i] < 0) {
+ len -= I[i];
+ i -= I[i];
+ } else {
+ if (len)
+ I[i - len] = -len;
+ len = V[I[i]] + 1 - i;
+ split(I, V, i, len, h);
+ i += len;
+ len = 0;
+ }
+ }
+ if (len)
+ I[i - len] = -len;
+ };
+
+ for (i = 0; i < oldsize + 1; i++) I[V[i]] = i;
+}
+
+/* matchlen(old, oldsize, new, newsize)
+ *
+ * Returns the length of the longest common prefix between 'old' and 'new'. */
+static off_t matchlen(u_char *old, off_t oldsize, u_char *new, off_t newsize)
+{
+ off_t i;
+
+ for (i = 0; (i < oldsize) && (i < newsize); i++)
+ {
+ if (old[i] != new[i])
+ break;
+ }
+
+ return i;
+}
+
+/* search(I, old, oldsize, new, newsize, st, en, pos)
+ *
+ * Searches for the longest prefix of 'new' that occurs in 'old', stores its
+ * offset in '*pos', and returns its length. 'I' should be the suffix sort of
+ * 'old', and 'st' and 'en' are the lowest and highest indices in the suffix
+ * sort to consider. If you're searching all suffixes, 'st = 0' and 'en =
+ * oldsize - 1'. */
+static off_t search(off_t *I, u_char *old, off_t oldsize,
+ u_char *new, off_t newsize, off_t st, off_t en, off_t *pos)
+{
+ off_t x, y;
+
+ if (en - st < 2) {
+ x = matchlen(old + I[st], oldsize - I[st], new, newsize);
+ y = matchlen(old + I[en], oldsize - I[en], new, newsize);
+
+ if (x > y) {
+ *pos = I[st];
+ return x;
+ } else {
+ *pos = I[en];
+ return y;
+ }
+ }
+
+ x = st + (en - st)/2;
+ if (memcmp(old + I[x], new, MIN(oldsize - I[x], newsize)) < 0) {
+ return search(I, old, oldsize, new, newsize, x, en, pos);
+ } else {
+ return search(I, old, oldsize, new, newsize, st, x, pos);
+ };
+}
+
+/* offtout(x, buf)
+ *
+ * Writes the off_t 'x' portably to the array 'buf'. */
+static void offtout(off_t x, u_char *buf)
+{
+ off_t y;
+
+ if (x < 0)
+ y = -x;
+ else
+ y = x;
+
+ buf[0] = y % 256;
+ y -= buf[0];
+ y = y/256; buf[1] = y%256; y -= buf[1];
+ y = y/256; buf[2] = y%256; y -= buf[2];
+ y = y/256; buf[3] = y%256; y -= buf[3];
+ y = y/256; buf[4] = y%256; y -= buf[4];
+ y = y/256; buf[5] = y%256; y -= buf[5];
+ y = y/256; buf[6] = y%256; y -= buf[6];
+ y = y/256; buf[7] = y%256;
+
+ if (x < 0)
+ buf[7] |= 0x80;
+}
+
+int bsdiff(int argc, char *argv[]); // Added by AMM: suppresses a warning about the following not having a prototype.
+
+int bsdiff(int argc, char *argv[])
+{
+ int fd;
+ u_char *old,*new; /* contents of old, new files */
+ off_t oldsize, newsize; /* length of old, new files */
+ off_t *I,*V; /* arrays used for suffix sort; I is ordering */
+ off_t scan; /* position of current match in old file */
+ off_t pos; /* position of current match in new file */
+ off_t len; /* length of current match */
+ off_t lastscan; /* position of previous match in old file */
+ off_t lastpos; /* position of previous match in new file */
+ off_t lastoffset; /* lastpos - lastscan */
+ off_t oldscore, scsc; /* temp variables in match search */
+ off_t s, Sf, lenf, Sb, lenb; /* temp vars in match extension */
+ off_t overlap, Ss, lens;
+ off_t i;
+ off_t dblen, eblen; /* length of diff, extra sections */
+ u_char *db,*eb; /* contents of diff, extra sections */
+ u_char buf[8];
+ u_char header[32];
+ FILE * pf;
+
+ if (argc != 4)
+ errx(1,"usage: %s oldfile newfile patchfile\n", argv[0]);
+
+ /* Allocate oldsize + 1 bytes instead of oldsize bytes to ensure
+ that we never try to malloc(0) and get a NULL pointer */
+ if (((fd = open(argv[1], O_RDONLY, 0)) < 0) ||
+ ((oldsize = lseek(fd, 0, SEEK_END)) == -1) ||
+ ((old = malloc(oldsize + 1)) == NULL) ||
+ (lseek(fd, 0, SEEK_SET) != 0) ||
+ (read(fd, old, oldsize) != oldsize) ||
+ (close(fd) == -1))
+ err(1,"%s", argv[1]);
+
+ if (((I = malloc((oldsize + 1) * sizeof(off_t))) == NULL) ||
+ ((V = malloc((oldsize + 1) * sizeof(off_t))) == NULL))
+ err(1, NULL);
+
+ /* Do a suffix sort on the old file. */
+ qsufsort(I, V, old, oldsize);
+
+ free(V);
+
+ /* Allocate newsize + 1 bytes instead of newsize bytes to ensure
+ that we never try to malloc(0) and get a NULL pointer */
+ if (((fd = open(argv[2], O_RDONLY, 0)) < 0) ||
+ ((newsize = lseek(fd, 0, SEEK_END)) == -1) ||
+ ((new = malloc(newsize + 1)) == NULL) ||
+ (lseek(fd, 0, SEEK_SET) != 0) ||
+ (read(fd, new, newsize) != newsize) ||
+ (close(fd) == -1))
+ err(1,"%s", argv[2]);
+
+ if (((db = malloc(newsize + 1)) == NULL) ||
+ ((eb = malloc(newsize + 1)) == NULL))
+ err(1, NULL);
+ dblen = 0;
+ eblen = 0;
+
+ /* Create the patch file */
+ if ((pf = fopen(argv[3], "w")) == NULL)
+ err(1, "%s", argv[3]);
+
+ /* Header is
+ 0 8 "BSDIFN40"
+ 8 8 length of ctrl block
+ 16 8 length of diff block
+ 24 8 length of new file */
+ /* File is
+ 0 32 Header
+ 32 ?? ctrl block
+ ?? ?? diff block
+ ?? ?? extra block */
+ memcpy(header, "BSDIFN40", 8);
+ offtout(0, header + 8);
+ offtout(0, header + 16);
+ offtout(newsize, header + 24);
+ if (fwrite(header, 32, 1, pf) != 1)
+ err(1, "fwrite(%s)", argv[3]);
+
+ /* Compute the differences, writing ctrl as we go */
+ scan = 0;
+ len = 0;
+ lastscan = 0;
+ lastpos = 0;
+ lastoffset = 0;
+ while (scan < newsize) {
+ oldscore = 0;
+
+ for (scsc = scan += len; scan < newsize; scan++) {
+ /* 'oldscore' is the number of characters that match between the
+ * substrings 'old[lastoffset + scan:lastoffset + scsc]' and
+ * 'new[scan:scsc]'. */
+ len = search(I, old, oldsize, new + scan, newsize - scan,
+ 0, oldsize, &pos);
+
+ /* If this match extends further than the last one, add any new
+ * matching characters to 'oldscore'. */
+ for (; scsc < scan + len; scsc++) {
+ if ((scsc + lastoffset < oldsize) &&
+ (old[scsc + lastoffset] == new[scsc]))
+ oldscore++;
+ }
+
+ /* Choose this as our match if it contains more than eight
+ * characters that would be wrong if matched with a forward
+ * extension of the previous match instead. */
+ if (((len == oldscore) && (len != 0)) ||
+ (len > oldscore + 8))
+ break;
+
+ /* Since we're advancing 'scan' by 1, remove the character under it
+ * from 'oldscore' if it matches. */
+ if ((scan + lastoffset < oldsize) &&
+ (old[scan + lastoffset] == new[scan]))
+ oldscore--;
+ }
+
+ /* Skip this section if we found an exact match that would be
+ * better serviced by a forward extension of the previous match. */
+ if ((len != oldscore) || (scan == newsize)) {
+ /* Figure out how far forward the previous match should be
+ * extended... */
+ s = 0;
+ Sf = 0;
+ lenf = 0;
+ for (i = 0; (lastscan + i < scan) && (lastpos + i < oldsize);) {
+ if (old[lastpos + i] == new[lastscan + i])
+ s++;
+ i++;
+ if (s * 2 - i > Sf * 2 - lenf) {
+ Sf = s;
+ lenf = i;
+ }
+ }
+
+ /* ... and how far backwards the next match should be extended. */
+ lenb = 0;
+ if (scan < newsize) {
+ s = 0;
+ Sb = 0;
+ for (i = 1; (scan >= lastscan + i) && (pos >= i); i++) {
+ if (old[pos - i] == new[scan - i])
+ s++;
+ if (s * 2 - i > Sb * 2 - lenb) {
+ Sb = s;
+ lenb = i;
+ }
+ }
+ }
+
+ /* If there is an overlap between the extensions, find the best
+ * dividing point in the middle and reset 'lenf' and 'lenb'
+ * accordingly. */
+ if (lastscan + lenf > scan - lenb) {
+ overlap = (lastscan + lenf) - (scan - lenb);
+ s = 0;
+ Ss = 0;
+ lens = 0;
+ for (i = 0; i < overlap; i++) {
+ if (new[lastscan + lenf - overlap + i] ==
+ old[lastpos + lenf - overlap + i])
+ s++;
+ if (new[scan - lenb + i] == old[pos - lenb + i])
+ s--;
+ if (s > Ss) {
+ Ss = s;
+ lens = i + 1;
+ }
+ }
+
+ lenf += lens - overlap;
+ lenb -= lens;
+ }
+
+ /* Write the diff data for the last match to the diff section... */
+ for (i = 0; i < lenf; i++)
+ db[dblen + i] = new[lastscan + i] - old[lastpos + i];
+ /* ... and, if there's a gap between the extensions just
+ * calculated, write the data in that gap to the extra section. */
+ for (i = 0; i< (scan - lenb) - (lastscan + lenf); i++)
+ eb[eblen + i] = new[lastscan + lenf + i];
+
+ /* Update the diff and extra section lengths accordingly. */
+ dblen += lenf;
+ eblen += (scan - lenb) - (lastscan + lenf);
+
+ /* Write the following triple of integers to the control section:
+ * - length of the diff
+ * - length of the extra section
+ * - offset between the end of the diff and the start of the next
+ * diff, in the old file
+ */
+ offtout(lenf, buf);
+ if (fwrite(buf, 8, 1, pf) != 1)
+ errx(1, "fwrite");
+
+ offtout((scan - lenb) - (lastscan + lenf), buf);
+ if (fwrite(buf, 8, 1, pf) != 1)
+ err(1, "fwrite");
+
+ offtout((pos - lenb) - (lastpos + lenf), buf);
+ if (fwrite(buf, 8, 1, pf) != 1)
+ err(1, "fwrite");
+
+ /* Update the variables describing the last match. Note that
+ * 'lastscan' is set to the start of the current match _after_ the
+ * backwards extension; the data in that extension will be written
+ * in the next pass. */
+ lastscan = scan - lenb;
+ lastpos = pos - lenb;
+ lastoffset = pos - scan;
+ }
+ }
+
+ /* Compute size of compressed ctrl data */
+ if ((len = ftello(pf)) == -1)
+ err(1, "ftello");
+ offtout(len - 32, header + 8);
+
+ /* Write diff data */
+ if (dblen && fwrite(db, dblen, 1, pf) != 1)
+ err(1, "fwrite");
+
+ /* Compute size of compressed diff data */
+ if ((newsize = ftello(pf)) == -1)
+ err(1, "ftello");
+ offtout(newsize - len, header + 16);
+
+ /* Write extra data */
+ if (eblen && fwrite(eb, eblen, 1, pf) != 1)
+ err(1, "fwrite");
+
+ /* Seek to the beginning, write the header, and close the file */
+ if (fseeko(pf, 0, SEEK_SET))
+ err(1, "fseeko");
+ if (fwrite(header, 32, 1, pf) != 1)
+ err(1, "fwrite(%s)", argv[3]);
+ if (fclose(pf))
+ err(1, "fclose");
+
+ /* Free the memory we used */
+ free(db);
+ free(eb);
+ free(I);
+ free(old);
+ free(new);
+
+ return 0;
+}
diff --git a/bspatch.c b/bspatch.c
new file mode 100644
index 00000000..d1f8ce94
--- /dev/null
+++ b/bspatch.c
@@ -0,0 +1,271 @@
+/*-
+ * Copyright 2003-2005 Colin Percival
+ * All rights reserved
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted providing that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+ * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#if 0
+__FBSDID("$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $");
+#endif
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+/* Compatibility layer for reading either the old BSDIFF40 or the new BSDIFN40
+ patch formats: */
+
+typedef void* stream_t;
+
+typedef struct
+{
+ stream_t (*open)(FILE*);
+ void (*close)(stream_t);
+ int (*read)(stream_t, void*, int);
+} io_funcs_t;
+
+static stream_t BSDIFF40_open(FILE *f)
+{
+ int bzerr;
+ BZFILE *s;
+ if ((s = BZ2_bzReadOpen(&bzerr, f, 0, 0, NULL, 0)) == NULL)
+ errx(1, "BZ2_bzReadOpen, bz2err = %d", bzerr);
+ return s;
+}
+
+static void BSDIFF40_close(stream_t s)
+{
+ int bzerr;
+ BZ2_bzReadClose(&bzerr, (BZFILE*)s);
+}
+
+static int BSDIFF40_read(stream_t s, void *buf, int len)
+{
+ int bzerr, lenread;
+ lenread = BZ2_bzRead(&bzerr, (BZFILE*)s, buf, len);
+ if (bzerr != BZ_OK && bzerr != BZ_STREAM_END)
+ errx(1, "Corrupt patch\n");
+ return lenread;
+}
+
+static io_funcs_t BSDIFF40_funcs = {
+ BSDIFF40_open,
+ BSDIFF40_close,
+ BSDIFF40_read
+};
+
+
+static stream_t BSDIFN40_open(FILE *f)
+{
+ return f;
+}
+
+static void BSDIFN40_close(stream_t s)
+{
+}
+
+static int BSDIFN40_read(stream_t s, void *buf, int len)
+{
+ return fread(buf, 1, len, (FILE*)s);
+}
+
+static io_funcs_t BSDIFN40_funcs = {
+ BSDIFN40_open,
+ BSDIFN40_close,
+ BSDIFN40_read
+};
+
+
+#ifndef u_char
+typedef unsigned char u_char;
+#endif
+
+static off_t offtin(u_char *buf)
+{
+ off_t y;
+
+ y=buf[7]&0x7F;
+ y=y*256;y+=buf[6];
+ y=y*256;y+=buf[5];
+ y=y*256;y+=buf[4];
+ y=y*256;y+=buf[3];
+ y=y*256;y+=buf[2];
+ y=y*256;y+=buf[1];
+ y=y*256;y+=buf[0];
+
+ if(buf[7]&0x80) y=-y;
+
+ return y;
+}
+
+int bspatch(int argc,char * argv[])
+{
+ FILE * f, * cpf, * dpf, * epf;
+ stream_t cstream, dstream, estream;
+ int fd;
+ ssize_t oldsize,newsize;
+ ssize_t bzctrllen,bzdatalen;
+ u_char header[32],buf[8];
+ u_char *old, *new;
+ off_t oldpos,newpos;
+ off_t ctrl[3];
+ off_t lenread;
+ off_t i;
+ io_funcs_t * io;
+
+ if(argc!=4) errx(1,"usage: %s oldfile newfile patchfile\n",argv[0]);
+
+ /* Open patch file */
+ if ((f = fopen(argv[3], "r")) == NULL)
+ err(1, "fopen(%s)", argv[3]);
+
+ /*
+ File format:
+ 0 8 "BSDIFF40" (bzip2) or "BSDIFN40" (raw)
+ 8 8 X
+ 16 8 Y
+ 24 8 sizeof(newfile)
+ 32 X bzip2(control block)
+ 32+X Y bzip2(diff block)
+ 32+X+Y ??? bzip2(extra block)
+ with control block a set of triples (x,y,z) meaning "add x bytes
+ from oldfile to x bytes from the diff block; copy y bytes from the
+ extra block; seek forwards in oldfile by z bytes".
+ */
+
+ /* Read header */
+ if (fread(header, 1, 32, f) < 32) {
+ if (feof(f))
+ errx(1, "Corrupt patch\n");
+ err(1, "fread(%s)", argv[3]);
+ }
+
+ /* Check for appropriate magic */
+ if (memcmp(header, "BSDIFF40", 8) == 0)
+ io = &BSDIFF40_funcs;
+ else if (memcmp(header, "BSDIFN40", 8) == 0)
+ io = &BSDIFN40_funcs;
+ else
+ errx(1, "Corrupt patch\n");
+
+ /* Read lengths from header */
+ bzctrllen=offtin(header+8);
+ bzdatalen=offtin(header+16);
+ newsize=offtin(header+24);
+ if((bzctrllen<0) || (bzdatalen<0) || (newsize<0))
+ errx(1,"Corrupt patch\n");
+
+ /* Close patch file and re-open it via libbzip2 at the right places */
+ if (fclose(f))
+ err(1, "fclose(%s)", argv[3]);
+ if ((cpf = fopen(argv[3], "r")) == NULL)
+ err(1, "fopen(%s)", argv[3]);
+ if (fseeko(cpf, 32, SEEK_SET))
+ err(1, "fseeko(%s, %lld)", argv[3],
+ (long long)32);
+ cstream = io->open(cpf);
+ if ((dpf = fopen(argv[3], "r")) == NULL)
+ err(1, "fopen(%s)", argv[3]);
+ if (fseeko(dpf, 32 + bzctrllen, SEEK_SET))
+ err(1, "fseeko(%s, %lld)", argv[3],
+ (long long)(32 + bzctrllen));
+ dstream = io->open(dpf);
+ if ((epf = fopen(argv[3], "r")) == NULL)
+ err(1, "fopen(%s)", argv[3]);
+ if (fseeko(epf, 32 + bzctrllen + bzdatalen, SEEK_SET))
+ err(1, "fseeko(%s, %lld)", argv[3],
+ (long long)(32 + bzctrllen + bzdatalen));
+ estream = io->open(epf);
+
+ if(((fd=open(argv[1],O_RDONLY,0))<0) ||
+ ((oldsize=lseek(fd,0,SEEK_END))==-1) ||
+ ((old=malloc(oldsize+1))==NULL) ||
+ (lseek(fd,0,SEEK_SET)!=0) ||
+ (read(fd,old,oldsize)!=oldsize) ||
+ (close(fd)==-1)) err(1,"%s",argv[1]);
+ if((new=malloc(newsize+1))==NULL) err(1,NULL);
+
+ oldpos=0;newpos=0;
+ while(newposread(cstream, buf, 8);
+ if (lenread < 8)
+ errx(1, "Corrupt patch\n");
+ ctrl[i]=offtin(buf);
+ };
+
+ /* Sanity-check */
+ if(newpos+ctrl[0]>newsize)
+ errx(1,"Corrupt patch\n");
+
+ /* Read diff string */
+ lenread = io->read(dstream, new + newpos, ctrl[0]);
+ if (lenread < ctrl[0])
+ errx(1, "Corrupt patch\n");
+
+ /* Add old data to diff string */
+ for(i=0;i=0) && (oldpos+inewsize)
+ errx(1,"Corrupt patch\n");
+
+ /* Read extra string */
+ lenread = io->read(estream, new + newpos, ctrl[1]);
+ if (lenread < ctrl[1])
+ errx(1, "Corrupt patch\n");
+
+ /* Adjust pointers */
+ newpos+=ctrl[1];
+ oldpos+=ctrl[2];
+ };
+
+ /* Clean up the bzip2 reads */
+ io->close(cstream);
+ io->close(dstream);
+ io->close(estream);
+ if (fclose(cpf) || fclose(dpf) || fclose(epf))
+ err(1, "fclose(%s)", argv[3]);
+
+ /* Write the new file */
+ if(((fd=open(argv[2],O_CREAT|O_TRUNC|O_WRONLY,0666))<0) ||
+ (write(fd,new,newsize)!=newsize) || (close(fd)==-1))
+ err(1,"%s",argv[2]);
+
+ free(new);
+ free(old);
+
+ return 0;
+}
diff --git a/bspatch.h b/bspatch.h
new file mode 100644
index 00000000..f9bb672f
--- /dev/null
+++ b/bspatch.h
@@ -0,0 +1,12 @@
+/*
+ * bspatch.h
+ * Sparkle
+ *
+ * Created by Andy Matuschak on 1/11/10.
+ * Copyright 2010 Andy Matuschak. All rights reserved.
+ *
+ */
+
+// So that we can use this method in SUBinaryDeltaApply.m.
+// Silences the GCC warning that the prototype doesn't exist.
+int bspatch(int argc, char * argv[]);
diff --git a/cs.lproj/Sparkle.strings b/cs.lproj/Sparkle.strings
index efedd275..9bbb9968 100644
Binary files a/cs.lproj/Sparkle.strings and b/cs.lproj/Sparkle.strings differ
diff --git a/en.lproj/Sparkle.strings b/en.lproj/Sparkle.strings
index 21e048d4..ebfa934b 100644
Binary files a/en.lproj/Sparkle.strings and b/en.lproj/Sparkle.strings differ
diff --git a/es.lproj/Sparkle.strings b/es.lproj/Sparkle.strings
index ee2afede..8e4ab943 100644
Binary files a/es.lproj/Sparkle.strings and b/es.lproj/Sparkle.strings differ
diff --git a/generate_keys.rb b/generate_keys.rb
index b22439c7..867bd69b 100755
--- a/generate_keys.rb
+++ b/generate_keys.rb
@@ -2,12 +2,13 @@
["dsaparam.pem", "dsa_priv.pem", "dsa_pub.pem"].each do |file|
if File.exist? file
puts "There's already a #{file} here! Move it aside or be more careful!"
+ exit
end
end
-`openssl dsaparam 2048 < /dev/urandom > dsaparam.pem`
+`openssl dsaparam 1024 < /dev/urandom > dsaparam.pem`
`openssl gendsa dsaparam.pem -out dsa_priv.pem`
`openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem`
`rm dsaparam.pem`
puts "\nGenerated private and public keys: dsa_priv.pem and dsa_pub.pem.\n
BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!\n
-If you lose it, your users will be unable to upgrade!\n"
\ No newline at end of file
+If you lose it, your users will be unable to upgrade!\n"
diff --git a/is.lproj/SUUpdateAlert.xib b/is.lproj/SUUpdateAlert.xib
index 186221e7..0a7f6130 100644
--- a/is.lproj/SUUpdateAlert.xib
+++ b/is.lproj/SUUpdateAlert.xib
@@ -2,6 +2,7 @@
1050
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
10C540
759
1038.25
@@ -26,6 +27,21 @@
@@ -51,10 +67,19 @@
15
2
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
{{248, 468}, {586, 370}}
-260571136
Hugbúnaðaruppfærsla
NSWindow
+=======
+ {{83, 472}, {471, 188}}
+ 1886912512
+
+
+ NSWindow
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
View
@@ -63,6 +88,7 @@
256
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
YES
@@ -78,10 +104,37 @@
NSFilenamesPboardType
NeXT Encapsulated PostScript v1.2 pasteboard type
NeXT TIFF v4.0 pasteboard type
+=======
+
+
+
+ 257
+ {{232, 12}, {225, 32}}
+
+ 1
+ YES
+
+ -2080244224
+ 134217728
+ Comprobar automáticamente
+
+ LucidaGrande
+ 13
+ 1044
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
{{24, 291}, {64, 64}}
+=======
+
+
+
+ 257
+ {{101, 12}, {131, 32}}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
130560
@@ -100,8 +153,13 @@
264
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
{{106, 338}, {443, 17}}
+=======
+ {{104, 134}, {289, 34}}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
67239424
@@ -133,18 +191,32 @@
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
268
{{106, 277}, {443, 17}}
+=======
+
+
+ 266
+ {{104, 78}, {348, 42}}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
67239424
272629760
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
Útgáfupunktar:
LucidaGrande-Bold
+=======
+ Tk8gTE9DQUxJWkFSCmZvbwpiYXI
+
+ LucidaGrande
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
11
3357
@@ -153,11 +225,19 @@
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
289
{{286, 12}, {157, 32}}
+=======
+
+
+ 264
+ {{104, 50}, {278, 18}}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
67239424
@@ -178,11 +258,27 @@
25
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
288
{{103, 12}, {176, 32}}
+=======
+
+
+ 264
+
+ Apple PDF pasteboard type
+ Apple PICT pasteboard type
+ Apple PNG pasteboard type
+ NSFilenamesPboardType
+ NeXT Encapsulated PostScript v1.2 pasteboard type
+ NeXT TIFF v4.0 pasteboard type
+
+ {{23, 104}, {64, 64}}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
67239424
@@ -201,11 +297,19 @@
25
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
289
{{443, 12}, {129, 32}}
+=======
+
+
+ 268
+ {{83, 47}, {27, 26}}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
-2080244224
@@ -222,6 +326,7 @@
25
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
274
@@ -254,6 +359,89 @@
public.png
public.url
public.url-name
+=======
+
+ {471, 188}
+
+
+ {{0, 0}, {1920, 1178}}
+ {213, 129}
+ {1.79769e+308, 1.79769e+308}
+
+
+
+ visibleKey
+ visibleValue
+ displayValue
+ displayKey
+
+
+ YES
+ YES
+ YES
+ YES
+ YES
+
+
+
+ 266
+
+
+
+ 274
+
+
+
+ 2304
+
+
+
+ 4352
+ {356, 162}
+
+ YES
+
+
+ 256
+ {{346, 0}, {12, 17}}
+
+
+
+ 128
+ 40
+ 1000
+
+
+ 69336577
+ 131072
+
+
+
+ 6
+ System
+ textBackgroundColor
+
+ 3
+ MQA
+
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
{{-1, 0}, {456, 197}}
@@ -361,6 +549,36 @@
200
25
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
+=======
+
+ {{4, 5}, {358, 164}}
+
+
+ 530
+
+
+
+ AAAAAAAAAABBgAAAQYAAAA
+
+
+
+ 266
+ {{1, 177}, {361, 70}}
+
+ YES
+
+ 67239424
+ 272629760
+ TGEgaW5mb3JtYWNpw7NuIGRlIHBlcmZpbCBkZSBzaXN0ZW1hIGFuw7NuaW1vIHNlIHVzYSBwYXJhIGF5
+dWRhcm5vcyBhIHBsYW5lYXIgZWwgdHJhYmFqbyBkZSBkZXNhcnJvbGxvIGZ1dHVyby4gUG9yIGZhdm9y
+LCBww7NuZ2FzZSBlbiBjb250YWN0byBjb24gbm9zb3Ryb3Mgc2kgdGllbmUgcHJlZ3VudGFzIHNvYnJl
+IGVzdG8uCgpFc3RhIGVzIGxhIGluZm9ybWFjacOzbiBxdWUgc2Vyw61hIGVudmlhZGE6A
+
+
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
{586, 370}
@@ -871,6 +1089,69 @@
YES
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
+=======
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ {{0, 591}, {365, 254}}
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ {{0, 657}, {471, 188}}
+ com.apple.InterfaceBuilder.CocoaPlugin
+ {{0, 657}, {471, 188}}
+
+
+ {213, 107}
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
@@ -880,7 +1161,11 @@
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
176
+=======
+ 188
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
@@ -960,6 +1245,7 @@
SUUpdateAlert
SUWindowController
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
YES
@@ -998,6 +1284,50 @@
SUUpdateAlert
+=======
+
+ id
+ id
+
+
+
+ finishPrompt:
+ id
+
+
+ toggleMoreInfo:
+ id
+
+
+
+ id
+ NSTextField
+ NSButton
+ NSView
+
+
+
+ delegate
+ id
+
+
+ descriptionTextField
+ NSTextField
+
+
+ moreInfoButton
+ NSButton
+
+
+ moreInfoView
+ NSView
+
+
+
+
+
+ SUUpdatePermissionPrompt
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
SUWindowController
IBUserSource
@@ -1562,6 +1892,13 @@
showWindow:
id
+
+ showWindow:
+
+ showWindow:
+ id
+
+
IBFrameworkSource
AppKit.framework/Headers/NSWindowController.h
@@ -1625,9 +1962,16 @@
YES
../Sparkle.xcodeproj
3
+<<<<<<< HEAD:is.lproj/SUUpdateAlert.xib
NSApplicationIcon
{128, 128}
+=======
+
+ {128, 128}
+ {15, 15}
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:es.lproj/SUUpdatePermissionPrompt.nib/designable.nib
diff --git a/ja.lproj/Sparkle.strings b/ja.lproj/Sparkle.strings
index a5013c3e..867de0b5 100644
Binary files a/ja.lproj/Sparkle.strings and b/ja.lproj/Sparkle.strings differ
diff --git a/pt_PT.lproj/Sparkle.strings b/pt_PT.lproj/Sparkle.strings
new file mode 100755
index 00000000..e3ed170c
Binary files /dev/null and b/pt_PT.lproj/Sparkle.strings differ
diff --git a/relaunch.m b/relaunch.m
index b38d555e..47d9c44b 100644
--- a/relaunch.m
+++ b/relaunch.m
@@ -1,20 +1,28 @@
-#import
+#import
-#include
+#import
@interface TerminationListener : NSObject
{
+@private
const char *executablePath;
pid_t parentProcessId;
}
-- (void) relaunch;
+- (void)relaunch __dead2;
@end
@implementation TerminationListener
+- (void)watchdog:(NSTimer *)timer
+{
+ ProcessSerialNumber psn;
+ if (GetProcessForPID(parentProcessId, &psn) == procNotFound)
+ [self relaunch];
+}
+
- (id) initWithExecutablePath:(const char *)execPath parentProcessId:(pid_t)ppid
{
self = [super init];
@@ -29,17 +37,19 @@
return self;
}
-- (void)watchdog:(NSTimer *)timer
-{
- ProcessSerialNumber psn;
- if (GetProcessForPID(parentProcessId, &psn) == procNotFound)
- [self relaunch];
-}
-
- (void) relaunch
{
[[NSWorkspace sharedWorkspace] openFile:[[NSFileManager defaultManager] stringWithFileSystemRepresentation:executablePath length:strlen(executablePath)]];
- [[NSFileManager defaultManager] removeFileAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"relaunch"] handler:nil];
+ NSString* path = NSTemporaryDirectory();
+ if (path)
+ {
+ path = [path stringByAppendingPathComponent:@"relaunch"];
+#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
+ [[NSFileManager defaultManager] removeFileAtPath:path handler:nil];
+#else
+ [[NSFileManager defaultManager] removeItemAtPath:path error:nil];
+#endif
+ }
exit(0);
}
diff --git a/sk.lproj/Sparkle.strings b/sk.lproj/Sparkle.strings
index 7a4a900d..47713c19 100644
Binary files a/sk.lproj/Sparkle.strings and b/sk.lproj/Sparkle.strings differ
diff --git a/tr.lproj/Sparkle.strings b/tr.lproj/Sparkle.strings
index c3b570df..32af4914 100644
Binary files a/tr.lproj/Sparkle.strings and b/tr.lproj/Sparkle.strings differ
diff --git a/zh_TW.lproj/SUUpdateAlert.xib b/zh_TW.lproj/SUUpdateAlert.xib
index d313a8e3..461960fd 100644
--- a/zh_TW.lproj/SUUpdateAlert.xib
+++ b/zh_TW.lproj/SUUpdateAlert.xib
@@ -2,10 +2,17 @@
1050
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
10C540
759
1038.25
458.00
+=======
+ 10B504
+ 732
+ 1038.2
+ 437.00
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
@@ -23,6 +30,7 @@
YES
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
YES
com.apple.WebKitIBPlugin
@@ -55,10 +63,37 @@
-260571136
軟體更新
NSWindow
+=======
+
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+
+
+
+ SUUpdatePermissionPrompt
+
+
+ FirstResponder
+
+
+ NSApplication
+
+
+ 1
+ 2
+ {{83, 492}, {438, 168}}
+ 1886912512
+
+
+ NSWindow
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
View
{3.40282e+38, 3.40282e+38}
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
{586, 370}
@@ -94,9 +129,65 @@
0
0
NO
+=======
+ {213, 107}
+
+
+ 256
+
+
+
+ 257
+ {{216, 12}, {208, 32}}
+
+
+ 1
+ YES
+
+ -2080244224
+ 134217728
+ Проверять автоматически
+
+ LucidaGrande
+ 13
+ 1044
+
+
+ 1
+ -2038284033
+ 1
+
+
+ DQ
+ 200
+ 25
+
+
+
+
+ 257
+ {{88, 12}, {128, 32}}
+
+
+ YES
+
+ 67239424
+ 134217728
+ Не проверять
+
+
+ -2038284033
+ 1
+
+
+ Gw
+ 200
+ 25
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
264
@@ -104,6 +195,16 @@
YES
+=======
+
+
+ 264
+ {{104, 114}, {289, 34}}
+
+
+ YES
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
67239424
272629760
@@ -112,27 +213,45 @@
13
2072
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
6
System
controlColor
+=======
+
+
+ 6
+ System
+ controlColor
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
3
MC42NjY2NjY2ODY1AA
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
6
System
controlTextColor
+=======
+
+ 6
+ System
+ controlTextColor
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
3
MAA
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
268
@@ -140,6 +259,16 @@
YES
+=======
+
+
+ 266
+ {{104, 81}, {315, 42}}
+
+
+ YES
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
67239424
272629760
更新事項:
@@ -148,6 +277,7 @@
11
3357
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
@@ -167,6 +297,34 @@
LucidaGrande
13
1044
+=======
+
+
+
+
+
+
+
+ 264
+ {{104, 53}, {278, 18}}
+
+
+ YES
+
+ -2080244224
+ 163840
+ Включать анонимную информацию о системе
+
+
+ 1211912703
+ 2
+
+ NSImage
+ NSSwitch
+
+
+ NSSwitch
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
-2038284033
@@ -178,6 +336,7 @@
25
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
288
@@ -196,11 +355,35 @@
+=======
+
+
+ 264
+
+ Apple PDF pasteboard type
+ Apple PICT pasteboard type
+ Apple PNG pasteboard type
+ NSFilenamesPboardType
+ NeXT Encapsulated PostScript v1.2 pasteboard type
+ NeXT TIFF v4.0 pasteboard type
+
+ {{23, 84}, {64, 64}}
+
+
+ YES
+
+ 130560
+ 33554432
+
+ NSImage
+ NSApplicationIcon
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
200
25
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
289
@@ -216,12 +399,30 @@
-2038284033
1
+=======
+
+
+ 265
+ {{80, 50}, {27, 26}}
+
+
+ YES
+
+ 67239424
+ 134250496
+
+
+
+ -1194573569
+ 133
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
DQ
200
25
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
274
@@ -278,11 +479,139 @@
+=======
+
+ {438, 168}
+
+
+
+ {{0, 0}, {1280, 778}}
+ {213, 129}
+ {3.40282e+38, 3.40282e+38}
+
+
+
+ visibleKey
+ visibleValue
+ displayValue
+ displayKey
+
+
+ YES
+ YES
+ YES
+ YES
+ YES
+
+
+
+ 266
+
+
+
+ 274
+
+
+
+ 2304
+
+
+
+ 4352
+ {353, 99}
+
+
+ YES
+
+
+ 256
+ {{346, 0}, {12, 17}}
+
+
+
+ 128
+ 40
+ 1000
+
+
+ 69336577
+ 131072
+ Text Cell
+
+
+
+ 6
+ System
+ textBackgroundColor
+
+ 3
+ MQA
+
+
+
+
+ 3
+ YES
+
+
+
+ 219
+ 40
+ 1000
+
+
+ 69336577
+ 131072
+ Text Cell
+
+
+
+
+
+ 3
+ YES
+
+
+
+ 3
+ 2
+
+
+ 6
+ System
+ gridColor
+
+ 3
+ MC41AA
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
NO
YES
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
{{1, 1}, {455, 197}}
@@ -311,8 +640,22 @@
3
MCAwLjgwMDAwMDAxMTkAA
+=======
+
+ {{1, 1}, {353, 99}}
+
+
+
+
+
+ 6
+ System
+ controlBackgroundColor
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
1
3
@@ -373,6 +716,77 @@
YES
+=======
+
+
+ -2147483392
+ {{-22, 1}, {11, 125}}
+
+
+ 256
+
+ _doScroller:
+ 0.78125
+
+
+
+ -2147483392
+ {{-100, -100}, {345, 11}}
+
+
+ 257
+
+ _doScroller:
+ 0.99047619104385376
+
+
+ {{4, 5}, {355, 101}}
+
+
+
+ 530
+
+
+
+ AAAAAAAAAABBgAAAQYAAAA
+
+
+
+ 266
+ {{1, 114}, {358, 84}}
+
+
+ YES
+
+ 67239424
+ 272629760
+ 0JDQvdC+0L3QuNC80L3QsNGPINC40L3RhNC+0YDQvNCw0YbQuNGPINC+INGB0LjRgdGC0LXQvNC1INC4
+0YHQv9C+0LvRjNC30YPQtdGC0YHRjywg0YfRgtC+0LHRiyDQv9C+0LzQvtGH0Ywg0L3QsNC8INC/0LvQ
+sNC90LjRgNC+0LLQsNGC0Ywg0LTQsNC70YzQvdC10LnRiNC10LUg0YDQsNC30LLQuNGC0LjQtSDQv9GA
+0L7Qs9GA0LDQvNC80YsuINCf0L7QttCw0LvRg9C50YHRgtCwLCDRgdCy0Y/QttC40YLQtdGB0Ywg0YEg
+0L3QsNC80Lgg0LXRgdC70Lgg0YMg0JLQsNGBINC10YHRgtGMINC60LDQutC40LUt0LvQuNCx0L4g0LLQ
+vtC/0YDQvtGB0Ysg0L/QviDRjdGC0L7QvNGDINC/0L7QstC+0LTRgy4KCtCh0LvQtdC00YPRjtGJ0LDR
+jyDQuNC90YTQvtGA0LzQsNGG0LjRjyDQsdGD0LTQtdGCINC+0YLQv9GA0LDQstC70LXQvdCwOg
+
+
+
+
+
+
+
+ {362, 205}
+
+
+ NSView
+ NSResponder
+
+
+
+ SUIncludeProfile
+ SUSendProfileInfo
+
+ YES
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
@@ -380,6 +794,7 @@
YES
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
value: applicationIcon
@@ -389,12 +804,24 @@
value: applicationIcon
value
applicationIcon
+=======
+ contentArray: systemProfileInformationArray
+
+
+
+
+
+ contentArray: systemProfileInformationArray
+ contentArray
+ systemProfileInformationArray
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
2
9
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
value: titleText
@@ -407,51 +834,97 @@
titleText
2
+=======
+
+ window
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
11
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
releaseNotesView
+=======
+ moreInfoView
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
32
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
skipThisVersion:
+=======
+
+ value: icon
+
+
+
+
+
+ value: icon
+ value
+ icon
+ 2
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
33
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
remindMeLater:
+=======
+ toggleMoreInfo:
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
34
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
delegate
+=======
+ moreInfoButton
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
50
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
window
+=======
+ descriptionTextField
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
69
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
hidden: showsReleaseNotes
@@ -459,6 +932,15 @@
hidden: showsReleaseNotes
+=======
+ hidden: shouldAskAboutProfile
+
+
+
+
+
+ hidden: shouldAskAboutProfile
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
hidden
showsReleaseNotes
@@ -480,6 +962,7 @@
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
value: descriptionText
@@ -489,21 +972,52 @@
value: descriptionText
value
descriptionText
+=======
+ hidden: shouldAskAboutProfile
+
+
+
+
+
+ hidden: shouldAskAboutProfile
+ hidden
+ shouldAskAboutProfile
+
+ NSValueTransformerName
+ NSNegateBoolean
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
2
103
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
description
+=======
+
+ finishPrompt:
+
+
+
+ 144
+
+
+
+ finishPrompt:
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
105
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
value: values.SUAutomaticallyUpdate
@@ -511,6 +1025,15 @@
value: values.SUAutomaticallyUpdate
+=======
+ value: shouldSendProfile
+
+
+
+
+
+ value: shouldSendProfile
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
value
values.SUAutomaticallyUpdate
2
@@ -520,6 +1043,7 @@
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
hidden: allowsAutomaticUpdates
@@ -533,6 +1057,17 @@
NSValueTransformerName
NSNegateBoolean
+=======
+ value: promptDescription
+
+
+
+
+
+ value: promptDescription
+ value
+ promptDescription
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
2
@@ -540,6 +1075,7 @@
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
hidden: showsReleaseNotes
@@ -553,6 +1089,17 @@
NSValueTransformerName
NSNegateBoolean
+=======
+ value: arrangedObjects.displayValue
+
+
+
+
+
+ value: arrangedObjects.displayValue
+ value
+ arrangedObjects.displayValue
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
2
@@ -560,6 +1107,7 @@
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
hidden: showsReleaseNotes
@@ -573,6 +1121,17 @@
NSValueTransformerName
NSNegateBoolean
+=======
+ value: arrangedObjects.displayKey
+
+
+
+
+
+ value: arrangedObjects.displayKey
+ value
+ arrangedObjects.displayKey
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
2
@@ -592,40 +1151,65 @@
YES
0
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
+=======
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
-2
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
+=======
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
File's Owner
-1
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
+=======
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
First Responder
-3
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
+=======
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
Application
5
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
YES
+=======
+
+
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
Update Alert (release notes)
6
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
YES
@@ -725,10 +1309,153 @@
93
+=======
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 13
+
+
+
+
+
+
+
+ 14
+
+
+
+
+
+
+
+ 32
+
+
+
+
+
+
+
+ 33
+
+
+
+
+
+
+
+ 34
+
+
+
+
+
+
+
+ 37
+
+
+
+
+
+
+
+ 71
+
+
+
+
+
+
+
+ 24
+
+
+ Array Controller
+
+
+ 39
+
+
+
+
+
+
+ MoreInfoView
+
+
+ 40
+
+
+
+
+
+
+
+
+
+ 41
+
+
+
+
+
+
+
+
+ 42
+
+
+
+
+
+
+
+ 43
+
+
+
+
+ 44
+
+
+
+
+
+
+
+ 45
+
+
+
+
+ 46
+
+
+
+
+
+
+
+ 49
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
Shared Defaults
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
168
@@ -871,6 +1598,119 @@
YES
+=======
+ 176
+
+
+
+
+ 177
+
+
+
+
+ 178
+
+
+
+
+ 179
+
+
+
+
+ 180
+
+
+
+
+ 181
+
+
+
+
+ 182
+
+
+
+
+ 183
+
+
+
+
+ 184
+
+
+
+
+ 185
+
+
+
+
+
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ {{934, 245}, {362, 205}}
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ {{853, 636}, {438, 168}}
+ com.apple.InterfaceBuilder.CocoaPlugin
+ {{853, 636}, {438, 168}}
+
+
+ {213, 107}
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+ com.apple.InterfaceBuilder.CocoaPlugin
+
+
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
@@ -880,7 +1720,11 @@
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
176
+=======
+ 185
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
@@ -888,6 +1732,7 @@
FirstResponder
NSObject
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
IBUserSource
@@ -896,6 +1741,8 @@
NSApplication
NSResponder
+=======
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
IBUserSource
@@ -904,6 +1751,7 @@
NSObject
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
IBProjectSource
SUAppcast.h
@@ -953,6 +1801,8 @@
NSObject
+=======
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
IBUserSource
@@ -960,6 +1810,7 @@
SUUpdateAlert
SUWindowController
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
YES
@@ -999,19 +1850,23 @@
SUUpdateAlert
SUWindowController
+=======
+
+ id
+ id
+
+
+ id
+ NSTextField
+ NSButton
+ NSView
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
IBUserSource
-
- SUWindowController
- NSWindowController
-
- IBProjectSource
- SUWindowController.h
-
-
SUWindowController
NSWindowController
@@ -1020,6 +1875,7 @@
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
YES
@@ -1607,6 +2463,9 @@
+=======
+
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
0
IBCocoaFramework
@@ -1614,6 +2473,7 @@
com.apple.InterfaceBuilder.CocoaPlugin.macosx
+<<<<<<< HEAD:zh_TW.lproj/SUUpdateAlert.xib
com.apple.InterfaceBuilder.CocoaPlugin.macosx
@@ -1622,6 +2482,8 @@
com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3
+=======
+>>>>>>> 3ea1a9eee44c1f45c85fa82254ddee2fddf8302f:ru.lproj/SUUpdatePermissionPrompt.nib/designable.nib
YES
../Sparkle.xcodeproj
3