diff --git a/NTSynchronousTask.h b/NTSynchronousTask.h index e8510731..be74ce38 100644 --- a/NTSynchronousTask.h +++ b/NTSynchronousTask.h @@ -25,6 +25,12 @@ // returns the result +(int) task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input output: (NSData**)outData; ++(NSData*)task:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input; + +- (void)run:(NSString*)toolPath directory:(NSString*)currentDirectory withArgs:(NSArray*)args input:(NSData*)input; +- (int)result; +- (NSData *)output; + @end #endif diff --git a/NTSynchronousTask.m b/NTSynchronousTask.m index d564d243..1d2e3ef0 100644 --- a/NTSynchronousTask.m +++ b/NTSynchronousTask.m @@ -128,6 +128,7 @@ [[self task] setStandardInput:[self inputPipe]]; [[self task] setStandardOutput:[self outputPipe]]; + [[self task] setStandardError:[self outputPipe]]; } return self; diff --git a/SUDiskImageUnarchiver.m b/SUDiskImageUnarchiver.m index a905ee6b..674e1b1a 100644 --- a/SUDiskImageUnarchiver.m +++ b/SUDiskImageUnarchiver.m @@ -11,7 +11,7 @@ #import "NTSynchronousTask.h" #import "SULog.h" #import - +#import "SUPasswordPrompt.h" @implementation SUDiskImageUnarchiver @@ -48,18 +48,64 @@ } } while (noErr == FSPathMakeRefWithOptions((UInt8 *)[mountPoint fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &tmpRef, NULL)); + +/* ASW_ADDITION */ +#pragma mark ASW_ADDITION + BOOL isEncrypted = NO; + NSData *result = [NTSynchronousTask task:@"/usr/bin/hdiutil" directory:@"/" withArgs:[NSArray arrayWithObjects: @"isencrypted", archivePath, nil] input:NULL]; + if([self isEncrypted:result]) + isEncrypted = YES; +/* ASW_ADDITION */ NSArray* arguments = [NSArray arrayWithObjects:@"attach", archivePath, @"-mountpoint", mountPoint, /*@"-noverify",*/ @"-nobrowse", @"-noautoopen", nil]; // set up a pipe and push "yes" (y works too), this will accept any license agreement crap // not every .dmg needs this, but this will make sure it works with everyone - NSData* yesData = [[[NSData alloc] initWithBytes:"yes\n" length:4] autorelease]; +/* ASW_ADDITION */ +#pragma mark ASW_ADDITION + NSData* promptData; + if(isEncrypted) { + SUPasswordPrompt *prompt = [[SUPasswordPrompt alloc] initWithHost:(SUHost*)[delegate host]]; + if([prompt run]) + { + NSString *password = [prompt password]; + if(![password length]) + goto reportError; + NSString *data = [NSString stringWithFormat:@"%@\nyes\n", password]; + const char *bytes = [data cStringUsingEncoding:NSUTF8StringEncoding]; + NSUInteger length = [data lengthOfBytesUsingEncoding:NSUTF8StringEncoding]; + promptData = [NSData dataWithBytes:bytes length:length]; + } + else + { + goto reportError; + } + [prompt release]; + } + else + promptData = [NSData dataWithBytes:"yes\n" length:4]; +/* ASW_ADDITION */ - NSData *output = nil; - int returnCode = [NTSynchronousTask task:@"/usr/bin/hdiutil" directory:@"/" withArgs:arguments input:yesData output: &output]; - if ( returnCode != 0 ) + NSData *output = nil; + NSInteger taskResult = -1; + @try + { + NTSynchronousTask* task = [[NTSynchronousTask alloc] init]; + + [task run:@"/usr/bin/hdiutil" directory:@"/" withArgs:arguments input:promptData]; + + taskResult = [task result]; + output = [[[task output] copy] autorelease]; + [task release]; + } + @catch (NSException *localException) + { + goto reportError; + } + + if (taskResult != 0) { NSString* resultStr = output ? [[[NSString alloc] initWithData: output encoding: NSUTF8StringEncoding] autorelease] : nil; - SULog( @"hdiutil failed with code: %d data: <<%@>>", returnCode, resultStr ); + SULog( @"hdiutil failed with code: %d data: <<%@>>", taskResult, resultStr ); goto reportError; } mountedSuccessfully = YES; @@ -132,4 +178,21 @@ finally: [self registerImplementation:self]; } +/* ASW_ADDITION */ +#pragma mark ASW_ADDITION +- (BOOL)isEncrypted:(NSData*)resultData +{ + BOOL result = NO; + if(resultData) + { + NSString *data = [NSString stringWithCString:(char*)[resultData bytes] encoding:NSUTF8StringEncoding]; + if (!NSEqualRanges([data rangeOfString:@"passphrase-count"], NSMakeRange(NSNotFound, 0))) + { + result = YES; + } + } + return result; +} +/* ASW_ADDITION */ + @end diff --git a/SUPasswordPrompt.h b/SUPasswordPrompt.h new file mode 100644 index 00000000..499bc4e4 --- /dev/null +++ b/SUPasswordPrompt.h @@ -0,0 +1,35 @@ +// +// SUPasswordPrompt.h +// Sparkle +// +// Created by rudy on 8/18/09. +// Copyright 2009 Ambrosia Software, Inc.. All rights reserved. +// + +#import +#import "Sparkle/SUWindowController.h" + +@interface SUPasswordPrompt : SUWindowController +{ + IBOutlet NSImageView *mIconView; + IBOutlet NSTextField *mTextDescription; + IBOutlet NSSecureTextField *mPasswordField; + NSString *mPassword; + NSString *mName; + NSImage *mIcon; +} + +- (id)initWithHost:(SUHost *)aHost; +- (void)awakeFromNib; +- (void)setName:(NSString*)name; +- (NSString*)name; +- (void)setIcon:(NSImage*)icon; +- (NSImage*)icon; +- (NSString *)password; +- (void)setPassword:(NSString*)password; +- (NSInteger)run; +- (IBAction)accept:(id)sender; +- (IBAction)cancel:(id)sender; +- (void)replaceTitle:(NSString*)name; + +@end diff --git a/SUPasswordPrompt.m b/SUPasswordPrompt.m new file mode 100644 index 00000000..6b66cc3a --- /dev/null +++ b/SUPasswordPrompt.m @@ -0,0 +1,94 @@ +// +// SUPasswordPrompt.m +// Sparkle +// +// Created by rudy on 8/18/09. +// Copyright 2009 Ambrosia Software, Inc.. All rights reserved. +// + +#import "SUPasswordPrompt.h" + + +@implementation SUPasswordPrompt + +- (id)initWithHost:(SUHost *)aHost +{ + self = [super initWithHost:aHost windowNibName:@"SUPasswordPrompt"]; + if (self) + { + [self setName:[aHost name]]; + [self setIcon:[aHost icon]]; + mPassword = nil; + [self setShouldCascadeWindows:NO]; + } + return self; +} + +- (void)awakeFromNib +{ + [self replaceTitle:[self name]]; + [mIconView setImage:[self icon]]; +} + +- (void)setName:(NSString*)name +{ + [mName release]; + mName = [name retain]; +} + +- (NSString*)name +{ + return mName; +} + +- (void)setIcon:(NSImage*)icon +{ + [mIcon release]; + mIcon = [icon retain]; +} + +- (NSImage*)icon +{ + return mIcon; +} + +- (NSString *)password +{ + return mPassword; +} + +- (void)setPassword:(NSString*)password +{ + [mPassword release]; + mPassword = [password retain]; +} + +- (NSInteger)run +{ + //modally run a password prompt + NSInteger result = [NSApp runModalForWindow:[self window]]; + if(result) + [self setPassword:[mPasswordField stringValue]]; + return result; +} + +- (IBAction)accept:(id)sender +{ + [[self window] orderOut:self]; + [NSApp stopModalWithCode:1]; +} + +- (IBAction)cancel:(id)sender +{ + [[self window] orderOut:self]; + [NSApp stopModalWithCode:0]; +} + +- (void)replaceTitle:(NSString*)name +{ + NSString *textString = [mTextDescription stringValue]; + NSString *replacementString = [textString stringByReplacingOccurrencesOfString:@"" withString:name]; + [mTextDescription setStringValue:replacementString]; +} + +@end diff --git a/SUUpdateDriver.h b/SUUpdateDriver.h index 1a305d11..9e8a73e2 100644 --- a/SUUpdateDriver.h +++ b/SUUpdateDriver.h @@ -27,6 +27,8 @@ extern NSString * const SUUpdateDriverFinishedNotification; - (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host; - (void)abortUpdate; - (BOOL)finished; +- (SUHost*)host; +- (void)setHost:(SUHost*)newHost; @end diff --git a/SUUpdateDriver.m b/SUUpdateDriver.m index d98282a9..e1bae4ee 100644 --- a/SUUpdateDriver.m +++ b/SUUpdateDriver.m @@ -42,4 +42,15 @@ NSString * const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished"; [super dealloc]; } +- (SUHost*)host +{ + return host; +} + +- (void)setHost:(SUHost*)newHost +{ + [host release]; + host = [newHost retain]; +} + @end diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 022976a5..0d550897 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -131,6 +131,9 @@ 61F83F720DBFE140006FDD30 /* SUBasicUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */; }; 61F83F740DBFE141006FDD30 /* SUBasicUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (Required, ); }; }; + 93FB277A156BD80D001937C7 /* SUPasswordPrompt.h in Headers */ = {isa = PBXBuildFile; fileRef = 93FB2778156BD80D001937C7 /* SUPasswordPrompt.h */; }; + 93FB277B156BD80D001937C7 /* SUPasswordPrompt.m in Sources */ = {isa = PBXBuildFile; fileRef = 93FB2779156BD80D001937C7 /* SUPasswordPrompt.m */; }; + 93FB277F156BD826001937C7 /* SUPasswordPrompt.xib in Resources */ = {isa = PBXBuildFile; fileRef = 93FB277D156BD826001937C7 /* SUPasswordPrompt.xib */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -318,7 +321,7 @@ 6160FD85134ABCD5007FFC5F /* tr */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; }; 6186554310D7484E00B1E074 /* pt_PT */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = pt_PT; path = pt_PT.lproj/Sparkle.strings; sourceTree = ""; }; 618915730E35937600B5E981 /* sv */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Sparkle.strings; sourceTree = ""; }; - 618E9CFC0E7328F1004646D8 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = dsa_pub.pem; path = "Test Application/dsa_pub.pem"; sourceTree = ""; }; + 618E9CFC0E7328F1004646D8 /* dsa_pub.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = dsa_pub.pem; path = ../../config/dsa_pub.pem; sourceTree = ""; }; 618FA4FF0DAE88B40026945C /* SUInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUInstaller.h; sourceTree = ""; }; 618FA5000DAE88B40026945C /* SUInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstaller.m; sourceTree = ""; }; 618FA5030DAE8AB80026945C /* SUPlainInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPlainInstaller.h; sourceTree = ""; }; @@ -381,6 +384,10 @@ 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBasicUpdateDriver.m; sourceTree = ""; }; 8DC2EF5A0486A6940098B216 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; 8DC2EF5B0486A6940098B216 /* Sparkle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Sparkle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 93FB2778156BD80D001937C7 /* SUPasswordPrompt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPasswordPrompt.h; sourceTree = ""; }; + 93FB2779156BD80D001937C7 /* SUPasswordPrompt.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUPasswordPrompt.m; sourceTree = ""; }; + 93FB277E156BD826001937C7 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SUPasswordPrompt.xib; sourceTree = ""; }; + 93FB2780156BE06F001937C7 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SUPasswordPrompt.xib; sourceTree = ""; }; FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigFrameworkDebug.xcconfig; sourceTree = ""; }; FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigTestAppDebug.xcconfig; sourceTree = ""; }; FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigCommonRelease.xcconfig; sourceTree = ""; }; @@ -518,6 +525,7 @@ 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */, 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */, 55C14BD8136EF00C00649790 /* SUStatus.xib */, + 93FB277D156BD826001937C7 /* SUPasswordPrompt.xib */, ); name = "Framework Resources"; sourceTree = ""; @@ -608,6 +616,8 @@ 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */, 61180BC80D64138900B4E0D1 /* SUWindowController.h */, 61180BC90D64138900B4E0D1 /* SUWindowController.m */, + 93FB2778156BD80D001937C7 /* SUPasswordPrompt.h */, + 93FB2779156BD80D001937C7 /* SUPasswordPrompt.m */, ); name = "User Interface"; sourceTree = ""; @@ -772,6 +782,7 @@ 55C14F06136EF6DB00649790 /* SULog.h in Headers */, 55C14F0F136EF73600649790 /* finish_installation.pch in Headers */, 6158A1C5137904B300487EC1 /* SUUpdater_Private.h in Headers */, + 93FB277A156BD80D001937C7 /* SUPasswordPrompt.h in Headers */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -862,6 +873,7 @@ 6131B1910DDCDE32005215F0 /* Run Script: Set git Version Info */, 6195D4B40E40505A00D41A50 /* Run Script: Link fr_CA to fr */, 61E31A85103299750051D188 /* Run Script: Link pt to pt_BR */, + 93FB26EC15670DF5001937C7 /* Add SVN Revision */, ); buildRules = ( ); @@ -981,6 +993,7 @@ 55C14C04136EF26100649790 /* SUUpdateAlert.xib in Resources */, 55C14C19136EF2C700649790 /* SUUpdatePermissionPrompt.xib in Resources */, 55C14F3B136EFCB300649790 /* finish_installation.app in Resources */, + 93FB277F156BD826001937C7 /* SUPasswordPrompt.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1059,6 +1072,20 @@ shellPath = "/usr/bin/env ruby"; shellScript = "resources = \"#{ENV[\"BUILT_PRODUCTS_DIR\"]}/#{ENV[\"WRAPPER_NAME\"]}/Resources\"\n`ln -sfh \"pt_BR.lproj\" \"#{resources}/pt.lproj\"`"; }; + 93FB26EC15670DF5001937C7 /* Add SVN Revision */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Add SVN Revision"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "$SVNROOT/utilities/add-svn-revision.rb --source $SRCROOT --plist $BUILT_PRODUCTS_DIR/$INFOPLIST_PATH\n"; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -1144,6 +1171,7 @@ 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */, 5D06E93A0FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m in Sources */, 55C14F07136EF6DB00649790 /* SULog.m in Sources */, + 93FB277B156BD80D001937C7 /* SUPasswordPrompt.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1307,6 +1335,15 @@ name = MainMenu.nib; sourceTree = ""; }; + 93FB277D156BD826001937C7 /* SUPasswordPrompt.xib */ = { + isa = PBXVariantGroup; + children = ( + 93FB277E156BD826001937C7 /* en */, + 93FB2780156BE06F001937C7 /* ja */, + ); + name = SUPasswordPrompt.xib; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -1314,6 +1351,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; buildSettings = { + IBC_FLATTEN_NIBS = NO; }; name = Debug; }; @@ -1321,18 +1359,21 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */; buildSettings = { + IBC_FLATTEN_NIBS = YES; }; name = Release; }; 1DEB91B208733DA50010E9CD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + SVNROOT = ../..; }; name = Debug; }; 1DEB91B308733DA50010E9CD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + SVNROOT = ../..; }; name = Release; }; @@ -1426,6 +1467,7 @@ 61072EAD0DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */ = { isa = XCBuildConfiguration; buildSettings = { + SVNROOT = ../..; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1433,6 +1475,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 61072EB20DF2640C008FE88B /* ConfigFrameworkReleaseGCSupport.xcconfig */; buildSettings = { + IBC_FLATTEN_NIBS = YES; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1478,6 +1521,65 @@ }; name = Release; }; + 93FB264815670931001937C7 /* Beta */ = { + isa = XCBuildConfiguration; + buildSettings = { + SVNROOT = ../..; + }; + name = Beta; + }; + 93FB264915670931001937C7 /* Beta */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */; + buildSettings = { + IBC_FLATTEN_NIBS = NO; + }; + name = Beta; + }; + 93FB264A15670931001937C7 /* Beta */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */; + buildSettings = { + }; + name = Beta; + }; + 93FB264B15670931001937C7 /* Beta */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */; + buildSettings = { + }; + name = Beta; + }; + 93FB264C15670931001937C7 /* Beta */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */; + buildSettings = { + }; + name = Beta; + }; + 93FB264D15670931001937C7 /* Beta */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + COPY_PHASE_STRIP = YES; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + GCC_MODEL_TUNING = G5; + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = finish_installation.pch; + INFOPLIST_FILE = "finish_installation-Info.plist"; + INSTALL_PATH = "$(HOME)/Applications"; + OTHER_LDFLAGS = ( + "-framework", + Foundation, + "-framework", + AppKit, + ); + PRODUCT_NAME = finish_installation; + ZERO_LINK = NO; + }; + name = Beta; + }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -1486,6 +1588,7 @@ buildConfigurations = ( 1DEB91AE08733DA50010E9CD /* Debug */, 1DEB91AF08733DA50010E9CD /* Release */, + 93FB264915670931001937C7 /* Beta */, 61072EAE0DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */, ); defaultConfigurationIsVisible = 0; @@ -1496,6 +1599,7 @@ buildConfigurations = ( 1DEB91B208733DA50010E9CD /* Debug */, 1DEB91B308733DA50010E9CD /* Release */, + 93FB264815670931001937C7 /* Beta */, 61072EAD0DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */, ); defaultConfigurationIsVisible = 0; @@ -1506,6 +1610,7 @@ buildConfigurations = ( 55C14BBB136EEF1500649790 /* Debug */, 55C14BBC136EEF1500649790 /* Release */, + 93FB264D15670931001937C7 /* Beta */, 55C14BBD136EEF1500649790 /* Release (GC dual-mode; 10.5+) */, ); defaultConfigurationIsVisible = 0; @@ -1516,6 +1621,7 @@ buildConfigurations = ( 5D06E8D20FD68C7D005AE3F6 /* Debug */, 5D06E8D30FD68C7D005AE3F6 /* Release */, + 93FB264C15670931001937C7 /* Beta */, 5D06E8D40FD68C7D005AE3F6 /* Release (GC dual-mode; 10.5+) */, ); defaultConfigurationIsVisible = 0; @@ -1526,6 +1632,7 @@ buildConfigurations = ( 612279DB0DB5470300AB99EA /* Debug */, 612279DC0DB5470300AB99EA /* Release */, + 93FB264B15670931001937C7 /* Beta */, 61072EB10DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */, ); defaultConfigurationIsVisible = 0; @@ -1536,6 +1643,7 @@ buildConfigurations = ( 61B5F90609C4CEE300B25A18 /* Debug */, 61B5F90709C4CEE300B25A18 /* Release */, + 93FB264A15670931001937C7 /* Beta */, 61072EAF0DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */, ); defaultConfigurationIsVisible = 0; diff --git a/en.lproj/SUPasswordPrompt.xib b/en.lproj/SUPasswordPrompt.xib new file mode 100644 index 00000000..41cba084 --- /dev/null +++ b/en.lproj/SUPasswordPrompt.xib @@ -0,0 +1,1194 @@ + + + + 1050 + 10F569 + 788 + 1038.29 + 461.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 788 + + + YES + + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + + + YES + + YES + + + YES + + + + YES + + SUPasswordPrompt + + + FirstResponder + + + NSApplication + + + 1 + 2 + {{196, 372}, {362, 138}} + 544736256 + Password + NSWindow + + {1.79769e+308, 1.79769e+308} + + + 256 + + YES + + + 268 + {{90, 48}, {252, 22}} + + YES + + 343014976 + 272630784 + + + LucidaGrande + 13 + 1044 + + + YES + + 6 + System + textBackgroundColor + + 3 + MQA + + + + 6 + System + textColor + + 3 + MAA + + + + YES + NSAllRomanInputSourcesLocaleIdentifier + + + + + + 268 + {{17, 51}, {68, 17}} + + YES + + 68288064 + 272630784 + Password: + + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + + + + + + 268 + {{252, 12}, {96, 32}} + + YES + + 67239424 + 134217728 + OK + + + -2038284033 + 129 + + DQ + 200 + 25 + + + + + 268 + {{156, 12}, {96, 32}} + + YES + + 67239424 + 134217728 + Cancel + + + -2038284033 + 129 + + Gw + 200 + 25 + + + + + 268 + {{73, 78}, {285, 48}} + + YES + + 67239424 + 272629760 + Enter password to Update <APPLICATION> + + LucidaGrande + 13 + 16 + + + + + + + + + 268 + + YES + + YES + Apple PDF pasteboard type + Apple PICT pasteboard type + Apple PNG pasteboard type + NSFilenamesPboardType + NeXT Encapsulated PostScript v1.2 pasteboard type + NeXT TIFF v4.0 pasteboard type + + + {{20, 78}, {48, 48}} + + YES + + 130560 + 33554432 + 0 + 0 + 0 + NO + + YES + + + {362, 138} + + + {{0, 0}, {1680, 1028}} + {1.79769e+308, 1.79769e+308} + + + + + YES + + + mPasswordField + + + + 19 + + + + window + + + + 20 + + + + cancel: + + + + 21 + + + + accept: + + + + 22 + + + + mTextDescription + + + + 25 + + + + mIconView + + + + 26 + + + + + YES + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + YES + + + + + + 2 + + + YES + + + + + + + + + + + 3 + + + YES + + + + + + 4 + + + + + 5 + + + YES + + + + + + 6 + + + + + 7 + + + YES + + + + + + 8 + + + + + 9 + + + YES + + + + + + 10 + + + + + 15 + + + YES + + + + + + 16 + + + + + 17 + + + YES + + + + + + 18 + + + + + + + YES + + YES + 1.IBEditorWindowLastContentRect + 1.IBPluginDependency + 1.IBWindowTemplateEditedContentRect + 1.NSWindowTemplate.visibleAtLaunch + 1.WindowOrigin + 1.editorWindowContentRectSynchronizationRect + 10.IBPluginDependency + 15.IBPluginDependency + 16.IBPluginDependency + 17.IBPluginDependency + 18.IBPluginDependency + 2.IBPluginDependency + 3.IBPluginDependency + 4.IBPluginDependency + 5.IBPluginDependency + 6.IBPluginDependency + 7.IBPluginDependency + 8.IBPluginDependency + 9.IBPluginDependency + + + YES + {{316, 826}, {362, 138}} + com.apple.InterfaceBuilder.CocoaPlugin + {{316, 826}, {362, 138}} + + {196, 240} + {{202, 428}, {480, 270}} + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + YES + + + YES + + + + + YES + + + YES + + + + 26 + + + + YES + + NSObject + + IBProjectSource + SUAppcast.h + + + + NSObject + + IBProjectSource + SUAutomaticUpdateAlert.h + + + + NSObject + + IBProjectSource + SUInstaller.h + + + + NSObject + + IBProjectSource + SUUnarchiver.h + + + + NSObject + + IBProjectSource + SUUpdateAlert.h + + + + NSObject + + IBProjectSource + SUUpdatePermissionPrompt.h + + + + NSObject + + IBProjectSource + SUUpdater.h + + + + SUPasswordPrompt + SUWindowController + + YES + + YES + accept: + cancel: + + + YES + id + id + + + + YES + + YES + accept: + cancel: + + + YES + + accept: + id + + + cancel: + id + + + + + YES + + YES + mIconView + mPasswordField + mTextDescription + + + YES + NSImageView + NSSecureTextField + NSTextField + + + + YES + + YES + mIconView + mPasswordField + mTextDescription + + + YES + + mIconView + NSImageView + + + mPasswordField + NSSecureTextField + + + mTextDescription + NSTextField + + + + + IBProjectSource + SUPasswordPrompt.h + + + + SUWindowController + NSWindowController + + IBProjectSource + SUWindowController.h + + + + + YES + + NSWindowController + NSResponder + + showWindow: + id + + + showWindow: + + showWindow: + id + + + + IBDocumentRelativeSource + ../../../../../../../../../../Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSWindowController.h + + + + + YES + + NSActionCell + NSCell + + IBFrameworkSource + AppKit.framework/Headers/NSActionCell.h + + + + NSApplication + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSApplication.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSApplicationScripting.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSColorPanel.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSHelpManager.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSPageLayout.h + + + + NSApplication + + IBFrameworkSource + AppKit.framework/Headers/NSUserInterfaceItemSearching.h + + + + NSButton + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSButton.h + + + + NSButtonCell + NSActionCell + + IBFrameworkSource + AppKit.framework/Headers/NSButtonCell.h + + + + NSCell + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSCell.h + + + + NSControl + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSControl.h + + + + NSFormatter + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFormatter.h + + + + NSImageCell + NSCell + + IBFrameworkSource + AppKit.framework/Headers/NSImageCell.h + + + + NSImageView + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSImageView.h + + + + NSMenu + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSMenu.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSAccessibility.h + + + + NSObject + + + + NSObject + + + + NSObject + + + + NSObject + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSDictionaryController.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSDragging.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSFontManager.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSFontPanel.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSKeyValueBinding.h + + + + NSObject + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSNibLoading.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSOutlineView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSPasteboard.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSSavePanel.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSTableView.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSToolbarItem.h + + + + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSView.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSClassDescription.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSError.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSFileManager.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyValueObserving.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSKeyedArchiver.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObject.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSObjectScripting.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSPortCoder.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSRunLoop.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptClassDescription.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptKeyValueCoding.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptObjectSpecifiers.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSScriptWhoseTests.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSThread.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURL.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLConnection.h + + + + NSObject + + IBFrameworkSource + Foundation.framework/Headers/NSURLDownload.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebDownload.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebEditingDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebFrameLoadDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebJavaPlugIn.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPlugin.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPluginContainer.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebPolicyDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebResourceLoadDelegate.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebScriptObject.h + + + + NSObject + + IBFrameworkSource + WebKit.framework/Headers/WebUIDelegate.h + + + + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSInterfaceStyle.h + + + + NSResponder + NSObject + + IBFrameworkSource + AppKit.framework/Headers/NSResponder.h + + + + NSSecureTextField + NSTextField + + IBFrameworkSource + AppKit.framework/Headers/NSSecureTextField.h + + + + NSSecureTextFieldCell + NSTextFieldCell + + + + NSTextField + NSControl + + IBFrameworkSource + AppKit.framework/Headers/NSTextField.h + + + + NSTextFieldCell + NSActionCell + + IBFrameworkSource + AppKit.framework/Headers/NSTextFieldCell.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSClipView.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSMenuItem.h + + + + NSView + + IBFrameworkSource + AppKit.framework/Headers/NSRulerView.h + + + + NSView + NSResponder + + + + NSWindow + + IBFrameworkSource + AppKit.framework/Headers/NSDrawer.h + + + + NSWindow + NSResponder + + IBFrameworkSource + AppKit.framework/Headers/NSWindow.h + + + + NSWindow + + IBFrameworkSource + AppKit.framework/Headers/NSWindowScripting.h + + + + NSWindowController + NSResponder + + showWindow: + id + + + showWindow: + + showWindow: + id + + + + IBFrameworkSource + AppKit.framework/Headers/NSWindowController.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 + + + YES + ../Sparkle.xcodeproj + 3 + + diff --git a/ja.lproj/SUPasswordPrompt.xib b/ja.lproj/SUPasswordPrompt.xib new file mode 100644 index 00000000..62243272 --- /dev/null +++ b/ja.lproj/SUPasswordPrompt.xib @@ -0,0 +1,597 @@ + + + + 1050 + 11B26 + 1617 + 1138 + 566.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 1617 + + + YES + NSTextField + NSView + NSWindowTemplate + NSSecureTextField + NSTextFieldCell + NSImageView + NSButtonCell + NSImageCell + NSButton + NSSecureTextFieldCell + NSCustomObject + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + + + YES + + YES + + + + + YES + + SUPasswordPrompt + + + FirstResponder + + + NSApplication + + + 1 + 2 + {{196, 372}, {362, 138}} + 544736256 + パスワード + NSWindow + + + + + 256 + + YES + + + 268 + {{90, 48}, {252, 22}} + + + YES + + 343014976 + 272630784 + + + LucidaGrande + 13 + 1044 + + + YES + + 6 + System + textBackgroundColor + + 3 + MQA + + + + 6 + System + textColor + + 3 + MAA + + + + YES + NSAllRomanInputSourcesLocaleIdentifier + + + + + + 268 + {{11, 51}, {74, 17}} + + + YES + + 68288064 + 272630784 + パスワード: + + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + controlTextColor + + + + + + + 268 + {{252, 12}, {96, 32}} + + + YES + + 67239424 + 134217728 + OK + + + -2038284033 + 1 + + + DQ + 200 + 25 + + + + + 268 + {{156, 12}, {96, 32}} + + + YES + + 67239424 + 134217728 + 取消す + + + -2038284033 + 1 + + + Gw + 200 + 25 + + + + + 268 + {{73, 78}, {285, 48}} + + + YES + + 67239424 + 272629760 + <APPLICATION> の更新パスワードを入力 + + LucidaGrande + 13 + 16 + + + + + + + + + 268 + + YES + + YES + Apple PDF pasteboard type + Apple PICT pasteboard type + Apple PNG pasteboard type + NSFilenamesPboardType + NeXT Encapsulated PostScript v1.2 pasteboard type + NeXT TIFF v4.0 pasteboard type + + + {{20, 78}, {48, 48}} + + + YES + + 130560 + 33554432 + 0 + 0 + 0 + NO + + YES + + + {362, 138} + + + + {{0, 0}, {1920, 1178}} + {10000000000000, 10000000000000} + YES + + + + + YES + + + mPasswordField + + + + 19 + + + + window + + + + 20 + + + + cancel: + + + + 21 + + + + accept: + + + + 22 + + + + mTextDescription + + + + 25 + + + + mIconView + + + + 26 + + + + + YES + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 1 + + + YES + + + + + + 2 + + + YES + + + + + + + + + + + 3 + + + YES + + + + + + 4 + + + + + 5 + + + YES + + + + + + 6 + + + + + 7 + + + YES + + + + + + 8 + + + + + 9 + + + YES + + + + + + 10 + + + + + 15 + + + YES + + + + + + 16 + + + + + 17 + + + YES + + + + + + 18 + + + + + + + YES + + YES + -1.IBPluginDependency + -2.IBPluginDependency + -3.IBPluginDependency + 1.IBPluginDependency + 1.IBWindowTemplateEditedContentRect + 1.NSWindowTemplate.visibleAtLaunch + 10.IBPluginDependency + 15.IBPluginDependency + 16.IBPluginDependency + 17.IBPluginDependency + 18.IBPluginDependency + 2.IBPluginDependency + 3.IBPluginDependency + 4.IBPluginDependency + 5.IBPluginDependency + 6.IBPluginDependency + 7.IBPluginDependency + 8.IBPluginDependency + 9.IBPluginDependency + + + YES + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + {{857, 608}, {362, 138}} + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + YES + + + + + + YES + + + + + 26 + + + + YES + + SUPasswordPrompt + SUWindowController + + YES + + YES + accept: + cancel: + + + YES + id + id + + + + YES + + YES + accept: + cancel: + + + YES + + accept: + id + + + cancel: + id + + + + + YES + + YES + mIconView + mPasswordField + mTextDescription + + + YES + NSImageView + NSSecureTextField + NSTextField + + + + YES + + YES + mIconView + mPasswordField + mTextDescription + + + YES + + mIconView + NSImageView + + + mPasswordField + NSSecureTextField + + + mTextDescription + NSTextField + + + + + IBProjectSource + ./Classes/SUPasswordPrompt.h + + + + SUWindowController + NSWindowController + + IBProjectSource + ./Classes/SUWindowController.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + + com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3 + + + YES + 3 + +