diff --git a/TestApplication/After Update/Sparkle Updated Test App.xcodeproj/project.pbxproj b/TestApplication/After Update/Sparkle Updated Test App.xcodeproj/project.pbxproj new file mode 100644 index 00000000..963e475f --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App.xcodeproj/project.pbxproj @@ -0,0 +1,283 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 5A195FB01983E85D000BE570 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A195FAF1983E85D000BE570 /* main.m */; }; + 5A195FB31983E85D000BE570 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A195FB21983E85D000BE570 /* AppDelegate.m */; }; + 5A195FB51983E85D000BE570 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5A195FB41983E85D000BE570 /* Images.xcassets */; }; + 5A195FB81983E85D000BE570 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5A195FB61983E85D000BE570 /* MainMenu.xib */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 5A195FAA1983E85D000BE570 /* Sparkle Updated Test App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Sparkle Updated Test App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 5A195FAE1983E85D000BE570 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 5A195FAF1983E85D000BE570 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 5A195FB11983E85D000BE570 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + 5A195FB21983E85D000BE570 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + 5A195FB41983E85D000BE570 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 5A195FB71983E85D000BE570 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 5A195FA71983E85D000BE570 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 5A195FA11983E85D000BE570 = { + isa = PBXGroup; + children = ( + 5A195FAC1983E85D000BE570 /* Sparkle Updated Test App */, + 5A195FAB1983E85D000BE570 /* Products */, + ); + sourceTree = ""; + }; + 5A195FAB1983E85D000BE570 /* Products */ = { + isa = PBXGroup; + children = ( + 5A195FAA1983E85D000BE570 /* Sparkle Updated Test App.app */, + ); + name = Products; + sourceTree = ""; + }; + 5A195FAC1983E85D000BE570 /* Sparkle Updated Test App */ = { + isa = PBXGroup; + children = ( + 5A195FB11983E85D000BE570 /* AppDelegate.h */, + 5A195FB21983E85D000BE570 /* AppDelegate.m */, + 5A195FB61983E85D000BE570 /* MainMenu.xib */, + 5A195FAD1983E85D000BE570 /* Supporting Files */, + ); + path = "Sparkle Updated Test App"; + sourceTree = ""; + }; + 5A195FAD1983E85D000BE570 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 5A195FB41983E85D000BE570 /* Images.xcassets */, + 5A195FAE1983E85D000BE570 /* Info.plist */, + 5A195FAF1983E85D000BE570 /* main.m */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 5A195FA91983E85D000BE570 /* Sparkle Updated Test App */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5A195FC71983E85D000BE570 /* Build configuration list for PBXNativeTarget "Sparkle Updated Test App" */; + buildPhases = ( + 5A195FA61983E85D000BE570 /* Sources */, + 5A195FA71983E85D000BE570 /* Frameworks */, + 5A195FA81983E85D000BE570 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Sparkle Updated Test App"; + productName = "Sparkle Updated Test App"; + productReference = 5A195FAA1983E85D000BE570 /* Sparkle Updated Test App.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 5A195FA21983E85D000BE570 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0600; + ORGANIZATIONNAME = "Sparkle-project"; + TargetAttributes = { + 5A195FA91983E85D000BE570 = { + CreatedOnToolsVersion = 6.0; + }; + }; + }; + buildConfigurationList = 5A195FA51983E85D000BE570 /* Build configuration list for PBXProject "Sparkle Updated Test App" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 5A195FA11983E85D000BE570; + productRefGroup = 5A195FAB1983E85D000BE570 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 5A195FA91983E85D000BE570 /* Sparkle Updated Test App */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 5A195FA81983E85D000BE570 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5A195FB51983E85D000BE570 /* Images.xcassets in Resources */, + 5A195FB81983E85D000BE570 /* MainMenu.xib in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 5A195FA61983E85D000BE570 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5A195FB31983E85D000BE570 /* AppDelegate.m in Sources */, + 5A195FB01983E85D000BE570 /* main.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 5A195FB61983E85D000BE570 /* MainMenu.xib */ = { + isa = PBXVariantGroup; + children = ( + 5A195FB71983E85D000BE570 /* Base */, + ); + name = MainMenu.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 5A195FC51983E85D000BE570 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.7; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + }; + name = Debug; + }; + 5A195FC61983E85D000BE570 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGN_IDENTITY = "-"; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + MACOSX_DEPLOYMENT_TARGET = 10.7; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = macosx; + }; + name = Release; + }; + 5A195FC81983E85D000BE570 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = Sparkle; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Sparkle Updated Test App/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Debug; + }; + 5A195FC91983E85D000BE570 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = Sparkle; + COMBINE_HIDPI_IMAGES = YES; + INFOPLIST_FILE = "Sparkle Updated Test App/Info.plist"; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; + PRODUCT_NAME = "$(TARGET_NAME)"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 5A195FA51983E85D000BE570 /* Build configuration list for PBXProject "Sparkle Updated Test App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5A195FC51983E85D000BE570 /* Debug */, + 5A195FC61983E85D000BE570 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5A195FC71983E85D000BE570 /* Build configuration list for PBXNativeTarget "Sparkle Updated Test App" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5A195FC81983E85D000BE570 /* Debug */, + 5A195FC91983E85D000BE570 /* Release */, + ); + defaultConfigurationIsVisible = 0; + }; +/* End XCConfigurationList section */ + }; + rootObject = 5A195FA21983E85D000BE570 /* Project object */; +} diff --git a/TestApplication/After Update/Sparkle Updated Test App/AppDelegate.h b/TestApplication/After Update/Sparkle Updated Test App/AppDelegate.h new file mode 100644 index 00000000..ac12a211 --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// Sparkle Updated Test App +// +// Created by Kornel on 26/07/2014. +// Copyright (c) 2014 Sparkle-project. All rights reserved. +// + +#import + +@interface AppDelegate : NSObject + + +@end + diff --git a/TestApplication/After Update/Sparkle Updated Test App/AppDelegate.m b/TestApplication/After Update/Sparkle Updated Test App/AppDelegate.m new file mode 100644 index 00000000..54538ff5 --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App/AppDelegate.m @@ -0,0 +1,27 @@ +// +// AppDelegate.m +// Sparkle Updated Test App +// +// Created by Kornel on 26/07/2014. +// Copyright (c) 2014 Sparkle-project. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () +@end + +@implementation AppDelegate + +- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { + NSRunAlertPanel(@"Update succeeded!", @"This is the updated version of Sparkle Test App.\n\nDelete and rebuild the app to test updates again.", @"OK", nil, nil); + + NSURL *bundleURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]; + if (bundleURL) { + [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs: @[bundleURL]]; + } + + [NSApp terminate:self]; +} + +@end diff --git a/TestApplication/After Update/Sparkle Updated Test App/Base.lproj/MainMenu.xib b/TestApplication/After Update/Sparkle Updated Test App/Base.lproj/MainMenu.xib new file mode 100644 index 00000000..86e35280 --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App/Base.lproj/MainMenu.xib @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/Contents.json b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/Contents.json new file mode 100644 index 00000000..2e9df94b --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/Contents.json @@ -0,0 +1,64 @@ +{ + "images" : [ + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "icon_16x16.png", + "scale" : "1x" + }, + { + "size" : "16x16", + "idiom" : "mac", + "filename" : "icon_16x16@2x.png", + "scale" : "2x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "icon_32x32.png", + "scale" : "1x" + }, + { + "size" : "32x32", + "idiom" : "mac", + "filename" : "icon_32x32@2x.png", + "scale" : "2x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "icon_128x128.png", + "scale" : "1x" + }, + { + "size" : "128x128", + "idiom" : "mac", + "filename" : "icon_128x128@2x.png", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "256x256", + "scale" : "2x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "1x" + }, + { + "idiom" : "mac", + "size" : "512x512", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_128x128.png b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_128x128.png new file mode 100644 index 00000000..4d798520 Binary files /dev/null and b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_128x128.png differ diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_128x128@2x.png b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_128x128@2x.png new file mode 100644 index 00000000..2bf2b0b8 Binary files /dev/null and b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_128x128@2x.png differ diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_16x16.png b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_16x16.png new file mode 100644 index 00000000..74078f25 Binary files /dev/null and b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_16x16.png differ diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_16x16@2x.png b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_16x16@2x.png new file mode 100644 index 00000000..7ab394c6 Binary files /dev/null and b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_16x16@2x.png differ diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_32x32.png b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_32x32.png new file mode 100644 index 00000000..fa1e0dac Binary files /dev/null and b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_32x32.png differ diff --git a/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_32x32@2x.png b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_32x32@2x.png new file mode 100644 index 00000000..f44f9779 Binary files /dev/null and b/TestApplication/After Update/Sparkle Updated Test App/Images.xcassets/Sparkle.appiconset/icon_32x32@2x.png differ diff --git a/TestApplication/After Update/Sparkle Updated Test App/Info.plist b/TestApplication/After Update/Sparkle Updated Test App/Info.plist new file mode 100644 index 00000000..6b1edff0 --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App/Info.plist @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + + CFBundleIdentifier + org.sparkle-project.${PRODUCT_NAME:rfc1034identifier} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + 2.0 + CFBundleSignature + ???? + CFBundleVersion + 2 + LSApplicationCategoryType + public.app-category.developer-tools + LSMinimumSystemVersion + ${MACOSX_DEPLOYMENT_TARGET} + NSHumanReadableCopyright + Copyright © 2014 Sparkle-project. All rights reserved. + NSMainNibFile + MainMenu + NSPrincipalClass + NSApplication + + diff --git a/TestApplication/After Update/Sparkle Updated Test App/main.m b/TestApplication/After Update/Sparkle Updated Test App/main.m new file mode 100644 index 00000000..6aafcfc3 --- /dev/null +++ b/TestApplication/After Update/Sparkle Updated Test App/main.m @@ -0,0 +1,6 @@ + +#import + +int main(int argc, const char * argv[]) { + return NSApplicationMain(argc, argv); +}