Skip to content

Commit

Permalink
Bug fixes for OS X 10.7 - 10.8
Browse files Browse the repository at this point in the history
Autoenter torrent number from pasteboard
Double click makes torrent page to be opened in default browser
Kinozal.tv fix
Free-rutor instead of new-rutor
  • Loading branch information
goooseman committed Sep 15, 2015
1 parent a19f7a4 commit 0ee2b8c
Show file tree
Hide file tree
Showing 247 changed files with 807 additions and 2,147 deletions.
30 changes: 9 additions & 21 deletions Torrent Updater.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
DF1D9EC71BA8587700FC2E9A /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DF1D9EC61BA8587700FC2E9A /* Sparkle.framework */; };
DF1FC16118DD7404006BC200 /* GSTorrUpdate.m in Sources */ = {isa = PBXBuildFile; fileRef = DF1FC16018DD7404006BC200 /* GSTorrUpdate.m */; };
DF1FC16418DD9CC8006BC200 /* GSTorrDownload.m in Sources */ = {isa = PBXBuildFile; fileRef = DF1FC16318DD9CC8006BC200 /* GSTorrDownload.m */; };
DF35600518E4252400216015 /* GSUpdateSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = DF35600318E4252400216015 /* GSUpdateSettings.m */; };
Expand Down Expand Up @@ -43,11 +44,9 @@
DFAF817618E4474E009866BA /* GSAnalytics.m in Sources */ = {isa = PBXBuildFile; fileRef = DFAF817518E4474E009866BA /* GSAnalytics.m */; };
DFAF817718E44D1D009866BA /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DFA0D49A18DEAD0000CAE963 /* IOKit.framework */; };
DFBE38F618E6D12200734B84 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = DFBE38F818E6D12200734B84 /* Localizable.strings */; };
DFBE38FC18E6D1CE00734B84 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DFBE38FB18E6D1CE00734B84 /* Sparkle.framework */; };
DFBE38FD18E6D76C00734B84 /* GSGeneralSettings.xib in Resources */ = {isa = PBXBuildFile; fileRef = DFBE38FF18E6D76C00734B84 /* GSGeneralSettings.xib */; };
DFBE390618E6D91600734B84 /* GSUpdateSettings.xib in Resources */ = {isa = PBXBuildFile; fileRef = DFBE390818E6D91600734B84 /* GSUpdateSettings.xib */; };
DFBE391118E6DB1500734B84 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = DFBE391318E6DB1500734B84 /* MainMenu.xib */; };
DFBE391918E6DF6C00734B84 /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = DFBE38FB18E6D1CE00734B84 /* Sparkle.framework */; };
DFF15A56190E682100639251 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = DFF15A54190E682100639251 /* LICENSE */; };
DFF15A57190E682100639251 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = DFF15A55190E682100639251 /* README.md */; };
/* End PBXBuildFile section */
Expand All @@ -62,20 +61,8 @@
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
DF355FFE18E3F98E00216015 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
DFBE391918E6DF6C00734B84 /* Sparkle.framework in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
DF1D9EC61BA8587700FC2E9A /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = "Torrent Updater/External/Sparkle.framework"; sourceTree = "<group>"; };
DF1FC15F18DD7404006BC200 /* GSTorrUpdate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GSTorrUpdate.h; path = Models/Torrent/GSTorrUpdate.h; sourceTree = "<group>"; };
DF1FC16018DD7404006BC200 /* GSTorrUpdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = GSTorrUpdate.m; path = Models/Torrent/GSTorrUpdate.m; sourceTree = "<group>"; };
DF1FC16218DD9CC8006BC200 /* GSTorrDownload.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GSTorrDownload.h; path = Models/Common/GSTorrDownload.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -144,7 +131,6 @@
DFAF817518E4474E009866BA /* GSAnalytics.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GSAnalytics.m; sourceTree = "<group>"; };
DFBE38F918E6D12700734B84 /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Localizable.strings; sourceTree = "<group>"; };
DFBE38FA18E6D12800734B84 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Localizable.strings; sourceTree = "<group>"; };
DFBE38FB18E6D1CE00734B84 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Sparkle.framework; path = "Torrent Updater/External/Sparkle.framework"; sourceTree = "<group>"; };
DFBE390418E6D78400734B84 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/GSGeneralSettings.xib; sourceTree = "<group>"; };
DFBE390518E6D78A00734B84 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/GSGeneralSettings.xib; sourceTree = "<group>"; };
DFBE390B18E6D92100734B84 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/GSUpdateSettings.xib; sourceTree = "<group>"; };
Expand All @@ -162,8 +148,8 @@
files = (
DFAF817718E44D1D009866BA /* IOKit.framework in Frameworks */,
DFA0D49918DEAC8E00CAE963 /* QuartzCore.framework in Frameworks */,
DFBE38FC18E6D1CE00734B84 /* Sparkle.framework in Frameworks */,
DF6B53CE18D81F76009EA59E /* Cocoa.framework in Frameworks */,
DF1D9EC71BA8587700FC2E9A /* Sparkle.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -212,7 +198,7 @@
DF6B53CC18D81F76009EA59E /* Frameworks */ = {
isa = PBXGroup;
children = (
DFBE38FB18E6D1CE00734B84 /* Sparkle.framework */,
DF1D9EC61BA8587700FC2E9A /* Sparkle.framework */,
DFA0D49A18DEAD0000CAE963 /* IOKit.framework */,
DFA0D49818DEAC8E00CAE963 /* QuartzCore.framework */,
DF6B53CD18D81F76009EA59E /* Cocoa.framework */,
Expand Down Expand Up @@ -387,7 +373,6 @@
DF6B53C618D81F76009EA59E /* Sources */,
DF6B53C718D81F76009EA59E /* Frameworks */,
DF6B53C818D81F76009EA59E /* Resources */,
DF355FFE18E3F98E00216015 /* CopyFiles */,
);
buildRules = (
);
Expand Down Expand Up @@ -423,7 +408,7 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = GS;
LastUpgradeCheck = 0500;
LastUpgradeCheck = 0630;
ORGANIZATIONNAME = "Alexander Gusev";
TargetAttributes = {
DF6B53EA18D81F76009EA59E = {
Expand Down Expand Up @@ -665,7 +650,8 @@
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"${SRCROOT}/Torrent\\ Updater",
"${SRCROOT}/Torrent\\ Updater/External",
"${SRCROOT}/Torrent\\ Updater/External/**",
"$(PROJECT_DIR)",
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "Torrent Updater/Torrent Updater-Prefix.pch";
Expand All @@ -674,6 +660,7 @@
"$(inherited)",
"${SRCROOT}/Torrent\\ Updater/External",
);
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
WRAPPER_EXTENSION = app;
Expand All @@ -697,6 +684,7 @@
"$(inherited)",
"${SRCROOT}/Torrent\\ Updater/External",
);
OTHER_LDFLAGS = "";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
WRAPPER_EXTENSION = app;
Expand Down
1 change: 1 addition & 0 deletions Torrent Updater/External/Sparkle.framework/Modules
1 change: 1 addition & 0 deletions Torrent Updater/External/Sparkle.framework/PrivateHeaders
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,18 @@
#ifndef SUAPPCAST_H
#define SUAPPCAST_H

@class SUAppcastItem;
@interface SUAppcast : NSObject {
NSArray *items;
NSString *userAgentString;
id delegate;
NSMutableData *incrementalData;
}
#import <Foundation/Foundation.h>
#import "SUExport.h"

- (void)fetchAppcastFromURL:(NSURL *)url;
- (void)setDelegate:delegate;
- (void)setUserAgentString:(NSString *)userAgentString;
@class SUAppcastItem;
SU_EXPORT @interface SUAppcast : NSObject<NSURLDownloadDelegate>

- (NSArray *)items;
@property (copy) NSString *userAgentString;
@property (copy) NSDictionary *httpHeaders;

@end
- (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))err;

