mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-22 04:30:47 +00:00
38 lines
1.2 KiB
Objective-C
38 lines
1.2 KiB
Objective-C
//
|
|
// SUInstallerLauncher+Private.h
|
|
// SUInstallerLauncher+Private
|
|
//
|
|
// Created by Mayur Pawashe on 8/21/21.
|
|
// Copyright © 2021 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUInstallerLauncher_Private_h
|
|
#define SUInstallerLauncher_Private_h
|
|
|
|
#if defined(BUILDING_SPARKLE_SOURCES_EXTERNALLY)
|
|
// Ignore incorrect warning
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wquoted-include-in-framework-header"
|
|
#import "SUExport.h"
|
|
#import "SPUInstallationType.h"
|
|
#pragma clang diagnostic pop
|
|
#else
|
|
#import <Sparkle/SUExport.h>
|
|
// Chances are clients will need this too
|
|
#import <Sparkle/SPUInstallationType.h>
|
|
#endif
|
|
|
|
@class NSString;
|
|
|
|
/**
|
|
Private API for determining if the system needs authorization access to update a bundle path
|
|
|
|
This API is not supported when used directly from a Sandboxed applications and will always return @c YES in that case.
|
|
|
|
@param bundlePath The bundle path to test if authorization is needed when performing an update that replaces this bundle.
|
|
@return @c YES if Sparkle thinks authorization is needed to update the @c bundlePath, otherwise @c NO.
|
|
*/
|
|
SU_EXPORT BOOL SPUSystemNeedsAuthorizationAccessForBundlePath(NSString *bundlePath);
|
|
|
|
#endif /* SUInstallerLauncher_Private_h */
|