Permalink
Browse files

Sparkle support for automatic updates

With this commit the versioning scheme of MacVim has also changed;
CFBundleVersion is now a number (indicating the build), and
CFBundleShortVersionString contains the version number (e.g. 7.1).
  • Loading branch information...
1 parent 90acffb commit fdf5c7cf04625a2e9e2dfeb6abc79f74ac9283ca @nico nico committed with Feb 3, 2008
Showing with 762 additions and 43 deletions.
  1. +62 −31 src/MacVim/English.lproj/MainMenu.nib/classes.nib
  2. +10 −11 src/MacVim/English.lproj/MainMenu.nib/info.nib
  3. BIN src/MacVim/English.lproj/MainMenu.nib/keyedobjects.nib
  4. +7 −1 src/MacVim/Info.plist
  5. +20 −0 src/MacVim/MacVim.xcodeproj/project.pbxproj
  6. +1 −0 src/MacVim/Sparkle.framework/Headers
  7. +1 −0 src/MacVim/Sparkle.framework/Resources
  8. +1 −0 src/MacVim/Sparkle.framework/Sparkle
  9. +13 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/NSApplication+AppCopies.h
  10. +11 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/NSFileManager+Authentication.h
  11. +15 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/NSFileManager+Verification.h
  12. +61 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/NSString+extras.h
  13. +98 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/RSS.h
  14. +27 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUAppcast.h
  15. +57 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUAppcastItem.h
  16. +21 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUAutomaticUpdateAlert.h
  17. +20 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUConstants.h
  18. +26 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUStatusChecker.h
  19. +33 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUStatusController.h
  20. +25 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUUnarchiver.h
  21. +40 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUUpdateAlert.h
  22. +55 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUUpdater.h
  23. +20 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/SUUtilities.h
  24. +22 −0 src/MacVim/Sparkle.framework/Versions/A/Headers/Sparkle.h
  25. +22 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/Info.plist
  26. +12 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/SUStatus.nib/classes.nib
  27. +16 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/SUStatus.nib/info.nib
  28. BIN src/MacVim/Sparkle.framework/Versions/A/Resources/SUStatus.nib/keyedobjects.nib
  29. +12 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/classes.nib
  30. +16 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/info.nib
  31. BIN ...acVim/Sparkle.framework/Versions/A/Resources/en.lproj/SUAutomaticUpdateAlert.nib/keyedobjects.nib
  32. +21 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/classes.nib
  33. +16 −0 src/MacVim/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/info.nib
  34. BIN src/MacVim/Sparkle.framework/Versions/A/Resources/en.lproj/SUUpdateAlert.nib/keyedobjects.nib
  35. BIN src/MacVim/Sparkle.framework/Versions/A/Resources/en.lproj/Sparkle.strings
  36. BIN src/MacVim/Sparkle.framework/Versions/A/Sparkle
  37. +1 −0 src/MacVim/Sparkle.framework/Versions/Current

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
View
@@ -538,10 +538,12 @@
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>7.1</string>
<key>CFBundleSignature</key>
<string>VIMM</string>
<key>CFBundleVersion</key>
- <string>(first snapshot)</string>
+ <string>20</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
@@ -598,5 +600,9 @@
<string>Window</string>
</dict>
</array>
+ <key>New item</key>
+ <string></string>
+ <key>SUFeedURL</key>
+ <string>http://bjorn.winckler.googlepages.com/macvim_latest.xml</string>
</dict>
</plist>
@@ -7,6 +7,8 @@
objects = {
/* Begin PBXBuildFile section */
+ 031AD5D40D4DE1F60026C5D7 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 031AD5D30D4DE1F60026C5D7 /* Sparkle.framework */; };
+ 031AD5EE0D4DE2490026C5D7 /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 031AD5D30D4DE1F60026C5D7 /* Sparkle.framework */; };
1D09AB420C6A4D520045497E /* MMTypesetter.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D09AB400C6A4D520045497E /* MMTypesetter.m */; };
1D0E051C0BA5F83800B6049E /* Colors.plist in Resources */ = {isa = PBXBuildFile; fileRef = 1D0E051B0BA5F83800B6049E /* Colors.plist */; };
1D1474980C56703C0038FA2B /* MacVim.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D1474960C56703C0038FA2B /* MacVim.m */; };
@@ -97,6 +99,16 @@
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
+ 031AD5ED0D4DE2360026C5D7 /* CopyFiles */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ 031AD5EE0D4DE2490026C5D7 /* Sparkle.framework in CopyFiles */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
1D0DCAD80BA3604D00B6CCFA /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
@@ -135,6 +147,7 @@
/* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */
+ 031AD5D30D4DE1F60026C5D7 /* Sparkle.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Sparkle.framework; sourceTree = "<group>"; };
089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
@@ -230,6 +243,7 @@
1DFE25A50C527BC4003000F7 /* PSMTabBarControl.framework in Frameworks */,
8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
1D80FBE40CBBD6F200102A1C /* Carbon.framework in Frameworks */,
+ 031AD5D40D4DE1F60026C5D7 /* Sparkle.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -274,6 +288,7 @@
1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
isa = PBXGroup;
children = (
+ 031AD5D30D4DE1F60026C5D7 /* Sparkle.framework */,
1D80FBE30CBBD6F200102A1C /* Carbon.framework */,
1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
);
@@ -429,6 +444,7 @@
1D0DCAD80BA3604D00B6CCFA /* CopyFiles */,
1D9EB2840C366D7B0074B739 /* CopyFiles */,
1DE608B80C58807F0055263D /* CopyFiles */,
+ 031AD5ED0D4DE2360026C5D7 /* CopyFiles */,
);
buildRules = (
);
@@ -600,8 +616,10 @@
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_2)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_3)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_2)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
);
FRAMEWORK_SEARCH_PATHS_QUOTED_2 = "\"$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks\"";
+ FRAMEWORK_SEARCH_PATHS_QUOTED_FOR_TARGET_1 = "\"$(SRCROOT)\"";
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
@@ -627,7 +645,9 @@
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_2)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_3)",
"$(FRAMEWORK_SEARCH_PATHS_QUOTED_2)",
+ "$(FRAMEWORK_SEARCH_PATHS_QUOTED_1)",
);
+ FRAMEWORK_SEARCH_PATHS_QUOTED_1 = "\"$(SRCROOT)\"";
FRAMEWORK_SEARCH_PATHS_QUOTED_2 = "\"$(SYSTEM_DEVELOPER_DIR)/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks\"";
GCC_DYNAMIC_NO_PIC = YES;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
@@ -0,0 +1,13 @@
+//
+// NSApplication+AppCopies.h
+// Sparkle
+//
+// Created by Andy Matuschak on 3/16/06.
+// Copyright 2006 Andy Matuschak. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+@interface NSApplication (SUAppCopies)
+- (int)copiesRunning;
+@end
@@ -0,0 +1,11 @@
+//
+// NSFileManager+Authentication.m
+// Sparkle
+//
+// Created by Andy Matuschak on 3/9/06.
+// Copyright 2006 Andy Matuschak. All rights reserved.
+//
+
+@interface NSFileManager (SUAuthenticationAdditions)
+- (BOOL)movePathWithAuthentication:(NSString *)src toPath:(NSString *)dst;
+@end
@@ -0,0 +1,15 @@
+//
+// NSFileManager+Verification.h
+// Sparkle
+//
+// Created by Andy Matuschak on 3/16/06.
+// Copyright 2006 Andy Matuschak. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+
+// For the paranoid folks!
+@interface NSFileManager (SUVerification)
+- (BOOL)validatePath:(NSString *)path withMD5Hash:(NSString *)hash;
+- (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature;
+@end
@@ -0,0 +1,61 @@
+/*
+
+BSD License
+
+Copyright (c) 2002, Brent Simmons
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of ranchero.com or Brent Simmons nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+*/
+
+
+/*
+ NSString+extras.h
+ NetNewsWire
+
+ Created by Brent Simmons on Fri Jun 14 2002.
+ Copyright (c) 2002 Brent Simmons. All rights reserved.
+*/
+
+
+#import <Foundation/Foundation.h>
+#import <CoreFoundation/CoreFoundation.h>
+
+
+@interface NSString (extras)
+
+- (NSString *)stringWithSubstitute:(NSString *)subs forCharactersFromSet:(NSCharacterSet *)set;
+
+- (NSString *) trimWhiteSpace;
+
+- (NSString *) stripHTML;
+
+- (NSString *) ellipsizeAfterNWords: (int) n;
+
++ (BOOL) stringIsEmpty: (NSString *) s;
+
+
+@end
Oops, something went wrong.

0 comments on commit fdf5c7c

Please sign in to comment.