mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
the delta updates that are available for a given version. The appcast would look a little something like the following: <enclosure url="http://you.com/app/Your Great App 2.0.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:dsaSignature="BAFJW4B6B1K1JyW30nbkBwainOzrN6EQuAh" /> <sparkle:deltas> <enclosure url="http://you.com/app/Your Great App 1.5 to 2.0.delta" sparkle:version="2.0" sparkle:deltaFrom="1.5" length="642381" type="application/octet-stream" sparkle:dsaSignature="MCa1JyW30nbkBwaC0CFBfeinOzrN6EQuAh=" /> <enclosure url="http://you.com/app/Your Great App 1.4 to 2.0.delta" sparkle:version="2.0" sparkle:deltaFrom="1.4" length="928231" type="application/octet-stream" sparkle:dsaSignature="B6B1K1JyW30nbkBDBfeinOAszrN6Ea1JyW3" /> </sparkle:deltas>
61 lines
1.6 KiB
Objective-C
61 lines
1.6 KiB
Objective-C
//
|
|
// SUBasicUpdateDriver.h
|
|
// Sparkle,
|
|
//
|
|
// Created by Andy Matuschak on 4/23/08.
|
|
// Copyright 2008 Andy Matuschak. All rights reserved.
|
|
//
|
|
|
|
#ifndef SUBASICUPDATEDRIVER_H
|
|
#define SUBASICUPDATEDRIVER_H
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "SUUpdateDriver.h"
|
|
|
|
@class SUAppcastItem, SUUnarchiver, SUAppcast, SUUnarchiver, SUHost;
|
|
@interface SUBasicUpdateDriver : SUUpdateDriver {
|
|
SUAppcastItem *updateItem;
|
|
SUAppcastItem *nonDeltaUpdateItem;
|
|
|
|
NSURLDownload *download;
|
|
NSString *downloadPath;
|
|
|
|
NSString *relaunchPath;
|
|
}
|
|
|
|
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host;
|
|
|
|
- (void)appcastDidFinishLoading:(SUAppcast *)ac;
|
|
- (void)appcast:(SUAppcast *)ac failedToLoadWithError:(NSError *)error;
|
|
|
|
- (BOOL)isItemNewer:(SUAppcastItem *)ui;
|
|
- (BOOL)hostSupportsItem:(SUAppcastItem *)ui;
|
|
- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui;
|
|
- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui;
|
|
- (void)didFindValidUpdate;
|
|
- (void)didNotFindUpdate;
|
|
|
|
- (void)downloadUpdate;
|
|
- (void)download:(NSURLDownload *)d decideDestinationWithSuggestedFilename:(NSString *)name;
|
|
- (void)downloadDidFinish:(NSURLDownload *)d;
|
|
- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error;
|
|
|
|
- (void)extractUpdate;
|
|
- (void)unarchiverDidFinish:(SUUnarchiver *)ua;
|
|
- (void)unarchiverDidFail:(SUUnarchiver *)ua;
|
|
- (void)failedToApplyDeltaUpdate;
|
|
|
|
- (void)installUpdate;
|
|
- (void)installerFinishedForHost:(SUHost *)host;
|
|
- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error;
|
|
|
|
- (void)relaunchHostApp;
|
|
- (void)cleanUp;
|
|
|
|
- (void)abortUpdate;
|
|
- (void)abortUpdateWithError:(NSError *)error;
|
|
|
|
@end
|
|
|
|
#endif
|