mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Delta updates code uses libxar, which is only available in 10.5+, and Sparkle framework fails to load on 10.4 because of it. Instead of having hard dependency on libxar, Sparkle now links with it weakly and checks for its availability at runtime. This required bumping Xcode project compatibility to 3.2 to get weak linking support. With this change, delta updates are still not supported on 10.4, but Sparkle runs there again and just ignores the deltas. This should be good enough given 10.4's age and shrinking user base.
27 lines
664 B
Objective-C
27 lines
664 B
Objective-C
//
|
|
// SUBinaryDeltaCommon.h
|
|
// Sparkle
|
|
//
|
|
// Created by Mark Rowe on 2009-06-01.
|
|
// Copyright 2009 Mark Rowe. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUBINARYDELTACOMMON_H
|
|
#define SUBINARYDELTACOMMON_H
|
|
|
|
#include <fts.h>
|
|
|
|
@class NSString;
|
|
@class NSData;
|
|
|
|
extern int binaryDeltaSupported(void);
|
|
extern int compareFiles(const FTSENT **a, const FTSENT **b);
|
|
extern NSData *hashOfFile(FTSENT *ent);
|
|
extern NSString *hashOfTree(NSString *path);
|
|
extern void removeTree(NSString *path);
|
|
extern void copyTree(NSString *source, NSString *dest);
|
|
extern NSString *pathRelativeToDirectory(NSString *directory, NSString *path);
|
|
NSString *temporaryFilename(NSString *base);
|
|
|
|
#endif
|