Skip to content

Commit

Permalink
Fixing #511784: Subclass of SUBasicUpdateDriver can't find relauncher
Browse files Browse the repository at this point in the history
  • Loading branch information
andymatuschak committed Jan 24, 2010
1 parent 9bc63cc commit 5cdfffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SUBasicUpdateDriver.m
Expand Up @@ -254,7 +254,7 @@ - (void)installUpdate
[[updater delegate] updater:updater willInstallUpdate:updateItem];

// Copy the relauncher into a temporary directory so we can get to it after the new version's installed.
NSString *relaunchPathToCopy = [[NSBundle bundleForClass:[self class]] pathForResource:@"relaunch" ofType:@""];
NSString *relaunchPathToCopy = [SPARKLE_BUNDLE pathForResource:@"relaunch" ofType:@""];
NSString *targetPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]];
// Only the paranoid survive: if there's already a stray copy of relaunch there, we would have problems.
NSError *error = nil;
Expand Down

0 comments on commit 5cdfffa

Please sign in to comment.