Skip to content

Commit

Permalink
Skip validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lujjjh committed Jun 8, 2022
1 parent c5bbe10 commit eb42b8c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Autoupdate/SUCodeSigningVerifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ @implementation SUCodeSigningVerifier

+ (BOOL)codeSignatureAtBundleURL:(NSURL *)oldBundleURL matchesSignatureAtBundleURL:(NSURL *)newBundleURL error:(NSError * __autoreleasing *)error
{
return YES;

OSStatus result;
SecRequirementRef requirement = NULL;
SecStaticCodeRef staticCode = NULL;
Expand Down
8 changes: 4 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import PackageDescription

// Version is technically not required here, SPM doesn't check
let version = "2.0.0"
let version = "2.0.2"
// Tag is required to point towards the right asset. SPM requires the tag to follow semantic versioning to be able to resolve it.
let tag = "2.0.0"
let checksum = "bed3158a836fd946bc910f9643ba7878e53ccd05538291f599d8a75456f26818"
let url = "https://github.com/sparkle-project/Sparkle/releases/download/\(tag)/Sparkle-for-Swift-Package-Manager.zip"
let tag = "2.0.2"
let checksum = "a545518bb5221ac025c694baba3aa3b2fb236dd217c8a01ae3d2be15fea68042"
let url = "https://github.com/lujjjh/Sparkle/releases/download/\(tag)/Sparkle-for-Swift-Package-Manager.zip"

let package = Package(
name: "Sparkle",
Expand Down
6 changes: 6 additions & 0 deletions Sparkle.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3961,6 +3961,8 @@
isa = XCBuildConfiguration;
baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */;
buildSettings = {
CURRENT_PROJECT_VERSION = 2012;
MARKETING_VERSION = 2.0.2;
};
name = Coverage;
};
Expand Down Expand Up @@ -4001,13 +4003,17 @@
isa = XCBuildConfiguration;
baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */;
buildSettings = {
CURRENT_PROJECT_VERSION = 2012;
MARKETING_VERSION = 2.0.2;
};
name = Debug;
};
1DEB91AF08733DA50010E9CD /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = FA1941D10D94A70100DD942E /* ConfigFramework.xcconfig */;
buildSettings = {
CURRENT_PROJECT_VERSION = 2012;
MARKETING_VERSION = 2.0.2;
};
name = Release;
};
Expand Down
2 changes: 2 additions & 0 deletions Sparkle/SUUpdateValidator.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ - (BOOL)validateWithUpdateDirectory:(NSString *)updateDirectory error:(NSError *
*/
- (BOOL)validateUpdateForHost:(SUHost *)host downloadedToPath:(NSString *)downloadedPath newBundleURL:(NSURL *)newBundleURL signatures:(SUSignatures *)signatures error:(NSError * __autoreleasing *)error
{
return YES;

NSBundle *newBundle = [NSBundle bundleWithURL:newBundleURL];
if (newBundle == nil) {
if (error != NULL) {
Expand Down
2 changes: 1 addition & 1 deletion Sparkle/Sparkle-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
Expand Down

0 comments on commit eb42b8c

Please sign in to comment.