mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Move a lot of the installation work to be done during the first phase of installation (when possible), before the target app needs to be terminated. For the common case where the old and new bundles are on the same volume, the final phase of installation requiring a restart is now just an atomic swap. Also move the termination listener to the agent app which resolves some launch/CI failures we've been seeing.
32 lines
639 B
Objective-C
32 lines
639 B
Objective-C
//
|
|
// SPUInstallerAgentProtocol.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 7/17/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol SPUInstallerAgentProtocol
|
|
|
|
- (void)registerApplicationBundlePath:(NSString *)applicationBundlePath reply:(void (^)(BOOL))reply;
|
|
|
|
- (void)registerInstallationInfoData:(NSData *)installationInfoData;
|
|
|
|
- (void)listenForTerminationWithCompletion:(void (^)(void))completionHandler;
|
|
|
|
- (void)sendTerminationSignal;
|
|
|
|
- (void)showProgress;
|
|
|
|
- (void)stopProgress;
|
|
|
|
- (void)relaunchApplication;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|