mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-22 04:30:47 +00:00
This is meant to increase the success of downloaded updates from finishing installing on system shutdown. The updater progress app needs to use dispatch source for observing when the PID dies because LaunchServices may no longer be available at this point. Before an update is superceded we will need to send a skip/cancel message to expedite the termination of the helpers.
27 lines
629 B
Objective-C
27 lines
629 B
Objective-C
//
|
|
// AppInstaller.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/7/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "SUUnarchiverProtocol.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
SPU_OBJC_DIRECT_MEMBERS @interface AppInstaller : NSObject
|
|
|
|
- (instancetype)initWithHostBundleIdentifier:(NSString *)hostBundleIdentifier homeDirectory:(NSString *)homeDirectory userName:(NSString *)userName;
|
|
|
|
- (void)start;
|
|
|
|
- (void)handleTerminationRequest;
|
|
|
|
- (void)cleanupAndExitWithStatus:(int)status error:(NSError * _Nullable)error __attribute__((noreturn));
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|