Skip to content

Commit b40fbe9

Browse files
committed
Version 4.2 Release
* First signed version * Updated Sparkle to version 1.18.1
1 parent 71a76cb commit b40fbe9

File tree

167 files changed

+697
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+697
-292
lines changed

GoofySwift.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
33A2E9721B6E41990079CB65 /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33A2E96F1B6E40D90079CB65 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1818
33B93A6B1AD68BE2003EBDDE /* MenuHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33B93A6A1AD68BE2003EBDDE /* MenuHandler.swift */; };
1919
33C741E01A2B02840072D81E /* NotificationScriptMessageHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33C741DF1A2B02840072D81E /* NotificationScriptMessageHandler.swift */; };
20+
460340C1204891EF00CF147C /* GoofySwift_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 460340BF204891C900CF147C /* GoofySwift_pub.pem */; };
2021
/* End PBXBuildFile section */
2122

2223
/* Begin PBXCopyFilesBuildPhase section */
@@ -46,6 +47,7 @@
4647
33A2E96F1B6E40D90079CB65 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
4748
33B93A6A1AD68BE2003EBDDE /* MenuHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MenuHandler.swift; sourceTree = "<group>"; };
4849
33C741DF1A2B02840072D81E /* NotificationScriptMessageHandler.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NotificationScriptMessageHandler.swift; sourceTree = "<group>"; };
50+
460340BF204891C900CF147C /* GoofySwift_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = GoofySwift_pub.pem; sourceTree = "<group>"; };
4951
/* End PBXFileReference section */
5052

