Skip to content
Permalink
Browse files

Update for latest macOS

  • Loading branch information...
anyakichi committed Oct 12, 2019
1 parent 8ade6df commit 8dccd1829cada9026e57e911ded97e9f65035563
Showing 1,382 changed files with 6,940 additions and 217,940 deletions.

Large diffs are not rendered by default.

@@ -39,7 +39,6 @@ extern NSString *AOReplaceAutomatically;

enum archiveTypeMenuIndex {
DMGT = 0,
SZIPT,
BZIP2T,
GZIPT,
ZIPT,
@@ -237,12 +237,6 @@ - (IBAction)changeArchiveType:(id)sender
[_encodingCBox setEnabled:NO];
[_passwordField setEnabled:NO];
break;
case SZIPT:
[_discardRsrcCheck setEnabled:NO];
[_discardRsrcCheck setState:NSOnState];
[_encodingCBox setEnabled:NO];
[_passwordField setEnabled:YES];
break;
case ZIPT:
[_discardRsrcCheck setEnabled:YES];
[_encodingCBox setEnabled:YES];
@@ -363,9 +357,6 @@ - (NSString *)getArchiveFileNameWithSourceFileNames:(NSArray *)srcnames
}
ext = @"dmg";
break;
case SZIPT:
ext = @"7z";
break;
case BZIP2T:
if ([srcnames count] == 1 && !isDir)
ext = @"bz2";
@@ -537,9 +528,6 @@ - (void)cleanArchive
[_mainTask setInternetEnabledDMG:
[[status objectForKey:AOInternetEnabledDMG] boolValue]];
break;
case SZIPT:
[_mainTask setArchiveType:SZIP];
break;
case BZIP2T:
[_mainTask setArchiveType:BZIP2];
break;
@@ -35,6 +35,7 @@ enum archiveType {
GZIP,
RAR,
SZIP,
XZ,
ZIP,
};

