mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-23 04:34:27 +00:00
Set $USER and $HOME variables when running guided pkg installers This allows pre/post install scripts to reference the user's environment correctly. The standard pkg installer GUI preserves these two variables.
25 lines
570 B
Objective-C
25 lines
570 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
|
|
|
|
@interface AppInstaller : NSObject
|
|
|
|
- (instancetype)initWithHostBundleIdentifier:(NSString *)hostBundleIdentifier homeDirectory:(NSString *)homeDirectory userName:(NSString *)userName;
|
|
|
|
- (void)start;
|
|
|
|
- (void)cleanupAndExitWithStatus:(int)status error:(NSError * _Nullable)error __attribute__((noreturn));
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|