mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
The installer (Autoupdate.app) is now responsible for extracting & verifying the update. It talks to the updater via mach ports. We can't afford to use a XPC service due to lack of perfoming privileged tasks.
21 lines
589 B
Objective-C
21 lines
589 B
Objective-C
//
|
|
// AppInstaller.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mayur Pawashe on 3/7/16.
|
|
// Copyright © 2016 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "SUUnarchiver.h"
|
|
|
|
@interface AppInstaller : NSObject <SUUnarchiverDelegate>
|
|
|
|
- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString *)relaunchPath hostProcessIdentifier:(NSNumber *)hostProcessIdentifier updateFolderPath:(NSString *)updateFolderPath downloadPath:(NSString *)downloadPath dsaSignature:(NSString *)dsaSignature;
|
|
|
|
- (void)installAfterHostTermination;
|
|
|
|
- (void)extractUpdate;
|
|
|
|
@end
|