mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
36 lines
1.2 KiB
Objective-C
36 lines
1.2 KiB
Objective-C
//
|
|
// SUInstallerProtocol.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/12/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SUInstallerProtocol <NSObject>
|
|
|
|
// Any installation work can be done prior to user application being terminated and relaunched
|
|
// No UI should occur during this stage (i.e, do not show package installer apps, etc..)
|
|
// Should be able to be called from non-main thread
|
|
- (BOOL)performInitialInstallation:(NSError **)error;
|
|
|
|
// Any installation work after the user application has has been terminated. This is where the final installation work can be done.
|
|
// After this stage is done, the user application may be relaunched.
|
|
// Should be able to be called from non-main thread
|
|
- (BOOL)performFinalInstallation:(NSError **)error;
|
|
|
|
// Indicates whether or not this installer can install the update silently in the background, without hindering the user
|
|
// If this returns NO, then the installation can fail if the user did not directly request for the install to occur.
|
|
// Should be thread safe
|
|
- (BOOL)canInstallSilently;
|
|
|
|
// The destination and installation path of the bundle being updated
|
|
- (NSString *)installationPath;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|