Files
Sparkle/sparkle-cli/SPUCommandLineUserDriver.h
T
Zorg 46a75cde97 Terminate application in the progress agent instead of user driver
This allows us to remove SPUUserDriverUIComponent and remove a bunch of logic in the user driver regarding termination. The user drivers generally don't need to know about the application bundle anymore, and strictly now only show UI events.

This has another advantage of the agent being able to quit multiple instances of an application even if the application to update is sandboxed.

We enforce the logic that an application can only be relaunched if it was running initially.
2016-08-25 23:46:42 -04:00

21 lines
521 B
Objective-C

//
// SUCommandLineUserDriver.h
// Sparkle
//
// Created by Mayur Pawashe on 4/10/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <SparkleCore/SparkleCore.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPUCommandLineUserDriver : NSObject <SPUUserDriver>
- (instancetype)initWithUpdatePermissionResponse:(nullable SPUUpdatePermissionResponse *)updatePermissionResponse deferInstallation:(BOOL)deferInstallation verbose:(BOOL)verbose;
@end
NS_ASSUME_NONNULL_END