mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
With these changes, modern pkg's should no longer need to be archived. Only guided package installations are supported for flat packages. Specifying an interactive package installation type will result in a rejection. If the file URL has a ".pkg" suffix it is by default assumed to be a guided pkg installation now, which relieves the burden of needing to previously specify sparkle:installationType in the app cast item enclosure, in this case (for 2.x). Moreover, this relieves the burden of developers needing to archive their pkg for Sparkle.
22 lines
546 B
Objective-C
22 lines
546 B
Objective-C
//
|
|
// SUFlatPackageUnarchiver.h
|
|
// Autoupdate
|
|
//
|
|
// Created by Mayur Pawashe on 1/30/21.
|
|
// Copyright © 2021 Sparkle Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import "SUUnarchiverProtocol.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// An unarchiver for flat packages that doesn't really do any unarchiving
|
|
@interface SUFlatPackageUnarchiver : NSObject <SUUnarchiverProtocol>
|
|
|
|
- (instancetype)initWithFlatPackagePath:(NSString *)flatPackagePath expectingInstallationType:(NSString *)installationType;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|