-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
113 changed files
with
7,072 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/ruby | ||
["dsaparam.pem", "dsa_priv.pem", "dsa_pub.pem"].each do |file| | ||
if File.exist? file | ||
puts "There's already a #{file} here! Move it aside or be more careful!" | ||
end | ||
end | ||
`openssl dsaparam 2048 < /dev/urandom > dsaparam.pem` | ||
`openssl gendsa dsaparam.pem -out dsa_priv.pem` | ||
`openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem` | ||
`rm dsaparam.pem` | ||
puts "\nGenerated private and public keys: dsa_priv.pem and dsa_pub.pem.\n | ||
BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!\n | ||
If you lose it, your users will be unable to upgrade!\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/ruby | ||
if ARGV.length < 2 | ||
puts "Usage: ruby sign_update.rb update_archive private_key" | ||
exit | ||
end | ||
|
||
puts `openssl dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64` |
38 changes: 38 additions & 0 deletions
38
Frameworks/Sparkle/SourceCode/Configurations/ConfigCommon.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Common | ||
|
||
PREBINDING = NO | ||
ZERO_LINK = NO | ||
CURRENT_PROJECT_VERSION = 1.5 | ||
SDKROOT = $(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk | ||
MACOSX_DEPLOYMENT_TARGET[arch=ppc] = 10.4 | ||
MACOSX_DEPLOYMENT_TARGET[arch=ppc64] = 10.5 | ||
MACOSX_DEPLOYMENT_TARGET[arch=i386] = 10.4 | ||
MACOSX_DEPLOYMENT_TARGET[arch=x86_64] = 10.5 | ||
GCC_C_LANGUAGE_STANDARD = c99 | ||
GCC_ENABLE_OBJC_EXCEPTIONS = YES | ||
GCC_DEBUGGING_SYMBOLS = full | ||
GCC_PRECOMPILE_PREFIX_HEADER = YES | ||
GCC_PREFIX_HEADER = $(SDKROOT)/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h | ||
GCC_FAST_OBJC_DISPATCH = YES | ||
|
||
// Enable warnings | ||
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES | ||
GCC_WARN_EFFECTIVE_CPLUSPLUS_VIOLATIONS = YES | ||
GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES | ||
GCC_WARN_SHADOW = YES | ||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES | ||
GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES | ||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES | ||
GCC_WARN_MISSING_PARENTHESES = YES | ||
GCC_WARN_ABOUT_MISSING_NEWLINE = YES | ||
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES | ||
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES | ||
GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES | ||
GCC_WARN_SIGN_COMPARE = YES | ||
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES | ||
GCC_WARN_UNKNOWN_PRAGMAS = YES | ||
GCC_WARN_UNUSED_VARIABLE = YES | ||
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES | ||
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = YES | ||
WARNING_CFLAGS = -Wall |
8 changes: 8 additions & 0 deletions
8
Frameworks/Sparkle/SourceCode/Configurations/ConfigCommonDebug.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Debug only | ||
|
||
GCC_OPTIMIZATION_LEVEL = 0 | ||
DEBUG_INFORMATION_FORMAT = dwarf | ||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES | ||
SPARKLE_EXTRA_DEBUG = -DDEBUG -fstack-protector -D_FORTIFY_SOURCE=2 | ||
OTHER_CFLAGS = $(SPARKLE_EXTRA_DEBUG) | ||
ARCHS = $(NATIVE_ARCH_ACTUAL) |
9 changes: 9 additions & 0 deletions
9
Frameworks/Sparkle/SourceCode/Configurations/ConfigCommonRelease.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Release only | ||
|
||
GCC_OPTIMIZATION_LEVEL = s | ||
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym | ||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO | ||
DEAD_CODE_STRIPPING = YES | ||
GCC_TREAT_WARNINGS_AS_ERRORS = YES | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES | ||
ARCHS = ppc i386 x86_64 |
11 changes: 11 additions & 0 deletions
11
Frameworks/Sparkle/SourceCode/Configurations/ConfigFramework.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Framework only | ||
|
||
INSTALL_PATH = @loader_path/../Frameworks | ||
DYLIB_COMPATIBILITY_VERSION = 1.5 | ||
DYLIB_CURRENT_VERSION = 1.5 | ||
PRODUCT_NAME = Sparkle | ||
WRAPPER_EXTENSION = framework | ||
OTHER_LDFLAGS = -lcrypto | ||
FRAMEWORK_VERSION = A | ||
INFOPLIST_FILE = Info.plist | ||
GCC_PREFIX_HEADER = Sparkle.pch |
5 changes: 5 additions & 0 deletions
5
Frameworks/Sparkle/SourceCode/Configurations/ConfigFrameworkDebug.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "ConfigCommon.xcconfig" | ||
#include "ConfigCommonDebug.xcconfig" | ||
#include "ConfigFramework.xcconfig" | ||
|
||
OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG |
9 changes: 9 additions & 0 deletions
9
Frameworks/Sparkle/SourceCode/Configurations/ConfigFrameworkRelease.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include "ConfigCommon.xcconfig" | ||
#include "ConfigCommonRelease.xcconfig" | ||
#include "ConfigFramework.xcconfig" | ||
|
||
STRIP_INSTALLED_PRODUCT = YES | ||
DEPLOYMENT_POSTPROCESSING = YES | ||
STRIPFLAGS = -u -r | ||
STRIP_STYLE = non-global | ||
SEPARATE_STRIP = YES |
3 changes: 3 additions & 0 deletions
3
Frameworks/Sparkle/SourceCode/Configurations/ConfigFrameworkReleaseGCSupport.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "ConfigFrameworkRelease.xcconfig" | ||
|
||
GCC_ENABLE_OBJC_GC = supported |
3 changes: 3 additions & 0 deletions
3
Frameworks/Sparkle/SourceCode/Configurations/ConfigRelaunch.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// Relaunch Tool only | ||
|
||
PRODUCT_NAME = relaunch |
5 changes: 5 additions & 0 deletions
5
Frameworks/Sparkle/SourceCode/Configurations/ConfigRelaunchDebug.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "ConfigCommon.xcconfig" | ||
#include "ConfigCommonDebug.xcconfig" | ||
#include "ConfigRelaunch.xcconfig" | ||
|
||
OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG |
3 changes: 3 additions & 0 deletions
3
Frameworks/Sparkle/SourceCode/Configurations/ConfigRelaunchRelease.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "ConfigCommon.xcconfig" | ||
#include "ConfigCommonRelease.xcconfig" | ||
#include "ConfigRelaunch.xcconfig" |
5 changes: 5 additions & 0 deletions
5
Frameworks/Sparkle/SourceCode/Configurations/ConfigTestApp.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Test Application only | ||
|
||
INFOPLIST_FILE = Test Application/Test Application-Info.plist | ||
PRODUCT_NAME = Sparkle Test App | ||
WRAPPER_EXTENSION = app |
5 changes: 5 additions & 0 deletions
5
Frameworks/Sparkle/SourceCode/Configurations/ConfigTestAppDebug.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#include "ConfigCommon.xcconfig" | ||
#include "ConfigCommonDebug.xcconfig" | ||
#include "ConfigTestApp.xcconfig" | ||
|
||
OTHER_CFLAGS = -fsingle-precision-constant -DDEBUG |
3 changes: 3 additions & 0 deletions
3
Frameworks/Sparkle/SourceCode/Configurations/ConfigTestAppRelease.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#include "ConfigCommon.xcconfig" | ||
#include "ConfigCommonRelease.xcconfig" | ||
#include "ConfigTestApp.xcconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>${EXECUTABLE_NAME}</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundleIconFile</key> | ||
<string></string> | ||
<key>CFBundleIdentifier</key> | ||
<string>org.andymatuschak.Sparkle</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.5</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.5 Beta (bzr)</string> | ||
<key>NSPrincipalClass</key> | ||
<string></string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (c) 2006 Andy Matuschak | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.PHONY: all localizable-strings | ||
|
||
localizable-strings: | ||
rm en.lproj/Sparkle.strings || TRUE | ||
genstrings -o en.lproj -s SULocalizedString *.m *.h | ||
mv en.lproj/Localizable.strings en.lproj/Sparkle.strings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// NTSynchronousTask.h | ||
// CocoatechCore | ||
// | ||
// Created by Steve Gehrman on 9/29/05. | ||
// Copyright 2005 Steve Gehrman. All rights reserved. | ||
// | ||
|
||
#ifndef NTSYNCHRONOUSTASK_H | ||
#define NTSYNCHRONOUSTASK_H | ||
|
||
@interface NTSynchronousTask : NSObject | ||
{ | ||
NSTask *mv_task; | ||
NSPipe *mv_outputPipe; | ||
NSPipe *mv_inputPipe; | ||
|
||
NSData* mv_output; | ||
BOOL mv_done; | ||
int mv_result; | ||
} | ||
|
||
// pass nil for directory if not needed | ||
// returns the result | ||
+ (NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input; | ||
|
||
@end | ||
|
||
#endif |
Oops, something went wrong.