mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Merge branch 'uliwitness'
* uliwitness: Revert "Switch off secure updates for now" Shut up all of Xcode's complaints. Don't look at error variables if result says success. Less warnings. Shut up some warnings & make build with newer Xcode. Less unsafety with format strings. Switch off secure updates for now Quick hack to make this build again. Should probably just move to Sparkle mainline, now that they're halfway current. Satisfy some overly picky compilers. Make this build on 10.7. Might break building on earlier OSes. Removed the pt_PT localization from Uli's branch, since it was largely untranslated, and used the one from master instead. Fixed layout of localization XIBs
This commit is contained in:
commit
76cca58776
9 files changed
+77
-5
No files matched your search
@@ -1,3 +1,2 @@
|
||||
#include "ConfigFrameworkRelease.xcconfig"
|
||||
|
||||
GCC_ENABLE_OBJC_GC = supported
|
||||
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#/bin/bash
|
||||
|
||||
MY_PATH="`dirname $0`"
|
||||
cd "$MY_PATH/../"
|
||||
|
||||
xcodebuild -project Sparkle.xcodeproj -target finish_installation -configuration Release build
|
||||
|
||||
cd "$MY_PATH/../build/Release/"
|
||||
|
||||
/usr/bin/tar -czf "$MY_PATH/finish_installation.app.tar.gz" "finish_installation.app"
|
||||
Executable
+25
@@ -0,0 +1,25 @@
|
||||
// Header that shouldn't be included in anything but the Sparkle finish_installation tool
|
||||
// because it includes files also used in EyeTV, but doesn't need to be thread safe
|
||||
// as it's a single-threaded process anyway.
|
||||
|
||||
#ifndef EYETV
|
||||
#define EYETV 0
|
||||
#endif
|
||||
#ifndef __TOAST__
|
||||
#define __TOAST__ 0
|
||||
#endif
|
||||
#ifndef TURBO
|
||||
#define TURBO 0
|
||||
#endif
|
||||
|
||||
#if !EYETV && !__TOAST__ && !TURBO
|
||||
|
||||
#define ThreadSafePreferences_CopyAppValue CFPreferencesCopyAppValue
|
||||
#define ThreadSafePreferences_SetValue CFPreferencesSetValue
|
||||
#define ThreadSafePreferences_Synchronize CFPreferencesSynchronize
|
||||
|
||||
#else
|
||||
|
||||
#error This header shouldn't be included here!
|
||||
|
||||
#endif
|
||||
@@ -24,6 +24,16 @@
|
||||
@interface SUBasicUpdateDriver () <NSURLDownloadDelegate>; @end
|
||||
|
||||
|
||||
@interface SUBasicUpdateDriver () <NSURLDownloadDelegate>
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@interface SUBasicUpdateDriver () <NSURLDownloadDelegate>
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@implementation SUBasicUpdateDriver
|
||||
|
||||
- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost
|
||||
|
||||
@@ -506,7 +506,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
||||
// We better move the old version back to its old location
|
||||
if( hadFileAtDest )
|
||||
success = [manager moveItemAtPath:tmpPath toPath:dst error:error];
|
||||
if (error != NULL)
|
||||
if (!success && error != NULL)
|
||||
*error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUFileCopyFailure userInfo:[NSDictionary dictionaryWithObject:[NSString stringWithFormat:@"Couldn't move %@ to %@.", dst, tmpPath] forKey:NSLocalizedDescriptionKey]];
|
||||
return NO;
|
||||
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
|
||||
- (void)abortUpdateWithError:(NSError *)error
|
||||
{
|
||||
NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat:[error localizedDescription]];
|
||||
NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat: @"%@", [error localizedDescription]];
|
||||
[self showModalAlert:alert];
|
||||
[super abortUpdateWithError:error];
|
||||
}
|
||||
|
||||
@@ -145,6 +145,10 @@
|
||||
// Constants:
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
#ifndef DEBUG
|
||||
#define DEBUG 0
|
||||
#endif
|
||||
|
||||
// Define some minimum intervals to avoid DOS-like checking attacks. These are in seconds.
|
||||
#if defined(DEBUG) && DEBUG && 0
|
||||
#define SU_MIN_CHECK_INTERVAL 60
|
||||
|
||||
@@ -909,7 +909,7 @@
|
||||
0867D690FE84028FC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0450;
|
||||
LastUpgradeCheck = 0460;
|
||||
};
|
||||
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
@@ -1368,6 +1368,8 @@
|
||||
baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
OTHER_CFLAGS = "-DDEBUG";
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1376,18 +1378,23 @@
|
||||
baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
1DEB91B208733DA50010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB91B308733DA50010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -1405,6 +1412,7 @@
|
||||
GCC_PREFIX_HEADER = finish_installation.pch;
|
||||
INFOPLIST_FILE = "finish_installation-Info.plist";
|
||||
INSTALL_PATH = "$(HOME)/Applications";
|
||||
OTHER_CFLAGS = "-DDEBUG";
|
||||
OTHER_LDFLAGS = (
|
||||
"-framework",
|
||||
Foundation,
|
||||
@@ -1412,6 +1420,7 @@
|
||||
AppKit,
|
||||
);
|
||||
PRODUCT_NAME = finish_installation;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1435,6 +1444,7 @@
|
||||
AppKit,
|
||||
);
|
||||
PRODUCT_NAME = finish_installation;
|
||||
SDKROOT = macosx;
|
||||
ZERO_LINK = NO;
|
||||
};
|
||||
name = Release;
|
||||
@@ -1457,6 +1467,7 @@
|
||||
AppKit,
|
||||
);
|
||||
PRODUCT_NAME = finish_installation;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = "Release (GC dual-mode; 10.5+)";
|
||||
};
|
||||
@@ -1464,6 +1475,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */;
|
||||
buildSettings = {
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1471,6 +1483,7 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */;
|
||||
buildSettings = {
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -1478,12 +1491,15 @@
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */;
|
||||
buildSettings = {
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = "Release (GC dual-mode; 10.5+)";
|
||||
};
|
||||
61072EAD0DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.5;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = "Release (GC dual-mode; 10.5+)";
|
||||
};
|
||||
@@ -1492,6 +1508,7 @@
|
||||
baseConfigurationReference = 61072EB20DF2640C008FE88B /* ConfigFrameworkReleaseGCSupport.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = "Release (GC dual-mode; 10.5+)";
|
||||
};
|
||||
@@ -1500,6 +1517,7 @@
|
||||
baseConfigurationReference = 615409A8103BA09100125AF1 /* ConfigTestAppReleaseGCSupport.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = "Release (GC dual-mode; 10.5+)";
|
||||
};
|
||||
@@ -1508,6 +1526,7 @@
|
||||
baseConfigurationReference = FA302AFD109D13190060F891 /* ConfigUnitTestReleaseGCSupport.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = "Release (GC dual-mode; 10.5+)";
|
||||
};
|
||||
@@ -1516,6 +1535,7 @@
|
||||
baseConfigurationReference = FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1524,6 +1544,7 @@
|
||||
baseConfigurationReference = FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
@@ -1532,6 +1553,8 @@
|
||||
baseConfigurationReference = FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
OTHER_CFLAGS = "-DDEBUG";
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
@@ -1540,6 +1563,7 @@
|
||||
baseConfigurationReference = FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */;
|
||||
buildSettings = {
|
||||
COMBINE_HIDPI_IMAGES = YES;
|
||||
SDKROOT = macosx;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0450"
|
||||
LastUpgradeVersion = "0460"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
||||
Reference in new issue
Block a user