mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-29 05:24:26 +00:00
Make sure launch path is not nil before setting it
If we don't do this, -[NSTask setLaunchPath:] will complain
This commit is contained in:
1 parent
d26f94fab1
commit
b7073dc3ce
1 file changed
+3
-2
@@ -112,8 +112,9 @@ static NSString * const UPDATED_VERSION = @"2.0";
|
||||
|
||||
// Sign our update
|
||||
NSTask *signUpdateTask = [[NSTask alloc] init];
|
||||
signUpdateTask.launchPath = [mainBundle pathForResource:@"sign_update" ofType:@""];
|
||||
assert(signUpdateTask.launchPath != nil);
|
||||
NSString *signUpdatePath = [mainBundle pathForResource:@"sign_update" ofType:@""];
|
||||
assert(signUpdatePath != nil);
|
||||
signUpdateTask.launchPath = signUpdatePath;
|
||||
|
||||
NSURL *archiveURL = [serverDirectoryURL URLByAppendingPathComponent:zipName];
|
||||
signUpdateTask.arguments = @[archiveURL, privateKeyPath];
|
||||
|
||||
Reference in new issue
Block a user