@interface NSObject (SUAppcastDelegate)
- (void)appcastDidFinishLoading:(SUAppcast *)appcast;
- (void)appcast:(SUAppcast *)appcast failedToLoadWithError:(NSError *)error;
@property (readonly, copy) NSArray *items;
@end

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,34 @@
#ifndef SUAPPCASTITEM_H
#define SUAPPCASTITEM_H

@interface SUAppcastItem : NSObject {
NSString *title;
NSDate *date;
NSString *itemDescription;
NSURL *releaseNotesURL;
NSString *DSASignature;
NSString *minimumSystemVersion;
NSURL *fileURL;
NSString *versionString;
NSString *displayVersionString;
NSDictionary *propertiesDictionary;
}
#import <Foundation/Foundation.h>
#import "SUExport.h"

SU_EXPORT @interface SUAppcastItem : NSObject
@property (copy, readonly) NSString *title;
@property (copy, readonly) NSDate *date;
@property (copy, readonly) NSString *itemDescription;
@property (strong, readonly) NSURL *releaseNotesURL;
@property (copy, readonly) NSString *DSASignature;
@property (copy, readonly) NSString *minimumSystemVersion;
@property (copy, readonly) NSString *maximumSystemVersion;
@property (strong, readonly) NSURL *fileURL;
@property (copy, readonly) NSString *versionString;
@property (copy, readonly) NSString *displayVersionString;
@property (copy, readonly) NSDictionary *deltaUpdates;
@property (strong, readonly) NSURL *infoURL;

