Download path should be full path

This commit is contained in:
Deadpikle committed 2017-12-20 12:25:42 -05:00
1 parent 9c301bfbf3
commit 7df50ccfd3
4 files changed
+9 -7

No files matched your search

+7
View File
@@ -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) {
-5
View File
@@ -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;
+1 -1
View File
@@ -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
+1 -1
View File
@@ -15,7 +15,7 @@ extern NSString *const SUUpdateDriverFinishedNotification;
@class SUHost, SUUpdater;
@protocol SUUpdaterPrivate;
@interface SUUpdateDriver : NSObject <NSURLDownloadDelegate>
@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