mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Fixed a bug that could occur when the app has a localized CFBundleName. Thanks, Chuck Houpt.
This commit is contained in:
1 parent
b2eab97d73
commit
cd7ef45be0
5 files changed
+6
-7
No files matched your search
+1
-1
@@ -532,7 +532,7 @@
|
||||
|
||||
if (!newAppDownloadPath || ![[NSFileManager defaultManager] fileExistsAtPath:newAppDownloadPath])
|
||||
{
|
||||
[NSException raise:@"SUInstallException" format:@"The update archive didn't contain an application with the proper name: %@. Remember, the updated app's file name must be identical to {CFBundleName}.app", [SUInfoValueForKey(@"CFBundleName") stringByAppendingPathExtension:@"app"]];
|
||||
[NSException raise:@"SUInstallException" format:@"The update archive didn't contain an application with the proper name: %@. Remember, the updated app's file name must be identical to {CFBundleString}.app", [SUUnlocalizedInfoValueForKey(@"CFBundleName") stringByAppendingPathExtension:@"app"]];
|
||||
}
|
||||
}
|
||||
@catch(NSException *e)
|
||||
|
||||
+1
-5
@@ -14,11 +14,7 @@
|
||||
|
||||
id SUUnlocalizedInfoValueForKey(NSString *key)
|
||||
{
|
||||
// Okay, but if it isn't there, let's use the general one.
|
||||
id value = [[[NSBundle mainBundle] infoDictionary] valueForKey:key];
|
||||
if (!value)
|
||||
return SUInfoValueForKey(key);
|
||||
return value;
|
||||
return [[[NSBundle mainBundle] infoDictionary] objectForKey:key];
|
||||
}
|
||||
|
||||
id SUInfoValueForKey(NSString *key)
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
isa = PBXContainerItemProxy;
|
||||
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
|
||||
proxyType = 1;
|
||||
remoteGlobalIDString = 6132423F0CD06DB000106AA4 /* Relaunch Tool */;
|
||||
remoteGlobalIDString = 6132423F0CD06DB000106AA4;
|
||||
remoteInfo = "Relaunch Tool";
|
||||
};
|
||||
61B5F91B09C4CF7200B25A18 /* PBXContainerItemProxy */ = {
|
||||
@@ -786,6 +786,7 @@
|
||||
DYLIB_COMPATIBILITY_VERSION = 1;
|
||||
DYLIB_CURRENT_VERSION = 1;
|
||||
FRAMEWORK_VERSION = A;
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = NO;
|
||||
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
|
||||
|
||||
Binary file not shown.
@@ -8,6 +8,8 @@
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>Sparkle</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Sparkle Test App</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.andymatuschak.SparkleTestApp</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
|
||||
Reference in new issue
Block a user