mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Revert "Register update with Launch Services; see #508"
This reverts commit a7d11f88c7.
Fixes #525
This commit is contained in:
1 parent
e7786dde97
commit
ea07f716b8
1 file changed
-14
Vendored
-14
@@ -162,24 +162,10 @@ static NSString *sUpdateFolder = nil;
|
||||
}
|
||||
}
|
||||
|
||||
+ (void)registerWithLaunchServices:(NSString *)installationPath
|
||||
{
|
||||
NSURL* installationURL = [NSURL fileURLWithPath:installationPath];
|
||||
if (installationURL != nil)
|
||||
{
|
||||
OSStatus registerStatus = LSRegisterURL((__bridge CFURLRef)installationURL,true);
|
||||
if (registerStatus != noErr)
|
||||
{
|
||||
SULog(@"Error: LSRegisterURL returned %d", registerStatus);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+ (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result host:(SUHost *)host error:(NSError *)error delegate:(id<SUInstallerDelegate>)delegate
|
||||
{
|
||||
if (result)
|
||||
{
|
||||
[self registerWithLaunchServices:installationPath];
|
||||
[self mdimportInstallationPath:installationPath];
|
||||
if ([delegate respondsToSelector:@selector(installerFinishedForHost:)]) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
|
||||
Reference in new issue
Block a user