// Initializes with data from a dictionary provided by the RSS class.
- initWithDictionary:(NSDictionary *)dict;

- (NSString *)title;
- (NSString *)versionString;
- (NSString *)displayVersionString;
- (NSDate *)date;
- (NSString *)itemDescription;
- (NSURL *)releaseNotesURL;
- (NSURL *)fileURL;
- (NSString *)DSASignature;
- (NSString *)minimumSystemVersion;
- (instancetype)initWithDictionary:(NSDictionary *)dict;
- (instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString **)error;

@property (getter=isDeltaUpdate, readonly) BOOL deltaUpdate;
@property (getter=isCriticalUpdate, readonly) BOOL criticalUpdate;

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

- (NSURL *)infoURL;

@end

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// SUErrors.h
// Sparkle
//
// Created by C.W. Betts on 10/13/14.
// Copyright (c) 2014 Sparkle Project. All rights reserved.
//

#ifndef SUERRORS_H
#define SUERRORS_H

#import <Foundation/Foundation.h>
#import "SUExport.h"

/**
* Error domain used by Sparkle
*/
SU_EXPORT extern NSString *const SUSparkleErrorDomain;

typedef NS_ENUM(OSStatus, SUError) {
// Appcast phase errors.
SUAppcastParseError = 1000,
SUNoUpdateError = 1001,
SUAppcastError = 1002,
SURunningFromDiskImageError = 1003,

// Downlaod phase errors.
SUTemporaryDirectoryError = 2000,

// Extraction phase errors.
SUUnarchivingError = 3000,
SUSignatureError = 3001,

// Installation phase errors.
SUFileCopyFailure = 4000,
SUAuthenticationFailure = 4001,
SUMissingUpdateError = 4002,
SUMissingInstallerToolError = 4003,
SURelaunchError = 4004,
SUInstallationError = 4005,
SUDowngradeError = 4006
};

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// SUExport.h
// Sparkle
//
// Created by Jake Petroules on 2014-08-23.
// Copyright (c) 2014 Sparkle Project. All rights reserved.
//

#ifndef SUEXPORT_H
#define SUEXPORT_H

#ifdef BUILDING_SPARKLE
#define SU_EXPORT __attribute__((visibility("default")))
#else
#define SU_EXPORT
#endif

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// SUStandardVersionComparator.h
// Sparkle
//
// Created by Andy Matuschak on 12/21/07.
// Copyright 2007 Andy Matuschak. All rights reserved.
//

#ifndef SUSTANDARDVERSIONCOMPARATOR_H
#define SUSTANDARDVERSIONCOMPARATOR_H

#import <Foundation/Foundation.h>
#import "SUExport.h"
#import "SUVersionComparisonProtocol.h"

/*!
Sparkle's default version comparator.
This comparator is adapted from MacPAD, by Kevin Ballard.
It's "dumb" in that it does essentially string comparison,
in components split by character type.
*/
SU_EXPORT @interface SUStandardVersionComparator : NSObject <SUVersionComparison>

/*!
Returns a singleton instance of the comparator.
*/
+ (SUStandardVersionComparator *)defaultComparator;

/*!
Compares version strings through textual analysis.
See the implementation for more details.
*/
- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB;
@end

#endif

0 comments on commit 0ee2b8c

Please sign in to comment.