@@ -105,6 +105,9 @@ - (void)launch
case SZIP:
[args addObject:@"7zip"];
break;
case XZ:
[args addObject:@"xz"];
break;
case ZIP:
[args addObject:@"zip"];
break;
Binary file not shown.
@@ -0,0 +1,61 @@
{
"images" : [
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "icon_16x16.png",
"scale" : "1x"
},
{
"size" : "16x16",
"idiom" : "mac",
"filename" : "icon_32x32.png",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "32x32",
"scale" : "2x"
},
{
"size" : "128x128",
"idiom" : "mac",
"filename" : "icon_128x128.png",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "128x128",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "256x256",
"scale" : "2x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "1x"
},
{
"idiom" : "mac",
"size" : "512x512",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -27,32 +27,32 @@
<string>CleanArchiverHelp</string>
<key>CFBundleHelpBookName</key>
<string>CleanArchiver Help</string>
<key>CFBundleIconFile</key>
<string>CleanArchiver.icns</string>
<key>CFBundleIdentifier</key>
<string>jp.sopht.CleanArchiver</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.0a6</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>ClAr</string>
<key>CFBundleVersion</key>
<string>39</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>SUFeedURL</key>
<string>http://www.sopht.jp/cleanarchiver/appcast.xml</string>
<key>SUPublicDSAKeyFile</key>
<string>dsa_pub.pem</string>
<key>SUEnableAutomaticChecks</key>
<string>true</string>
<key>SUFeedURL</key>
<string>https://www.sopht.jp/cleanarchiver/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>3SBxMzLI1RDjRfXyrfeERTmFR2FtcaA0q7VTIDELmEw=</string>
<key>SUShowReleaseNotes</key>
<string>false</string>
</dict>
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Binary file not shown.

Large diffs are not rendered by default.

@@ -132,16 +132,18 @@ when '7zip'

STDOUT.flush
STDOUT.reopen(stdout_sv)
when 'bzip2', 'gzip'
when 'bzip2', 'gzip', 'xz'
compress = format

check_cmd(compress)

if level != -1
if compress == 'bzip2'
ENV['BZIP2'] = "-#{level}"
else
elsif compress == 'gzip'
ENV['GZIP'] = "-#{level}"
else
ENV['XZ_DEFAULTS'] = "-#{level}"
end
end

This file was deleted.

@@ -3,7 +3,7 @@
# Make CleanArchiver application
#

XFLAGS= -activeconfiguration
#XFLAGS= -activeconfiguration

.PHONY: build installsrc install clean

@@ -0,0 +1,43 @@
//
// SPUDownloadData.h
// Sparkle
//
// Created by Mayur Pawashe on 8/10/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//

#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif

#import "SUExport.h"

NS_ASSUME_NONNULL_BEGIN

/*!
* A class for containing downloaded data along with some information about it.
*/
SU_EXPORT @interface SPUDownloadData : NSObject <NSSecureCoding>

- (instancetype)initWithData:(NSData *)data textEncodingName:(NSString * _Nullable)textEncodingName MIMEType:(NSString * _Nullable)MIMEType;

/*!
* The raw data that was downloaded.
*/
@property (nonatomic, readonly) NSData *data;

/*!
* The IANA charset encoding name if available. Eg: "utf-8"
*/
@property (nonatomic, readonly, nullable, copy) NSString *textEncodingName;

/*!
* The MIME type if available. Eg: "text/plain"
*/
@property (nonatomic, readonly, nullable, copy) NSString *MIMEType;

@end

NS_ASSUME_NONNULL_END
@@ -0,0 +1,25 @@
//
// SPUDownloader.h
// Downloader
//
// Created by Mayur Pawashe on 4/1/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//

#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif
#import "SPUDownloaderProtocol.h"

@protocol SPUDownloaderDelegate;

// This object implements the protocol which we have defined. It provides the actual behavior for the service. It is 'exported' by the service to make it available to the process hosting the service over an NSXPCConnection.
@interface SPUDownloader : NSObject <SPUDownloaderProtocol>

// Due to XPC remote object reasons, this delegate is strongly referenced
// Invoke cleanup when done with this instance
- (instancetype)initWithDelegate:(id <SPUDownloaderDelegate>)delegate;

@end
@@ -0,0 +1,38 @@
//
// SPUDownloaderDelegate.h
// Sparkle
//
// Created by Mayur Pawashe on 4/1/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//

#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif

NS_ASSUME_NONNULL_BEGIN

@class SPUDownloadData;

@protocol SPUDownloaderDelegate <NSObject>

// This is only invoked for persistent downloads
- (void)downloaderDidSetDestinationName:(NSString *)destinationName temporaryDirectory:(NSString *)temporaryDirectory;

// Under rare cases, this may be called more than once, in which case the current progress should be reset back to 0
// This is only invoked for persistent downloads
- (void)downloaderDidReceiveExpectedContentLength:(int64_t)expectedContentLength;

// This is only invoked for persistent downloads
- (void)downloaderDidReceiveDataOfLength:(uint64_t)length;

// downloadData is nil if this is a persisent download, otherwise it's non-nil if it's a temporary download
- (void)downloaderDidFinishWithTemporaryDownloadData:(SPUDownloadData * _Nullable)downloadData;

- (void)downloaderDidFailWithError:(NSError *)error;

@end

NS_ASSUME_NONNULL_END
@@ -0,0 +1,13 @@
//
// SPUDownloaderDeprecated.h
// Sparkle
//
// Created by Deadpikle on 12/20/17.
// Copyright © 2017 Sparkle Project. All rights reserved.
//

#import "SPUDownloader.h"

@interface SPUDownloaderDeprecated : SPUDownloader <SPUDownloaderProtocol>

@end
@@ -0,0 +1,34 @@
//
// SPUDownloaderProtocol.h
// PersistentDownloader
//
// Created by Mayur Pawashe on 4/1/16.
// Copyright © 2016 Sparkle Project. All rights reserved.
//

#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif

NS_ASSUME_NONNULL_BEGIN

@class SPUURLRequest;

// The protocol that this service will vend as its API. This header file will also need to be visible to the process hosting the service.
@protocol SPUDownloaderProtocol

- (void)startPersistentDownloadWithRequest:(SPUURLRequest *)request bundleIdentifier:(NSString *)bundleIdentifier desiredFilename:(NSString *)desiredFilename;

- (void)startTemporaryDownloadWithRequest:(SPUURLRequest *)request;

- (void)downloadDidFinish;

- (void)cleanup;

- (void)cancel;

@end

NS_ASSUME_NONNULL_END

0 comments on commit 8dccd18

Please sign in to comment.
You can’t perform that action at this time.