andymatuschak/TestMigration — Issue #40: Subclass of SUBasicUpdateDriver can't find relauncher
Author: andymatuschak
Created: 2011-10-23 16:36:34+00:00
State: open

***Jordy/Jediknil (jediknil)** [reported (on Launchpad)](https://bugs.launchpad.net/sparkle/+bug/511784) on' 2010-01-24:*

When I subclass SUBasicUpdateDriver /outside/ of the Sparkle framework,
it can no longer find the "relaunch" executable to copy to
NSTemporaryDirectory(). This is a particularly bad problem because it
then has a nil path, and the file manager removes the temp folder
completely, before the update copy is performed!

Fix: in -[SUBasicUpdateDriver installUpdate], replace [NSBundle
bundleForClass:[self class]] with SPARKLE_BUNDLE.

Sparkle v1.5b6, used for a preference pane.