5153
/* Begin PBXFrameworksBuildPhase section */
@@ -100,6 +102,7 @@
100102
isa = PBXGroup;
101103
children = (
102104
33942F9B1A2AE7F700E6D361 /* Info.plist */,
105+
460340BF204891C900CF147C /* GoofySwift_pub.pem */,
103106
);
104107
name = "Supporting Files";
105108
sourceTree = "<group>";
@@ -181,6 +184,7 @@
181184
isa = PBXResourcesBuildPhase;
182185
buildActionMask = 2147483647;
183186
files = (
187+
460340C1204891EF00CF147C /* GoofySwift_pub.pem in Resources */,
184188
3327A60D1AD16EA100B71853 /* WKPreferences+DevExtras.m in Resources */,
185189
33942F9F1A2AE7F700E6D361 /* Images.xcassets in Resources */,
186190
33942FA21A2AE7F700E6D361 /* MainMenu.xib in Resources */,

GoofySwift/GoofySwift_pub.pem

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-----BEGIN PUBLIC KEY-----
2+
MIIGRzCCBDkGByqGSM44BAEwggQsAoICAQChI4RDZy9bCo2f0yWTVGgGbPgvmgjQ
3+
OnkTRJ4SEL6LOzGgXrfV4C9MmUiThv1RMq2HeVbbjQEWUIOJKPCGpOei0lF2jzXd
4+
b+pWLJZ9R4imaYww9XO3m1AQPVdbM8Clh3b/ELfPJY0W8v4kxJWY2jxdGUDei4ee
5+
8plNfJ5vY4cKSO0NpYWhmu6zss7/Lufn03NIOmYrpXotnnwl4IAk8S24FgYOzgHn
6+
PsUwwcSnfGnDBF4yGYZXny3sJfPjywGaEcS3aweJ6939AbCx62l2SHvZQD4DrrcR
7+
rXJNXeP1+lhA3sgY321fV0ceS2MgsQL+LoJE26pOispMMkKjpH6toh3QSCr303+V
8+
SSEU5XH00dOq6L1WMyRKdTiVi0n4eBlfzr80UtSIG5hd+edCa4Xty94EyGI4PyFw
9+
5vzWGkaOjTpki0BKv6IUFb9EmwxNFWxhk1trXkZWsKwImu6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bjR7ElkrK9yXpRJA7IMqJOnYQOtvmLYQefFuwdHI
26+
Kxjk9TqI1UpFgGiUyANava8t6tIVTkd66BtcUG9rmTl/+TASzV2tLqXFIhRjSzJw
27+
tqBt2RzunNPK7M0pCbIK/alU7LyfjzVSMqZuotHGzhsAuq2stJ78UTn0OW8JKF9V
28+
60HE7XJi8qq2KNmhmEceRqbY+60e0sypZCPYuxcKwjwM5OCPau7yeUOAxIOekxXm
29+
rtJwGhu/+etHwwQyH3aFONplElJ7ikHOvyhM8GxRKor72ll96mYfSJYeUWVUYNQf
30+
DY2qxS3f7/5DmxeD+fHGinjgpZKp80aKlqgtaRfRnlcrIPmMxhQ7mPVtMcj163kD
31+
XvGMjfV136b3RmzhpX8eRhWHWNWD1/rB1z/L4riNuBVFsL5bXGlg1xUehxaP78Lr
32+
TzBc+pgL+EOzvbf0W9g8i10VGoNfSjkw9yd+7eBKn9rO539K2OEoGhP4wtKHP0pv
33+
uf5beWi5g5qozNjb1E2YutiaaFjy6a23M3yMGTTZ9RRkKdZAiIYL02CzSVU9XWq2
34+
b7wR8idBttQqKXKdNBFqRGKpIiltdx49TwXdu0orPBU2qoeWbze8dc4sCS1VMUtN
35+
DcjSO3fxwOyO8EnYssmVujbqY3tmgizDQGrH
36+
-----END PUBLIC KEY-----

GoofySwift/Info.plist

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>4.1</string>
20+
<string>4.2</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>1158</string>
24+
<string>1163</string>
2525
<key>LSApplicationCategoryType</key>
2626
<string>public.app-category.social-networking</string>
2727
<key>LSMinimumSystemVersion</key>
@@ -43,6 +43,8 @@
4343
<true/>
4444
<key>SUFeedURL</key>
4545
<string>https://raw.githubusercontent.com/hrubymar10/goofy_swift/master/update_feed.xml</string>
46+
<key>SUPublicDSAKeyFile</key>
47+
<string>GoofySwift_pub.pem</string>
4648
<key>SUScheduledCheckInterval</key>
4749
<integer>86400</integer>
4850
</dict>

Sparkle.framework/Versions/A/Headers/SUAppcast.h

+19-5
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,32 @@
99
#ifndef SUAPPCAST_H
1010
#define SUAPPCAST_H
1111

12-
#import <Foundation/NSURLDownload.h>
12+
#if __has_feature(modules)
13+
@import Foundation;
14+
#else
15+
#import <Foundation/Foundation.h>
16+
#endif
1317
#import "SUExport.h"
1418

19+
NS_ASSUME_NONNULL_BEGIN
20+
1521
@class SUAppcastItem;
1622
SU_EXPORT @interface SUAppcast : NSObject<NSURLDownloadDelegate>
1723

18-
@property (copy) NSString *userAgentString;
19-
@property (copy) NSDictionary *httpHeaders;
24+
@property (copy, nullable) NSString *userAgentString;
2025

21-
- (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))err;
26+
#if __has_feature(objc_generics)
27+
@property (copy, nullable) NSDictionary<NSString *, NSString *> *httpHeaders;
28+
#else
29+
@property (copy, nullable) NSDictionary *httpHeaders;
30+
#endif
2231

23-
@property (readonly, copy) NSArray *items;
32+
- (void)fetchAppcastFromURL:(NSURL *)url inBackground:(BOOL)bg completionBlock:(void (^)(NSError *_Nullable))err;
33+
- (SUAppcast *)copyWithoutDeltaUpdates;
34+
35+
@property (readonly, copy, nullable) NSArray *items;
2436
@end
2537

38+
NS_ASSUME_NONNULL_END
39+
2640
#endif

Sparkle.framework/Versions/A/Headers/SUAppcastItem.h

+11-2
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,25 @@
99
#ifndef SUAPPCASTITEM_H
1010
#define SUAPPCASTITEM_H
1111

12-
#include "SUExport.h"
12+
#if __has_feature(modules)
13+
@import Foundation;
14+
#else
15+
#import <Foundation/Foundation.h>
16+
#endif
17+
#import "SUExport.h"
1318

