mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
-[SUHost installationPath] can return different values before and after the installation is performed, because it may attempt to normalize the installation path--but only if the normalized version of the path isn't already present. Which it would be after the installation had completed. Now we only compute the installation path once for the whole installation process.
29 lines
972 B
Objective-C
29 lines
972 B
Objective-C
//
|
|
// 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 <Cocoa/Cocoa.h>
|
|
#import "SUVersionComparisonProtocol.h"
|
|
|
|
@class SUHost;
|
|
@interface SUInstaller : NSObject { }
|
|
+ (void) installFromUpdateFolder:(NSString *)updateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath delegate:delegate synchronously:(BOOL)synchronously versionComparator:(id <SUVersionComparison>)comparator;
|
|
+ (void) finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:delegate;
|
|
+ (NSString*) updateFolder;
|
|
+ (void) notifyDelegateOfFailure: (NSDictionary*)dict;
|
|
@end
|
|
|
|
@interface NSObject (SUInstallerDelegateInformalProtocol)
|
|
- (void)installerFinishedForHost:(SUHost *)host;
|
|
- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error;
|
|
@end
|
|
|
|
#endif
|