diff --git a/Sparkle/SPUDownloader.m b/Sparkle/SPUDownloader.m index 13b57ee6..787438c2 100755 --- a/Sparkle/SPUDownloader.m +++ b/Sparkle/SPUDownloader.m @@ -43,10 +43,12 @@ - (void)startPersistentDownloadWithRequest:(SPUURLRequest *)__unused request bundleIdentifier:(NSString *)__unused bundleIdentifier desiredFilename:(NSString *)__unused desiredFilename { + } - (void)startTemporaryDownloadWithRequest:(SPUURLRequest *)__unused request { + } - (void)enableAutomaticTermination @@ -74,6 +76,11 @@ } +- (void)downloadDidFinish +{ + +} + -(void)downloadDidFinishWithData:(SPUDownloadData*)data { switch (self.mode) { diff --git a/Sparkle/SUBasicUpdateDriver.h b/Sparkle/SUBasicUpdateDriver.h index 937e0f9a..2949ce42 100644 --- a/Sparkle/SUBasicUpdateDriver.h +++ b/Sparkle/SUBasicUpdateDriver.h @@ -38,11 +38,6 @@ - (void)downloaderDidFinishWithTemporaryDownloadData:(SPUDownloadData * _Nullable)downloadData; - (void)downloaderDidFailWithError:(NSError *)error; -/* -- (void)download:(NSURLDownload *)d decideDestinationWithSuggestedFilename:(NSString *)name; -- (void)downloadDidFinish:(NSURLDownload *)d; -- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error;*/ - - (void)extractUpdate; - (void)failedToApplyDeltaUpdate; diff --git a/Sparkle/SUBasicUpdateDriver.m b/Sparkle/SUBasicUpdateDriver.m index 1ef605ca..7044fe88 100644 --- a/Sparkle/SUBasicUpdateDriver.m +++ b/Sparkle/SUBasicUpdateDriver.m @@ -293,7 +293,7 @@ - (void)downloaderDidSetDestinationName:(NSString *)destinationName temporaryDirectory:(NSString *)temporaryDirectory { self.tempDir = temporaryDirectory; - self.downloadPath = destinationName; // TODO: does this need to be a full path? + self.downloadPath = [temporaryDirectory stringByAppendingPathComponent:destinationName]; } - (void)downloaderDidReceiveExpectedContentLength:(int64_t)__unused expectedContentLength diff --git a/Sparkle/SUUpdateDriver.h b/Sparkle/SUUpdateDriver.h index 7c276efd..0be22a08 100644 --- a/Sparkle/SUUpdateDriver.h +++ b/Sparkle/SUUpdateDriver.h @@ -15,7 +15,7 @@ extern NSString *const SUUpdateDriverFinishedNotification; @class SUHost, SUUpdater; @protocol SUUpdaterPrivate; -@interface SUUpdateDriver : NSObject +@interface SUUpdateDriver : NSObject // We only have SUUpdater* forward declared intentionally (i.e, not #import'ing SUUpdater.h in the update drivers) // This is so we can minimize what we can access using SUUpdaterPrivate