1419
SU_EXPORT @interface SUAppcastItem : NSObject
1520
@property (copy, readonly) NSString *title;
16-
@property (copy, readonly) NSDate *date;
21+
@property (copy, readonly) NSString *dateString;
1722
@property (copy, readonly) NSString *itemDescription;
1823
@property (strong, readonly) NSURL *releaseNotesURL;
1924
@property (copy, readonly) NSString *DSASignature;
2025
@property (copy, readonly) NSString *minimumSystemVersion;
2126
@property (copy, readonly) NSString *maximumSystemVersion;
2227
@property (strong, readonly) NSURL *fileURL;
28+
@property (nonatomic, readonly) uint64_t contentLength;
2329
@property (copy, readonly) NSString *versionString;
30+
@property (copy, readonly) NSString *osString;
2431
@property (copy, readonly) NSString *displayVersionString;
2532
@property (copy, readonly) NSDictionary *deltaUpdates;
2633
@property (strong, readonly) NSURL *infoURL;
@@ -31,6 +38,8 @@ SU_EXPORT @interface SUAppcastItem : NSObject
3138

3239
@property (getter=isDeltaUpdate, readonly) BOOL deltaUpdate;
3340
@property (getter=isCriticalUpdate, readonly) BOOL criticalUpdate;
41+
@property (getter=isMacOsUpdate, readonly) BOOL macOsUpdate;
42+
@property (getter=isInformationOnlyUpdate, readonly) BOOL informationOnlyUpdate;
3443

3544
// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
3645
@property (readonly, copy) NSDictionary *propertiesDictionary;

Sparkle.framework/Versions/A/Headers/SUErrors.h

+13-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
#ifndef SUERRORS_H
1010
#define SUERRORS_H
1111

12+
#if __has_feature(modules)
13+
@import Foundation;
14+
#else
1215
#import <Foundation/Foundation.h>
16+
#endif
1317
#import "SUExport.h"
1418

1519
/**
@@ -23,10 +27,11 @@ typedef NS_ENUM(OSStatus, SUError) {
2327
SUNoUpdateError = 1001,
2428
SUAppcastError = 1002,
2529
SURunningFromDiskImageError = 1003,
26-
27-
// Downlaod phase errors.
30+
31+
// Download phase errors.
2832
SUTemporaryDirectoryError = 2000,
29-
33+
SUDownloadError = 2001,
34+
3035
// Extraction phase errors.
3136
SUUnarchivingError = 3000,
3237
SUSignatureError = 3001,
@@ -38,7 +43,11 @@ typedef NS_ENUM(OSStatus, SUError) {
3843
SUMissingInstallerToolError = 4003,
3944
SURelaunchError = 4004,
4045
SUInstallationError = 4005,
41-
SUDowngradeError = 4006
46+
SUDowngradeError = 4006,
47+
SUInstallationCancelledError = 4007,
48+
49+
// System phase errors
50+
SUSystemPowerOffError = 5000
4251
};
4352

4453
#endif

Sparkle.framework/Versions/A/Headers/SUStandardVersionComparator.h

+15
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@
99
#ifndef SUSTANDARDVERSIONCOMPARATOR_H
1010
#define SUSTANDARDVERSIONCOMPARATOR_H
1111

12+
#if __has_feature(modules)
13+
@import Foundation;
14+
#else
15+
#import <Foundation/Foundation.h>
16+
#endif
1217
#import "SUExport.h"
1318
#import "SUVersionComparisonProtocol.h"
1419

20+
NS_ASSUME_NONNULL_BEGIN
21+
1522
/*!
1623
Sparkle's default version comparator.
1724
@@ -21,8 +28,15 @@
2128
*/
2229
SU_EXPORT @interface SUStandardVersionComparator : NSObject <SUVersionComparison>
2330

31+
/*!
32+
Initializes a new instance of the standard version comparator.
33+
*/
34+
- (instancetype)init;
35+
2436
/*!
2537
Returns a singleton instance of the comparator.
38+
39+
It is usually preferred to alloc/init new a comparator instead.
2640
*/
2741
+ (SUStandardVersionComparator *)defaultComparator;
2842

@@ -34,4 +48,5 @@ SU_EXPORT @interface SUStandardVersionComparator : NSObject <SUVersionComparison
3448
- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
3549
@end
3650

51+
NS_ASSUME_NONNULL_END
3752
#endif

0 commit comments

Comments
 (0)