Fixing #511784: Subclass of SUBasicUpdateDriver can't find relauncher

This commit is contained in:
Andy Matuschak committed 2010-01-24 10:58:43 -08:00
1 parent 9bc63ccf7e
commit 5cdfffa521
1 file changed
+1 -1
+1 -1
View File
@@ -254,7 +254,7 @@
[[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;