diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..4d178a30 --- /dev/null +++ b/.clang-format @@ -0,0 +1,45 @@ +AccessModifierOffset: -4 +AlignEscapedNewlinesLeft: true +AlignTrailingComments: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakBeforeMultilineStrings: false +AlwaysBreakTemplateDeclarations: false +BinPackParameters: true +BreakBeforeBinaryOperators: true +BreakBeforeBraces: Linux +BreakBeforeTernaryOperators: true +BreakConstructorInitializersBeforeComma: false +ColumnLimit: 0 +CommentPragmas: '^ IWYU pragma:' +ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 4 +ContinuationIndentWidth: 4 +Cpp11BracedListStyle: false +#DerivePointerAlignment: false +DisableFormat: false +ForEachMacros: foreach,Q_FOREACH +IndentCaseLabels: true +IndentFunctionDeclarationAfterType: true +IndentWidth: 4 +KeepEmptyLinesAtTheStartOfBlocks: false +Language: Cpp +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All +ObjCSpaceAfterProperty: true +ObjCSpaceBeforeProtocolList: true +#PointerAlignment: Right +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 1 +SpacesInAngles: false +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInParentheses: false +Standard: Cpp03 +TabWidth: 4 +UseTab: Never diff --git a/CHANGELOG b/CHANGELOG index eaab65fc..9c598aea 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,18 @@ +# 1.7.1 + +* Removed option to install unverified updates (Kornel Lesiński) +* Added detailed log when code signing verification fails (Sam Deane) +* Restored original Sparkle icon. (Jake Petroules) +* Switched SUUpdateAlert.xib to AutoLayout (Kornel Lesiński) +* Replace references to andymatuschak.org with sparkle-project.org. (Jake Petroules) +* Several code cleanups, modernizations, fixed warnings and improved code formatting (Jake Petroules) +* Make the repository significantly more organized. (Jake Petroules) +* Xcode project: set organization name and class prefix. (Jake Petroules) +* Link to Foundation and AppKit instead of Cocoa. (Jake Petroules) +* Use new operatingSystemVersion API when available. (Jake Petroules) +* Add .clang-format configuration file for source code formatting. (Jake Petroules) +* Add a target to build Sparkle API documentation using Doxygen. (Jake Petroules) + # 1.7.0 * Dropped support for OS X 10.6. Sparkle now supports 10.7 and newer (including 10.10 Yosemite) on 64-bit Intel Macs (the last 32-bit Mac was released in 2006). diff --git a/Configurations/ConfigBinaryDeltaDebug.xcconfig b/Configurations/ConfigBinaryDeltaDebug.xcconfig index 763e402b..3be980b1 100644 --- a/Configurations/ConfigBinaryDeltaDebug.xcconfig +++ b/Configurations/ConfigBinaryDeltaDebug.xcconfig @@ -1,4 +1,2 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonDebug.xcconfig" #include "ConfigBinaryDelta.xcconfig" diff --git a/Configurations/ConfigBinaryDeltaRelease.xcconfig b/Configurations/ConfigBinaryDeltaRelease.xcconfig index cb462259..3e22baaa 100644 --- a/Configurations/ConfigBinaryDeltaRelease.xcconfig +++ b/Configurations/ConfigBinaryDeltaRelease.xcconfig @@ -1,3 +1 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonRelease.xcconfig" #include "ConfigBinaryDelta.xcconfig" diff --git a/Configurations/ConfigCommon.xcconfig b/Configurations/ConfigCommon.xcconfig index 5695c1de..f06ff683 100644 --- a/Configurations/ConfigCommon.xcconfig +++ b/Configurations/ConfigCommon.xcconfig @@ -2,10 +2,17 @@ FINISH_INSTALL_TOOL_NAME = Autoupdate -CURRENT_PROJECT_VERSION = 1.7.0 +SPARKLE_VERSION_MAJOR = 1 +SPARKLE_VERSION_MINOR = 7 +SPARKLE_VERSION_PATCH = 0 +SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) + +CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) +ALWAYS_SEARCH_USER_PATHS = NO GCC_PRECOMPILE_PREFIX_HEADER = YES GCC_PREFIX_HEADER = $(SDKROOT)/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h -ARCHS = x86_64 +ARCHS = $(ARCHS_STANDARD) +MACOSX_DEPLOYMENT_TARGET = 10.7 GCC_PREPROCESSOR_DEFINITIONS = FINISH_INSTALL_TOOL_NAME=$(FINISH_INSTALL_TOOL_NAME) diff --git a/Configurations/ConfigCommonDebug.xcconfig b/Configurations/ConfigCommonDebug.xcconfig index c5f70898..90332131 100644 --- a/Configurations/ConfigCommonDebug.xcconfig +++ b/Configurations/ConfigCommonDebug.xcconfig @@ -1,3 +1,5 @@ +#include "ConfigCommon.xcconfig" + // Debug only GCC_OPTIMIZATION_LEVEL = 0 @@ -5,4 +7,5 @@ DEBUG_INFORMATION_FORMAT = dwarf GCC_GENERATE_DEBUGGING_SYMBOLS = YES SPARKLE_EXTRA_DEBUG = -DDEBUG OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG) - +ONLY_ACTIVE_ARCH = YES +COPY_PHASE_STRIP = NO diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index c7b3cbd6..acffc466 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -1,3 +1,5 @@ +#include "ConfigCommon.xcconfig" + // Release only GCC_OPTIMIZATION_LEVEL = s diff --git a/Configurations/ConfigFramework.xcconfig b/Configurations/ConfigFramework.xcconfig index 8cc1f884..30a57deb 100644 --- a/Configurations/ConfigFramework.xcconfig +++ b/Configurations/ConfigFramework.xcconfig @@ -1,10 +1,11 @@ // Framework only INSTALL_PATH = @loader_path/../Frameworks -DYLIB_COMPATIBILITY_VERSION = 1.6 -DYLIB_CURRENT_VERSION = 1.7 +DYLIB_COMPATIBILITY_VERSION = $(SPARKLE_VERSION_MAJOR).6 +DYLIB_CURRENT_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR) PRODUCT_NAME = Sparkle WRAPPER_EXTENSION = framework FRAMEWORK_VERSION = A -INFOPLIST_FILE = Info.plist -GCC_PREFIX_HEADER = Sparkle.pch +INFOPLIST_FILE = Sparkle/Sparkle-Info.plist +GCC_PREFIX_HEADER = Sparkle/Sparkle.pch +SKIP_INSTALL = YES diff --git a/Configurations/ConfigFrameworkDebug.xcconfig b/Configurations/ConfigFrameworkDebug.xcconfig index ea852b3f..58d6b5aa 100644 --- a/Configurations/ConfigFrameworkDebug.xcconfig +++ b/Configurations/ConfigFrameworkDebug.xcconfig @@ -1,4 +1,2 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonDebug.xcconfig" #include "ConfigFramework.xcconfig" diff --git a/Configurations/ConfigFrameworkRelease.xcconfig b/Configurations/ConfigFrameworkRelease.xcconfig index 8fcb1142..58d6b5aa 100644 --- a/Configurations/ConfigFrameworkRelease.xcconfig +++ b/Configurations/ConfigFrameworkRelease.xcconfig @@ -1,4 +1,2 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonRelease.xcconfig" #include "ConfigFramework.xcconfig" diff --git a/Configurations/ConfigRelaunch.xcconfig b/Configurations/ConfigRelaunch.xcconfig index d7e0db00..22507036 100644 --- a/Configurations/ConfigRelaunch.xcconfig +++ b/Configurations/ConfigRelaunch.xcconfig @@ -1,4 +1,7 @@ // Relaunch Tool only +INFOPLIST_FILE = Sparkle/Autoupdate/Autoupdate-Info.plist PRODUCT_NAME = $(FINISH_INSTALL_TOOL_NAME) SKIP_INSTALL = YES +GCC_PREFIX_HEADER = Sparkle/Autoupdate/Autoupdate.pch +ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon diff --git a/Configurations/ConfigRelaunchDebug.xcconfig b/Configurations/ConfigRelaunchDebug.xcconfig index fe8cecf7..4ddb5d77 100644 --- a/Configurations/ConfigRelaunchDebug.xcconfig +++ b/Configurations/ConfigRelaunchDebug.xcconfig @@ -1,3 +1 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonDebug.xcconfig" #include "ConfigRelaunch.xcconfig" diff --git a/Configurations/ConfigRelaunchRelease.xcconfig b/Configurations/ConfigRelaunchRelease.xcconfig index 111f2add..4ddb5d77 100644 --- a/Configurations/ConfigRelaunchRelease.xcconfig +++ b/Configurations/ConfigRelaunchRelease.xcconfig @@ -1,3 +1 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonRelease.xcconfig" #include "ConfigRelaunch.xcconfig" diff --git a/Configurations/ConfigTestApp.xcconfig b/Configurations/ConfigTestApp.xcconfig index 36540ca4..16057d7c 100644 --- a/Configurations/ConfigTestApp.xcconfig +++ b/Configurations/ConfigTestApp.xcconfig @@ -1,5 +1,6 @@ // Test Application only -INFOPLIST_FILE = Test Application/Test Application-Info.plist +INFOPLIST_FILE = TestApplication/TestApplication-Info.plist PRODUCT_NAME = Sparkle Test App WRAPPER_EXTENSION = app +ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon diff --git a/Configurations/ConfigTestAppDebug.xcconfig b/Configurations/ConfigTestAppDebug.xcconfig index 0347cf34..476c0f07 100644 --- a/Configurations/ConfigTestAppDebug.xcconfig +++ b/Configurations/ConfigTestAppDebug.xcconfig @@ -1,4 +1,2 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonDebug.xcconfig" #include "ConfigTestApp.xcconfig" diff --git a/Configurations/ConfigTestAppRelease.xcconfig b/Configurations/ConfigTestAppRelease.xcconfig index 48143e3f..de0d2802 100644 --- a/Configurations/ConfigTestAppRelease.xcconfig +++ b/Configurations/ConfigTestAppRelease.xcconfig @@ -1,3 +1 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonRelease.xcconfig" #include "ConfigTestApp.xcconfig" diff --git a/Configurations/ConfigUnitTest.xcconfig b/Configurations/ConfigUnitTest.xcconfig index 94325831..baaf4820 100644 --- a/Configurations/ConfigUnitTest.xcconfig +++ b/Configurations/ConfigUnitTest.xcconfig @@ -1,9 +1,6 @@ // Unit Test only -INFOPLIST_FILE = Tests/Sparkle Unit Tests-Info.plist -OTHER_LDFLAGS = -framework Cocoa -framework XCTest +INFOPLIST_FILE = Tests/SparkleTests-Info.plist PRODUCT_NAME = Sparkle Unit Tests WRAPPER_EXTENSION = xctest -FRAMEWORK_SEARCH_PATHS = $(DEVELOPER_LIBRARY_DIR)/Frameworks -GCC_PREFIX_HEADER = $(SYSTEM_LIBRARY_DIR)/Frameworks/Cocoa.framework/Headers/Cocoa.h -GCC_PRECOMPILE_PREFIX_HEADER = YES +WARNING_CFLAGS = $(inherited) -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments diff --git a/Configurations/ConfigUnitTestDebug.xcconfig b/Configurations/ConfigUnitTestDebug.xcconfig index 354e9361..e2481b5e 100644 --- a/Configurations/ConfigUnitTestDebug.xcconfig +++ b/Configurations/ConfigUnitTestDebug.xcconfig @@ -1,3 +1 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonDebug.xcconfig" #include "ConfigUnitTest.xcconfig" diff --git a/Configurations/ConfigUnitTestRelease.xcconfig b/Configurations/ConfigUnitTestRelease.xcconfig index 53dd6b93..e2481b5e 100644 --- a/Configurations/ConfigUnitTestRelease.xcconfig +++ b/Configurations/ConfigUnitTestRelease.xcconfig @@ -1,3 +1 @@ -#include "ConfigCommon.xcconfig" -#include "ConfigCommonRelease.xcconfig" #include "ConfigUnitTest.xcconfig" diff --git a/Configurations/make-release-package.sh b/Configurations/make-release-package.sh new file mode 100755 index 00000000..a0889ed9 --- /dev/null +++ b/Configurations/make-release-package.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +if [ "$ACTION" = "" ] ; then + rm -rf "$CONFIGURATION_BUILD_DIR/staging" + rm -f "Sparkle-$CURRENT_PROJECT_VERSION.zip" + + mkdir -p "$CONFIGURATION_BUILD_DIR/staging" + cp "$SRCROOT/CHANGELOG" "$SRCROOT/LICENSE" "$SRCROOT/Resources/SampleAppcast.xml" "$CONFIGURATION_BUILD_DIR/staging" + cp -R "$SRCROOT/bin" "$CONFIGURATION_BUILD_DIR/staging" + cp "$CONFIGURATION_BUILD_DIR/BinaryDelta" "$CONFIGURATION_BUILD_DIR/staging/bin" + cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework" "$CONFIGURATION_BUILD_DIR/staging" + cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" + + cd "$CONFIGURATION_BUILD_DIR/staging" + zip --symlinks -r "../Sparkle-$CURRENT_PROJECT_VERSION.zip" . + rm -rf "$CONFIGURATION_BUILD_DIR/staging" +fi diff --git a/Documentation/.gitignore b/Documentation/.gitignore new file mode 100644 index 00000000..1936cc1d --- /dev/null +++ b/Documentation/.gitignore @@ -0,0 +1 @@ +html diff --git a/Documentation/Doxyfile b/Documentation/Doxyfile new file mode 100644 index 00000000..df5d5419 --- /dev/null +++ b/Documentation/Doxyfile @@ -0,0 +1,20 @@ +PROJECT_NAME = Sparkle +PROJECT_NUMBER = 1.7 +PROJECT_BRIEF = "A software update framework for OS X" +PROJECT_LOGO = Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png + +RECURSIVE = YES +INPUT = Sparkle +OUTPUT_DIRECTORY = Documentation + +GENERATE_HTML = YES +GENERATE_LATEX = NO + +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST = YES +GENERATE_TODOLIST = YES + +ALPHABETICAL_INDEX = YES + +QT_AUTOBRIEF = YES +WARN_IF_UNDOCUMENTED = NO diff --git a/Documentation/build-docs.sh b/Documentation/build-docs.sh new file mode 100755 index 00000000..f387c799 --- /dev/null +++ b/Documentation/build-docs.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +if [ "$ACTION" = "" ] ; then + doxygen Documentation/Doxyfile +elif [ "$ACTION" = "clean" ] ; then + rm -rf "$SRCROOT/Documentation/html" +fi diff --git a/Makefile b/Makefile index a756e344..350c7c16 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,13 @@ .PHONY: all localizable-strings -localizable-strings: - rm en.lproj/Sparkle.strings || TRUE - genstrings -o en.lproj -s SULocalizedString *.m *.h - mv en.lproj/Localizable.strings en.lproj/Sparkle.strings +builddir := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") +localizable-strings: + rm Sparkle/en.lproj/Sparkle.strings || TRUE + genstrings -o Sparkle/en.lproj -s SULocalizedString Sparkle/*.m Sparkle/*.h + iconv -f UTF-16 -t UTF-8 < Sparkle/en.lproj/Localizable.strings > Sparkle/en.lproj/Sparkle.strings + rm Sparkle/en.lproj/Localizable.strings + +release: + xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(builddir)" + open -R "$(builddir)/Build/Products/Release/Sparkle-"*.zip diff --git a/README.markdown b/README.markdown index 5aa1fced..3d8b7874 100644 --- a/README.markdown +++ b/README.markdown @@ -1,4 +1,4 @@ -# Sparkle +# Sparkle is an easy-to-use software update framework for Cocoa developers. ## Changes since 1.5 diff --git a/Resources/Images.xcassets/AppIcon.appiconset/Contents.json b/Resources/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..5ddf68b4 --- /dev/null +++ b/Resources/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,65 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "icon_16x16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "icon_16x16@2x.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "icon_32x32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "icon_32x32@2x.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "icon_128x128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "icon_128x128@2x.png", + "scale" : "2x" + }, + { + "size" : "256x256", + "idiom" : "mac", + "filename" : "icon_256x256.png", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png new file mode 100644 index 00000000..cab9bc5a Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png new file mode 100644 index 00000000..ea89c060 Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png new file mode 100644 index 00000000..dea3255c Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png new file mode 100644 index 00000000..0e7f543e Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png new file mode 100644 index 00000000..b4a17b8d Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png new file mode 100644 index 00000000..77e8fde5 Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png differ diff --git a/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png new file mode 100644 index 00000000..a3f6f789 Binary files /dev/null and b/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png differ diff --git a/SUModelTranslation.plist b/Resources/SUModelTranslation.plist similarity index 100% rename from SUModelTranslation.plist rename to Resources/SUModelTranslation.plist diff --git a/Resources/SampleAppcast.xml b/Resources/SampleAppcast.xml new file mode 100755 index 00000000..1abb2c2c --- /dev/null +++ b/Resources/SampleAppcast.xml @@ -0,0 +1,39 @@ + + + + Your Great App's Changelog + http://you.com/app/appcast.xml + Most recent changes with links to updates. + en + + Version 2.0 (2 bugs fixed; 3 new features) + + http://you.com/app/2.0.html + + Wed, 09 Jan 2006 19:20:11 +0000 + + 10.7 + + + + Version 1.5 (8 bugs fixed; 2 new features) + + http://you.com/app/1.5.html + + Wed, 01 Jan 2006 12:20:11 +0000 + + 10.7 + + + + + Version 1.4 (5 bugs fixed; 2 new features) + + http://you.com/app/1.4.html + + Wed, 25 Dec 2005 12:20:11 +0000 + + 10.7 + + + diff --git a/Resources/Sparkle.png b/Resources/Sparkle.png new file mode 100644 index 00000000..8ccf2e73 Binary files /dev/null and b/Resources/Sparkle.png differ diff --git a/SUInstaller.h b/SUInstaller.h deleted file mode 100644 index 0277d792..00000000 --- a/SUInstaller.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// SUInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUINSTALLER_H -#define SUINSTALLER_H - -#import -#import "SUVersionComparisonProtocol.h" - -@protocol SUInstallerDelegate; - -@class SUHost; -@interface SUInstaller : NSObject -+ (NSString *) appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host; -+ (void) installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath delegate:(id)delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator; -+ (void) finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:(id)delegate; -+ (NSString*) updateFolder; -@end - -@protocol SUInstallerDelegate -- (void)installerFinishedForHost:(SUHost *)host; -- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error; -@end - -#endif diff --git a/SUPackageInstaller.m b/SUPackageInstaller.m deleted file mode 100644 index e5d19fdf..00000000 --- a/SUPackageInstaller.m +++ /dev/null @@ -1,69 +0,0 @@ -// -// SUPackageInstaller.m -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUPackageInstaller.h" -#import -#import "SUConstants.h" - -static NSString * const SUPackageInstallerCommandKey = @"SUPackageInstallerCommand"; -static NSString * const SUPackageInstallerArgumentsKey = @"SUPackageInstallerArguments"; -static NSString * const SUPackageInstallerHostKey = @"SUPackageInstallerHost"; -static NSString * const SUPackageInstallerDelegateKey = @"SUPackageInstallerDelegate"; -static NSString * const SUPackageInstallerInstallationPathKey = @"SUPackageInstallerInstallationPathKey"; - -@implementation SUPackageInstaller - -+ (void)finishInstallationWithInfo:(NSDictionary *)info -{ - [self finishInstallationToPath:info[SUPackageInstallerInstallationPathKey] withResult:YES host:info[SUPackageInstallerHostKey] error:nil delegate:info[SUPackageInstallerDelegateKey]]; -} - -+ (void)performInstallationWithInfo:(NSDictionary *)info -{ - @autoreleasepool { - NSTask *installer = [NSTask launchedTaskWithLaunchPath:info[SUPackageInstallerCommandKey] arguments:info[SUPackageInstallerArgumentsKey]]; - [installer waitUntilExit]; - - // Known bug: if the installation fails or is canceled, Sparkle goes ahead and restarts, thinking everything is fine. - dispatch_async(dispatch_get_main_queue(), ^{ - [self finishInstallationWithInfo:info]; - }); - } -} - -+ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host delegate:(id )delegate synchronously:(BOOL)synchronously versionComparator:(id ) __unused comparator -{ - NSString *command; - NSArray *args; - - // Run installer using the "open" command to ensure it is launched in front of current application. - // -W = wait until the app has quit. - // -n = Open another instance if already open. - // -b = app bundle identifier - command = @"/usr/bin/open"; - args = @[@"-W", @"-n", @"-b", @"com.apple.installer", path]; - - if (![[NSFileManager defaultManager] fileExistsAtPath:command]) - { - NSError *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingInstallerToolError userInfo:@{NSLocalizedDescriptionKey: @"Couldn't find Apple's installer tool!"}]; - [self finishInstallationToPath:installationPath withResult:NO host:host error:error delegate:delegate]; - } - else - { - NSDictionary *info = @{SUPackageInstallerCommandKey: command, SUPackageInstallerArgumentsKey: args, SUPackageInstallerHostKey: host, SUPackageInstallerDelegateKey: delegate, SUPackageInstallerInstallationPathKey: installationPath}; - if (synchronously) - [self performInstallationWithInfo:info]; - else { - dispatch_async(dispatch_get_global_queue(0, 0), ^{ - [self performInstallationWithInfo:info]; - }); - } - } -} - -@end diff --git a/SUPlainInstaller.m b/SUPlainInstaller.m deleted file mode 100644 index 3c5d1730..00000000 --- a/SUPlainInstaller.m +++ /dev/null @@ -1,86 +0,0 @@ -// -// SUPlainInstaller.m -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUPlainInstaller.h" -#import "SUPlainInstallerInternals.h" -#import "SUConstants.h" -#import "SUHost.h" - -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"; -static NSString * const SUInstallerInstallationPathKey = @"SUInstallerInstallationPath"; - -@implementation SUPlainInstaller - -+ (void)finishInstallationWithInfo:(NSDictionary *)info -{ - // *** GETS CALLED ON NON-MAIN THREAD! - - [self finishInstallationToPath:info[SUInstallerInstallationPathKey] withResult:[info[SUInstallerResultKey] boolValue] host:info[SUInstallerHostKey] error:info[SUInstallerErrorKey] delegate:info[SUInstallerDelegateKey]]; -} - -+ (void)performInstallationWithInfo:(NSDictionary *)info -{ - // *** GETS CALLED ON NON-MAIN THREAD! - - @autoreleasepool { - NSError *error = nil; - - NSString * oldPath = [info[SUInstallerHostKey] bundlePath]; - NSString * installationPath = info[SUInstallerInstallationPathKey]; - BOOL result = [self copyPathWithAuthentication:info[SUInstallerPathKey] overPath: installationPath temporaryName:info[SUInstallerTempNameKey] error:&error]; - - if( result ) - { - BOOL haveOld = [[NSFileManager defaultManager] fileExistsAtPath: oldPath]; - BOOL differentFromNew = ![oldPath isEqualToString: installationPath]; - if( haveOld && differentFromNew ) - [self _movePathToTrash: oldPath]; // On success, trash old copy if there's still one due to renaming. - } - NSMutableDictionary *mutableInfo = [[info mutableCopy] autorelease]; - mutableInfo[SUInstallerResultKey] = @(result); - mutableInfo[SUInstallerInstallationPathKey] = installationPath; - if (!result && error) - mutableInfo[SUInstallerErrorKey] = error; - dispatch_async(dispatch_get_main_queue(), ^{ - [self finishInstallationWithInfo:mutableInfo]; - }); - } -} - -+ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host delegate:(id)delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator -{ - // Prevent malicious downgrades: - #if !PERMIT_AUTOMATED_DOWNGRADES - if ([comparator compareVersion:[host version] toVersion:[[NSBundle bundleWithPath:path] objectForInfoDictionaryKey:@"CFBundleVersion"]] == NSOrderedDescending) - { - 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:@{NSLocalizedDescriptionKey: errorMessage}]; - [self finishInstallationToPath:installationPath withResult:NO host:host error:error delegate:delegate]; - return; - } - #endif - - NSString *targetPath = [host installationPath]; - NSString *tempName = [self temporaryNameForPath:targetPath]; - NSDictionary *info = @{SUInstallerPathKey: path, SUInstallerTargetPathKey: targetPath, SUInstallerTempNameKey: tempName, SUInstallerHostKey: host, SUInstallerDelegateKey: delegate, SUInstallerInstallationPathKey: installationPath}; - if (synchronously) - [self performInstallationWithInfo:info]; - else { - dispatch_async(dispatch_get_global_queue(0, 0), ^{ - [self performInstallationWithInfo:info]; - }); - } -} - -@end diff --git a/SUUpdater.h b/SUUpdater.h deleted file mode 100644 index aaefffb4..00000000 --- a/SUUpdater.h +++ /dev/null @@ -1,178 +0,0 @@ -// -// SUUpdater.h -// Sparkle -// -// Created by Andy Matuschak on 1/4/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATER_H -#define SUUPDATER_H - -#import "SUVersionComparisonProtocol.h" -#import "SUVersionDisplayProtocol.h" - -@class SUUpdateDriver, SUAppcastItem, SUHost, SUAppcast; - -@protocol SUUpdaterDelegate; - -@interface SUUpdater : NSObject -{ -@private - SUUpdateDriver *driver; - - SUHost *host; -} -@property (assign) IBOutlet id delegate; - -+ (SUUpdater *)sharedUpdater; -+ (SUUpdater *)updaterForBundle:(NSBundle *)bundle; -- (instancetype)initForBundle:(NSBundle *)bundle; - -@property (readonly, strong) NSBundle *hostBundle; - -@property BOOL automaticallyChecksForUpdates; - -@property NSTimeInterval updateCheckInterval; - -/*! - * The URL of the appcast used to download update information. - * - * This property must be called on the main thread. - */ -@property (copy) NSURL *feedURL; - -@property (nonatomic, copy) NSString *userAgentString; - -@property BOOL sendsSystemProfile; - -@property BOOL automaticallyDownloadsUpdates; - -// This IBAction is meant for a main menu item. Hook up any menu item to this action, -// and Sparkle will check for updates and report back its findings verbosely. -- (IBAction)checkForUpdates:(id)sender; - -// This kicks off an update meant to be programmatically initiated. That is, it will display no UI unless it actually finds an update, -// in which case it proceeds as usual. If the fully automated updating is turned on, however, this will invoke that behavior, and if an -// update is found, it will be downloaded and prepped for installation. -- (void)checkForUpdatesInBackground; - -// Date of last update check. Returns nil if no check has been performed. -@property (readonly, copy) NSDate *lastUpdateCheckDate; - -// This begins a "probing" check for updates which will not actually offer to update to that version. The delegate methods, though, -// (up to updater:didFindValidUpdate: and updaterDidNotFindUpdate:), are called, so you can use that information in your UI. -- (void)checkForUpdateInformation; - -// Call this to appropriately schedule or cancel the update checking timer according to the preferences for time interval and automatic checks. This call does not change the date of the next check, but only the internal NSTimer. -- (void)resetUpdateCycle; - -@property (readonly) BOOL updateInProgress; - -@end - -// ----------------------------------------------------------------------------- -// SUUpdater Notifications for events that might be interesting to more than just the delegate -// The updater will be the notification object -// ----------------------------------------------------------------------------- -extern NSString *const SUUpdaterDidFinishLoadingAppCastNotification; -extern NSString *const SUUpdaterDidFindValidUpdateNotification; -extern NSString *const SUUpdaterDidNotFindUpdateNotification; -extern NSString *const SUUpdaterWillRestartNotification; -#define SUUpdaterWillRelaunchApplicationNotification SUUpdaterWillRestartNotification; -#define SUUpdaterWillInstallUpdateNotification SUUpdaterWillRestartNotification; - -// Key for the SUAppcastItem object in the SUUpdaterDidFindValidUpdateNotification userInfo -extern NSString *const SUUpdaterAppcastItemNotificationKey; -// Key for the SUAppcast object in the SUUpdaterDidFinishLoadingAppCastNotification userInfo -extern NSString *const SUUpdaterAppcastNotificationKey; - -// ----------------------------------------------------------------------------- -// SUUpdater Delegate: -// ----------------------------------------------------------------------------- - -@protocol SUUpdaterDelegate -@optional - -// Use this to keep Sparkle from popping up e.g. while your setup assistant is showing: -- (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle; - -// This method allows you to add extra parameters to the appcast URL, potentially based on whether or not Sparkle will also be sending along the system profile. This method should return an array of dictionaries with keys: "key", "value", "displayKey", "displayValue", the latter two being specifically for display to the user. -- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; - -// Override this to dynamically specify the entire URL. -- (NSString*)feedURLStringForUpdater:(SUUpdater*)updater; - -// Use this to override the default behavior for Sparkle prompting the user about automatic update checks. -- (BOOL)updaterShouldPromptForPermissionToCheckForUpdates:(SUUpdater *)bundle; - -// Implement this if you want to do some special handling with the appcast once it finishes loading. -- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast; - -// If you're using special logic or extensions in your appcast, implement this to use your own logic for finding -// a valid update, if any, in the given appcast. -- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)bundle; - -// Sent when a valid update is found by the update driver. -- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)update; - -// Sent when a valid update is not found. -- (void)updaterDidNotFindUpdate:(SUUpdater *)update; - -// Sent immediately before installing the specified update. -- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)update; - -// Return YES to delay the relaunch until you do some processing; invoke the given NSInvocation to continue. -// This is not called if the user didn't relaunch on the previous update, in that case it will immediately -// restart. -- (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)update untilInvoking:(NSInvocation *)invocation; - -// Some apps *can not* be relaunched in certain circumstances. They can use this method -// to prevent a relaunch "hard": -- (BOOL)updaterShouldRelaunchApplication:(SUUpdater *)updater; - -// Called immediately before relaunching. -- (void)updaterWillRelaunchApplication:(SUUpdater *)updater; - -// This method allows you to provide a custom version comparator. -// If you don't implement this method or return nil, the standard version comparator will be used. -- (id )versionComparatorForUpdater:(SUUpdater *)updater; - -// This method allows you to provide a custom version comparator. -// If you don't implement this method or return nil, the standard version displayer will be used. -- (id )versionDisplayerForUpdater:(SUUpdater *)updater; - -// Returns the path which is used to relaunch the client after the update is installed. By default, the path of the host bundle. -- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; - -// Called before and after, respectively, an updater shows a modal alert window, to give the host -// the opportunity to hide attached windows etc. that may get in the way: --(void) updaterWillShowModalAlert:(SUUpdater *)updater; --(void) updaterDidShowModalAlert:(SUUpdater *)updater; - -// Called when an update is scheduled to be silently installed on quit. -// The invocation can be used to trigger an immediate silent install and relaunch. -- (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)update immediateInstallationInvocation:(NSInvocation *)invocation; -- (void)updater:(SUUpdater *)updater didCancelInstallUpdateOnQuit:(SUAppcastItem *)update; - -@end - - -// ----------------------------------------------------------------------------- -// Constants: -// ----------------------------------------------------------------------------- - -// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds. -#if defined(DEBUG) && DEBUG && 0 -#define SU_MIN_CHECK_INTERVAL 60 -#else -#define SU_MIN_CHECK_INTERVAL 60*60 -#endif - -#if defined(DEBUG) && DEBUG && 0 -#define SU_DEFAULT_CHECK_INTERVAL 60 -#else -#define SU_DEFAULT_CHECK_INTERVAL 60*60*24 -#endif - -#endif diff --git a/SUVersionDisplayProtocol.h b/SUVersionDisplayProtocol.h deleted file mode 100644 index ed415a49..00000000 --- a/SUVersionDisplayProtocol.h +++ /dev/null @@ -1,27 +0,0 @@ -// -// SUVersionDisplayProtocol.h -// EyeTV -// -// Created by Uli Kusterer on 08.12.09. -// Copyright 2009 Elgato Systems GmbH. All rights reserved. -// - -#import - - -/*! - @protocol - @abstract Implement this protocol to apply special formatting to the two - version numbers. -*/ -@protocol SUVersionDisplay - -/*! - @method - @abstract An abstract method to format two version strings. - @discussion You get both so you can display important distinguishing - information, but leave out unnecessary/confusing parts. -*/ --(void) formatVersion: (NSString**)inOutVersionA andVersion: (NSString**)inOutVersionB; - -@end diff --git a/Sample Appcast.xml b/Sample Appcast.xml deleted file mode 100755 index 1073c1ca..00000000 --- a/Sample Appcast.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - Your Great App's Changelog - http://you.com/app/appcast.xml - Most recent changes with links to updates. - en - - Version 2.0 (2 bugs fixed; 3 new features) - - http://you.com/app/2.0.html - - Wed, 09 Jan 2006 19:20:11 +0000 - - 10.7 - - - - Version 1.5 (8 bugs fixed; 2 new features) - - http://you.com/app/1.5.html - - Wed, 01 Jan 2006 12:20:11 +0000 - - 10.7 - - - - - Version 1.4 (5 bugs fixed; 2 new features) - - http://you.com/app/1.4.html - - Wed, 25 Dec 2005 12:20:11 +0000 - - 10.7 - - - diff --git a/Sparkle.icns b/Sparkle.icns deleted file mode 100644 index 8e56d45c..00000000 Binary files a/Sparkle.icns and /dev/null differ diff --git a/Sparkle.png b/Sparkle.png deleted file mode 100644 index ad0918b6..00000000 Binary files a/Sparkle.png and /dev/null differ diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 665067db..e1e0594a 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -25,6 +25,14 @@ /* End PBXAggregateTarget section */ /* Begin PBXBuildFile section */ + 1420DE301962082C00203BB0 /* (null) in Resources */ = {isa = PBXBuildFile; }; + 1420DE3119620A6600203BB0 /* (null) in Resources */ = {isa = PBXBuildFile; }; + 1420DF50196247F900203BB0 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1420DF4F196247F900203BB0 /* Images.xcassets */; }; + 1420DF51196247F900203BB0 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1420DF4F196247F900203BB0 /* Images.xcassets */; }; + 14732BC01960F2C200593899 /* dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 14732BBF1960F0AC00593899 /* dsa_pub.pem */; }; + 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; + 14732BD119610A1200593899 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; + 14732BD319610A1800593899 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14732BD219610A1800593899 /* XCTest.framework */; }; 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; 14950070195FCE3A00BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; @@ -33,7 +41,6 @@ 14950073195FCE4E00BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; 14950075195FDF5900BC5B5B /* SUUpdaterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */; }; 3772FEA913DE0B6B00F79537 /* SUVersionDisplayProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 550347011370023A00AE7681 /* Sparkle.icns in Resources */ = {isa = PBXBuildFile; fileRef = 550347001370023A00AE7681 /* Sparkle.icns */; }; 55C14BD4136EEFCE00649790 /* Autoupdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14BD3136EEFCE00649790 /* Autoupdate.m */; }; 55C14BD9136EF00C00649790 /* SUStatus.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BD8136EF00C00649790 /* SUStatus.xib */; }; 55C14BEE136EF20D00649790 /* SUAutomaticUpdateAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */; }; @@ -105,7 +112,6 @@ 6158A1C5137904B300487EC1 /* SUUpdater_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 6158A1C4137904B300487EC1 /* SUUpdater_Private.h */; }; 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */; }; 6160E7E10D3B4A8800E9CD71 /* NTSynchronousTask.h in Headers */ = {isa = PBXBuildFile; fileRef = 610EC1C00CF3914D00AE239E /* NTSynchronousTask.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 = (); }; }; 618FA5020DAE88B40026945C /* SUInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5000DAE88B40026945C /* SUInstaller.m */; }; 618FA5050DAE8AB80026945C /* SUPlainInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 618FA5030DAE8AB80026945C /* SUPlainInstaller.h */; settings = {ATTRIBUTES = (); }; }; @@ -145,8 +151,6 @@ 61B93B280DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B93B260DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m */; }; 61B93C090DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B93C070DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B93C080DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m */; }; - 61BBDF820A49220C00378739 /* Sparkle.icns in Resources */ = {isa = PBXBuildFile; fileRef = 61BBDF810A49220C00378739 /* Sparkle.icns */; }; - 61C2680A0E2DB5D000175E6C /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 61C268090E2DB5D000175E6C /* LICENSE */; }; 61CFB3290E385186007A1735 /* Sparkle.pch in Headers */ = {isa = PBXBuildFile; fileRef = 61CFB3280E385186007A1735 /* Sparkle.pch */; }; 61D85D6D0E10B2ED00F9B4A9 /* SUPipedUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 6129C0B90E0B79810062CE76 /* SUPipedUnarchiver.m */; }; 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; @@ -157,6 +161,20 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 14732BCA1960F73500593899 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8DC2EF4F0486A6940098B216; + remoteInfo = Sparkle; + }; + 14732BCE1960F73500593899 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 5D06E8CF0FD68C7C005AE3F6; + remoteInfo = BinaryDelta; + }; 14950063195FB8A600BC5B5B /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; @@ -246,6 +264,20 @@ 0263187714FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; 0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; + 1420DF4D196247B500203BB0 /* build-docs.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "build-docs.sh"; sourceTree = ""; }; + 1420DF4E196247B500203BB0 /* Doxyfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Doxyfile; sourceTree = ""; }; + 1420DF4F196247F900203BB0 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 14732BB91960EEEE00593899 /* SampleAppcast.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = SampleAppcast.xml; sourceTree = ""; }; + 14732BBA1960EF7100593899 /* CHANGELOG */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CHANGELOG; sourceTree = SOURCE_ROOT; }; + 14732BBC1960EFB500593899 /* README.markdown */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.markdown; sourceTree = SOURCE_ROOT; }; + 14732BBE1960F0A600593899 /* dsa_priv.pem */ = {isa = PBXFileReference; lastKnownFileType = text; path = dsa_priv.pem; sourceTree = ""; }; + 14732BBF1960F0AC00593899 /* dsa_pub.pem */ = {isa = PBXFileReference; lastKnownFileType = text; path = dsa_pub.pem; sourceTree = ""; }; + 14732BC11960F3B200593899 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = SOURCE_ROOT; usesTabs = 1; }; + 14732BC31960F3FF00593899 /* generate_keys.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = generate_keys.sh; sourceTree = ""; }; + 14732BC41960F3FF00593899 /* sign_update.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = sign_update.sh; sourceTree = ""; }; + 14732BC91960F70A00593899 /* make-release-package.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "make-release-package.sh"; sourceTree = ""; }; + 14732BD219610A1800593899 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 14732BB1195FF6B700593899 /* .clang-format */ = {isa = PBXFileReference; lastKnownFileType = text; path = ".clang-format"; sourceTree = SOURCE_ROOT; }; 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUUpdaterTest.m; path = Tests/SUUpdaterTest.m; sourceTree = ""; }; 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUVersionDisplayProtocol.h; sourceTree = ""; }; 4607BEA21948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Sparkle.strings; sourceTree = ""; }; @@ -253,7 +285,6 @@ 4607BEA41948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 4607BEA51948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; 525A278F133D6AE900FD8D70 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 550347001370023A00AE7681 /* Sparkle.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Sparkle.icns; sourceTree = ""; }; 55C14BB7136EEF1500649790 /* Autoupdate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Autoupdate.app; sourceTree = BUILT_PRODUCTS_DIR; }; 55C14BB9136EEF1500649790 /* Autoupdate-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Autoupdate-Info.plist"; sourceTree = ""; }; 55C14BD3136EEFCE00649790 /* Autoupdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Autoupdate.m; sourceTree = ""; }; @@ -357,7 +388,7 @@ 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.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Sparkle Unit Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 612279DA0DB5470200AB99EA /* Sparkle Unit Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Sparkle Unit Tests-Info.plist"; path = "Tests/Sparkle Unit Tests-Info.plist"; sourceTree = ""; }; + 612279DA0DB5470200AB99EA /* SparkleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "SparkleTests-Info.plist"; path = "Tests/SparkleTests-Info.plist"; sourceTree = ""; }; 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SUVersionComparisonTest.m; path = Tests/SUVersionComparisonTest.m; sourceTree = ""; }; 6129984309C9E2DA00B7442F /* SUPlainInstallerInternals.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPlainInstallerInternals.h; sourceTree = ""; }; 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDSAVerifier.h; sourceTree = ""; }; @@ -386,7 +417,6 @@ 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SUModelTranslation.plist; sourceTree = ""; }; 6186554310D7484E00B1E074 /* pt_PT */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pt_PT; path = pt_PT.lproj/Sparkle.strings; sourceTree = ""; }; 618915730E35937600B5E981 /* sv */ = {isa = PBXFileReference; fileEncoding = 4; 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 = ""; }; 618FA4FF0DAE88B40026945C /* SUInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUInstaller.h; sourceTree = ""; }; 618FA5000DAE88B40026945C /* SUInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstaller.m; sourceTree = ""; }; 618FA5030DAE8AB80026945C /* SUPlainInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPlainInstaller.h; sourceTree = ""; }; @@ -415,10 +445,10 @@ 61B5F8E509C4CE3C00B25A18 /* SUPlainInstallerInternals.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = SUPlainInstallerInternals.m; sourceTree = ""; }; 61B5F8F609C4CEB300B25A18 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Sparkle Test App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 61B5F90409C4CEE200B25A18 /* Test Application-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "Test Application-Info.plist"; path = "Test Application/Test Application-Info.plist"; sourceTree = ""; }; - 61B5F92409C4CFC900B25A18 /* main.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = main.m; path = "Test Application/main.m"; sourceTree = ""; }; - 61B5F92B09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = "Test Application/English.lproj/InfoPlist.strings"; sourceTree = ""; }; - 61B5F92D09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = "Test Application/English.lproj/MainMenu.xib"; sourceTree = ""; }; + 61B5F90409C4CEE200B25A18 /* TestApplication-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TestApplication-Info.plist"; sourceTree = ""; }; + 61B5F92409C4CFC900B25A18 /* main.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 61B5F92B09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 61B5F92D09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; 61B5FB9409C4F04600B25A18 /* SUAppcast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAppcast.h; sourceTree = ""; }; 61B5FB9509C4F04600B25A18 /* SUAppcast.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAppcast.m; sourceTree = ""; }; 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; @@ -436,8 +466,7 @@ 61BA66DA14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; 61BA66DB14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUUpdateAlert.xib; sourceTree = ""; }; 61BA66DC14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 61BBDF810A49220C00378739 /* Sparkle.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = Sparkle.icns; sourceTree = ""; }; - 61C268090E2DB5D000175E6C /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; + 61C268090E2DB5D000175E6C /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; 61CFB3280E385186007A1735 /* Sparkle.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sparkle.pch; sourceTree = ""; }; 61E31A80103299500051D188 /* pt_BR */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pt_BR; path = pt_BR.lproj/Sparkle.strings; sourceTree = ""; }; 61EF67550E25B58D00F754E0 /* SUHost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUHost.m; sourceTree = ""; }; @@ -449,7 +478,7 @@ 61F614540E24A12D009F47E7 /* it */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Sparkle.strings; 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 = ""; }; + 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Sparkle-Info.plist"; sourceTree = ""; }; 8DC2EF5B0486A6940098B216 /* Sparkle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Sparkle.framework; 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 = ""; }; @@ -475,8 +504,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 14950070195FCE3A00BC5B5B /* Foundation.framework in Frameworks */, 14950071195FCE3D00BC5B5B /* AppKit.framework in Frameworks */, + 14950070195FCE3A00BC5B5B /* Foundation.framework in Frameworks */, 55C14F9A136F045400649790 /* Security.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -498,7 +527,10 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 14732BD119610A1200593899 /* AppKit.framework in Frameworks */, + 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */, 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */, + 14732BD319610A1800593899 /* XCTest.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -506,8 +538,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 14950072195FCE4B00BC5B5B /* Foundation.framework in Frameworks */, 14950073195FCE4E00BC5B5B /* AppKit.framework in Frameworks */, + 14950072195FCE4B00BC5B5B /* Foundation.framework in Frameworks */, 61B5F90F09C4CF3A00B25A18 /* Sparkle.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; @@ -516,8 +548,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */, 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */, + 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */, 61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */, 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */, 5D1AF58A0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */, @@ -547,15 +579,18 @@ isa = PBXGroup; children = ( 1495006D195FBBBD00BC5B5B /* Sparkle */, - 55C14BD5136EEFD000649790 /* Autoupdate */, + 14732BB81960EEB600593899 /* Resources */, 61227A100DB5484000AB99EA /* Tests */, - 61B5F91D09C4CF7F00B25A18 /* Test Application Sources */, - 0867D69AFE84028FC02AAC07 /* Frameworks */, + 61B5F91D09C4CF7F00B25A18 /* Test Application */, + 14732BB51960ECBA00593899 /* Third Party */, + 1420DE391962322200203BB0 /* Documentation */, FA1941C40D94A6EA00DD942E /* Configurations */, + 0867D69AFE84028FC02AAC07 /* Frameworks */, 034768DFFF38A50411DB9C8B /* Products */, ); name = Sparkle; sourceTree = ""; + usesTabs = 0; }; 0867D69AFE84028FC02AAC07 /* Frameworks */ = { isa = PBXGroup; @@ -571,6 +606,7 @@ 61B5F8F609C4CEB300B25A18 /* Security.framework */, 55C14F31136EFC2400649790 /* SystemConfiguration.framework */, 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */, + 14732BD219610A1800593899 /* XCTest.framework */, ); name = Frameworks; sourceTree = ""; @@ -578,11 +614,9 @@ 089C1665FE841158C02AAC07 /* Framework Resources */ = { isa = PBXGroup; children = ( - 8DC2EF5A0486A6940098B216 /* Info.plist */, - 61C268090E2DB5D000175E6C /* LICENSE */, + 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */, 61AAE8220A321A7F00D8810D /* Sparkle.strings */, 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */, - 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */, 55C14BD8136EF00C00649790 /* SUStatus.xib */, 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */, 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */, @@ -590,18 +624,81 @@ name = "Framework Resources"; sourceTree = ""; }; + 1420DE391962322200203BB0 /* Documentation */ = { + isa = PBXGroup; + children = ( + 1420DF4E196247B500203BB0 /* Doxyfile */, + 1420DF4D196247B500203BB0 /* build-docs.sh */, + ); + path = Documentation; + sourceTree = ""; + }; + 14732BB51960ECBA00593899 /* Third Party */ = { + isa = PBXGroup; + children = ( + 14732BB61960ECE800593899 /* bsdiff */, + 14732BB71960ECF000593899 /* CocoatechCore */, + ); + name = "Third Party"; + path = Vendor; + sourceTree = ""; + }; + 14732BB61960ECE800593899 /* bsdiff */ = { + isa = PBXGroup; + children = ( + 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */, + 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */, + 611142E810FB1BE5009810AA /* bspatch.h */, + ); + path = bsdiff; + sourceTree = ""; + }; + 14732BB71960ECF000593899 /* CocoatechCore */ = { + isa = PBXGroup; + children = ( + 610EC1C00CF3914D00AE239E /* NTSynchronousTask.h */, + 610EC1BF0CF3914D00AE239E /* NTSynchronousTask.m */, + ); + path = CocoatechCore; + sourceTree = ""; + }; + 14732BB81960EEB600593899 /* Resources */ = { + isa = PBXGroup; + children = ( + 14732BC21960F3FF00593899 /* bin */, + 14732BBA1960EF7100593899 /* CHANGELOG */, + 61C268090E2DB5D000175E6C /* LICENSE */, + 14732BC11960F3B200593899 /* Makefile */, + 1420DF4F196247F900203BB0 /* Images.xcassets */, + 14732BBC1960EFB500593899 /* README.markdown */, + 14732BB91960EEEE00593899 /* SampleAppcast.xml */, + 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */, + ); + path = Resources; + sourceTree = ""; + }; + 14732BC21960F3FF00593899 /* bin */ = { + isa = PBXGroup; + children = ( + 14732BC31960F3FF00593899 /* generate_keys.sh */, + 14732BC41960F3FF00593899 /* sign_update.sh */, + ); + path = bin; + sourceTree = SOURCE_ROOT; + }; 1495006D195FBBBD00BC5B5B /* Sparkle */ = { isa = PBXGroup; children = ( - 61F83F6E0DBFE07A006FDD30 /* Update Control */, 61299B3909CB055000B7442F /* Appcast Support */, - 618FA6DB0DB485440026945C /* Installation */, - 6101354A0DD25B7F0049ACDF /* Unarchiving */, - 61299B3A09CB056100B7442F /* User Interface */, - 61B5F8F309C4CE5900B25A18 /* Other Sources */, + 55C14BD5136EEFD000649790 /* Autoupdate */, 089C1665FE841158C02AAC07 /* Framework Resources */, + 618FA6DB0DB485440026945C /* Installation */, + 61B5F8F309C4CE5900B25A18 /* Other Sources */, + 6101354A0DD25B7F0049ACDF /* Unarchiving */, + 61F83F6E0DBFE07A006FDD30 /* Update Control */, + 61299B3A09CB056100B7442F /* User Interface */, ); - name = Sparkle; + path = Sparkle; sourceTree = ""; }; 55C14BD5136EEFD000649790 /* Autoupdate */ = { @@ -610,17 +707,13 @@ 55C14BB9136EEF1500649790 /* Autoupdate-Info.plist */, 55C14BD3136EEFCE00649790 /* Autoupdate.m */, 55C14F0E136EF73600649790 /* Autoupdate.pch */, - 550347001370023A00AE7681 /* Sparkle.icns */, ); - name = Autoupdate; + path = Autoupdate; sourceTree = ""; }; 5D06E8D90FD68C95005AE3F6 /* Binary Delta */ = { isa = PBXGroup; children = ( - 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */, - 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */, - 611142E810FB1BE5009810AA /* bspatch.h */, 5D06E8DF0FD68CC7005AE3F6 /* SUBinaryDeltaApply.h */, 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */, 5D06E8E10FD68CC7005AE3F6 /* SUBinaryDeltaCommon.h */, @@ -636,8 +729,6 @@ isa = PBXGroup; children = ( 5D06E8D90FD68C95005AE3F6 /* Binary Delta */, - 610EC1C00CF3914D00AE239E /* NTSynchronousTask.h */, - 610EC1BF0CF3914D00AE239E /* NTSynchronousTask.m */, 6102FE480E07803800F85D09 /* SUDiskImageUnarchiver.h */, 6102FE490E07803800F85D09 /* SUDiskImageUnarchiver.m */, 6102FE440E077FCE00F85D09 /* SUPipedUnarchiver.h */, @@ -653,9 +744,9 @@ 61227A100DB5484000AB99EA /* Tests */ = { isa = PBXGroup; children = ( - 612279DA0DB5470200AB99EA /* Sparkle Unit Tests-Info.plist */, - 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */, + 612279DA0DB5470200AB99EA /* SparkleTests-Info.plist */, 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */, + 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */, ); name = Tests; sourceTree = ""; @@ -725,16 +816,18 @@ name = "Other Sources"; sourceTree = ""; }; - 61B5F91D09C4CF7F00B25A18 /* Test Application Sources */ = { + 61B5F91D09C4CF7F00B25A18 /* Test Application */ = { isa = PBXGroup; children = ( + 14732BBE1960F0A600593899 /* dsa_priv.pem */, + 14732BBF1960F0AC00593899 /* dsa_pub.pem */, 61B5F92A09C4CFD800B25A18 /* InfoPlist.strings */, 61B5F92409C4CFC900B25A18 /* main.m */, 61B5F92C09C4CFD800B25A18 /* MainMenu.xib */, - 61BBDF810A49220C00378739 /* Sparkle.icns */, - 61B5F90409C4CEE200B25A18 /* Test Application-Info.plist */, + 61B5F90409C4CEE200B25A18 /* TestApplication-Info.plist */, ); - name = "Test Application Sources"; + name = "Test Application"; + path = TestApplication; sourceTree = ""; }; 61CFB2C10E384958007A1735 /* Support */ = { @@ -784,6 +877,7 @@ FA1941C40D94A6EA00DD942E /* Configurations */ = { isa = PBXGroup; children = ( + 14732BB1195FF6B700593899 /* .clang-format */, 5D06E8F10FD68D21005AE3F6 /* ConfigBinaryDelta.xcconfig */, 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */, 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */, @@ -802,6 +896,7 @@ FA3AAF3B1050B273004B3130 /* ConfigUnitTest.xcconfig */, FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */, FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */, + 14732BC91960F70A00593899 /* make-release-package.sh */, ); path = Configurations; sourceTree = ""; @@ -813,8 +908,8 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 611142E910FB1BE5009810AA /* bspatch.h in Headers */, 55C14F0F136EF73600649790 /* Autoupdate.pch in Headers */, + 611142E910FB1BE5009810AA /* bspatch.h in Headers */, 6160E7E10D3B4A8800E9CD71 /* NTSynchronousTask.h in Headers */, 61299B3609CB04E000B7442F /* Sparkle.h in Headers */, 61CFB3290E385186007A1735 /* Sparkle.pch in Headers */, @@ -857,6 +952,39 @@ }; /* End PBXHeadersBuildPhase section */ +/* Begin PBXLegacyTarget section */ + 1420DF491962329200203BB0 /* Documentation */ = { + isa = PBXLegacyTarget; + buildArgumentsString = "\"$(SRCROOT)/Documentation/build-docs.sh\" $(ACTION)"; + buildConfigurationList = 1420DF4A1962329200203BB0 /* Build configuration list for PBXLegacyTarget "Documentation" */; + buildPhases = ( + ); + buildToolPath = bash; + buildWorkingDirectory = ""; + dependencies = ( + ); + name = Documentation; + passBuildSettingsInEnvironment = 1; + productName = Documentation; + }; + 14732BC51960F69300593899 /* Distribution */ = { + isa = PBXLegacyTarget; + buildArgumentsString = "$(SRCROOT)/Configurations/make-release-package.sh $(ACTION)"; + buildConfigurationList = 14732BC61960F69300593899 /* Build configuration list for PBXLegacyTarget "Distribution" */; + buildPhases = ( + ); + buildToolPath = bash; + buildWorkingDirectory = ""; + dependencies = ( + 14732BCB1960F73500593899 /* PBXTargetDependency */, + 14732BCF1960F73500593899 /* PBXTargetDependency */, + ); + name = Distribution; + passBuildSettingsInEnvironment = 1; + productName = Distribution; + }; +/* End PBXLegacyTarget section */ + /* Begin PBXNativeTarget section */ 55C14BB6136EEF1500649790 /* Autoupdate */ = { isa = PBXNativeTarget; @@ -963,6 +1091,11 @@ CLASSPREFIX = SU; LastUpgradeCheck = 0510; ORGANIZATIONNAME = "Sparkle Project"; + TargetAttributes = { + 612279D80DB5470200AB99EA = { + TestTargetID = 8DC2EF4F0486A6940098B216; + }; + }; }; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; compatibilityVersion = "Xcode 3.2"; @@ -1020,6 +1153,8 @@ 612279D80DB5470200AB99EA /* Sparkle Unit Tests */, 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */, 55C14BB6136EEF1500649790 /* Autoupdate */, + 14732BC51960F69300593899 /* Distribution */, + 1420DF491962329200203BB0 /* Documentation */, 1495005F195FB89400BC5B5B /* All */, ); }; @@ -1030,7 +1165,8 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 550347011370023A00AE7681 /* Sparkle.icns in Resources */, + 1420DE3119620A6600203BB0 /* (null) in Resources */, + 1420DF51196247F900203BB0 /* Images.xcassets in Resources */, 55C14FC7136F05E100649790 /* Sparkle.strings in Resources */, 55C14BD9136EF00C00649790 /* SUStatus.xib in Resources */, ); @@ -1047,10 +1183,11 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 618E9CFD0E7328F1004646D8 /* dsa_pub.pem in Resources */, + 1420DE301962082C00203BB0 /* (null) in Resources */, + 14732BC01960F2C200593899 /* dsa_pub.pem in Resources */, + 1420DF50196247F900203BB0 /* Images.xcassets in Resources */, 61B5F92E09C4CFD800B25A18 /* InfoPlist.strings in Resources */, 61B5F92F09C4CFD800B25A18 /* MainMenu.xib in Resources */, - 61BBDF820A49220C00378739 /* Sparkle.icns in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1059,7 +1196,6 @@ buildActionMask = 2147483647; files = ( 55C14F3B136EFCB300649790 /* Autoupdate.app in Resources */, - 61C2680A0E2DB5D000175E6C /* LICENSE in Resources */, 61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */, 55C14BEE136EF20D00649790 /* SUAutomaticUpdateAlert.xib in Resources */, 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */, @@ -1185,8 +1321,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 61227A160DB548B800AB99EA /* SUVersionComparisonTest.m in Sources */, 14950075195FDF5900BC5B5B /* SUUpdaterTest.m in Sources */, + 61227A160DB548B800AB99EA /* SUVersionComparisonTest.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1243,6 +1379,16 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 14732BCB1960F73500593899 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8DC2EF4F0486A6940098B216 /* Sparkle */; + targetProxy = 14732BCA1960F73500593899 /* PBXContainerItemProxy */; + }; + 14732BCF1960F73500593899 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */; + targetProxy = 14732BCE1960F73500593899 /* PBXContainerItemProxy */; + }; 14950064195FB8A600BC5B5B /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 8DC2EF4F0486A6940098B216 /* Sparkle */; @@ -1305,10 +1451,12 @@ 55C14BE2136EF20D00649790 /* it */, 55C14BE3136EF20D00649790 /* ja */, 55C14BE4136EF20D00649790 /* ko */, + 4607BEA31948443800EF8DA4 /* nb */, 55C14BE5136EF20D00649790 /* nl */, 55C14BE6136EF20D00649790 /* pl */, 55C14BE7136EF20D00649790 /* pt_BR */, 6158A1BA1378F68100487EC1 /* pt_PT */, + 004A8653192A492B00C9730D /* ro */, 55C14BE9136EF20D00649790 /* ru */, 55C14BEA136EF20D00649790 /* sk */, 61BA66DA14BDFC5500D02D86 /* sl */, @@ -1318,8 +1466,6 @@ 0263187514FEBB42005EBF43 /* uk */, 55C14BEC136EF20D00649790 /* zh_CN */, 55C14BED136EF20D00649790 /* zh_TW */, - 004A8653192A492B00C9730D /* ro */, - 4607BEA31948443800EF8DA4 /* nb */, ); name = SUAutomaticUpdateAlert.xib; sourceTree = ""; @@ -1338,10 +1484,12 @@ 55C14BF8136EF26100649790 /* it */, 55C14BF9136EF26100649790 /* ja */, 55C14BFA136EF26100649790 /* ko */, + 4607BEA41948443800EF8DA4 /* nb */, 55C14BFB136EF26100649790 /* nl */, 55C14BFC136EF26100649790 /* pl */, 55C14BFD136EF26100649790 /* pt_BR */, 6158A1BB1378F68100487EC1 /* pt_PT */, + 004A8654192A492B00C9730D /* ro */, 55C14BFF136EF26100649790 /* ru */, 55C14C00136EF26100649790 /* sk */, 61BA66DB14BDFC5500D02D86 /* sl */, @@ -1351,8 +1499,6 @@ 0263187614FEBB42005EBF43 /* uk */, 55C14C02136EF26100649790 /* zh_CN */, 55C14C03136EF26100649790 /* zh_TW */, - 004A8654192A492B00C9730D /* ro */, - 4607BEA41948443800EF8DA4 /* nb */, ); name = SUUpdateAlert.xib; sourceTree = ""; @@ -1371,10 +1517,12 @@ 55C14C0D136EF2C700649790 /* it */, 55C14C0E136EF2C700649790 /* ja */, 55C14C0F136EF2C700649790 /* ko */, + 4607BEA51948443800EF8DA4 /* nb */, 55C14C10136EF2C700649790 /* nl */, 55C14C11136EF2C700649790 /* pl */, 55C14C12136EF2C700649790 /* pt_BR */, 6158A1B81378F64700487EC1 /* pt_PT */, + 004A8655192A492B00C9730D /* ro */, 55C14C14136EF2C700649790 /* ru */, 55C14C15136EF2C700649790 /* sk */, 61BA66DC14BDFC5500D02D86 /* sl */, @@ -1384,8 +1532,6 @@ 0263187714FEBB42005EBF43 /* uk */, 55C14C17136EF2C700649790 /* zh_CN */, 55C14C18136EF2C700649790 /* zh_TW */, - 004A8655192A492B00C9730D /* ro */, - 4607BEA51948443800EF8DA4 /* nb */, ); name = SUUpdatePermissionPrompt.xib; sourceTree = ""; @@ -1404,10 +1550,12 @@ 61F614540E24A12D009F47E7 /* it */, 611A904610240DF700CC659E /* ja */, FE5536F517A2C6A7007CB333 /* ko */, + 4607BEA21948443800EF8DA4 /* nb */, 61AAE8710A321F7700D8810D /* nl */, 611A904210240DD300CC659E /* pl */, 61E31A80103299500051D188 /* pt_BR */, 6186554310D7484E00B1E074 /* pt_PT */, + 004A8652192A492B00C9730D /* ro */, 6195D4920E404AD700D41A50 /* ru */, FE5536F617A2C6AB007CB333 /* sk */, 61BA66CC14BDFA0400D02D86 /* sl */, @@ -1417,8 +1565,6 @@ 0263187214FEBB31005EBF43 /* uk */, 61131A090F846D0A00E97AF6 /* zh_CN */, 61131A0A0F846D1100E97AF6 /* zh_TW */, - 004A8652192A492B00C9730D /* ro */, - 4607BEA21948443800EF8DA4 /* nb */, ); name = Sparkle.strings; sourceTree = ""; @@ -1442,6 +1588,30 @@ /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ + 1420DF4B1962329200203BB0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + }; + name = Debug; + }; + 1420DF4C1962329200203BB0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + }; + name = Release; + }; + 14732BC71960F69300593899 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + }; + name = Debug; + }; + 14732BC81960F69300593899 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + }; + name = Release; + }; 14950061195FB89500BC5B5B /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1460,7 +1630,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; buildSettings = { - SKIP_INSTALL = YES; }; name = Debug; }; @@ -1468,24 +1637,20 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */; buildSettings = { - SKIP_INSTALL = YES; }; name = Release; }; 1DEB91B208733DA50010E9CD /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */; buildSettings = { - MACOSX_DEPLOYMENT_TARGET = 10.7; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; }; name = Debug; }; 1DEB91B308733DA50010E9CD /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */; buildSettings = { - MACOSX_DEPLOYMENT_TARGET = 10.7; - SDKROOT = macosx; }; name = Release; }; @@ -1493,21 +1658,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */; buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - GCC_DYNAMIC_NO_PIC = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = Autoupdate.pch; - INFOPLIST_FILE = "Autoupdate-Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.7; - OTHER_LDFLAGS = ( - "-framework", - Foundation, - "-framework", - AppKit, - ); - SDKROOT = macosx; }; name = Debug; }; @@ -1515,21 +1665,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */; buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = Autoupdate.pch; - INFOPLIST_FILE = "Autoupdate-Info.plist"; - MACOSX_DEPLOYMENT_TARGET = 10.7; - OTHER_LDFLAGS = ( - "-framework", - Foundation, - "-framework", - AppKit, - ); - SDKROOT = macosx; }; name = Release; }; @@ -1537,7 +1672,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */; buildSettings = { - SDKROOT = macosx; }; name = Debug; }; @@ -1545,7 +1679,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */; buildSettings = { - SDKROOT = macosx; }; name = Release; }; @@ -1553,18 +1686,12 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */; buildSettings = { - COMBINE_HIDPI_IMAGES = YES; - SDKROOT = macosx; - WARNING_CFLAGS = ( - "-Wall", - "-Weverything", - "-Wno-empty-translation-unit", - "-Wno-unused-macros", - "-Wno-gnu-statement-expression", - "$(WARNING_CFLAGS_EXTRA)", - "-Wno-variadic-macros", - "-Wno-gnu-zero-variadic-macro-arguments", + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Sparkle.framework/Versions/A/Sparkle"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", ); + TEST_HOST = "$(BUNDLE_LOADER)"; }; name = Debug; }; @@ -1572,18 +1699,12 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */; buildSettings = { - COMBINE_HIDPI_IMAGES = YES; - SDKROOT = macosx; - WARNING_CFLAGS = ( - "-Wall", - "-Weverything", - "-Wno-empty-translation-unit", - "-Wno-unused-macros", - "-Wno-gnu-statement-expression", - "$(WARNING_CFLAGS_EXTRA)", - "-Wno-variadic-macros", - "-Wno-gnu-zero-variadic-macro-arguments", + BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Sparkle.framework/Versions/A/Sparkle"; + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(DEVELOPER_FRAMEWORKS_DIR)", ); + TEST_HOST = "$(BUNDLE_LOADER)"; }; name = Release; }; @@ -1591,7 +1712,6 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */; buildSettings = { - MACOSX_DEPLOYMENT_TARGET = 10.7; }; name = Debug; }; @@ -1599,13 +1719,30 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */; buildSettings = { - MACOSX_DEPLOYMENT_TARGET = 10.7; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 1420DF4A1962329200203BB0 /* Build configuration list for PBXLegacyTarget "Documentation" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1420DF4B1962329200203BB0 /* Debug */, + 1420DF4C1962329200203BB0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 14732BC61960F69300593899 /* Build configuration list for PBXLegacyTarget "Distribution" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 14732BC71960F69300593899 /* Debug */, + 14732BC81960F69300593899 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 14950060195FB89500BC5B5B /* Build configuration list for PBXAggregateTarget "All" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/Autoupdate-Info.plist b/Sparkle/Autoupdate/Autoupdate-Info.plist similarity index 94% rename from Autoupdate-Info.plist rename to Sparkle/Autoupdate/Autoupdate-Info.plist index 1553bf25..92a7e0bb 100644 --- a/Autoupdate-Info.plist +++ b/Sparkle/Autoupdate/Autoupdate-Info.plist @@ -6,8 +6,6 @@ English CFBundleExecutable ${EXECUTABLE_NAME} - CFBundleIconFile - Sparkle CFBundleIdentifier org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034identifier} CFBundleInfoDictionaryVersion diff --git a/Autoupdate.m b/Sparkle/Autoupdate/Autoupdate.m similarity index 94% rename from Autoupdate.m rename to Sparkle/Autoupdate/Autoupdate.m index d5cd3c10..bf7bd6a3 100644 --- a/Autoupdate.m +++ b/Sparkle/Autoupdate/Autoupdate.m @@ -157,11 +157,11 @@ static const NSTimeInterval SUParentQuitCheckInterval = .5; [statusCtl release]; } - [SUInstaller installFromUpdateFolder: [[NSFileManager defaultManager] stringWithFileSystemRepresentation: folderpath length: strlen(folderpath)] - overHost: host - installationPath: installationPath - delegate: self synchronously: NO - versionComparator: [SUStandardVersionComparator defaultComparator]]; + [SUInstaller installFromUpdateFolder:[[NSFileManager defaultManager] stringWithFileSystemRepresentation:folderpath length:strlen(folderpath)] + overHost:host + installationPath:installationPath + delegate:self + versionComparator:[SUStandardVersionComparator defaultComparator]]; } - (void)installerFinishedForHost:(SUHost *) __unused aHost diff --git a/Autoupdate.pch b/Sparkle/Autoupdate/Autoupdate.pch similarity index 100% rename from Autoupdate.pch rename to Sparkle/Autoupdate/Autoupdate.pch diff --git a/SUAppcast.h b/Sparkle/SUAppcast.h similarity index 100% rename from SUAppcast.h rename to Sparkle/SUAppcast.h diff --git a/SUAppcast.m b/Sparkle/SUAppcast.m similarity index 100% rename from SUAppcast.m rename to Sparkle/SUAppcast.m diff --git a/SUAppcastItem.h b/Sparkle/SUAppcastItem.h similarity index 100% rename from SUAppcastItem.h rename to Sparkle/SUAppcastItem.h diff --git a/SUAppcastItem.m b/Sparkle/SUAppcastItem.m similarity index 100% rename from SUAppcastItem.m rename to Sparkle/SUAppcastItem.m diff --git a/SUAutomaticUpdateAlert.h b/Sparkle/SUAutomaticUpdateAlert.h similarity index 100% rename from SUAutomaticUpdateAlert.h rename to Sparkle/SUAutomaticUpdateAlert.h diff --git a/SUAutomaticUpdateAlert.m b/Sparkle/SUAutomaticUpdateAlert.m similarity index 100% rename from SUAutomaticUpdateAlert.m rename to Sparkle/SUAutomaticUpdateAlert.m diff --git a/SUAutomaticUpdateDriver.h b/Sparkle/SUAutomaticUpdateDriver.h similarity index 100% rename from SUAutomaticUpdateDriver.h rename to Sparkle/SUAutomaticUpdateDriver.h diff --git a/SUAutomaticUpdateDriver.m b/Sparkle/SUAutomaticUpdateDriver.m similarity index 100% rename from SUAutomaticUpdateDriver.m rename to Sparkle/SUAutomaticUpdateDriver.m diff --git a/SUBasicUpdateDriver.h b/Sparkle/SUBasicUpdateDriver.h similarity index 100% rename from SUBasicUpdateDriver.h rename to Sparkle/SUBasicUpdateDriver.h diff --git a/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m similarity index 98% rename from SUBasicUpdateDriver.m rename to Sparkle/SUBasicUpdateDriver.m index 38f9c09c..7d1e4db5 100644 --- a/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -292,7 +292,11 @@ { if (![self validateUpdateDownloadedToPath:downloadPath extractedToPath:tempDir DSASignature:[updateItem DSASignature] publicDSAKey:[host publicDSAKey]]) { - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:@{NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), NSLocalizedFailureReasonErrorKey: @"The update is improperly signed."}]]; + NSDictionary *userInfo = @{ + NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), + NSLocalizedFailureReasonErrorKey: SULocalizedString(@"The update is improperly signed.", nil), + }; + [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:userInfo]]; return; } diff --git a/SUBinaryDeltaApply.h b/Sparkle/SUBinaryDeltaApply.h similarity index 100% rename from SUBinaryDeltaApply.h rename to Sparkle/SUBinaryDeltaApply.h diff --git a/SUBinaryDeltaApply.m b/Sparkle/SUBinaryDeltaApply.m similarity index 100% rename from SUBinaryDeltaApply.m rename to Sparkle/SUBinaryDeltaApply.m diff --git a/SUBinaryDeltaCommon.h b/Sparkle/SUBinaryDeltaCommon.h similarity index 100% rename from SUBinaryDeltaCommon.h rename to Sparkle/SUBinaryDeltaCommon.h diff --git a/SUBinaryDeltaCommon.m b/Sparkle/SUBinaryDeltaCommon.m similarity index 100% rename from SUBinaryDeltaCommon.m rename to Sparkle/SUBinaryDeltaCommon.m diff --git a/SUBinaryDeltaTool.m b/Sparkle/SUBinaryDeltaTool.m similarity index 97% rename from SUBinaryDeltaTool.m rename to Sparkle/SUBinaryDeltaTool.m index 38d7e1c9..0f71fbf0 100644 --- a/SUBinaryDeltaTool.m +++ b/Sparkle/SUBinaryDeltaTool.m @@ -223,7 +223,11 @@ int main(int argc, char **argv) NSOperationQueue *deltaQueue = [[NSOperationQueue alloc] init]; NSMutableArray *deltaOperations = [NSMutableArray array]; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wselector" + // Xcode 5.1.1: compare: is clearly declared, must warn due to a compiler bug? NSArray *keys = [[newTreeState allKeys] sortedArrayUsingSelector:@selector(compare:)]; +#pragma clang diagnostic pop for (NSString* key in keys) { id value = [newTreeState valueForKey:key]; diff --git a/SUBinaryDeltaUnarchiver.h b/Sparkle/SUBinaryDeltaUnarchiver.h similarity index 100% rename from SUBinaryDeltaUnarchiver.h rename to Sparkle/SUBinaryDeltaUnarchiver.h diff --git a/SUBinaryDeltaUnarchiver.m b/Sparkle/SUBinaryDeltaUnarchiver.m similarity index 93% rename from SUBinaryDeltaUnarchiver.m rename to Sparkle/SUBinaryDeltaUnarchiver.m index 086e7a2e..6d4171a5 100644 --- a/SUBinaryDeltaUnarchiver.m +++ b/Sparkle/SUBinaryDeltaUnarchiver.m @@ -42,7 +42,7 @@ - (void)start { - dispatch_async(dispatch_get_global_queue(0, 0), ^{ + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self applyBinaryDelta]; }); } diff --git a/SUCodeSigningVerifier.h b/Sparkle/SUCodeSigningVerifier.h similarity index 100% rename from SUCodeSigningVerifier.h rename to Sparkle/SUCodeSigningVerifier.h diff --git a/SUCodeSigningVerifier.m b/Sparkle/SUCodeSigningVerifier.m similarity index 100% rename from SUCodeSigningVerifier.m rename to Sparkle/SUCodeSigningVerifier.m diff --git a/SUConstants.h b/Sparkle/SUConstants.h similarity index 100% rename from SUConstants.h rename to Sparkle/SUConstants.h diff --git a/SUConstants.m b/Sparkle/SUConstants.m similarity index 100% rename from SUConstants.m rename to Sparkle/SUConstants.m diff --git a/SUDSAVerifier.h b/Sparkle/SUDSAVerifier.h similarity index 100% rename from SUDSAVerifier.h rename to Sparkle/SUDSAVerifier.h diff --git a/SUDSAVerifier.m b/Sparkle/SUDSAVerifier.m similarity index 100% rename from SUDSAVerifier.m rename to Sparkle/SUDSAVerifier.m diff --git a/SUDiskImageUnarchiver.h b/Sparkle/SUDiskImageUnarchiver.h similarity index 100% rename from SUDiskImageUnarchiver.h rename to Sparkle/SUDiskImageUnarchiver.h diff --git a/SUDiskImageUnarchiver.m b/Sparkle/SUDiskImageUnarchiver.m similarity index 98% rename from SUDiskImageUnarchiver.m rename to Sparkle/SUDiskImageUnarchiver.m index ac9e9c87..dcb4a549 100644 --- a/SUDiskImageUnarchiver.m +++ b/Sparkle/SUDiskImageUnarchiver.m @@ -134,7 +134,7 @@ - (void)start { - dispatch_async(dispatch_get_global_queue(0, 0), ^{ + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self extractDMG]; }); } diff --git a/SUHost.h b/Sparkle/SUHost.h similarity index 100% rename from SUHost.h rename to Sparkle/SUHost.h diff --git a/SUHost.m b/Sparkle/SUHost.m similarity index 87% rename from SUHost.m rename to Sparkle/SUHost.m index 9dc50586..d96d3447 100644 --- a/SUHost.m +++ b/Sparkle/SUHost.m @@ -12,6 +12,17 @@ #include // For statfs for isRunningOnReadOnlyVolume #import "SULog.h" +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101000 +typedef struct { + NSInteger majorVersion; + NSInteger minorVersion; + NSInteger patchVersion; +} NSOperatingSystemVersion; +@interface NSProcessInfo () +- (NSOperatingSystemVersion)operatingSystemVersion; +@end +#endif + @interface SUHost () @property (retain, readwrite) NSBundle *bundle; @end @@ -246,8 +257,19 @@ + (NSString *)systemVersionString { - NSString *versionPlistPath = @"/System/Library/CoreServices/SystemVersion.plist"; - return [NSDictionary dictionaryWithContentsOfFile:versionPlistPath][@"ProductVersion"]; +#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1090 // Present in 10.9 despite NS_AVAILABLE's claims +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wselector" + // Xcode 5.1.1: operatingSystemVersion is clearly declared, must warn due to a compiler bug? + if (![NSProcessInfo instancesRespondToSelector:@selector(operatingSystemVersion)]) +#pragma clang diagnostic pop + { + NSURL *coreServices = [[NSFileManager defaultManager] URLForDirectory:NSCoreServiceDirectory inDomain:NSSystemDomainMask appropriateForURL:nil create:NO error:nil]; + return [NSDictionary dictionaryWithContentsOfURL:[coreServices URLByAppendingPathComponent:@"SystemVersion.plist"]][@"ProductVersion"]; + } +#endif + NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion]; + return [NSString stringWithFormat:@"%ld.%ld.%ld", (long)version.majorVersion, (long)version.minorVersion, (long)version.patchVersion]; } @end diff --git a/Sparkle/SUInstaller.h b/Sparkle/SUInstaller.h new file mode 100644 index 00000000..c1b01898 --- /dev/null +++ b/Sparkle/SUInstaller.h @@ -0,0 +1,32 @@ +// +// SUInstaller.h +// Sparkle +// +// Created by Andy Matuschak on 4/10/08. +// Copyright 2008 Andy Matuschak. All rights reserved. +// + +#ifndef SUINSTALLER_H +#define SUINSTALLER_H + +#import +#import "SUVersionComparisonProtocol.h" + +@protocol SUInstallerDelegate; + +@class SUHost; +@interface SUInstaller : NSObject + ++ (NSString *)appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host; ++ (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath delegate:(id)delegate versionComparator:(id)comparator; ++ (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:(id)delegate; ++ (NSString *)updateFolder; + +@end + +@protocol SUInstallerDelegate +- (void)installerFinishedForHost:(SUHost *)host; +- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error; +@end + +#endif diff --git a/SUInstaller.m b/Sparkle/SUInstaller.m similarity index 85% rename from SUInstaller.m rename to Sparkle/SUInstaller.m index 6a438b94..bc4f549b 100644 --- a/SUInstaller.m +++ b/Sparkle/SUInstaller.m @@ -117,19 +117,19 @@ static NSString* sUpdateFolder = nil; return isPackage ? nil : path; } -+ (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath delegate:(id)delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator ++ (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath delegate:(id)delegate versionComparator:(id)comparator { BOOL isPackage = NO; - NSString *newAppDownloadPath = [self installSourcePathInUpdateFolder:inUpdateFolder forHost:host isPackage:&isPackage]; + NSString *newAppDownloadPath = [self installSourcePathInUpdateFolder:inUpdateFolder forHost:host isPackage:&isPackage]; - if (newAppDownloadPath == nil) - { - [self finishInstallationToPath:installationPath withResult:NO host:host error:[NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingUpdateError userInfo:@{NSLocalizedDescriptionKey: @"Couldn't find an appropriate update in the downloaded package."}] delegate:delegate]; - } - else - { - [(isPackage ? [SUPackageInstaller class] : [SUPlainInstaller class]) performInstallationToPath:installationPath fromPath:newAppDownloadPath host:host delegate:delegate synchronously:synchronously versionComparator:comparator]; - } + if (newAppDownloadPath == nil) + { + [self finishInstallationToPath:installationPath withResult:NO host:host error:[NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingUpdateError userInfo:@{ NSLocalizedDescriptionKey: @"Couldn't find an appropriate update in the downloaded package." }] delegate:delegate]; + } + else + { + [(isPackage ? [SUPackageInstaller class] : [SUPlainInstaller class])performInstallationToPath:installationPath fromPath:newAppDownloadPath host:host delegate:delegate versionComparator:comparator]; + } } + (void)mdimportInstallationPath:(NSString *)installationPath diff --git a/SULog.h b/Sparkle/SULog.h similarity index 100% rename from SULog.h rename to Sparkle/SULog.h diff --git a/SULog.m b/Sparkle/SULog.m similarity index 100% rename from SULog.m rename to Sparkle/SULog.m diff --git a/SUPackageInstaller.h b/Sparkle/SUPackageInstaller.h similarity index 100% rename from SUPackageInstaller.h rename to Sparkle/SUPackageInstaller.h diff --git a/Sparkle/SUPackageInstaller.m b/Sparkle/SUPackageInstaller.m new file mode 100644 index 00000000..23ad954f --- /dev/null +++ b/Sparkle/SUPackageInstaller.m @@ -0,0 +1,41 @@ +// +// SUPackageInstaller.m +// Sparkle +// +// Created by Andy Matuschak on 4/10/08. +// Copyright 2008 Andy Matuschak. All rights reserved. +// + +#import "SUPackageInstaller.h" +#import +#import "SUConstants.h" + +@implementation SUPackageInstaller + ++ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host delegate:(id)delegate versionComparator:(id)__unused comparator +{ + // Run installer using the "open" command to ensure it is launched in front of current application. + // -W = wait until the app has quit. + // -n = Open another instance if already open. + // -b = app bundle identifier + NSString *command = @"/usr/bin/open"; + NSArray *args = @[@"-W", @"-n", @"-b", @"com.apple.installer", path]; + + if (![[NSFileManager defaultManager] fileExistsAtPath:command]) { + NSError *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingInstallerToolError userInfo:@{ NSLocalizedDescriptionKey: @"Couldn't find Apple's installer tool!" }]; + [self finishInstallationToPath:installationPath withResult:NO host:host error:error delegate:delegate]; + return; + } + + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ + NSTask *installer = [NSTask launchedTaskWithLaunchPath:command arguments:args]; + [installer waitUntilExit]; + + // Known bug: if the installation fails or is canceled, Sparkle goes ahead and restarts, thinking everything is fine. + dispatch_async(dispatch_get_main_queue(), ^{ + [self finishInstallationToPath:installationPath withResult:YES host:host error:nil delegate:delegate]; + }); + }); +} + +@end diff --git a/SUPipedUnarchiver.h b/Sparkle/SUPipedUnarchiver.h similarity index 100% rename from SUPipedUnarchiver.h rename to Sparkle/SUPipedUnarchiver.h diff --git a/SUPipedUnarchiver.m b/Sparkle/SUPipedUnarchiver.m similarity index 100% rename from SUPipedUnarchiver.m rename to Sparkle/SUPipedUnarchiver.m diff --git a/SUPlainInstaller.h b/Sparkle/SUPlainInstaller.h similarity index 83% rename from SUPlainInstaller.h rename to Sparkle/SUPlainInstaller.h index 414bbc5e..bb7827a6 100644 --- a/SUPlainInstaller.h +++ b/Sparkle/SUPlainInstaller.h @@ -20,7 +20,9 @@ @class SUHost; @interface SUPlainInstaller : SUInstaller -+ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host delegate:(id)delegate synchronously:(BOOL)synchronously versionComparator:(id )comparator; + ++ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host delegate:(id)delegate versionComparator:(id)comparator; + @end #endif diff --git a/Sparkle/SUPlainInstaller.m b/Sparkle/SUPlainInstaller.m new file mode 100644 index 00000000..e38cb81f --- /dev/null +++ b/Sparkle/SUPlainInstaller.m @@ -0,0 +1,50 @@ +// +// SUPlainInstaller.m +// Sparkle +// +// Created by Andy Matuschak on 4/10/08. +// Copyright 2008 Andy Matuschak. All rights reserved. +// + +#import "SUPlainInstaller.h" +#import "SUPlainInstallerInternals.h" +#import "SUConstants.h" +#import "SUHost.h" + +@implementation SUPlainInstaller + ++ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host delegate:(id)delegate versionComparator:(id)comparator +{ + // Prevent malicious downgrades: + #if !PERMIT_AUTOMATED_DOWNGRADES + if ([comparator compareVersion:[host version] toVersion:[[NSBundle bundleWithPath:path] objectForInfoDictionaryKey:@"CFBundleVersion"]] == NSOrderedDescending) + { + 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:@{NSLocalizedDescriptionKey: errorMessage}]; + [self finishInstallationToPath:installationPath withResult:NO host:host error:error delegate:delegate]; + return; + } + #endif + + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ + NSError *error = nil; + NSString *oldPath = [host bundlePath]; + NSString *tempName = [self temporaryNameForPath:[host installationPath]]; + + BOOL result = [self copyPathWithAuthentication:path overPath:installationPath temporaryName:tempName error:&error]; + + if (result) { + BOOL haveOld = [[NSFileManager defaultManager] fileExistsAtPath:oldPath]; + BOOL differentFromNew = ![oldPath isEqualToString:installationPath]; + if (haveOld && differentFromNew) { + [self _movePathToTrash:oldPath]; // On success, trash old copy if there's still one due to renaming. + } + } + + dispatch_async(dispatch_get_main_queue(), ^{ + [self finishInstallationToPath:installationPath withResult:result host:host error:error delegate:delegate]; + }); + }); +} + +@end diff --git a/SUPlainInstallerInternals.h b/Sparkle/SUPlainInstallerInternals.h similarity index 100% rename from SUPlainInstallerInternals.h rename to Sparkle/SUPlainInstallerInternals.h diff --git a/SUPlainInstallerInternals.m b/Sparkle/SUPlainInstallerInternals.m similarity index 100% rename from SUPlainInstallerInternals.m rename to Sparkle/SUPlainInstallerInternals.m diff --git a/SUProbingUpdateDriver.h b/Sparkle/SUProbingUpdateDriver.h similarity index 100% rename from SUProbingUpdateDriver.h rename to Sparkle/SUProbingUpdateDriver.h diff --git a/SUProbingUpdateDriver.m b/Sparkle/SUProbingUpdateDriver.m similarity index 100% rename from SUProbingUpdateDriver.m rename to Sparkle/SUProbingUpdateDriver.m diff --git a/SUScheduledUpdateDriver.h b/Sparkle/SUScheduledUpdateDriver.h similarity index 100% rename from SUScheduledUpdateDriver.h rename to Sparkle/SUScheduledUpdateDriver.h diff --git a/SUScheduledUpdateDriver.m b/Sparkle/SUScheduledUpdateDriver.m similarity index 100% rename from SUScheduledUpdateDriver.m rename to Sparkle/SUScheduledUpdateDriver.m diff --git a/SUStandardVersionComparator.h b/Sparkle/SUStandardVersionComparator.h similarity index 54% rename from SUStandardVersionComparator.h rename to Sparkle/SUStandardVersionComparator.h index 1152463c..f40d5715 100644 --- a/SUStandardVersionComparator.h +++ b/Sparkle/SUStandardVersionComparator.h @@ -13,22 +13,23 @@ #import "SUVersionComparisonProtocol.h" /*! - @class - @abstract Sparkle's default version comparator. - @discussion This comparator is adapted from MacPAD, by Kevin Ballard. It's "dumb" in that it does essentially string comparison, in components split by character type. + Sparkle's default version comparator. + + This comparator is adapted from MacPAD, by Kevin Ballard. + It's "dumb" in that it does essentially string comparison, + in components split by character type. */ @interface SUStandardVersionComparator : NSObject /*! - @method - @abstract Returns a singleton instance of the comparator. + Returns a singleton instance of the comparator. */ + (SUStandardVersionComparator *)defaultComparator; /*! - @method - @abstract Compares version strings through textual analysis. - @discussion See the implementation for more details. + Compares version strings through textual analysis. + + See the implementation for more details. */ - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; @end diff --git a/SUStandardVersionComparator.m b/Sparkle/SUStandardVersionComparator.m similarity index 100% rename from SUStandardVersionComparator.m rename to Sparkle/SUStandardVersionComparator.m diff --git a/SUStatus.xib b/Sparkle/SUStatus.xib similarity index 100% rename from SUStatus.xib rename to Sparkle/SUStatus.xib diff --git a/SUStatusController.h b/Sparkle/SUStatusController.h similarity index 100% rename from SUStatusController.h rename to Sparkle/SUStatusController.h diff --git a/SUStatusController.m b/Sparkle/SUStatusController.m similarity index 100% rename from SUStatusController.m rename to Sparkle/SUStatusController.m diff --git a/SUSystemProfiler.h b/Sparkle/SUSystemProfiler.h similarity index 100% rename from SUSystemProfiler.h rename to Sparkle/SUSystemProfiler.h diff --git a/SUSystemProfiler.m b/Sparkle/SUSystemProfiler.m similarity index 100% rename from SUSystemProfiler.m rename to Sparkle/SUSystemProfiler.m diff --git a/SUUIBasedUpdateDriver.h b/Sparkle/SUUIBasedUpdateDriver.h similarity index 100% rename from SUUIBasedUpdateDriver.h rename to Sparkle/SUUIBasedUpdateDriver.h diff --git a/SUUIBasedUpdateDriver.m b/Sparkle/SUUIBasedUpdateDriver.m similarity index 100% rename from SUUIBasedUpdateDriver.m rename to Sparkle/SUUIBasedUpdateDriver.m diff --git a/SUUnarchiver.h b/Sparkle/SUUnarchiver.h similarity index 100% rename from SUUnarchiver.h rename to Sparkle/SUUnarchiver.h diff --git a/SUUnarchiver.m b/Sparkle/SUUnarchiver.m similarity index 100% rename from SUUnarchiver.m rename to Sparkle/SUUnarchiver.m diff --git a/SUUnarchiver_Private.h b/Sparkle/SUUnarchiver_Private.h similarity index 100% rename from SUUnarchiver_Private.h rename to Sparkle/SUUnarchiver_Private.h diff --git a/SUUnarchiver_Private.m b/Sparkle/SUUnarchiver_Private.m similarity index 100% rename from SUUnarchiver_Private.m rename to Sparkle/SUUnarchiver_Private.m diff --git a/SUUpdateAlert.h b/Sparkle/SUUpdateAlert.h similarity index 100% rename from SUUpdateAlert.h rename to Sparkle/SUUpdateAlert.h diff --git a/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m similarity index 100% rename from SUUpdateAlert.m rename to Sparkle/SUUpdateAlert.m diff --git a/SUUpdateDriver.h b/Sparkle/SUUpdateDriver.h similarity index 100% rename from SUUpdateDriver.h rename to Sparkle/SUUpdateDriver.h diff --git a/SUUpdateDriver.m b/Sparkle/SUUpdateDriver.m similarity index 100% rename from SUUpdateDriver.m rename to Sparkle/SUUpdateDriver.m diff --git a/SUUpdatePermissionPrompt.h b/Sparkle/SUUpdatePermissionPrompt.h similarity index 100% rename from SUUpdatePermissionPrompt.h rename to Sparkle/SUUpdatePermissionPrompt.h diff --git a/SUUpdatePermissionPrompt.m b/Sparkle/SUUpdatePermissionPrompt.m similarity index 100% rename from SUUpdatePermissionPrompt.m rename to Sparkle/SUUpdatePermissionPrompt.m diff --git a/Sparkle/SUUpdater.h b/Sparkle/SUUpdater.h new file mode 100644 index 00000000..235e4b84 --- /dev/null +++ b/Sparkle/SUUpdater.h @@ -0,0 +1,339 @@ +// +// SUUpdater.h +// Sparkle +// +// Created by Andy Matuschak on 1/4/06. +// Copyright 2006 Andy Matuschak. All rights reserved. +// + +#ifndef SUUPDATER_H +#define SUUPDATER_H + +#import "SUVersionComparisonProtocol.h" +#import "SUVersionDisplayProtocol.h" + +@class SUUpdateDriver, SUAppcastItem, SUHost, SUAppcast; + +@protocol SUUpdaterDelegate; + +/*! + The main API in Sparkle for controlling the update mechanism. + + This class is used to configure the update paramters as well as manually + and automatically schedule and control checks for updates. + */ +@interface SUUpdater : NSObject +{ +@private + SUUpdateDriver *driver; + + SUHost *host; +} +@property (assign) IBOutlet id delegate; + ++ (SUUpdater *)sharedUpdater; ++ (SUUpdater *)updaterForBundle:(NSBundle *)bundle; +- (instancetype)initForBundle:(NSBundle *)bundle; + +@property (readonly, strong) NSBundle *hostBundle; + +@property BOOL automaticallyChecksForUpdates; + +@property NSTimeInterval updateCheckInterval; + +/*! + * The URL of the appcast used to download update information. + * + * This property must be called on the main thread. + */ +@property (copy) NSURL *feedURL; + +@property (nonatomic, copy) NSString *userAgentString; + +@property BOOL sendsSystemProfile; + +@property BOOL automaticallyDownloadsUpdates; + +/*! + Explicitly checks for updates and displays a progress dialog while doing so. + + This method is meant for a main menu item. + Connect any menu item to this action in Interface Builder, + and Sparkle will check for updates and report back its findings verbosely + when it is invoked. + */ +- (IBAction)checkForUpdates:(id)sender; + +/*! + Checks for updates, but does not display any UI unless an update is found. + + This is meant for programmatically initating a check for updates. That is, + it will display no UI unless it actually finds an update, in which case it + proceeds as usual. + + If the fully automated updating is turned on, however, this will invoke that + behavior, and if an update is found, it will be downloaded and prepped for + installation. + */ +- (void)checkForUpdatesInBackground; + +/*! + Returns the date of last update check. + + \returns \c nil if no check has been performed. + */ +@property (readonly, copy) NSDate *lastUpdateCheckDate; + +/*! + Begins a "probing" check for updates which will not actually offer to + update to that version. + + However, the delegate methods + SUUpdaterDelegate::updater:didFindValidUpdate: and + SUUpdaterDelegate::updaterDidNotFindUpdate: will be called, + so you can use that information in your UI. + */ +- (void)checkForUpdateInformation; + +/*! + Appropriately schedules or cancels the update checking timer according to + the preferences for time interval and automatic checks. + + This call does not change the date of the next check, + but only the internal NSTimer. + */ +- (void)resetUpdateCycle; + +@property (readonly) BOOL updateInProgress; + +@end + +// ----------------------------------------------------------------------------- +// SUUpdater Notifications for events that might be interesting to more than just the delegate +// The updater will be the notification object +// ----------------------------------------------------------------------------- +extern NSString *const SUUpdaterDidFinishLoadingAppCastNotification; +extern NSString *const SUUpdaterDidFindValidUpdateNotification; +extern NSString *const SUUpdaterDidNotFindUpdateNotification; +extern NSString *const SUUpdaterWillRestartNotification; +#define SUUpdaterWillRelaunchApplicationNotification SUUpdaterWillRestartNotification; +#define SUUpdaterWillInstallUpdateNotification SUUpdaterWillRestartNotification; + +// Key for the SUAppcastItem object in the SUUpdaterDidFindValidUpdateNotification userInfo +extern NSString *const SUUpdaterAppcastItemNotificationKey; +// Key for the SUAppcast object in the SUUpdaterDidFinishLoadingAppCastNotification userInfo +extern NSString *const SUUpdaterAppcastNotificationKey; + +// ----------------------------------------------------------------------------- +// SUUpdater Delegate: +// ----------------------------------------------------------------------------- + +/*! + Provides methods to control the behavior of an SUUpdater object. + */ +@protocol SUUpdaterDelegate +@optional + +/*! + Returns whether to allow Sparkle to pop up. + + For example, this may be used to prevent Sparkle from interrupting a setup assistant. + + \param updater The SUUpdater instance. + */ +- (BOOL)updaterMayCheckForUpdates:(SUUpdater *)updater; + +/*! + Returns additional parameters to append to the appcast URL's query string. + + This is potentially based on whether or not Sparkle will also be sending along the system profile. + + \param updater The SUUpdater instance. + \param sendingProfile Whether the system profile will also be sent. + + \return An array of dictionaries with keys: "key", "value", "displayKey", "displayValue", the latter two being specifically for display to the user. + */ +- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; + +/*! + Returns a custom appcast URL. + + Override this to dynamically specify the entire URL. + + \param updater The SUUpdater instance. + */ +- (NSString*)feedURLStringForUpdater:(SUUpdater*)updater; + +/*! + Returns whether Sparkle should prompt the user about automatic update checks. + + Use this to override the default behavior. + + \param updater The SUUpdater instance. + */ +- (BOOL)updaterShouldPromptForPermissionToCheckForUpdates:(SUUpdater *)updater; + +/*! + Called after Sparkle has downloaded the appcast from the remote server. + + Implement this if you want to do some special handling with the appcast once it finishes loading. + + \param updater The SUUpdater instance. + \param appcast The appcast that was downloaded from the remote server. + */ +- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast; + +/*! + Returns the item in the appcast corresponding to the update that should be installed. + + If you're using special logic or extensions in your appcast, + implement this to use your own logic for finding a valid update, if any, + in the given appcast. + + \param appcast The appcast that was downloaded from the remote server. + \param updater The SUUpdater instance. + */ +- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)updater; + +/*! + Called when a valid update is found by the update driver. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that is proposed to be installed. + */ +- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)item; + +/*! + Called when a valid update is not found. + + \param updater The SUUpdater instance. + */ +- (void)updaterDidNotFindUpdate:(SUUpdater *)updater; + +/*! + Called immediately before installing the specified update. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that is proposed to be installed. + */ +- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)item; + +/*! + Returns whether the relaunch should be delayed in order to perform other tasks. + + This is not called if the user didn't relaunch on the previous update, + in that case it will immediately restart. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that is proposed to be installed. + \param invocation The invocation that must be completed before continuing with the relaunch. + + \return \c YES to delay the relaunch until \p invocation is invoked. + */ +- (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)item untilInvoking:(NSInvocation *)invocation; + +/*! + Returns whether the application should be relaunched at all. + + Some apps \b cannot be relaunched under certain circumstances. + This method can be used to explicitly prevent a relaunch. + + \param updater The SUUpdater instance. + */ +- (BOOL)updaterShouldRelaunchApplication:(SUUpdater *)updater; + +/*! + Called immediately before relaunching. + + \param updater The SUUpdater instance. + */ +- (void)updaterWillRelaunchApplication:(SUUpdater *)updater; + +/*! + Returns an object that compares version numbers to determine their arithmetic relation to each other. + + This method allows you to provide a custom version comparator. + If you don't implement this method or return \c nil, + the standard version comparator will be used. + + \sa SUStandardVersionComparator + + \param updater The SUUpdater instance. + */ +- (id )versionComparatorForUpdater:(SUUpdater *)updater; + +/*! + Returns an object that formats version numbers for display to the user. + + If you don't implement this method or return \c nil, + the standard version formatter will be used. + + \sa SUUpdateAlert + + \param updater The SUUpdater instance. + */ +- (id )versionDisplayerForUpdater:(SUUpdater *)updater; + +/*! + Returns the path which is used to relaunch the client after the update is installed. + + The default is the path of the host bundle. + + \param updater The SUUpdater instance. + */ +- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; + +/*! + Called before an updater shows a modal alert window, + to give the host the opportunity to hide attached windows that may get in the way. + + \param updater The SUUpdater instance. + */ +-(void) updaterWillShowModalAlert:(SUUpdater *)updater; + +/*! + Called after an updater shows a modal alert window, + to give the host the opportunity to hide attached windows that may get in the way. + + \param updater The SUUpdater instance. + */ +-(void) updaterDidShowModalAlert:(SUUpdater *)updater; + +/*! + Called when an update is scheduled to be silently installed on quit. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that is proposed to be installed. + \param invocation Can be used to trigger an immediate silent install and relaunch. + */ +- (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)item immediateInstallationInvocation:(NSInvocation *)invocation; + +/*! + Calls after an update that was scheduled to be silently installed on quit has been canceled. + + \param updater The SUUpdater instance. + \param item The appcast item corresponding to the update that was proposed to be installed. + */ +- (void)updater:(SUUpdater *)updater didCancelInstallUpdateOnQuit:(SUAppcastItem *)item; + +@end + + +// ----------------------------------------------------------------------------- +// Constants: +// ----------------------------------------------------------------------------- + +// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds. +#if defined(DEBUG) && DEBUG && 0 +#define SU_MIN_CHECK_INTERVAL 60 +#else +#define SU_MIN_CHECK_INTERVAL 60*60 +#endif + +#if defined(DEBUG) && DEBUG && 0 +#define SU_DEFAULT_CHECK_INTERVAL 60 +#else +#define SU_DEFAULT_CHECK_INTERVAL 60*60*24 +#endif + +#endif diff --git a/SUUpdater.m b/Sparkle/SUUpdater.m similarity index 99% rename from SUUpdater.m rename to Sparkle/SUUpdater.m index 16dd23e5..b3f5a9d9 100644 --- a/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -300,7 +300,7 @@ static NSString * const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefault // hour or so: SUUpdateDriver * theUpdateDriver = [[[([self automaticallyDownloadsUpdates] ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class]) alloc] initWithUpdater:self] autorelease]; - dispatch_async(dispatch_get_global_queue(0, 0), ^{ + dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self checkForUpdatesInBgReachabilityCheckWithDriver:theUpdateDriver]; }); } diff --git a/SUUpdater_Private.h b/Sparkle/SUUpdater_Private.h similarity index 100% rename from SUUpdater_Private.h rename to Sparkle/SUUpdater_Private.h diff --git a/SUUserInitiatedUpdateDriver.h b/Sparkle/SUUserInitiatedUpdateDriver.h similarity index 100% rename from SUUserInitiatedUpdateDriver.h rename to Sparkle/SUUserInitiatedUpdateDriver.h diff --git a/SUUserInitiatedUpdateDriver.m b/Sparkle/SUUserInitiatedUpdateDriver.m similarity index 100% rename from SUUserInitiatedUpdateDriver.m rename to Sparkle/SUUserInitiatedUpdateDriver.m diff --git a/SUVersionComparisonProtocol.h b/Sparkle/SUVersionComparisonProtocol.h similarity index 58% rename from SUVersionComparisonProtocol.h rename to Sparkle/SUVersionComparisonProtocol.h index 93ac5e5a..0649b03c 100644 --- a/SUVersionComparisonProtocol.h +++ b/Sparkle/SUVersionComparisonProtocol.h @@ -12,15 +12,15 @@ #import /*! - @protocol - @abstract Implement this protocol to provide version comparison facilities for Sparkle. + Provides version comparison facilities for Sparkle. */ @protocol SUVersionComparison /*! - @method - @abstract An abstract method to compare two version strings. - @discussion Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, and NSOrderedSame if they are equivalent. + An abstract method to compare two version strings. + + Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, + and NSOrderedSame if they are equivalent. */ - (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD! diff --git a/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/SUVersionDisplayProtocol.h new file mode 100644 index 00000000..7ef17121 --- /dev/null +++ b/Sparkle/SUVersionDisplayProtocol.h @@ -0,0 +1,25 @@ +// +// SUVersionDisplayProtocol.h +// EyeTV +// +// Created by Uli Kusterer on 08.12.09. +// Copyright 2009 Elgato Systems GmbH. All rights reserved. +// + +#import + + +/*! + Applies special display formatting to version numbers. +*/ +@protocol SUVersionDisplay + +/*! + Formats two version strings. + + Both versions are provided so that important distinguishing information + can be displayed while also leaving out unnecessary/confusing parts. +*/ +-(void) formatVersion: (NSString**)inOutVersionA andVersion: (NSString**)inOutVersionB; + +@end diff --git a/SUWindowController.h b/Sparkle/SUWindowController.h similarity index 100% rename from SUWindowController.h rename to Sparkle/SUWindowController.h diff --git a/SUWindowController.m b/Sparkle/SUWindowController.m similarity index 100% rename from SUWindowController.m rename to Sparkle/SUWindowController.m diff --git a/Info.plist b/Sparkle/Sparkle-Info.plist similarity index 100% rename from Info.plist rename to Sparkle/Sparkle-Info.plist diff --git a/Sparkle.h b/Sparkle/Sparkle.h similarity index 100% rename from Sparkle.h rename to Sparkle/Sparkle.h diff --git a/Sparkle.pch b/Sparkle/Sparkle.pch similarity index 100% rename from Sparkle.pch rename to Sparkle/Sparkle.pch diff --git a/ar.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/ar.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from ar.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/ar.lproj/SUAutomaticUpdateAlert.xib diff --git a/ar.lproj/SUUpdateAlert.xib b/Sparkle/ar.lproj/SUUpdateAlert.xib similarity index 100% rename from ar.lproj/SUUpdateAlert.xib rename to Sparkle/ar.lproj/SUUpdateAlert.xib diff --git a/ar.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from ar.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib diff --git a/ar.lproj/Sparkle.strings b/Sparkle/ar.lproj/Sparkle.strings similarity index 100% rename from ar.lproj/Sparkle.strings rename to Sparkle/ar.lproj/Sparkle.strings diff --git a/ca.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/ca.lproj/SUAutomaticUpdateAlert.strings similarity index 100% rename from ca.lproj/SUAutomaticUpdateAlert.strings rename to Sparkle/ca.lproj/SUAutomaticUpdateAlert.strings diff --git a/ca.lproj/SUUpdateAlert.strings b/Sparkle/ca.lproj/SUUpdateAlert.strings similarity index 100% rename from ca.lproj/SUUpdateAlert.strings rename to Sparkle/ca.lproj/SUUpdateAlert.strings diff --git a/ca.lproj/Sparkle.strings b/Sparkle/ca.lproj/Sparkle.strings similarity index 100% rename from ca.lproj/Sparkle.strings rename to Sparkle/ca.lproj/Sparkle.strings diff --git a/cs.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from cs.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib diff --git a/cs.lproj/SUUpdateAlert.xib b/Sparkle/cs.lproj/SUUpdateAlert.xib similarity index 100% rename from cs.lproj/SUUpdateAlert.xib rename to Sparkle/cs.lproj/SUUpdateAlert.xib diff --git a/cs.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from cs.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib diff --git a/cs.lproj/Sparkle.strings b/Sparkle/cs.lproj/Sparkle.strings similarity index 100% rename from cs.lproj/Sparkle.strings rename to Sparkle/cs.lproj/Sparkle.strings diff --git a/cy.lproj/Sparkle.strings b/Sparkle/cy.lproj/Sparkle.strings similarity index 100% rename from cy.lproj/Sparkle.strings rename to Sparkle/cy.lproj/Sparkle.strings diff --git a/da.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/da.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from da.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/da.lproj/SUAutomaticUpdateAlert.xib diff --git a/da.lproj/SUUpdateAlert.xib b/Sparkle/da.lproj/SUUpdateAlert.xib similarity index 100% rename from da.lproj/SUUpdateAlert.xib rename to Sparkle/da.lproj/SUUpdateAlert.xib diff --git a/da.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/da.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from da.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/da.lproj/SUUpdatePermissionPrompt.xib diff --git a/da.lproj/Sparkle.strings b/Sparkle/da.lproj/Sparkle.strings similarity index 100% rename from da.lproj/Sparkle.strings rename to Sparkle/da.lproj/Sparkle.strings diff --git a/de.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/de.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from de.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/de.lproj/SUAutomaticUpdateAlert.xib diff --git a/de.lproj/SUUpdateAlert.xib b/Sparkle/de.lproj/SUUpdateAlert.xib similarity index 100% rename from de.lproj/SUUpdateAlert.xib rename to Sparkle/de.lproj/SUUpdateAlert.xib diff --git a/de.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/de.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from de.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/de.lproj/SUUpdatePermissionPrompt.xib diff --git a/de.lproj/Sparkle.strings b/Sparkle/de.lproj/Sparkle.strings similarity index 100% rename from de.lproj/Sparkle.strings rename to Sparkle/de.lproj/Sparkle.strings diff --git a/el.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/el.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from el.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/el.lproj/SUAutomaticUpdateAlert.xib diff --git a/el.lproj/SUUpdateAlert.xib b/Sparkle/el.lproj/SUUpdateAlert.xib similarity index 100% rename from el.lproj/SUUpdateAlert.xib rename to Sparkle/el.lproj/SUUpdateAlert.xib diff --git a/el.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/el.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from el.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/el.lproj/SUUpdatePermissionPrompt.xib diff --git a/el.lproj/Sparkle.strings b/Sparkle/el.lproj/Sparkle.strings similarity index 100% rename from el.lproj/Sparkle.strings rename to Sparkle/el.lproj/Sparkle.strings diff --git a/en.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/en.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from en.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/en.lproj/SUAutomaticUpdateAlert.xib diff --git a/en.lproj/SUUpdateAlert.xib b/Sparkle/en.lproj/SUUpdateAlert.xib similarity index 100% rename from en.lproj/SUUpdateAlert.xib rename to Sparkle/en.lproj/SUUpdateAlert.xib diff --git a/en.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/en.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from en.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/en.lproj/SUUpdatePermissionPrompt.xib diff --git a/en.lproj/Sparkle.strings b/Sparkle/en.lproj/Sparkle.strings similarity index 100% rename from en.lproj/Sparkle.strings rename to Sparkle/en.lproj/Sparkle.strings diff --git a/es.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/es.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from es.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/es.lproj/SUAutomaticUpdateAlert.xib diff --git a/es.lproj/SUUpdateAlert.xib b/Sparkle/es.lproj/SUUpdateAlert.xib similarity index 100% rename from es.lproj/SUUpdateAlert.xib rename to Sparkle/es.lproj/SUUpdateAlert.xib diff --git a/es.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from es.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/es.lproj/SUUpdatePermissionPrompt.xib diff --git a/es.lproj/Sparkle.strings b/Sparkle/es.lproj/Sparkle.strings similarity index 100% rename from es.lproj/Sparkle.strings rename to Sparkle/es.lproj/Sparkle.strings diff --git a/fi.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/fi.lproj/SUAutomaticUpdateAlert.strings similarity index 100% rename from fi.lproj/SUAutomaticUpdateAlert.strings rename to Sparkle/fi.lproj/SUAutomaticUpdateAlert.strings diff --git a/fi.lproj/SUUpdateAlert.strings b/Sparkle/fi.lproj/SUUpdateAlert.strings similarity index 100% rename from fi.lproj/SUUpdateAlert.strings rename to Sparkle/fi.lproj/SUUpdateAlert.strings diff --git a/fi.lproj/Sparkle.strings b/Sparkle/fi.lproj/Sparkle.strings similarity index 100% rename from fi.lproj/Sparkle.strings rename to Sparkle/fi.lproj/Sparkle.strings diff --git a/fr.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/fr.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from fr.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/fr.lproj/SUAutomaticUpdateAlert.xib diff --git a/fr.lproj/SUUpdateAlert.xib b/Sparkle/fr.lproj/SUUpdateAlert.xib similarity index 100% rename from fr.lproj/SUUpdateAlert.xib rename to Sparkle/fr.lproj/SUUpdateAlert.xib diff --git a/fr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from fr.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib diff --git a/fr.lproj/Sparkle.strings b/Sparkle/fr.lproj/Sparkle.strings similarity index 97% rename from fr.lproj/Sparkle.strings rename to Sparkle/fr.lproj/Sparkle.strings index bbcbdf05..7ab704c3 100644 --- a/fr.lproj/Sparkle.strings +++ b/Sparkle/fr.lproj/Sparkle.strings @@ -73,3 +73,5 @@ without a download but with a URL. */ "Learn More..." = "En savoir plus…"; + +"The update is improperly signed." = "La signature numérique de la mise à jour est incorrecte"; diff --git a/he.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/he.lproj/SUAutomaticUpdateAlert.strings similarity index 100% rename from he.lproj/SUAutomaticUpdateAlert.strings rename to Sparkle/he.lproj/SUAutomaticUpdateAlert.strings diff --git a/he.lproj/SUUpdateAlert.strings b/Sparkle/he.lproj/SUUpdateAlert.strings similarity index 100% rename from he.lproj/SUUpdateAlert.strings rename to Sparkle/he.lproj/SUUpdateAlert.strings diff --git a/he.lproj/Sparkle.strings b/Sparkle/he.lproj/Sparkle.strings similarity index 100% rename from he.lproj/Sparkle.strings rename to Sparkle/he.lproj/Sparkle.strings diff --git a/hu.lproj/Sparkle.strings b/Sparkle/hu.lproj/Sparkle.strings similarity index 100% rename from hu.lproj/Sparkle.strings rename to Sparkle/hu.lproj/Sparkle.strings diff --git a/id.lproj/Sparkle.strings b/Sparkle/id.lproj/Sparkle.strings similarity index 100% rename from id.lproj/Sparkle.strings rename to Sparkle/id.lproj/Sparkle.strings diff --git a/is.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/is.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from is.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/is.lproj/SUAutomaticUpdateAlert.xib diff --git a/is.lproj/SUUpdateAlert.xib b/Sparkle/is.lproj/SUUpdateAlert.xib similarity index 100% rename from is.lproj/SUUpdateAlert.xib rename to Sparkle/is.lproj/SUUpdateAlert.xib diff --git a/is.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/is.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from is.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/is.lproj/SUUpdatePermissionPrompt.xib diff --git a/is.lproj/Sparkle.strings b/Sparkle/is.lproj/Sparkle.strings similarity index 100% rename from is.lproj/Sparkle.strings rename to Sparkle/is.lproj/Sparkle.strings diff --git a/it.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/it.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from it.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/it.lproj/SUAutomaticUpdateAlert.xib diff --git a/it.lproj/SUUpdateAlert.xib b/Sparkle/it.lproj/SUUpdateAlert.xib similarity index 100% rename from it.lproj/SUUpdateAlert.xib rename to Sparkle/it.lproj/SUUpdateAlert.xib diff --git a/it.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/it.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from it.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/it.lproj/SUUpdatePermissionPrompt.xib diff --git a/it.lproj/Sparkle.strings b/Sparkle/it.lproj/Sparkle.strings similarity index 100% rename from it.lproj/Sparkle.strings rename to Sparkle/it.lproj/Sparkle.strings diff --git a/ja.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/ja.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from ja.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/ja.lproj/SUAutomaticUpdateAlert.xib diff --git a/ja.lproj/SUUpdateAlert.xib b/Sparkle/ja.lproj/SUUpdateAlert.xib similarity index 100% rename from ja.lproj/SUUpdateAlert.xib rename to Sparkle/ja.lproj/SUUpdateAlert.xib diff --git a/ja.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from ja.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib diff --git a/ja.lproj/Sparkle.strings b/Sparkle/ja.lproj/Sparkle.strings similarity index 100% rename from ja.lproj/Sparkle.strings rename to Sparkle/ja.lproj/Sparkle.strings diff --git a/ko.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/ko.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from ko.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/ko.lproj/SUAutomaticUpdateAlert.xib diff --git a/ko.lproj/SUUpdateAlert.xib b/Sparkle/ko.lproj/SUUpdateAlert.xib similarity index 100% rename from ko.lproj/SUUpdateAlert.xib rename to Sparkle/ko.lproj/SUUpdateAlert.xib diff --git a/ko.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from ko.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib diff --git a/ko.lproj/Sparkle.strings b/Sparkle/ko.lproj/Sparkle.strings similarity index 100% rename from ko.lproj/Sparkle.strings rename to Sparkle/ko.lproj/Sparkle.strings diff --git a/nb.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/nb.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from nb.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/nb.lproj/SUAutomaticUpdateAlert.xib diff --git a/nb.lproj/SUUpdateAlert.xib b/Sparkle/nb.lproj/SUUpdateAlert.xib similarity index 100% rename from nb.lproj/SUUpdateAlert.xib rename to Sparkle/nb.lproj/SUUpdateAlert.xib diff --git a/nb.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from nb.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib diff --git a/nb.lproj/Sparkle.strings b/Sparkle/nb.lproj/Sparkle.strings similarity index 100% rename from nb.lproj/Sparkle.strings rename to Sparkle/nb.lproj/Sparkle.strings diff --git a/nl.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/nl.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from nl.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/nl.lproj/SUAutomaticUpdateAlert.xib diff --git a/nl.lproj/SUUpdateAlert.xib b/Sparkle/nl.lproj/SUUpdateAlert.xib similarity index 100% rename from nl.lproj/SUUpdateAlert.xib rename to Sparkle/nl.lproj/SUUpdateAlert.xib diff --git a/nl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from nl.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib diff --git a/nl.lproj/Sparkle.strings b/Sparkle/nl.lproj/Sparkle.strings similarity index 100% rename from nl.lproj/Sparkle.strings rename to Sparkle/nl.lproj/Sparkle.strings diff --git a/no.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/no.lproj/SUAutomaticUpdateAlert.strings similarity index 100% rename from no.lproj/SUAutomaticUpdateAlert.strings rename to Sparkle/no.lproj/SUAutomaticUpdateAlert.strings diff --git a/no.lproj/SUUpdateAlert.strings b/Sparkle/no.lproj/SUUpdateAlert.strings similarity index 100% rename from no.lproj/SUUpdateAlert.strings rename to Sparkle/no.lproj/SUUpdateAlert.strings diff --git a/no.lproj/Sparkle.strings b/Sparkle/no.lproj/Sparkle.strings similarity index 100% rename from no.lproj/Sparkle.strings rename to Sparkle/no.lproj/Sparkle.strings diff --git a/pl.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/pl.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from pl.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/pl.lproj/SUAutomaticUpdateAlert.xib diff --git a/pl.lproj/SUUpdateAlert.xib b/Sparkle/pl.lproj/SUUpdateAlert.xib similarity index 100% rename from pl.lproj/SUUpdateAlert.xib rename to Sparkle/pl.lproj/SUUpdateAlert.xib diff --git a/pl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from pl.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib diff --git a/pl.lproj/Sparkle.strings b/Sparkle/pl.lproj/Sparkle.strings similarity index 100% rename from pl.lproj/Sparkle.strings rename to Sparkle/pl.lproj/Sparkle.strings diff --git a/pt_BR.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/pt_BR.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from pt_BR.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/pt_BR.lproj/SUAutomaticUpdateAlert.xib diff --git a/pt_BR.lproj/SUUpdateAlert.xib b/Sparkle/pt_BR.lproj/SUUpdateAlert.xib similarity index 100% rename from pt_BR.lproj/SUUpdateAlert.xib rename to Sparkle/pt_BR.lproj/SUUpdateAlert.xib diff --git a/pt_BR.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from pt_BR.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib diff --git a/pt_BR.lproj/Sparkle.strings b/Sparkle/pt_BR.lproj/Sparkle.strings similarity index 100% rename from pt_BR.lproj/Sparkle.strings rename to Sparkle/pt_BR.lproj/Sparkle.strings diff --git a/pt_PT.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/pt_PT.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from pt_PT.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/pt_PT.lproj/SUAutomaticUpdateAlert.xib diff --git a/pt_PT.lproj/SUUpdateAlert.xib b/Sparkle/pt_PT.lproj/SUUpdateAlert.xib similarity index 100% rename from pt_PT.lproj/SUUpdateAlert.xib rename to Sparkle/pt_PT.lproj/SUUpdateAlert.xib diff --git a/pt_PT.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from pt_PT.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib diff --git a/pt_PT.lproj/Sparkle.strings b/Sparkle/pt_PT.lproj/Sparkle.strings similarity index 100% rename from pt_PT.lproj/Sparkle.strings rename to Sparkle/pt_PT.lproj/Sparkle.strings diff --git a/ro.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/ro.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from ro.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/ro.lproj/SUAutomaticUpdateAlert.xib diff --git a/ro.lproj/SUUpdateAlert.xib b/Sparkle/ro.lproj/SUUpdateAlert.xib similarity index 100% rename from ro.lproj/SUUpdateAlert.xib rename to Sparkle/ro.lproj/SUUpdateAlert.xib diff --git a/ro.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from ro.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib diff --git a/ro.lproj/Sparkle.strings b/Sparkle/ro.lproj/Sparkle.strings similarity index 100% rename from ro.lproj/Sparkle.strings rename to Sparkle/ro.lproj/Sparkle.strings diff --git a/ru.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/ru.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from ru.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/ru.lproj/SUAutomaticUpdateAlert.xib diff --git a/ru.lproj/SUUpdateAlert.xib b/Sparkle/ru.lproj/SUUpdateAlert.xib similarity index 100% rename from ru.lproj/SUUpdateAlert.xib rename to Sparkle/ru.lproj/SUUpdateAlert.xib diff --git a/ru.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from ru.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib diff --git a/ru.lproj/Sparkle.strings b/Sparkle/ru.lproj/Sparkle.strings similarity index 100% rename from ru.lproj/Sparkle.strings rename to Sparkle/ru.lproj/Sparkle.strings diff --git a/sk.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/sk.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from sk.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/sk.lproj/SUAutomaticUpdateAlert.xib diff --git a/sk.lproj/SUUpdateAlert.xib b/Sparkle/sk.lproj/SUUpdateAlert.xib similarity index 100% rename from sk.lproj/SUUpdateAlert.xib rename to Sparkle/sk.lproj/SUUpdateAlert.xib diff --git a/sk.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from sk.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib diff --git a/sk.lproj/Sparkle.strings b/Sparkle/sk.lproj/Sparkle.strings similarity index 100% rename from sk.lproj/Sparkle.strings rename to Sparkle/sk.lproj/Sparkle.strings diff --git a/sl.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/sl.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from sl.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/sl.lproj/SUAutomaticUpdateAlert.xib diff --git a/sl.lproj/SUUpdateAlert.xib b/Sparkle/sl.lproj/SUUpdateAlert.xib similarity index 100% rename from sl.lproj/SUUpdateAlert.xib rename to Sparkle/sl.lproj/SUUpdateAlert.xib diff --git a/sl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from sl.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib diff --git a/sl.lproj/Sparkle.strings b/Sparkle/sl.lproj/Sparkle.strings similarity index 100% rename from sl.lproj/Sparkle.strings rename to Sparkle/sl.lproj/Sparkle.strings diff --git a/sv.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/sv.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from sv.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/sv.lproj/SUAutomaticUpdateAlert.xib diff --git a/sv.lproj/SUUpdateAlert.xib b/Sparkle/sv.lproj/SUUpdateAlert.xib similarity index 100% rename from sv.lproj/SUUpdateAlert.xib rename to Sparkle/sv.lproj/SUUpdateAlert.xib diff --git a/sv.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from sv.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib diff --git a/sv.lproj/Sparkle.strings b/Sparkle/sv.lproj/Sparkle.strings similarity index 100% rename from sv.lproj/Sparkle.strings rename to Sparkle/sv.lproj/Sparkle.strings diff --git a/th.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/th.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from th.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/th.lproj/SUAutomaticUpdateAlert.xib diff --git a/th.lproj/SUUpdateAlert.xib b/Sparkle/th.lproj/SUUpdateAlert.xib similarity index 100% rename from th.lproj/SUUpdateAlert.xib rename to Sparkle/th.lproj/SUUpdateAlert.xib diff --git a/th.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/th.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from th.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/th.lproj/SUUpdatePermissionPrompt.xib diff --git a/th.lproj/Sparkle.strings b/Sparkle/th.lproj/Sparkle.strings similarity index 100% rename from th.lproj/Sparkle.strings rename to Sparkle/th.lproj/Sparkle.strings diff --git a/tr.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/tr.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from tr.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/tr.lproj/SUAutomaticUpdateAlert.xib diff --git a/tr.lproj/SUUpdateAlert.xib b/Sparkle/tr.lproj/SUUpdateAlert.xib similarity index 100% rename from tr.lproj/SUUpdateAlert.xib rename to Sparkle/tr.lproj/SUUpdateAlert.xib diff --git a/tr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from tr.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib diff --git a/tr.lproj/Sparkle.strings b/Sparkle/tr.lproj/Sparkle.strings similarity index 100% rename from tr.lproj/Sparkle.strings rename to Sparkle/tr.lproj/Sparkle.strings diff --git a/uk.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/uk.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from uk.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/uk.lproj/SUAutomaticUpdateAlert.xib diff --git a/uk.lproj/SUUpdateAlert.xib b/Sparkle/uk.lproj/SUUpdateAlert.xib similarity index 100% rename from uk.lproj/SUUpdateAlert.xib rename to Sparkle/uk.lproj/SUUpdateAlert.xib diff --git a/uk.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from uk.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib diff --git a/uk.lproj/Sparkle.strings b/Sparkle/uk.lproj/Sparkle.strings similarity index 100% rename from uk.lproj/Sparkle.strings rename to Sparkle/uk.lproj/Sparkle.strings diff --git a/zh_CN.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/zh_CN.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from zh_CN.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/zh_CN.lproj/SUAutomaticUpdateAlert.xib diff --git a/zh_CN.lproj/SUUpdateAlert.xib b/Sparkle/zh_CN.lproj/SUUpdateAlert.xib similarity index 100% rename from zh_CN.lproj/SUUpdateAlert.xib rename to Sparkle/zh_CN.lproj/SUUpdateAlert.xib diff --git a/zh_CN.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from zh_CN.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib diff --git a/zh_CN.lproj/Sparkle.strings b/Sparkle/zh_CN.lproj/Sparkle.strings similarity index 100% rename from zh_CN.lproj/Sparkle.strings rename to Sparkle/zh_CN.lproj/Sparkle.strings diff --git a/zh_TW.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/zh_TW.lproj/SUAutomaticUpdateAlert.xib similarity index 100% rename from zh_TW.lproj/SUAutomaticUpdateAlert.xib rename to Sparkle/zh_TW.lproj/SUAutomaticUpdateAlert.xib diff --git a/zh_TW.lproj/SUUpdateAlert.xib b/Sparkle/zh_TW.lproj/SUUpdateAlert.xib similarity index 100% rename from zh_TW.lproj/SUUpdateAlert.xib rename to Sparkle/zh_TW.lproj/SUUpdateAlert.xib diff --git a/zh_TW.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib similarity index 100% rename from zh_TW.lproj/SUUpdatePermissionPrompt.xib rename to Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib diff --git a/zh_TW.lproj/Sparkle.strings b/Sparkle/zh_TW.lproj/Sparkle.strings similarity index 100% rename from zh_TW.lproj/Sparkle.strings rename to Sparkle/zh_TW.lproj/Sparkle.strings diff --git a/Test Application/English.lproj/InfoPlist.strings b/TestApplication/English.lproj/InfoPlist.strings similarity index 100% rename from Test Application/English.lproj/InfoPlist.strings rename to TestApplication/English.lproj/InfoPlist.strings diff --git a/Test Application/English.lproj/MainMenu.xib b/TestApplication/English.lproj/MainMenu.xib similarity index 100% rename from Test Application/English.lproj/MainMenu.xib rename to TestApplication/English.lproj/MainMenu.xib diff --git a/Test Application/Test Application-Info.plist b/TestApplication/TestApplication-Info.plist similarity index 94% rename from Test Application/Test Application-Info.plist rename to TestApplication/TestApplication-Info.plist index 0a8be900..8fbc517f 100644 --- a/Test Application/Test Application-Info.plist +++ b/TestApplication/TestApplication-Info.plist @@ -6,8 +6,6 @@ English CFBundleExecutable ${EXECUTABLE_NAME} - CFBundleIconFile - Sparkle CFBundleIdentifier org.sparkle-project.SparkleTestApp CFBundleInfoDictionaryVersion diff --git a/Test Application/dsa_priv.pem b/TestApplication/dsa_priv.pem similarity index 100% rename from Test Application/dsa_priv.pem rename to TestApplication/dsa_priv.pem diff --git a/Test Application/dsa_pub.pem b/TestApplication/dsa_pub.pem similarity index 100% rename from Test Application/dsa_pub.pem rename to TestApplication/dsa_pub.pem diff --git a/Test Application/main.m b/TestApplication/main.m similarity index 100% rename from Test Application/main.m rename to TestApplication/main.m diff --git a/Tests/Sparkle Unit Tests-Info.plist b/Tests/SparkleTests-Info.plist similarity index 100% rename from Tests/Sparkle Unit Tests-Info.plist rename to Tests/SparkleTests-Info.plist diff --git a/NTSynchronousTask.h b/Vendor/CocoatechCore/NTSynchronousTask.h similarity index 100% rename from NTSynchronousTask.h rename to Vendor/CocoatechCore/NTSynchronousTask.h diff --git a/NTSynchronousTask.m b/Vendor/CocoatechCore/NTSynchronousTask.m similarity index 100% rename from NTSynchronousTask.m rename to Vendor/CocoatechCore/NTSynchronousTask.m diff --git a/bsdiff.c b/Vendor/bsdiff/bsdiff.c similarity index 100% rename from bsdiff.c rename to Vendor/bsdiff/bsdiff.c diff --git a/bspatch.c b/Vendor/bsdiff/bspatch.c similarity index 100% rename from bspatch.c rename to Vendor/bsdiff/bspatch.c diff --git a/bspatch.h b/Vendor/bsdiff/bspatch.h similarity index 100% rename from bspatch.h rename to Vendor/bsdiff/bspatch.h diff --git a/generate_keys.sh b/bin/generate_keys.sh similarity index 100% rename from generate_keys.sh rename to bin/generate_keys.sh diff --git a/sign_update.sh b/bin/sign_update.sh similarity index 100% rename from sign_update.sh rename to bin/sign_update.sh