Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (22 sloc) 0.856 kB
49e3d81 Major refactoring, yay.
andym authored
1 //
2 // SUPlainInstaller.m
3 // Sparkle
4 //
5 // Created by Andy Matuschak on 4/10/08.
6 // Copyright 2008 Andy Matuschak. All rights reserved.
7 //
8
9 #import "SUPlainInstaller.h"
10
11
12 @implementation SUPlainInstaller
13
14 + (void)installPath:(NSString *)path overHostBundle:(NSBundle *)bundle delegate:delegate
15 {
16 NSError *error;
17 BOOL result = [[NSFileManager defaultManager] copyPathWithAuthentication:path overPath:[bundle bundlePath] error:&error];
18 [self _finishInstallationWithResult:result hostBundle:bundle error:error delegate:delegate];
19 }
20
21 + (void)performInstallationWithInfo:(NSDictionary *)info
22 {
0e99700 Added fetching of CFBundleName as a fallback for CFBundleDisplayName …
andym authored
23 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
24
49e3d81 Major refactoring, yay.
andym authored
25 [self installPath:[info objectForKey:SUInstallerPathKey] overHostBundle:[info objectForKey:SUInstallerHostBundleKey] delegate:[info objectForKey:SUInstallerDelegateKey]];
0e99700 Added fetching of CFBundleName as a fallback for CFBundleDisplayName …
andym authored
26
27 [pool release];
49e3d81 Major refactoring, yay.
andym authored
28 }
29
30 @end
Something went wrong with that request. Please try again.