Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f1555d525 | ||
|
|
be8f682a34 | ||
|
|
d1904ed606 | ||
|
|
54547db28e | ||
|
|
5456da6ab2 | ||
|
|
3a52b7a503 | ||
|
|
75f86a6d98 | ||
|
|
8d2f0d31d4 | ||
|
|
a7ca6d79de | ||
|
|
076087d4f7 | ||
|
|
93b034b244 | ||
|
|
1fc5d2f215 | ||
|
|
6dd689adfc | ||
|
|
fa3b83a8c7 | ||
|
|
249331bd32 | ||
|
|
262cbf2ff9 | ||
|
|
40ab94d684 | ||
|
|
20f73ffc94 | ||
|
|
11ccce2981 |
No files matched your search
@@ -1,45 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
build/
|
# Xcode
|
||||||
|
build/*
|
||||||
*.pbxuser
|
*.pbxuser
|
||||||
!default.pbxuser
|
!default.pbxuser
|
||||||
*.mode1v3
|
*.mode1v3
|
||||||
@@ -7,30 +8,11 @@ build/
|
|||||||
!default.mode2v3
|
!default.mode2v3
|
||||||
*.perspectivev3
|
*.perspectivev3
|
||||||
!default.perspectivev3
|
!default.perspectivev3
|
||||||
xcuserdata
|
*.xcworkspace
|
||||||
*.xccheckout
|
!default.xcworkspace
|
||||||
|
xcuserdata/
|
||||||
|
profile
|
||||||
*.moved-aside
|
*.moved-aside
|
||||||
DerivedData
|
|
||||||
*.xcuserstate
|
|
||||||
|
|
||||||
|
## Ignore incredibly annoying .DS_Store files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.AppleDouble
|
|
||||||
.LSOverride
|
|
||||||
|
|
||||||
# Icon must end with two \r
|
|
||||||
Icon
|
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
|
||||||
._*
|
|
||||||
|
|
||||||
# Files that might appear on external disk
|
|
||||||
.Spotlight-V100
|
|
||||||
.Trashes
|
|
||||||
|
|
||||||
# Directories potentially created on remote AFP share
|
|
||||||
.AppleDB
|
|
||||||
.AppleDesktop
|
|
||||||
Network Trash Folder
|
|
||||||
Temporary Items
|
|
||||||
.apdisk
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
language: objective-c
|
|
||||||
script: make travis
|
|
||||||
@@ -1 +1,3 @@
|
|||||||
// BinaryDelta tool only
|
// BinaryDelta tool only
|
||||||
|
|
||||||
|
PRODUCT_NAME = BinaryDelta
|
||||||
@@ -27,8 +27,6 @@ GCC_SYMBOLS_PRIVATE_EXTERN = YES
|
|||||||
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
|
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
|
||||||
ARCHS = $(ARCHS_STANDARD)
|
ARCHS = $(ARCHS_STANDARD)
|
||||||
MACOSX_DEPLOYMENT_TARGET = 10.7
|
MACOSX_DEPLOYMENT_TARGET = 10.7
|
||||||
PRODUCT_NAME = ${TARGET_NAME}
|
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034identifier}
|
|
||||||
|
|
||||||
GCC_PREPROCESSOR_DEFINITIONS = SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\"
|
GCC_PREPROCESSOR_DEFINITIONS = SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\"
|
||||||
CLANG_ENABLE_OBJC_ARC = YES
|
CLANG_ENABLE_OBJC_ARC = YES
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
GCC_OPTIMIZATION_LEVEL = 0
|
GCC_OPTIMIZATION_LEVEL = 0
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf
|
DEBUG_INFORMATION_FORMAT = dwarf
|
||||||
ENABLE_TESTABILITY = YES
|
|
||||||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
|
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
|
||||||
SPARKLE_EXTRA_DEBUG = -DDEBUG
|
SPARKLE_EXTRA_DEBUG = -DDEBUG
|
||||||
OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG)
|
OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
DYLIB_INSTALL_NAME_BASE = @rpath
|
DYLIB_INSTALL_NAME_BASE = @rpath
|
||||||
DYLIB_COMPATIBILITY_VERSION = 1.6
|
DYLIB_COMPATIBILITY_VERSION = 1.6
|
||||||
DYLIB_CURRENT_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH)
|
DYLIB_CURRENT_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH)
|
||||||
|
PRODUCT_NAME = Sparkle
|
||||||
WRAPPER_EXTENSION = framework
|
WRAPPER_EXTENSION = framework
|
||||||
FRAMEWORK_VERSION = A
|
FRAMEWORK_VERSION = A
|
||||||
INFOPLIST_FILE = Sparkle/Sparkle-Info.plist
|
INFOPLIST_FILE = Sparkle/Sparkle-Info.plist
|
||||||
@@ -10,4 +11,3 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) BUILDING_SPARKLE=1
|
|||||||
OTHER_LDFLAGS = -Wl,-U,_NSURLQuarantinePropertiesKey
|
OTHER_LDFLAGS = -Wl,-U,_NSURLQuarantinePropertiesKey
|
||||||
SKIP_INSTALL = YES
|
SKIP_INSTALL = YES
|
||||||
DEFINES_MODULE = YES
|
DEFINES_MODULE = YES
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = ${SPARKLE_BUNDLE_IDENTIFIER}
|
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
// Test Application only
|
// Test Application only
|
||||||
|
|
||||||
INFOPLIST_FILE = TestApplication/TestApplication-Info.plist
|
INFOPLIST_FILE = TestApplication/TestApplication-Info.plist
|
||||||
|
PRODUCT_NAME = Sparkle Test App
|
||||||
WRAPPER_EXTENSION = app
|
WRAPPER_EXTENSION = app
|
||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
|
||||||
CLANG_ENABLE_OBJC_ARC = NO
|
CLANG_ENABLE_OBJC_ARC = NO
|
||||||
LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks
|
LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.SparkleTestApp
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
// Unit Test only
|
// Unit Test only
|
||||||
|
|
||||||
INFOPLIST_FILE = Tests/SparkleTests-Info.plist
|
INFOPLIST_FILE = Tests/SparkleTests-Info.plist
|
||||||
|
PRODUCT_NAME = Sparkle Unit Tests
|
||||||
WRAPPER_EXTENSION = xctest
|
WRAPPER_EXTENSION = xctest
|
||||||
OTHER_CFLAGS = $(inherited) -iframework"$(DEVELOPER_FRAMEWORKS_DIR)" -iframework"$(PLATFORM_DIR)/Developer/Library/Frameworks"
|
OTHER_CFLAGS = $(inherited) -iframework"$(DEVELOPER_FRAMEWORKS_DIR)" -iframework"$(PLATFORM_DIR)/Developer/Library/Frameworks"
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = NO
|
GCC_SYMBOLS_PRIVATE_EXTERN = NO
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 754 B After Width: | Height: | Size: 754 B |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
@@ -1,6 +1,6 @@
|
|||||||
Pod::Spec.new do |s|
|
Pod::Spec.new do |s|
|
||||||
s.name = "Sparkle"
|
s.name = "Sparkle"
|
||||||
s.version = "1.10.0"
|
s.version = "1.9.0"
|
||||||
s.summary = "A software update framework for OS X"
|
s.summary = "A software update framework for OS X"
|
||||||
s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers."
|
s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers."
|
||||||
s.homepage = "http://sparkle-project.org"
|
s.homepage = "http://sparkle-project.org"
|
||||||
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
|||||||
s.platform = :osx, '10.7'
|
s.platform = :osx, '10.7'
|
||||||
s.source = { :http => "https://github.com/sparkle-project/Sparkle/releases/download/#{s.version}/Sparkle-#{s.version}.tar.bz2" }
|
s.source = { :http => "https://github.com/sparkle-project/Sparkle/releases/download/#{s.version}/Sparkle-#{s.version}.tar.bz2" }
|
||||||
|
|
||||||
s.public_header_files = 'Sparkle.framework/Versions/A/Headers/*.h'
|
s.public_header_files = 'Sparkle.framework/Headers/*.h'
|
||||||
s.vendored_framework = 'Sparkle.framework'
|
s.vendored_framework = 'Sparkle.framework'
|
||||||
s.resources = 'Sparkle.framework'
|
s.resources = 'Sparkle.framework'
|
||||||
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/Sparkle"' }
|
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/Sparkle"' }
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "self:Sparkle.xcodeproj">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>${EXECUTABLE_NAME}</string>
|
<string>${EXECUTABLE_NAME}</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
<string>org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef SUAPPCAST_H
|
#ifndef SUAPPCAST_H
|
||||||
#define SUAPPCAST_H
|
#define SUAPPCAST_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Foundation/NSURLDownload.h>
|
||||||
#import "SUExport.h"
|
#import "SUExport.h"
|
||||||
|
|
||||||
@class SUAppcastItem;
|
@class SUAppcastItem;
|
||||||
|
|||||||
@@ -244,13 +244,10 @@
|
|||||||
|
|
||||||
- (void)reportError:(NSError *)error
|
- (void)reportError:(NSError *)error
|
||||||
{
|
{
|
||||||
NSURL *failingUrl = error.userInfo[NSURLErrorFailingURLErrorKey];
|
|
||||||
|
|
||||||
self.completionBlock([NSError errorWithDomain:SUSparkleErrorDomain code:SUAppcastError userInfo:@{
|
self.completionBlock([NSError errorWithDomain:SUSparkleErrorDomain code:SUAppcastError userInfo:@{
|
||||||
NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil),
|
NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil),
|
||||||
NSLocalizedFailureReasonErrorKey: [error localizedDescription],
|
NSLocalizedFailureReasonErrorKey: [error localizedDescription],
|
||||||
NSUnderlyingErrorKey: error,
|
NSUnderlyingErrorKey: error,
|
||||||
NSURLErrorFailingURLErrorKey: failingUrl ? failingUrl : [NSNull null],
|
|
||||||
}]);
|
}]);
|
||||||
self.completionBlock = nil;
|
self.completionBlock = nil;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,8 +9,7 @@
|
|||||||
#ifndef SUAPPCASTITEM_H
|
#ifndef SUAPPCASTITEM_H
|
||||||
#define SUAPPCASTITEM_H
|
#define SUAPPCASTITEM_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#include "SUExport.h"
|
||||||
#import "SUExport.h"
|
|
||||||
|
|
||||||
SU_EXPORT @interface SUAppcastItem : NSObject
|
SU_EXPORT @interface SUAppcastItem : NSObject
|
||||||
@property (copy, readonly) NSString *title;
|
@property (copy, readonly) NSString *title;
|
||||||
|
|||||||
@@ -167,7 +167,7 @@
|
|||||||
NSMutableDictionary *fakeAppCastDict = [dict mutableCopy];
|
NSMutableDictionary *fakeAppCastDict = [dict mutableCopy];
|
||||||
[fakeAppCastDict removeObjectForKey:SUAppcastElementDeltas];
|
[fakeAppCastDict removeObjectForKey:SUAppcastElementDeltas];
|
||||||
fakeAppCastDict[SURSSElementEnclosure] = deltaDictionary;
|
fakeAppCastDict[SURSSElementEnclosure] = deltaDictionary;
|
||||||
SUAppcastItem *deltaItem = [[SUAppcastItem alloc] initWithDictionary:fakeAppCastDict];
|
SUAppcastItem *deltaItem = [[[self class] alloc] initWithDictionary:fakeAppCastDict];
|
||||||
|
|
||||||
deltas[deltaDictionary[SUAppcastAttributeDeltaFrom]] = deltaItem;
|
deltas[deltaDictionary[SUAppcastAttributeDeltaFrom]] = deltaItem;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@
|
|||||||
- (BOOL)hostSupportsItem:(SUAppcastItem *)ui;
|
- (BOOL)hostSupportsItem:(SUAppcastItem *)ui;
|
||||||
- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui;
|
- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui;
|
||||||
- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui;
|
- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui;
|
||||||
- (void)appcastDidFinishLoading:(SUAppcast *)ac;
|
|
||||||
- (void)didFindValidUpdate;
|
- (void)didFindValidUpdate;
|
||||||
- (void)didNotFindUpdate;
|
- (void)didNotFindUpdate;
|
||||||
|
|
||||||
|
|||||||
@@ -221,61 +221,27 @@
|
|||||||
|
|
||||||
- (BOOL)validateUpdateDownloadedToPath:(NSString *)downloadedPath extractedToPath:(NSString *)extractedPath DSASignature:(NSString *)DSASignature publicDSAKey:(NSString *)publicDSAKey
|
- (BOOL)validateUpdateDownloadedToPath:(NSString *)downloadedPath extractedToPath:(NSString *)extractedPath DSASignature:(NSString *)DSASignature publicDSAKey:(NSString *)publicDSAKey
|
||||||
{
|
{
|
||||||
BOOL isPackage = NO;
|
NSString *newBundlePath = [SUInstaller appPathInUpdateFolder:extractedPath forHost:self.host];
|
||||||
NSString *installSourcePath = [SUInstaller installSourcePathInUpdateFolder:extractedPath forHost:self.host isPackage:&isPackage isGuided:NULL];
|
|
||||||
if (installSourcePath == nil) {
|
|
||||||
SULog(@"No suitable install is found in the update. The update will be rejected.");
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Modern packages are not distributed as bundles and are code signed differently than regular applications
|
|
||||||
if (isPackage) {
|
|
||||||
BOOL packageValidated = [SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey];
|
|
||||||
|
|
||||||
if (!packageValidated) {
|
if (newBundlePath) {
|
||||||
SULog(@"DSA signature validation failed. The update will be rejected.");
|
if ([SUCodeSigningVerifier hostApplicationIsCodeSigned]) {
|
||||||
|
NSError *error = nil;
|
||||||
|
if ([SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:newBundlePath error:&error]) {
|
||||||
|
return YES;
|
||||||
|
} else {
|
||||||
|
SULog(@"Code signature check on update failed: %@. Sparkle will use DSA signature instead.", error);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
SULog(@"The host app is not signed using Apple Code Signing, and therefore cannot verify updates this way. Sparkle will use DSA signature instead.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return packageValidated;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NSBundle *newBundle = [NSBundle bundleWithPath:installSourcePath];
|
if (DSASignature) {
|
||||||
if (newBundle == nil) {
|
return [SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey];
|
||||||
SULog(@"No suitable bundle is found in the update. The update will be rejected.");
|
} else {
|
||||||
|
SULog(@"The appcast item for the update has no DSA signature. The update will be rejected, because both DSA and Apple Code Signing verification failed.");
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
|
|
||||||
SUHost *newHost = [[SUHost alloc] initWithBundle:newBundle];
|
|
||||||
NSString *newPublicDSAKey = newHost.publicDSAKey;
|
|
||||||
|
|
||||||
if (newPublicDSAKey != nil) {
|
|
||||||
if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:newPublicDSAKey]) {
|
|
||||||
SULog(@"DSA signature validation failed. The update will be rejected.");
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOL dsaKeysMatch = (publicDSAKey == nil || newPublicDSAKey == nil) ? NO : [publicDSAKey isEqualToString:newPublicDSAKey];
|
|
||||||
if (dsaKeysMatch) {
|
|
||||||
NSError *error = nil;
|
|
||||||
if ([SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath] && ![SUCodeSigningVerifier codeSignatureIsValidAtPath:installSourcePath error:&error]) {
|
|
||||||
SULog(@"The application to update has an invalid code signature: %@. The update will be rejected.", error);
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (![SUCodeSigningVerifier hostApplicationIsCodeSigned] || ![SUCodeSigningVerifier applicationAtPathIsCodeSigned:installSourcePath]) {
|
|
||||||
SULog(@"Public DSA keys differ or are absent, and both apps are not code signed. The update will be rejected.");
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
|
|
||||||
NSError *error = nil;
|
|
||||||
if (![SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:installSourcePath error:&error]) {
|
|
||||||
SULog(@"The update will be rejected because the code signature from the original and updated application failed to match: %@", error);
|
|
||||||
return NO;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return YES;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)downloadDidFinish:(NSURLDownload *)__unused d
|
- (void)downloadDidFinish:(NSURLDownload *)__unused d
|
||||||
@@ -287,15 +253,9 @@
|
|||||||
|
|
||||||
- (void)download:(NSURLDownload *)__unused download didFailWithError:(NSError *)error
|
- (void)download:(NSURLDownload *)__unused download didFailWithError:(NSError *)error
|
||||||
{
|
{
|
||||||
NSURL *failingUrl = error.userInfo[NSURLErrorFailingURLErrorKey];
|
|
||||||
if (!failingUrl) {
|
|
||||||
failingUrl = [self.updateItem fileURL];
|
|
||||||
}
|
|
||||||
|
|
||||||
[self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:@{
|
[self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:@{
|
||||||
NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while downloading the update. Please try again later.", nil),
|
NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while downloading the update. Please try again later.", nil),
|
||||||
NSUnderlyingErrorKey: error,
|
NSUnderlyingErrorKey: error,
|
||||||
NSURLErrorFailingURLErrorKey: failingUrl ? failingUrl : [NSNull null],
|
|
||||||
}]];
|
}]];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -481,7 +441,7 @@
|
|||||||
- (void)abortUpdateWithError:(NSError *)error
|
- (void)abortUpdateWithError:(NSError *)error
|
||||||
{
|
{
|
||||||
if ([error code] != SUNoUpdateError) { // Let's not bother logging this.
|
if ([error code] != SUNoUpdateError) { // Let's not bother logging this.
|
||||||
SULog(@"Error: %@ %@ (URL %@)", error.localizedDescription, error.localizedFailureReason, error.userInfo[NSURLErrorFailingURLErrorKey]);
|
SULog(@"Error: %@ %@", [error localizedDescription], [error localizedFailureReason]);
|
||||||
}
|
}
|
||||||
if (self.download) {
|
if (self.download) {
|
||||||
[self.download cancel];
|
[self.download cancel];
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#ifndef SUBINARYDELTACOMMON_H
|
#ifndef SUBINARYDELTACOMMON_H
|
||||||
#define SUBINARYDELTACOMMON_H
|
#define SUBINARYDELTACOMMON_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
#include <fts.h>
|
#include <fts.h>
|
||||||
|
|
||||||
#define PERMISSION_FLAGS (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)
|
#define PERMISSION_FLAGS (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX)
|
||||||
@@ -65,6 +63,9 @@ typedef NS_ENUM(uint16_t, SUBinaryDeltaMinorVersion)
|
|||||||
|
|
||||||
#define LATEST_DELTA_DIFF_MAJOR_VERSION SUBeigeMajorVersion
|
#define LATEST_DELTA_DIFF_MAJOR_VERSION SUBeigeMajorVersion
|
||||||
|
|
||||||
|
@class NSString;
|
||||||
|
@class NSData;
|
||||||
|
|
||||||
extern int compareFiles(const FTSENT **a, const FTSENT **b);
|
extern int compareFiles(const FTSENT **a, const FTSENT **b);
|
||||||
extern NSData *hashOfFileContents(FTSENT *ent);
|
extern NSData *hashOfFileContents(FTSENT *ent);
|
||||||
extern NSString *hashOfTreeWithVersion(NSString *path, uint16_t majorVersion);
|
extern NSString *hashOfTreeWithVersion(NSString *path, uint16_t majorVersion);
|
||||||
|
|||||||
@@ -10,8 +10,6 @@
|
|||||||
#ifndef SUCONSTANTS_H
|
#ifndef SUCONSTANTS_H
|
||||||
#define SUCONSTANTS_H
|
#define SUCONSTANTS_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Misc:
|
// Misc:
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -15,14 +15,6 @@
|
|||||||
#ifndef SUDSAVERIFIER_H
|
#ifndef SUDSAVERIFIER_H
|
||||||
#define SUDSAVERIFIER_H
|
#define SUDSAVERIFIER_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1090
|
|
||||||
@interface NSData (SUDSAVerifier)
|
|
||||||
- (id)initWithBase64Encoding:(NSString *)base64String;
|
|
||||||
@end
|
|
||||||
#endif
|
|
||||||
|
|
||||||
@interface SUDSAVerifier : NSObject
|
@interface SUDSAVerifier : NSObject
|
||||||
|
|
||||||
+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString;
|
+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString;
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
CFRelease(uuid);
|
CFRelease(uuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
while (noErr == FSPathMakeRefWithOptions((const UInt8 *)[mountPoint fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &tmpRef, NULL));
|
while (noErr == FSPathMakeRefWithOptions((UInt8 *)[mountPoint fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &tmpRef, NULL));
|
||||||
|
|
||||||
NSData *promptData = nil;
|
NSData *promptData = nil;
|
||||||
promptData = [NSData dataWithBytes:"yes\n" length:4];
|
promptData = [NSData dataWithBytes:"yes\n" length:4];
|
||||||
|
|||||||
@@ -22,11 +22,11 @@ A guided installation can be started by applications other than the application
|
|||||||
#ifndef SUGUIDEDPACKAGEINSTALLER_H
|
#ifndef SUGUIDEDPACKAGEINSTALLER_H
|
||||||
#define SUGUIDEDPACKAGEINSTALLER_H
|
#define SUGUIDEDPACKAGEINSTALLER_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
#import "Sparkle.h"
|
#import "Sparkle.h"
|
||||||
#import "SUInstaller.h"
|
#import "SUInstaller.h"
|
||||||
|
|
||||||
@interface SUGuidedPackageInstaller : SUInstaller
|
@interface SUGuidedPackageInstaller : SUInstaller {
|
||||||
|
}
|
||||||
|
|
||||||
/*! Perform the guided installation */
|
/*! Perform the guided installation */
|
||||||
+ (void)performInstallationToPath:(NSString *)path fromPath:(NSString *)installerGuide host:(SUHost *)host versionComparator:(id<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler;
|
+ (void)performInstallationToPath:(NSString *)path fromPath:(NSString *)installerGuide host:(SUHost *)host versionComparator:(id<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler;
|
||||||
|
|||||||
@@ -71,10 +71,9 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
validAuth = AuthorizationCopyRights(auth,
|
validAuth = AuthorizationCopyRights(auth,
|
||||||
&rights,
|
&rights,
|
||||||
kAuthorizationEmptyEnvironment,
|
kAuthorizationEmptyEnvironment,
|
||||||
(AuthorizationFlags)
|
kAuthorizationFlagPreAuthorize |
|
||||||
(kAuthorizationFlagPreAuthorize |
|
|
||||||
kAuthorizationFlagExtendRights |
|
kAuthorizationFlagExtendRights |
|
||||||
kAuthorizationFlagInteractionAllowed),
|
kAuthorizationFlagInteractionAllowed,
|
||||||
NULL);
|
NULL);
|
||||||
if (validAuth != errAuthorizationSuccess)
|
if (validAuth != errAuthorizationSuccess)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// Copyright 2008 Andy Matuschak. All rights reserved.
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
#import "SUUpdater.h"
|
#import "SUUpdater.h"
|
||||||
#import "SUAppcast.h"
|
#import "SUAppcast.h"
|
||||||
#import "SUAppcastItem.h"
|
#import "SUAppcastItem.h"
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ typedef struct {
|
|||||||
if (!icon) {
|
if (!icon) {
|
||||||
BOOL isMainBundle = (self.bundle == [NSBundle mainBundle]);
|
BOOL isMainBundle = (self.bundle == [NSBundle mainBundle]);
|
||||||
|
|
||||||
NSString *fileType = isMainBundle ? (__bridge NSString *)kUTTypeApplication : (__bridge NSString *)kUTTypeBundle;
|
NSString *fileType = isMainBundle ? (NSString *)kUTTypeApplication : (NSString *)kUTTypeBundle;
|
||||||
icon = [[NSWorkspace sharedWorkspace] iconForFileType:fileType];
|
icon = [[NSWorkspace sharedWorkspace] iconForFileType:fileType];
|
||||||
}
|
}
|
||||||
return icon;
|
return icon;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
@class SUHost;
|
@class SUHost;
|
||||||
@interface SUInstaller : NSObject
|
@interface SUInstaller : NSObject
|
||||||
|
|
||||||
+ (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(BOOL *)isGuidedPtr;
|
+ (NSString *)appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host;
|
||||||
+ (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath versionComparator:(id<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler;
|
+ (void)installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath versionComparator:(id<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler;
|
||||||
+ (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result error:(NSError *)error completionHandler:(void (^)(NSError *))completionHandler;
|
+ (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result error:(NSError *)error completionHandler:(void (^)(NSError *))completionHandler;
|
||||||
+ (NSString *)updateFolder;
|
+ (NSString *)updateFolder;
|
||||||
|
|||||||
@@ -121,6 +121,13 @@ static NSString *sUpdateFolder = nil;
|
|||||||
return newAppDownloadPath;
|
return newAppDownloadPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (NSString *)appPathInUpdateFolder:(NSString *)updateFolder forHost:(SUHost *)host
|
||||||
|
{
|
||||||
|
BOOL isPackage = NO;
|
||||||
|
NSString *path = [self installSourcePathInUpdateFolder:updateFolder forHost:host isPackage:&isPackage isGuided:nil];
|
||||||
|
return isPackage ? nil : path;
|
||||||
|
}
|
||||||
|
|
||||||
+ (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath versionComparator:(id<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler
|
+ (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath versionComparator:(id<SUVersionComparison>)comparator completionHandler:(void (^)(NSError *))completionHandler
|
||||||
{
|
{
|
||||||
BOOL isPackage = NO;
|
BOOL isPackage = NO;
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#ifndef SUPACKAGEINSTALLER_H
|
#ifndef SUPACKAGEINSTALLER_H
|
||||||
#define SUPACKAGEINSTALLER_H
|
#define SUPACKAGEINSTALLER_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
#import "SUUpdater.h"
|
#import "SUUpdater.h"
|
||||||
|
|
||||||
#import "SUAppcast.h"
|
#import "SUAppcast.h"
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#ifndef SUPLAININSTALLER_H
|
#ifndef SUPLAININSTALLER_H
|
||||||
#define SUPLAININSTALLER_H
|
#define SUPLAININSTALLER_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
#import "SUUpdater.h"
|
#import "SUUpdater.h"
|
||||||
|
|
||||||
#import "SUAppcast.h"
|
#import "SUAppcast.h"
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#ifndef SUPLAININSTALLERINTERNALS_H
|
#ifndef SUPLAININSTALLERINTERNALS_H
|
||||||
#define SUPLAININSTALLERINTERNALS_H
|
#define SUPLAININSTALLERINTERNALS_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
|
|
||||||
#import "SUPlainInstaller.h"
|
#import "SUPlainInstaller.h"
|
||||||
|
|
||||||
@interface SUPlainInstaller (Internals)
|
@interface SUPlainInstaller (Internals)
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
FSVolumeRefNum vSrcRefNum = kFSInvalidVolumeRefNum;
|
FSVolumeRefNum vSrcRefNum = kFSInvalidVolumeRefNum;
|
||||||
FSCatalogInfo catInfo;
|
FSCatalogInfo catInfo;
|
||||||
memset(&catInfo, 0, sizeof(catInfo));
|
memset(&catInfo, 0, sizeof(catInfo));
|
||||||
OSStatus err = FSPathMakeRef((const UInt8 *)[path fileSystemRepresentation], &pathRef, NULL);
|
OSStatus err = FSPathMakeRef((UInt8 *)[path fileSystemRepresentation], &pathRef, NULL);
|
||||||
if( err == noErr )
|
if( err == noErr )
|
||||||
{
|
{
|
||||||
err = FSGetCatalogInfo(&pathRef, kFSCatInfoVolume, &catInfo, NULL, NULL, NULL);
|
err = FSGetCatalogInfo(&pathRef, kFSCatInfoVolume, &catInfo, NULL, NULL, NULL);
|
||||||
@@ -461,7 +461,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
NSString *tmpPath = [self _temporaryCopyNameForPath:dst didFindTrash:&didFindTrash];
|
NSString *tmpPath = [self _temporaryCopyNameForPath:dst didFindTrash:&didFindTrash];
|
||||||
|
|
||||||
// Make FSRef for destination:
|
// Make FSRef for destination:
|
||||||
err = FSPathMakeRefWithOptions((const UInt8 *)[dst fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &dstRef, NULL);
|
err = FSPathMakeRefWithOptions((UInt8 *)[dst fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &dstRef, NULL);
|
||||||
hadFileAtDest = (err == noErr); // There is a file at the destination, move it aside. If we normalized the name, we might not get here, so don't error.
|
hadFileAtDest = (err == noErr); // There is a file at the destination, move it aside. If we normalized the name, we might not get here, so don't error.
|
||||||
if( hadFileAtDest )
|
if( hadFileAtDest )
|
||||||
{
|
{
|
||||||
@@ -481,12 +481,12 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
|
|
||||||
if( hadFileAtDest )
|
if( hadFileAtDest )
|
||||||
{
|
{
|
||||||
err = FSPathMakeRef((const UInt8 *)[[tmpPath stringByDeletingLastPathComponent] fileSystemRepresentation], &tmpDirRef, NULL);
|
err = FSPathMakeRef((UInt8 *)[[tmpPath stringByDeletingLastPathComponent] fileSystemRepresentation], &tmpDirRef, NULL);
|
||||||
if (err != noErr)
|
if (err != noErr)
|
||||||
FSPathMakeRef((const UInt8 *)[[dst stringByDeletingLastPathComponent] fileSystemRepresentation], &tmpDirRef, NULL);
|
FSPathMakeRef((UInt8 *)[[dst stringByDeletingLastPathComponent] fileSystemRepresentation], &tmpDirRef, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
err = FSPathMakeRef((const UInt8 *)[[dst stringByDeletingLastPathComponent] fileSystemRepresentation], &dstDirRef, NULL);
|
err = FSPathMakeRef((UInt8 *)[[dst stringByDeletingLastPathComponent] fileSystemRepresentation], &dstDirRef, NULL);
|
||||||
|
|
||||||
if (err == noErr && hadFileAtDest)
|
if (err == noErr && hadFileAtDest)
|
||||||
{
|
{
|
||||||
@@ -500,7 +500,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = FSPathMakeRef((const UInt8 *)[src fileSystemRepresentation], &srcRef, NULL);
|
err = FSPathMakeRef((UInt8 *)[src fileSystemRepresentation], &srcRef, NULL);
|
||||||
if (err == noErr)
|
if (err == noErr)
|
||||||
{
|
{
|
||||||
NSFileManager *manager = [[NSFileManager alloc] init];
|
NSFileManager *manager = [[NSFileManager alloc] init];
|
||||||
@@ -572,7 +572,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
NSFileManager *manager = [NSFileManager defaultManager];
|
NSFileManager *manager = [NSFileManager defaultManager];
|
||||||
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000
|
#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000
|
||||||
if (!&NSURLQuarantinePropertiesKey) {
|
if (!&NSURLQuarantinePropertiesKey) {
|
||||||
NSString *const quarantineAttribute = (__bridge NSString *)kLSItemQuarantineProperties;
|
NSString *const quarantineAttribute = (NSString*)kLSItemQuarantineProperties;
|
||||||
const int removeXAttrOptions = XATTR_NOFOLLOW;
|
const int removeXAttrOptions = XATTR_NOFOLLOW;
|
||||||
|
|
||||||
[self removeXAttr:quarantineAttribute
|
[self removeXAttr:quarantineAttribute
|
||||||
@@ -599,11 +599,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
NSURL *rootURL = [NSURL fileURLWithPath:root];
|
NSURL *rootURL = [NSURL fileURLWithPath:root];
|
||||||
id rootResourceValue = nil;
|
[rootURL setResourceValue:[NSNull null] forKey:NSURLQuarantinePropertiesKey error:NULL];
|
||||||
[rootURL getResourceValue:&rootResourceValue forKey:NSURLQuarantinePropertiesKey error:NULL];
|
|
||||||
if (rootResourceValue) {
|
|
||||||
[rootURL setResourceValue:[NSNull null] forKey:NSURLQuarantinePropertiesKey error:NULL];
|
|
||||||
}
|
|
||||||
|
|
||||||
// Only recurse if it's actually a directory. Don't recurse into a
|
// Only recurse if it's actually a directory. Don't recurse into a
|
||||||
// root-level symbolic link.
|
// root-level symbolic link.
|
||||||
@@ -616,11 +612,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
|||||||
NSDirectoryEnumerator *directoryEnumerator = [manager enumeratorAtURL:rootURL includingPropertiesForKeys:nil options:(NSDirectoryEnumerationOptions)0 errorHandler:nil];
|
NSDirectoryEnumerator *directoryEnumerator = [manager enumeratorAtURL:rootURL includingPropertiesForKeys:nil options:(NSDirectoryEnumerationOptions)0 errorHandler:nil];
|
||||||
|
|
||||||
for (NSURL *file in directoryEnumerator) {
|
for (NSURL *file in directoryEnumerator) {
|
||||||
id fileResourceValue = nil;
|
[file setResourceValue:[NSNull null] forKey:NSURLQuarantinePropertiesKey error:NULL];
|
||||||
[file getResourceValue:&fileResourceValue forKey:NSURLQuarantinePropertiesKey error:NULL];
|
|
||||||
if (fileResourceValue) {
|
|
||||||
[file setResourceValue:[NSNull null] forKey:NSURLQuarantinePropertiesKey error:NULL];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#ifndef SUSTANDARDVERSIONCOMPARATOR_H
|
#ifndef SUSTANDARDVERSIONCOMPARATOR_H
|
||||||
#define SUSTANDARDVERSIONCOMPARATOR_H
|
#define SUSTANDARDVERSIONCOMPARATOR_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
|
||||||
#import "SUExport.h"
|
#import "SUExport.h"
|
||||||
#import "SUVersionComparisonProtocol.h"
|
#import "SUVersionComparisonProtocol.h"
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
#ifndef SUSYSTEMPROFILER_H
|
#ifndef SUSYSTEMPROFILER_H
|
||||||
#define SUSYSTEMPROFILER_H
|
#define SUSYSTEMPROFILER_H
|
||||||
|
|
||||||
#import <Foundation/Foundation.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
@class SUHost;
|
@class SUHost;
|
||||||
@interface SUSystemProfiler : NSObject
|
@interface SUSystemProfiler : NSObject
|
||||||
|
|||||||