From 55690853a727e7891bc58a2c7945f8dbbb0372a9 Mon Sep 17 00:00:00 2001 From: David Smith Date: Wed, 14 May 2008 00:11:28 -0700 Subject: [PATCH] OK, so aux executables don't work in frameworks. Who knew? :) --- SUBasicUpdateDriver.m | 2 +- SUInstaller.m | 2 +- Sparkle.xcodeproj/project.pbxproj | 14 ++------------ 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m index 750770cb..93b9d831 100644 --- a/SUBasicUpdateDriver.m +++ b/SUBasicUpdateDriver.m @@ -182,7 +182,7 @@ NSString *realRelauncherPath = relaunchPath; if(!relaunchPath || ![[NSFileManager defaultManager] fileExistsAtPath:relaunchPath]) - realRelauncherPath = [[NSBundle bundleForClass:[self class]] pathForAuxiliaryExecutable:@"relaunch"]; + realRelauncherPath = [[NSBundle bundleForClass:[self class]] pathForResource:@"relaunch" ofType:@""]; [NSTask launchedTaskWithLaunchPath:realRelauncherPath arguments:[NSArray arrayWithObjects:[hostBundle bundlePath], [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], nil]]; diff --git a/SUInstaller.m b/SUInstaller.m index e560e681..07bb989b 100644 --- a/SUInstaller.m +++ b/SUInstaller.m @@ -56,7 +56,7 @@ NSString *SUInstallerDelegateKey = @"SUInstallerDelegate"; } else { - NSString *relaunchPathToCopy = [[NSBundle bundleForClass:[self class]] pathForAuxiliaryExecutable:@"relaunch"]; + NSString *relaunchPathToCopy = [[NSBundle bundleForClass:[self class]] pathForResource:@"relaunch" ofType:@""]; NSString *targetPath = [NSTemporaryDirectory() stringByAppendingPathComponent:[relaunchPathToCopy lastPathComponent]]; if([[NSFileManager defaultManager] copyPath:relaunchPathToCopy toPath:targetPath handler:nil]) *relaunchPath = targetPath; diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 714b0128..fbb87ad2 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -95,7 +95,7 @@ 61F83F740DBFE141006FDD30 /* SUBasicUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */; }; DAAEFC9B0DA5722F0051E0D0 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; DAAEFD4E0DA572330051E0D0 /* relaunch.m in Sources */ = {isa = PBXBuildFile; fileRef = 613242130CD06CEF00106AA4 /* relaunch.m */; }; - DAAEFD510DA572550051E0D0 /* relaunch in CopyFiles */ = {isa = PBXBuildFile; fileRef = DAAEFC960DA571DF0051E0D0 /* relaunch */; }; + DAAEFD510DA572550051E0D0 /* relaunch in Resources */ = {isa = PBXBuildFile; fileRef = DAAEFC960DA571DF0051E0D0 /* relaunch */; }; FAEFA2F70D94AA7500472538 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; FAEFA2F80D94AA7900472538 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; FAEFA3040D94AB3400472538 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; @@ -144,16 +144,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 63F107920DDABE9E0073D493 /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = relaunch; - dstSubfolderSpec = 6; - files = ( - DAAEFD510DA572550051E0D0 /* relaunch in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ @@ -644,7 +634,6 @@ 8DC2EF520486A6940098B216 /* Resources */, 8DC2EF540486A6940098B216 /* Sources */, 8DC2EF560486A6940098B216 /* Frameworks */, - 63F107920DDABE9E0073D493 /* CopyFiles */, ); buildRules = ( ); @@ -749,6 +738,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + DAAEFD510DA572550051E0D0 /* relaunch in Resources */, 610D5A750A1670A4004AAD9C /* SUStatus.nib in Resources */, 61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */, 61AAE8290A321A8000D8810D /* SUAutomaticUpdateAlert.nib in Resources */,