diff --git a/HWMonitor.xcodeproj/project.pbxproj b/HWMonitor.xcodeproj/project.pbxproj index e6d032de..1697cb51 100644 --- a/HWMonitor.xcodeproj/project.pbxproj +++ b/HWMonitor.xcodeproj/project.pbxproj @@ -51,8 +51,6 @@ 7E48BC5A18EE8FAE00A6CA19 /* HWMonitorHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E48BC5918EE8FAE00A6CA19 /* HWMonitorHelper.m */; }; 7E48BC6518EE977500A6CA19 /* SmcHelper+HWMonitorHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E48BC6418EE977500A6CA19 /* SmcHelper+HWMonitorHelper.m */; }; 7E4959F218A640F200E05CF7 /* PopupFanController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E4959F118A640F200E05CF7 /* PopupFanController.m */; }; - 7E4A3C281E07038300A01B02 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7E2FE40F18DCBA5400EAD6DB /* Sparkle.framework */; }; - 7E4A3C291E07038300A01B02 /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 7E2FE40F18DCBA5400EAD6DB /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 7E4C678A1E994D2200CFAB2A /* SMCHelperTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E4C67891E994D2200CFAB2A /* SMCHelperTests.m */; }; 7E4C76AE18A559BA0050BEFD /* PopupAtaSmartReportController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7E4C76AC18A559BA0050BEFD /* PopupAtaSmartReportController.m */; }; 7E4C76AF18A559BA0050BEFD /* PopupAtaSmartReportController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7E4C76AD18A559BA0050BEFD /* PopupAtaSmartReportController.xib */; }; @@ -133,55 +131,6 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ - 7E2FE40E18DCBA5400EAD6DB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 8DC2EF5B0486A6940098B216; - remoteInfo = Sparkle; - }; - 7E2FE41018DCBA5400EAD6DB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 61B5F90209C4CEE200B25A18; - remoteInfo = "Sparkle Test App"; - }; - 7E2FE41218DCBA5400EAD6DB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 612279D90DB5470200AB99EA; - remoteInfo = "Sparkle Unit Tests"; - }; - 7E2FE41418DCBA5400EAD6DB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 5D06E8D00FD68C7C005AE3F6; - remoteInfo = BinaryDelta; - }; - 7E2FE41618DCBA5400EAD6DB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 55C14BB7136EEF1500649790; - remoteInfo = "Sparkle Updater"; - }; - 7E4A3C261E0702D600A01B02 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; - 7E4A3C2A1E07038300A01B02 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; 7E4C678C1E994D2200CFAB2A /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 7EA248E016D8E93A002231B2 /* Project object */; @@ -189,20 +138,6 @@ remoteGlobalIDString = 7EA248E716D8E93A002231B2; remoteInfo = HWMonitor; }; - 7EC27DC01E0700E6000503C9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 726B2B5D1C645FC900388755; - remoteInfo = "UI Tests"; - }; - 7EC27DC21E0700E6000503C9 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 722954B41D04ADAF00ECF9CA; - remoteInfo = fileop; - }; 7EEC9F4718B8D0FB00BDB9D7 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 7EA248E016D8E93A002231B2 /* Project object */; @@ -230,7 +165,6 @@ dstSubfolderSpec = 10; files = ( 7E2789811876FB6E00B443BD /* Growl.framework in Copy Frameworks */, - 7E4A3C291E07038300A01B02 /* Sparkle.framework in Copy Frameworks */, ); name = "Copy Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -324,7 +258,6 @@ 7E2EFB3D1B4F25C2004ABDC2 /* NSWindow+ULIZoomEffect.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSWindow+ULIZoomEffect.h"; sourceTree = ""; }; 7E2EFB3E1B4F25C8004ABDC2 /* NSWindow+ULIZoomEffect.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSWindow+ULIZoomEffect.m"; sourceTree = ""; }; 7E2FE0A3178D18CA00802D38 /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/Localizable.strings; sourceTree = ""; }; - 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = Sparkle.xcodeproj; path = Sparkle/Sparkle.xcodeproj; sourceTree = ""; }; 7E309FCC18C3167B001033A1 /* PopupLevelCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PopupLevelCell.h; sourceTree = ""; }; 7E309FCD18C3167B001033A1 /* PopupLevelCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PopupLevelCell.m; sourceTree = ""; }; 7E31FB5B18D4B2DA0036F842 /* HWMEngine 1.8.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = "HWMEngine 1.8.xcdatamodel"; sourceTree = ""; }; @@ -522,7 +455,6 @@ 7E5134E6185C919F0069AD93 /* CoreData.framework in Frameworks */, 7ED40C29184A6D0F0068EBC9 /* WebKit.framework in Frameworks */, 7E2789801876FB6300B443BD /* Growl.framework in Frameworks */, - 7E4A3C281E07038300A01B02 /* Sparkle.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -802,28 +734,6 @@ name = ProbeControllingMenuItem; sourceTree = ""; }; - 7E2FE40618DCB6F600EAD6DB /* Sources */ = { - isa = PBXGroup; - children = ( - 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */, - ); - name = Sources; - sourceTree = ""; - }; - 7E2FE40718DCBA5000EAD6DB /* Products */ = { - isa = PBXGroup; - children = ( - 7E2FE40F18DCBA5400EAD6DB /* Sparkle.framework */, - 7E2FE41718DCBA5400EAD6DB /* Autoupdate.app */, - 7E2FE41118DCBA5400EAD6DB /* Sparkle Test App.app */, - 7E2FE41318DCBA5400EAD6DB /* Sparkle Unit Tests.xctest */, - 7E2FE41518DCBA5400EAD6DB /* BinaryDelta */, - 7EC27DC11E0700E6000503C9 /* UI Tests.xctest */, - 7EC27DC31E0700E6000503C9 /* fileop */, - ); - name = Products; - sourceTree = ""; - }; 7E3299CE18B8D0490022FB53 /* HWMonitorHelper */ = { isa = PBXGroup; children = ( @@ -979,7 +889,6 @@ 7EA248EA16D8E93A002231B2 /* Frameworks */ = { isa = PBXGroup; children = ( - 7E2FE40618DCB6F600EAD6DB /* Sources */, 7E4E349F18B8A6EC008EA5F9 /* Linked */, 7E1A8DB51876B32900853CB6 /* Other */, ); @@ -1237,8 +1146,6 @@ ); dependencies = ( 7EEC9F4818B8D0FB00BDB9D7 /* PBXTargetDependency */, - 7E4A3C271E0702D600A01B02 /* PBXTargetDependency */, - 7E4A3C2B1E07038300A01B02 /* PBXTargetDependency */, ); name = HWMonitor; productName = HWMonitor; @@ -1290,12 +1197,6 @@ mainGroup = 7EA248DF16D8E93A002231B2; productRefGroup = 7EA248E916D8E93A002231B2 /* Products */; projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 7E2FE40718DCBA5000EAD6DB /* Products */; - ProjectRef = 7E2FE40518DCB69600EAD6DB /* Sparkle.xcodeproj */; - }, - ); projectRoot = ""; targets = ( 7EA248E716D8E93A002231B2 /* HWMonitor */, @@ -1306,58 +1207,6 @@ }; /* End PBXProject section */ -/* Begin PBXReferenceProxy section */ - 7E2FE40F18DCBA5400EAD6DB /* Sparkle.framework */ = { - isa = PBXReferenceProxy; - fileType = wrapper.framework; - path = Sparkle.framework; - remoteRef = 7E2FE40E18DCBA5400EAD6DB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 7E2FE41118DCBA5400EAD6DB /* Sparkle Test App.app */ = { - isa = PBXReferenceProxy; - fileType = wrapper.application; - path = "Sparkle Test App.app"; - remoteRef = 7E2FE41018DCBA5400EAD6DB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 7E2FE41318DCBA5400EAD6DB /* Sparkle Unit Tests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = "Sparkle Unit Tests.xctest"; - remoteRef = 7E2FE41218DCBA5400EAD6DB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 7E2FE41518DCBA5400EAD6DB /* BinaryDelta */ = { - isa = PBXReferenceProxy; - fileType = "compiled.mach-o.executable"; - path = BinaryDelta; - remoteRef = 7E2FE41418DCBA5400EAD6DB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 7E2FE41718DCBA5400EAD6DB /* Autoupdate.app */ = { - isa = PBXReferenceProxy; - fileType = wrapper.application; - path = Autoupdate.app; - remoteRef = 7E2FE41618DCBA5400EAD6DB /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 7EC27DC11E0700E6000503C9 /* UI Tests.xctest */ = { - isa = PBXReferenceProxy; - fileType = wrapper.cfbundle; - path = "UI Tests.xctest"; - remoteRef = 7EC27DC01E0700E6000503C9 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 7EC27DC31E0700E6000503C9 /* fileop */ = { - isa = PBXReferenceProxy; - fileType = "compiled.mach-o.executable"; - path = fileop; - remoteRef = 7EC27DC21E0700E6000503C9 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - /* Begin PBXResourcesBuildPhase section */ 7E4C67851E994D2200CFAB2A /* Resources */ = { isa = PBXResourcesBuildPhase; @@ -1531,16 +1380,6 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ - 7E4A3C271E0702D600A01B02 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Sparkle; - targetProxy = 7E4A3C261E0702D600A01B02 /* PBXContainerItemProxy */; - }; - 7E4A3C2B1E07038300A01B02 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = Sparkle; - targetProxy = 7E4A3C2A1E07038300A01B02 /* PBXContainerItemProxy */; - }; 7E4C678D1E994D2200CFAB2A /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 7EA248E716D8E93A002231B2 /* HWMonitor */; diff --git a/HWMonitor/AppController.h b/HWMonitor/AppController.h index 383df659..49705f77 100644 --- a/HWMonitor/AppController.h +++ b/HWMonitor/AppController.h @@ -26,7 +26,6 @@ * */ -#import #import #import "PopupController.h" @@ -50,7 +49,6 @@ @property (assign) IBOutlet PopupController *popupController; @property (assign) IBOutlet PopoverController *popoverController; @property (assign) IBOutlet GraphsController *graphsController; -@property (assign) IBOutlet SUUpdater *sharedUpdater; @property (assign) IBOutlet NSTableView *favoritesTableView; @property (assign) IBOutlet NSTableView *sensorsTableView; diff --git a/HWMonitor/AppController.m b/HWMonitor/AppController.m index 2e69871b..b91fe259 100644 --- a/HWMonitor/AppController.m +++ b/HWMonitor/AppController.m @@ -192,17 +192,17 @@ -(NSDictionary *)registrationDictionaryForGrowl -(void)checkForUpdates:(id)sender { - if ([sender isKindOfClass:[NSButton class]]) { - NSButton *button = (NSButton*)sender; - - if ([button state]) { - _sharedUpdater.automaticallyChecksForUpdates = YES; - [_sharedUpdater checkForUpdatesInBackground]; - } - } - else { - [_sharedUpdater checkForUpdates:sender]; - } +// if ([sender isKindOfClass:[NSButton class]]) { +// NSButton *button = (NSButton*)sender; +// +// if ([button state]) { +// _sharedUpdater.automaticallyChecksForUpdates = YES; +// [_sharedUpdater checkForUpdatesInBackground]; +// } +// } +// else { +// [_sharedUpdater checkForUpdates:sender]; +// } } -(void)rebuildSensorsList:(id)sender diff --git a/HWMonitor/AppController.xib b/HWMonitor/AppController.xib index b84ce651..b8c7556c 100644 --- a/HWMonitor/AppController.xib +++ b/HWMonitor/AppController.xib @@ -1,8 +1,8 @@ - + - + @@ -70,11 +70,11 @@ - + - + @@ -86,7 +86,7 @@ - + @@ -122,7 +122,7 @@ - + @@ -132,7 +132,7 @@ - + @@ -144,7 +144,7 @@ - + @@ -152,7 +152,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -174,7 +174,7 @@ - + @@ -202,30 +202,8 @@ - - + @@ -236,7 +214,7 @@ - + @@ -247,7 +225,7 @@ - + @@ -269,7 +247,7 @@ - + @@ -277,7 +255,7 @@ - + @@ -285,7 +263,7 @@ - + @@ -293,7 +271,7 @@ - + @@ -301,7 +279,7 @@ - + @@ -309,7 +287,7 @@ - + @@ -317,7 +295,7 @@ - + @@ -325,7 +303,7 @@ - + @@ -342,11 +320,9 @@ - - @@ -356,12 +332,10 @@ - - @@ -373,6 +347,7 @@ + @@ -447,7 +422,7 @@ - + @@ -962,7 +937,7 @@ - + diff --git a/HWMonitor/PopoverController.xib b/HWMonitor/PopoverController.xib index 7975fcc8..97dbc83c 100644 --- a/HWMonitor/PopoverController.xib +++ b/HWMonitor/PopoverController.xib @@ -1,8 +1,8 @@ - + - + @@ -70,31 +70,23 @@ - + - - + - + + - - - - - - - - + - diff --git a/HWMonitor/PopoverWindowController.xib b/HWMonitor/PopoverWindowController.xib index 82809eee..6ca16ec0 100644 --- a/HWMonitor/PopoverWindowController.xib +++ b/HWMonitor/PopoverWindowController.xib @@ -1,8 +1,8 @@ - + - + @@ -101,31 +101,23 @@ - + - - + - + + - - - - - - - - + - diff --git a/HWMonitor/PopupController.h b/HWMonitor/PopupController.h index 15df2371..43315acb 100644 --- a/HWMonitor/PopupController.h +++ b/HWMonitor/PopupController.h @@ -25,8 +25,6 @@ * */ -#import - #import "StatusItemView.h" #import "OBMenuBarWindow.h" diff --git a/HWMonitor/PopupController.xib b/HWMonitor/PopupController.xib index 2aa5d2b3..f5527f24 100644 --- a/HWMonitor/PopupController.xib +++ b/HWMonitor/PopupController.xib @@ -1,8 +1,8 @@ - + - + @@ -25,21 +25,6 @@ - - - - - - - - - - - - - - - @@ -85,10 +70,17 @@ + + + + + + + + - @@ -341,7 +333,7 @@ - + diff --git a/Scripts/GenerateAppcast.sh b/Scripts/GenerateAppcast.sh deleted file mode 100644 index 19c5c75f..00000000 --- a/Scripts/GenerateAppcast.sh +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/sh - -# SignInstaller.sh -# Versioning -# -# Created by Kozlek on 18/07/13. -# - -find ./Binaries/ -maxdepth 1 -type f -name "*.dmg" -delete -find ./Binaries/ -maxdepth 1 -type f -name "*.tar.gz" -delete -find ./Binaries/ -maxdepth 1 -type f -name "*.dsa" -delete -find ./Binaries/ -maxdepth 1 -type f -name "*.sha1" -delete - -if [ "$1" == "clean" ] -then - exit 0 -fi - -project_name="HWSensors" -project_version=$(git describe --tags) -last_revision=$(<"./revision.txt") -full_version=${project_version}'.'${last_revision} - -# binaries -bin_filename=${project_name}.${full_version}.Binaries.dmg -bin_volumename=${project_name}" Binaries v"${full_version} -hdiutil create -megabytes 10 -fs HFS+ -volname "${bin_volumename}" ./Binaries/TEMP.${bin_filename} -hdiutil attach ./Binaries/TEMP.${bin_filename} -readwrite -mount required - -find ./Binaries/ -maxdepth 1 -type d -name "*.app" -exec cp -R {} /Volumes/"${bin_volumename}" \; -find ./Binaries/ -maxdepth 1 -type d -name "*.kext" -exec cp -R {} /Volumes/"${bin_volumename}" \; - -hdiutil detach "/Volumes/${bin_volumename}" -hdiutil convert ./Binaries/TEMP.${bin_filename} -format UDZO -imagekey zlib-level=9 -o ./Binaries/${bin_filename} -rm ./Binaries/TEMP.${bin_filename} - -# compressed update -dmg_filename=${project_name}.${full_version}.Update.dmg -dmg_volumename=${project_name}" v"${full_version} -hdiutil create -megabytes 10 -fs HFS+ -volname "${dmg_volumename}" ./Binaries/TEMP.${dmg_filename} -hdiutil attach ./Binaries/TEMP.${dmg_filename} -readwrite -mount required - -cp ./Binaries/${project_name}.${full_version}.pkg "/Volumes/${dmg_volumename}/HWMonitor.pkg" - -hdiutil detach "/Volumes/${dmg_volumename}" -hdiutil convert ./Binaries/TEMP.${dmg_filename} -format UDZO -imagekey zlib-level=9 -o ./Binaries/${dmg_filename} -rm ./Binaries/TEMP.${dmg_filename} -openssl="/usr/bin/openssl" -dsa_signature=$(${openssl} dgst -sha1 -binary < ./Binaries/${dmg_filename} | ${openssl} dgst -dss1 -sign ./Appcast/dsa_priv.pem | ${openssl} enc -base64) -echo ${dsa_signature} > ./Binaries/${dmg_filename}.sha1 - -# appcast.xml -echo '' > ./Appcast/appcast.xml -echo '' >> ./Appcast/appcast.xml -echo '' >> ./Appcast/appcast.xml -echo ' '${project_name}' Changelog' >> ./Appcast/appcast.xml -echo ' http://hwsensors.com/appcast/appcast.xml' >> ./Appcast/appcast.xml -echo ' Most recent changes with links to updates.' >> ./Appcast/appcast.xml -echo ' en' >> ./Appcast/appcast.xml -echo ' ' >> ./Appcast/appcast.xml -echo ' http://hwsensors.com/release-notes' >> ./Appcast/appcast.xml -echo ' Version '${full_version}'' >> ./Appcast/appcast.xml -echo ' '$(date +"%a, %d %b %G %T %z")'' >> ./Appcast/appcast.xml -echo ' ' >> ./Appcast/appcast.xml -echo ' ' >> ./Appcast/appcast.xml -echo '' >> ./Appcast/appcast.xml -echo '' >> ./Appcast/appcast.xml - -#git_log=$(git log `git describe --tags --abbrev=0`..HEAD --oneline --pretty=format:"• (%ad by %an) %s" --date=short | tr "\n" "|") - -git_log=$(git log `git describe --tags --abbrev=0`..HEAD --oneline --pretty=format:"
  • %s
  • \n" --date=short) - -#rnotes.html -echo '' > ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' '${project_name}' v'${full_version}'' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo '
    ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo '
    ' >> ./Appcast/rnotes.html -echo '

    New in '${project_name}' v'${full_version}'

    ' >> ./Appcast/rnotes.html -echo '
    Download compiled binaries
    ' >> ./Appcast/rnotes.html -echo '

    Bug Fixed/Changes/Features

    ' >> ./Appcast/rnotes.html -echo '
      ' >> ./Appcast/rnotes.html -echo ${git_log} >> ./Appcast/rnotes.html -echo '
    ' >> ./Appcast/rnotes.html -echo '
    ' >> ./Appcast/rnotes.html -echo '
    ' >> ./Appcast/rnotes.html -echo ' ' >> ./Appcast/rnotes.html -echo '' >> ./Appcast/rnotes.html diff --git a/Scripts/SignApp.sh b/Scripts/SignApp.sh index e916c4cb..10f40569 100644 --- a/Scripts/SignApp.sh +++ b/Scripts/SignApp.sh @@ -18,7 +18,6 @@ authority="Developer ID Application:" #codesign --verbose --force --sign "${authority}" ./Binaries/HWMonitor.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app codesign --verbose --force --sign "${authority}" ./Binaries/HWMonitor.app/Contents/Library/LaunchServices/org.hwsensors.HWMonitorHelper -codesign --verbose --force --sign "${authority}" ./Binaries/HWMonitor.app/Contents/Frameworks/Sparkle.framework/Versions/A codesign --verbose --force --sign "${authority}" ./Binaries/HWMonitor.app/Contents/Frameworks/Growl.framework/Versions/A codesign --verbose --force --sign "${authority}" ./Binaries/HWMonitor.app diff --git a/Sparkle/.clang-format b/Sparkle/.clang-format deleted file mode 100755 index 142f3a2f..00000000 --- a/Sparkle/.clang-format +++ /dev/null @@ -1,45 +0,0 @@ -AccessModifierOffset: -4 -AlignEscapedNewlinesLeft: true -AlignTrailingComments: false -AllowAllParametersOfDeclarationOnNextLine: false -AllowShortBlocksOnASingleLine: false -AllowShortFunctionsOnASingleLine: None -AllowShortIfStatementsOnASingleLine: false -AllowShortLoopsOnASingleLine: false -AlwaysBreakBeforeMultilineStrings: false -AlwaysBreakTemplateDeclarations: false -BinPackParameters: true -BreakBeforeBinaryOperators: true -BreakBeforeBraces: Linux -BreakBeforeTernaryOperators: true -BreakConstructorInitializersBeforeComma: false -ColumnLimit: 0 -CommentPragmas: '^ IWYU pragma:' -ConstructorInitializerAllOnOneLineOrOnePerLine: false -ConstructorInitializerIndentWidth: 4 -ContinuationIndentWidth: 4 -Cpp11BracedListStyle: false -#DerivePointerAlignment: false -DisableFormat: false -#ForEachMacros: foreach,Q_FOREACH -IndentCaseLabels: true -IndentFunctionDeclarationAfterType: true -IndentWidth: 4 -KeepEmptyLinesAtTheStartOfBlocks: false -Language: Cpp -MaxEmptyLinesToKeep: 1 -NamespaceIndentation: All -ObjCSpaceAfterProperty: true -ObjCSpaceBeforeProtocolList: true -#PointerAlignment: Right -SpaceBeforeAssignmentOperators: true -SpaceBeforeParens: ControlStatements -SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 1 -SpacesInAngles: false -SpacesInCStyleCastParentheses: false -SpacesInContainerLiterals: false -SpacesInParentheses: false -Standard: Cpp03 -TabWidth: 4 -UseTab: Never diff --git a/Sparkle/.gitignore b/Sparkle/.gitignore deleted file mode 100755 index 8b390eb4..00000000 --- a/Sparkle/.gitignore +++ /dev/null @@ -1,36 +0,0 @@ -build/ -*.pbxuser -!default.pbxuser -*.mode1v3 -!default.mode1v3 -*.mode2v3 -!default.mode2v3 -*.perspectivev3 -!default.perspectivev3 -xcuserdata -*.xccheckout -*.moved-aside -DerivedData -*.xcuserstate - -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear on external disk -.Spotlight-V100 -.Trashes - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk diff --git a/Sparkle/.travis.yml b/Sparkle/.travis.yml deleted file mode 100755 index 20dc67d5..00000000 --- a/Sparkle/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: objective-c -osx_image: xcode7 -before_install: - - brew update - - brew install macmade/tap/xcode-coveralls -script: make ci -after_success: xcode-coveralls --exclude /Applications --exclude Tests --exclude Vendor build/Build/Intermediates/Sparkle.build/Coverage/Sparkle.build/Objects-normal/x86_64 diff --git a/Sparkle/CHANGELOG b/Sparkle/CHANGELOG deleted file mode 100755 index 717c8bf1..00000000 --- a/Sparkle/CHANGELOG +++ /dev/null @@ -1,455 +0,0 @@ -# 1.15.0 - -* A new icon! Thanks to 1024jp -* Show alert when an update is sent over insecure HTTP with no DSA key (Zorg) - - If you can't use HTTPS, you must at least sign updates with a DSA key. -* Improved binary delta implementation (Zorg) -* Added improved -validateMenuItem: as a method in SUUpdater.h for public use (Zorg) -* Removed reachability preflight check (Zorg) -* Clear update caches directory before downloading new update (Zorg) -* Check the bundle's parent directory for writability too (Zorg) -* Don't follow symbolic links for file operations (Zorg) -* Don't bring up an authorized dialog during cleanup (Zorg) -* Made Sparkle look for the highest compatible version regardless of timestamps (Zorg) -* Fixed compatibility with 10.7 - * Fixed crash on 10.7 - subscript operator not available (kleuter) - * Fixed warnings caused by -Wpartial-availability (Zorg) -* Fixed german l10n. (Sebastian Volland) -* Error code for download errors (Kornel Lesiński) -* Update last update check date when the update driver finishes (Zorg) -* Scale app icon up if needed in Software Update window (Nicholas Riley) -* Don't register for termination notifications more than once (Zorg) -* Don't terminate the app if we're already terminating (Zorg) -* Removed SUEnableAutomaticChecksKeyOld and SUCheckAtStartup constants (Eitot) -* Updated Sparkle framework headers to use modules if modules are available (B. Kevin Hardman) -* Fixed warnings, fixed uses of SULocalizedString (Jerry Krinock) -* Improved signing verifier to take any host and s/application/bundle/ (Zorg) -* Improved Spotlight updates after delta extraction (Zorg) - -# 1.14.0 (Mar 11, 2016) - -* Disable javascript by default and make it opt-in (Zorg) -* URL-encoding of appcast URLs is preserved (Kornel Lesiński) -* Delegate is asked for fallback updates if delta update fails (Kornel Lesiński) -* Fixed crash on 10.7 - subscript operator not available (kleuter) -* Fixed check of feed URL before delegate had a chance to set it (Kornel Lesiński) -* Re-added support for password-protected dmg images (Andrew K. Boyd) -* Added warning about ATS blocking (Kornel Lesiński) -* Translation fixes for pt-BR. (vitu) -* Add some Japanese lozalized strings (1024jp) -* Made test app available in all languages #695 (LIU Dongyuan / 柳东原) -* Czech localizations update (Frantisek Erben) -* Removed a test resource from the framework bundle (Karl Moskowski) -* Test if the updated app is the frontmost one (Zorg) -* UI Tests for the Test Application (Zorg) - -# 1.13.1 (Jan 31, 2016) - -Important security fixes: - -* Prevent inclusion of local files via file:// XML entities -* Disable redirects to non-HTTP URLs in release notes webview - -# 1.13.0 (Dec 18, 2015) - -* Changed framework's bundle ID from `org.andymatuschak.Sparkle` to `org.sparkle-project.Sparkle`. - -# 1.12.0 (Dec 13, 2015) - -* Rewritten file operations for updating an app (Zorg) - - Ensuring atomic move operations, robust error handling. - - Faster. - - Using modern APIs where possible (no FSPathMakeRef, FSGetCatalogInfo, FSFindFolder, etc.) - - Strong documentation, easier to read code. -* Automatic updates won't be installed if the system is about to shut off (Zorg) -* Deprecated serving over HTTP without DSA (Zorg) - - Note that Apple has deprecated insecure HTTP in macOS 10.11 -* Improved Autoupdate application (Zorg) - * Do all the installation work after the runloop is set up - * TerminationListener only does termination listening now - * Handle cases where host path is not installation path and host path is not desired executable path - * Don't show Autoupdate dock icon if we shouldn't show UI - * Update modification & access time for new update -* Added installUpdatesIfAvailable (Ian Langworth) -* Removed extensions from shell scripts (Jake Petroules) -* Rewritten test app so it works again, and from a local web server (Zorg) -* Replaced use of Python with built-in web server (Kevin Wojniak) -* Set LD_RUNPATH_SEARCH_PATHS in Podspec (Jake Petroules) -* Don't install automatic updates if the system might shut off (Zorg) -* Don't show Autoupdate dock icon if we shouldn't show UI (Zorg) -* Updated layout constraints when removing release notes (Zorg) -* Improved BinaryDelta error handling & logging (Zorg) -* Refactored quarantine removal (Zorg) -* Fixed German localization (1024jp) -* Updated zh_CN translation (LIU Dongyuan / 柳东原) -* Updated Mac models list until July 2015 (Gabriel Ulici) -* Updated Polish translation (Kornel Lesiński) -* Updated Xcode project languages for which we have translations (Jake Petroules) -* Updated XIB files (Kornel Lesiński) -* Use NSByteCountFormatter if available (Jake Petroules) -* Declared protocols on SUUpdateAlert for the 10.11 SDK (Daniel Jalkut) -* Silenced warning about casting away const-ness and -Wassign-enum (Daniel Jalkut) -* Added script to generate a report comparing the Sparkle.strings files (Kevin Wojniak) -* Check for empty strings (as well as nil) in SUHost's -name method (Karl Moskowski) -* Don't follow symlinks for checking file existence (Zorg) -* Unit tests in Swift (Zorg, Jake Petroules) -* Fixed framework imports (Felix Schulze) -* Fixed issues with copying files from different mounted drives (Zorg) -* Disallowed automatic updates when user can't write to the bundle (Zorg) -* Set the task working directories instead of changing the process working directory (Kevin Wojniak) - -# 1.11.1 (Nov 9, 2015) - -* Don't install automatic updates when system is about to shut down - -# 1.11.0 (Aug 24, 2015) - -* Big improvements to code signing and DSA verification - - Sparkle now checks not only whether an update is correctly signed, but also whether the updated version will be able to verify future updates. Updates now must either use DSA keys correctly, or not try to use them at all. Same goes for Apple Code Signing. - - Rely on code signing and the DSA key in the new app instead of appcast. If the new app has a public DSA key, then the appcast item must have a DSA signature for the app, even if the app is code signed. (Zorg) -* More verbose error message when DSA keys don't match (Kornel Lesiński) -* Added delegate methods for pre-download and immediately post-failed-download (Isaac Greenspan) -* Fix Lucida Grande is always used for release notes (LIU Dongyuan / 柳东原) -* Only remove quarantine with setResourceValue: when it's present. Fixes "Unable to quarantine: 93" messages from showing up in the console. (Zorg) -* Fixed const and nullability warnings (Jake Petroules, Kornel Lesiński) -* Replaced deprecated NSRunAlertPanel/alertWithMessageText (Kevin Wojniak) -* Imported the Foundation umbrella header in all the public headers (C.W. Betts) -* pt-BR localization update (Victor Figueiredo) -* Reject unsupported code-signing xattrs in binary delta (Zorg) -* Fixed crash while applying delta update (antonc27) -* Added logging of appcast/download URL on error (Kornel Lesiński) -* More robust reading of Autoupdate.app path from Sparkle bundle - -# 1.10.0 (Apr 26, 2015) - -* Massive improvements to the BinaryDelta tool (Zorg) - - Ability to track file permissions (Zorg) - - Nicely formatted log output (Zorg) - - Numerous bug fixes in handling of symlinks, empty directories, case-insensitive names, etc. (Zorg) - - Refactored and modernized code (Zorg) - - libxar is no longer weak-linked (C.W. Betts) -* Double-check the code signature of the the app after installation (Isaac Wankerl) -* Added headless guided package installation (Graham Miln) -* Added ability to inject custom HTTP headers in appcast request (Mattias Gunneras) -* Changes to make unarching more reliable (Zorg, Kornel Lesiński) -* Have Sparkle build a framework module (C.W. Betts) -* Stdout used for non error outputs (JDuquennoy) -* French locale update (Kent Sutherland) - -# 1.9.0 (Jan 26, 2015) - -* Added SUUpdater delegate method for failures. (Benjamin Gordon) -* Make the error definitions public (C.W. Betts) -* Add support for lzma compressed tarballs (Kyle Fuller) -* Back to SKIP_INSTALL=YES by default (Tony Arnold) -* Properly set install names and rpaths for targets (Jake Petroules) -* Use Library/Caches rather than app support directory (Kornel Lesiński) -* Check for a modal window being onscreen before trying to put up the Sparkle prompt (Alf Watt) -* Fixed crashes on 10.7 (Chris Campbell, Ger Teunis) -* Fixed Sparkle tags parsing (Tamás Lustyik) -* SULog code cleanups (Kevin Wojniak) -* Make sure CFBundleVersion is a semantic version number. (Jake Petroules) -* Replace typedef enums with typedef NS_ENUM to make Swift happier (C.W. Betts) -* Fix warnings under Xcode 6.1 relating the SUUpdateAlert XIB (Tony Arnold) -* Prefer string constants to strings (Jake Petroules) -* Use Info.plist keys instead of macros (Jake Petroules) -* Only export public symbols. (Jake Petroules) -* BinaryDelta: avoid crash with bad paths (Jake Petroules) -* Fixing Swedish translations (Erik Vikström) -* Turkish localization fixes (Emir) -* Proofing of Ukrainian localization (Vera Tkachenko) - -# 1.8.0 (Jul 26, 2014) - -* New SUDSAVerifier based on up-to-date macOS APIs (Zachary Waldowski) -* Detailed error log for failed signature checks (Kornel Lesiński) -* Converted Sparkle to ARC (C.W. Betts) -* Converted ivars to properties. (Jake Petroules) -* Cocoapod support (Xhacker Liu) -* Quarantine removal on macOS 10.10 (C.W. Betts) -* Updated Japanese localization (1024jp) -* Added Greek localization - -# 1.7.1 (Jul 2, 2014) - -* Removed option to install unverified updates (Kornel Lesiński) -* Added detailed log when code signing verification fails (Sam Deane) -* Restored original Sparkle icon. (Jake Petroules) -* Switched SUUpdateAlert.xib to AutoLayout (Kornel Lesiński) -* Replace references to andymatuschak.org with sparkle-project.org. (Jake Petroules) -* Several code cleanups, modernizations, fixed warnings and improved code formatting (Jake Petroules) -* Make the repository significantly more organized. (Jake Petroules) -* Xcode project: set organization name and class prefix. (Jake Petroules) -* Link to Foundation and AppKit instead of Cocoa. (Jake Petroules) -* Use new operatingSystemVersion API when available. (Jake Petroules) -* Add .clang-format configuration file for source code formatting. (Jake Petroules) -* Add a target to build Sparkle API documentation using Doxygen. (Jake Petroules) - -# 1.7.0 - -* Dropped support for macOS 10.6. Sparkle now supports 10.7 and newer (including 10.10 Yosemite) on 64-bit Intel Macs (the last 32-bit Mac was released in 2006). -* Removed use of deprecated functions (Zachary Waldowski) -* Switched to modern Obj-C runtime and new literals syntax -* Removed pre-10.7 code. (C.W. Betts) -* Use more Blocks/libdispatch code. (C.W. Betts) -* Cleaned up and improved security of `generate_keys`/`sign_update` scripts - -# 1.6.1 - -* Removed archive password prompt (Kornel Lesiński) -* (Re)fixes bug where URLs are naively double escaped (Andrew Madsen) -* Fixed typo that caused crashes in BinaryDelta (Tamas Lustyik) -* SUStandardVersionComparator.h is public (Vincent CARLIER) -* Remove pre-10.6-specific code. (C.W. Betts) -* Objective C 2 getters and setters. (C.W. Betts) -* Define correct dependencies on locale scripts (Antonin Hildebrand) - -# 1.6.0 - -* Cleaned up and deleted redundant strings files (Kornel Lesiński) -* Modern Objective C syntax, properties where possible. (C.W. Betts) -* Make SUAppcastDelegate a formal protocol. (C.W. Betts) -* Fixed default font in release notes WebView (Kornel Lesiński) -* Configurable name for finish_installation.app (Kornel Lesiński) -* Removed code for 10.4 (Kornel Lesiński) -* Convert all strings files to UTF-8 (UTF-16 must die) (Kornel Lesiński) -* Removing GC target (Matt Thomas) -* finish_installation.app and pkg files will not removed when we use *.pkg installer and restart system in the installer (Takayama Fumihiko) -* Select Korean and Slovak for Sparkle.strings localization (Shon Frazier) -* Updated the Romanian translation (Gabe) -* pt-BR localization polishing (BR Lingo) -* update zh_CN (61) -* Shut up some warnings & make build with newer Xcode (Uli Kusterer) -* Less unsafety with format strings (Uli Kusterer) -* New icon (Rick Fillion) -* fixed a 'content rectangle not entirely onscreen' warning (Simone Manganelli) -* updated sends system profile to use info.plist if user defaults key isn't present (Jamie Pinkham) -* Support for notifications on some updater events (Doug Russell) -* Allow the delegate to trigger a silent install and relaunch (Matt Stevens) -* Support silent relaunches (Matt Stevens) -* Increment the sudden termination counter if installing on quit (Matt Stevens) -* Prompts the user to update after a week (rather than a day) if he doesn't quit the app (Andy Matuschak) -* Adding appcast item element, tag (Andy Matuschak) -* We have this check box that says "Automatically download and install updates in the future." But we only download them automatically. We still ask permission again before installing them. (Andy Matuschak) - -# 1.5.0-beta6 - -* Important Changes - * Sparkle now requires DSA signatures on your updates. Check the documentation for more information on how to set that up if you don't already sign your updates. You can bypass this requirement if you deliver both your appcast and your updates over SSL. -* Sparkle will no longer display release notes located at file:// URLs, since Javascript on such a page would be able to read files on your file system. -* For security reasons, Sparkle will refuse to install updates which appear to "downgrade" the app. -* SUUpdater now implements new keys: "automaticallyDownloadsUpdates", "lastUpdateCheckDate", and "sendsSystemProfile." -* Fixed a bug that could prevent SUProbingUpdateDriver from working. -* Fixed a bug that prevented the updaterWillRelaunchApplication: delegate method from getting called. -* Fixed displaying release notes transmitted "loose" in the key. -* Fixed Sparkle compilation on 10.4 systems. -* Fixed a bug that could cause window confusion if an app changed its LSUIElement at runtime. -* Added support for Sparkle 1.1's behavior of disabling updates when the check interval is 0. -* Sparkle can now handle appending parameters to URLs which already have parameters. -* If an update's sparkle:shortVersionString is the same as the host's CFBundleShortVersionString, the sparkle:version and CFBundleVersion will be presented in parentheticals. - -# 1.5.0-beta5 - -* Important Changes! - * Made every Sparkle class private except for SUUpdater, SUAppcast, SUAppcastItem, and the SUVersionComparisonProtocol. - * There is now a single SUUpdater singleton for every host bundle; instead of -[SUUpdater setHostBundle], you can use +[SUUpdater updaterForBundle]. - * Redefined the (entire) delegate protocol accordingly. - * Renamed -[SUUpdater updatePreferencesChanged] to -[SUUpdater resetUpdateCycle]. This provides better semantics for non-apps, which need to start the update cycle manually. - * -[SUUpdater checkForUpdatesWithDriver] is private. If you were using SUProbingUpdateDriver, you can now use -[SUUpdater checkForUpdateInformation] for a similar effect. - * All the user defaults keys are now private; instead, SUUpdater is KVC-compliant for automaticallyChecksForUpdates, updateCheckInterval, and feedURL. -* Reduced the size of the English-only framework by 25%. -* System profiling information is now only submitted to the server once per week; this will help normalize your statistics across users with different interval preferences. -* The feedParamatersForUpdater: delegate method now requires "displayKey" and "displayVersion" keys so that it can inform the user what's being sent. -* Added a delegate method called pathToRelaunchForUpdater: which can be used for plugins to provide the path which should be used when relaunching the client after installing an update. -* Added support for xml:lang to pick localized nodes in appcasts (for release notes, etc). -* Fixed a bug which would cause the "checking for updates" window to not disappear in certain extraordinary error conditions. -* Fixed a DSA signature checking bug for .tar.gz archives. -* Sparkle now refuses to update on any read-only volume, not just dmgs. -* Sparkle will clean up the host app's name and version before sending it as the user agent string; some non-ASCII characters were causing problems. -* Added an Italian localization courtesy Michele Longhi. -* Added a Swedish localization courtesy Daniel Bergman. -* Fixes to the French localization courtesy Ronald Leroux and Yann Ricqueberg. -* Fixes to the German localization courtesy Sven-S. Porst. -* Fixes to the Russian localization courtesy Alexander Bykov and Anton Sotkov. -* Fixed a number of issues related to archive format detection: I reverted back to extensions from UTIs. -* Focus behavior fixes for LSUIElement apps. -* The status window progress bar now animates even when indeterminate. -* Major refactorings to improve functionality for non-app bundles. - -# 1.5.0-beta4 - -* Fixed a critical bug which prevented non-.dmgs from unarchiving properly. -* Added reporting of 64-bit capability to the profiling system. - -# 1.5.0-beta3 - -* Added a new delegate method to SUUpdater.h to allow delegates to specify custom version comparators. -* Added a German localization, courtesy the Camino localizer team: Dominik Tobschall, Tobias Stohr, and Friedemann Bochow. -* Bug fixes: - * Fixed a serious bug which could cause a server to be DDoS'd (or the host app to crash!) if an appcast fails to be parsed. - * Fixed .tbz extraction if the archive was made with Stuffit. - * Fixed support for .tar.bz2 and .tar.gz; Sparkle has to assume the archive is a tar when it sees "bz2" and "gz"; don't use those without tarring. - * Fixed a typo which caused the shouldPromptForPermissionToCheckForUpdatesToHostBundle: method to not work in 1.5b2. - * Fixed .zip extraction on Tiger (Apple changed the UTI between releases) - * Fixed a crasher on Tiger. - * Fixed display of the default app icon when the host app doesn't have an icon. - * Sparkle now displays a sensible progress string and uses an indeterminate progress bar when the server doesn't report a file size. - * Fixed some memory leaks. - - # 1.5.0-beta2 - - * Compatibility Issues: - * Most of the delegate method selectors have changed to scale better. See SUUpdater.h for changes; you'll likely have to make changes if you implement any delegate methods. - * If you're using .tar.gz or .tar.bz2 archives, name them ".tbz" or ".tgz" instead; Sparkle now uses UTIs for archive detection, and it's not smart about double extensions. - * I'm no longer supporting 10.3. This may or may not work on Panther—probably not. - * Sparkle's no longer built for ppc64 by default. If you want to ship that, feel free to build your own, but this saves a few hundred k. -* Enhancements: - * Sparkle now detects if the preferences for automatic update checks or the time interval change mid-cycle. - * If your product is a non-.app, you need to clue Sparkle in on the change by calling [[SUUpdater sharedUpdater] updatePreferencesChanged]. - * Added a cancel to the "checking for updates..." dialog. - * Sparkle now cleans up all its litter in /tmp. - * Made SUUpdater's delegate an IBOutlet so you can hook it up in IB. -* Bug fixes: - * Sparkle no longer crashes on non-GC hosts when the user cancels an update's downloads. - * Sparkle no longer gets stuck in an inconsistent state or crashes when it can't parse the appcast on scheduled updates. - * Added the sharedUpdater method to SUUpdater, as it should have been. - * Fixed a bug where the "checking for updates..." window wouldn't go away if an error occurs while checking for updates. - * Made the dual-mode build configuration actually use the .xcconfig which builds it with GC support. (oops!) - * Fixed relaunching for prefpanes. - * Sparkle no longer fails to install updates on Snow Leopard (though there's still an issue with trashing the old version of the app, but it seems to be a 10.6 bug) - * Sparkle now handles redirects correctly under Tiger. - * Fixed the installation path for non-.app bundles. - * Fixed a bug which could crash Sparkle under non-English locales. - * Fixed a weird race condition which could cause the relaunch tool to never notice that its target relaunched. - * Fixed a bug where if the host app is inactive when an update occurs, the update alert sometimes doesn't become key. - * Minor textual fixes. -* Localizations: - * Dutch: Maarten Van Coile - * French: Yann Ricquebourg - * Spanish: Ernesto Gomez Cereijo - - # 1.5.0-beta1 - - * The most important things to know: - * The 10.3 support is untested at best; sketchy at worst. Test with it thoroughly before you use it. - * Sparkle now asks for permission to update on second launch; don't be surprised at that. You can change that behavior with a delegate method; read SUUpdater.h for more info. - * We no longer distinguish between "check on startup" and "scheduled updates"; everything is scheduled, with the default being every day. - * The test application is using the new profiling features, but that's only for demonstration: these are off by default. More on this later. - * There are no localizations yet. -* New features: - * Sparkle now supports .pkgs. Just name the .pkg the name of the app and put in the update archive. - * Sparkle now sends optional demographic profiling information; set SUEnableSystemProfiling to YES in your Info.plist and check out the GET data sent to your webserver when fetching the appcast. More on this in the documentation. The test application has this on so you can see the behavior. - * Sparkle now supports updating non-.apps. Just call -setHostBundle: on the global SUUpdater to let it know what you're trying to update. - * Sparkle now supports garbage collection in the host app. Use "Sparkle-with-GC.framework" for that, but be aware it's 10.5-only. - * Sparkle is now 64-bit compatible, compiling both ppc64 and x86_64. - * Sparkle now supports a sparkle:minimumSystemVersion key you can set on appcast items. It does what you think it does. - * Sparkle now checks to see if the host app is running from a disk image and refuses to update if it is. (10.4+ only) - * Added support for entities in enclosure paths. - * The file size output is now formatted prettily. - * Sparkle now gives visual indication that it's checking for updates when the update's user initiated. ie: it pops up a status controller saying "checking for updates..." - * Added support for an SUPublicDSAKeyFile, so people don't have to copy/paste their entire key into their Info.plist. Set this key in your Info.plist to the filename of the key in your Resources directory. - * Added an actually maintainable codebase. -* Changes: - * Sparkle version comparison is now dramatically less stupid and verified by a bunch of unit tests. If something doesn't work the way you think it should, add a test to SUVersionComparisonTest.m - * Added a minimum to the check interval so that developers don't accidentally release their apps into the wild with 60-second test check intervals and have DOS-attack-like results. It's an hour now for release mode; feel free to change it. - * The relaunching process now uses a separate helper app, which is a much more robust method. - * Changed CFBundleShortVersionString behavior: Sparkle no longer uses Apple's about box style of displaying ShortVersionString (CFBundleVersion) when the latter is available. - * No more MD5 checking. Use DSA: it's actually secure. - * The abomination that was SUStatusChecker is dead. Use SUProbingUpdateDriver instead. -* Bugfixes: - * Fixed a huge bug with fully-automatic updating: before, if the user chose to relaunch later, the app would be running from the trash for a while. Now the buttons are "install and relaunch" or "install later." - * Sparkle forces Spotlight to reindex the updated app so that it won't keep pointing to the one in the trash. - * Sparkle trims whitespace from around DSA signatures; this could cause crashes before. - * Fixed a bug where the user choosing to skip a version would inhibit future automatic updates until the next launch. - * Fixed a bug that could occur when the app has a localized CFBundleName. - * .dmgs now work on Leopard. - * The status controller's button now sizes appropriately to the localization. - * Sparkle now works correctly with LSUIElement apps: it focuses them before displaying the update alert. - * Sparkle now deletes failed partial downloads. - * The update alert no longer floats above everything in the app. - * Fixed varied and sundry memory leaks. -* A ton of other things that I've forgotten or were too small to mention! - -# 1.1 - -* Optimized framework size: now only 1.4mb with all localizations and 384kb with only English (an English-only version is in the Extras folder). -* Added a new SUStatusChecker class for programmatically determining if a new version is available (see the docs); thanks, Evan Schoenberg! -* Added support for apps using SIGCHLD; thanks, Augie Fackler! -* Added a zh_CN update from JT Lee -* Added a Polish update from Piotr Chylinski -* Fixed DMG support for images with /Applications symlinks. -* Fixed a really stupid interval-checking bug that could cause repeated hits to the appcast. -* Fixed a bug where the check interval would be inconsistent if a value of 0 was stored in the user defaults. - -# 1.0 - -* Additions: - * Added real version comparison courtesy Kevin Ballard: Sparkle now knows that 0.89 < 1.0a3 < 1.0. - * Added many localizations courtesy David Kocher's localization team. - * Added a much better installation mechanism courtesy Allan Odgaard. - * Added a user agent string to the RSS fetch request. - * Added support for CFBundleShortVersionString in addition to CFBundleVersion, and support for a sparkle:shortVersionString attribute on the enclosure. - * Added support for CFBundleDisplayName if available. -* Changes: - * Automatic updating is now allowed by default, but only if DSA signing is on. - * Pressing Escape or closing the update alert now reminds the user later. - * Now when there's a stored check interval, Sparkle doesn't check immediately on startup the first time the app is launched because the user hasn't consented to it yet. - * The update alert now remembers its size and floats. -* Bug Fixes: - * Fixed installation of DMGs with multiple files enclosed. - * Fixed a nasty memory leak. - * Fixed a bug wherein having no value for allowing automatic updates would display a checkbox for the updates but would not honor it. - * Fixed a bug in zip extraction that occurred in Panther. - * Fixed release notes caching. - * Fixed a bug wherein Sparkle refused to authenticate the installation if the user had cancelled authentication previously in that session. - * Fixed a weird bug that would cause a second help menu to appear on first launch. - * Fixed a bug that could occur when changing the scheduled check interval. - * Fixed a bug wherein the host app could crash if the user clicked Remind Me Later before the release notes finished loading. - * Fixed a bug wherein the behavior was undefined if the user manually initiated a check when an automatic one was already taking place. - * Fixed wrapping on the description field in the update alert. - -# 1.0-beta3 - -* Fixed a nasty crasher that occurred often when the user was not connected to the internet. - -# 1.0-beta2 - -* Major Improvements: - * Fully automatic updating! (see the Documentation: this is beta and off by default) - * Added support for DSA signatures (see the Documentation). - * Added support for MD5 sum verification. - * Added Security.framework-based authentication for installing to privileged directories. - * Huge refactoring of the codebase: there's now a Sparkle Xcode project, Sparkle is now a framework, and everything is modular / abstracted. And no more code-generated interface. -* Minor Improvements: - * A SUUpdaterWillRestartNotification is sent out before restarting now. - * Added key equivalents to alert panel buttons. - * Error handling is much prettier now: technical messages are not presented to the user anymore. - * There's now a test app for developers to see what Sparkle's like before using it. - * Wrote new, pretty, extremely thorough documentation. -* Bug Fixes: - * Relaunch behavior is much improved and shouldn't fail in huge apps anymore. - * Fixed a bug wherein a failing tar command could crash the host app. - * Sparkle now looks at InfoPlist.strings in addition to Info.plist. - * Fixed some stupid typos. - -# 1.0-beta1 - -* Major New Features: - * Sparkle now supports scheduled periodic updates—read the Readme for information on how to use it. - * Sparkle now supports WebKit-based release notes (for CSS and full HTML), which it displays in the main update alert, not a separate panel. The Readme has much more information. Sparkle will, of course, fall back on NSTextView if the host app does not include WebKit. -* Minor New Features: - * Added support for .zip update archives. - * Added support for .dmg update archives. - * Implemented Remind Me Later to replace simple update cancellation. - * Implemented Skip This Version functionality. - * Added support for multiple feeds via the user defaults SUFeedURL key taking precedent over the one in Info.plist. - * Added support for Sparkle's custom XML namespace, which is optional but may prove useful. See the Readme for more information. -* Bug Fixes: - * Sparkle will no longer enter an inconsistent state if the user tries to update again while one is already in progress. - * Sparkle now uses CFBundleName to determine the application's name instead of the app's filename. - * Sparkle no longer crashes if the user cancels during extraction. - * Lots of code refactoring. - -# 0.1 - -* Initial Release diff --git a/Sparkle/CODE_OF_CONDUCT.md b/Sparkle/CODE_OF_CONDUCT.md deleted file mode 100755 index a1ac5dbf..00000000 --- a/Sparkle/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,74 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, gender identity and expression, level of experience, -nationality, personal appearance, race, religion, or sexual identity and -orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or -advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting the project team at kornel+sparkle@geekhood.net. All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at [http://contributor-covenant.org/version/1/4][version] - -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ diff --git a/Sparkle/Configurations/ConfigBinaryDelta.xcconfig b/Sparkle/Configurations/ConfigBinaryDelta.xcconfig deleted file mode 100755 index 105b1ee5..00000000 --- a/Sparkle/Configurations/ConfigBinaryDelta.xcconfig +++ /dev/null @@ -1 +0,0 @@ -// BinaryDelta tool only diff --git a/Sparkle/Configurations/ConfigBinaryDeltaDebug.xcconfig b/Sparkle/Configurations/ConfigBinaryDeltaDebug.xcconfig deleted file mode 100755 index 3be980b1..00000000 --- a/Sparkle/Configurations/ConfigBinaryDeltaDebug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigBinaryDelta.xcconfig" - diff --git a/Sparkle/Configurations/ConfigBinaryDeltaRelease.xcconfig b/Sparkle/Configurations/ConfigBinaryDeltaRelease.xcconfig deleted file mode 100755 index 3e22baaa..00000000 --- a/Sparkle/Configurations/ConfigBinaryDeltaRelease.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "ConfigBinaryDelta.xcconfig" diff --git a/Sparkle/Configurations/ConfigCommon.xcconfig b/Sparkle/Configurations/ConfigCommon.xcconfig deleted file mode 100755 index 0824aaeb..00000000 --- a/Sparkle/Configurations/ConfigCommon.xcconfig +++ /dev/null @@ -1,93 +0,0 @@ -// Common - -SPARKLE_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle -SPARKLE_RELAUNCH_TOOL_NAME = Autoupdate -SPARKLE_FILEOP_TOOL_NAME = fileop - -SPARKLE_APPEND_VERSION_NUMBER = 1 - -// Sparkle usually doesn't allow downgrades as they're usually accidental, but -// if your app has a downgrade function or URL handler, turn this on -SPARKLE_AUTOMATED_DOWNGRADES = 0 - -// If your app file on disk is named "MyApp 1.1b4", Sparkle usually updates it -// in place, giving you an app named 1.1b4 that is actually 1.2. Turn the -// following on to always reset the name back to "MyApp": -SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME = 0 - -SPARKLE_VERSION_MAJOR = 1 -SPARKLE_VERSION_MINOR = 15 -SPARKLE_VERSION_PATCH = 1 -SPARKLE_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) - -CURRENT_PROJECT_VERSION = $(SPARKLE_VERSION) -ALWAYS_SEARCH_USER_PATHS = NO -ENABLE_STRICT_OBJC_MSGSEND = YES -GCC_PRECOMPILE_PREFIX_HEADER = YES -GCC_PREFIX_HEADER = Sparkle/Sparkle.pch -GCC_SYMBOLS_PRIVATE_EXTERN = YES -GCC_INLINES_ARE_PRIVATE_EXTERN = YES -ARCHS = $(ARCHS_STANDARD) -MACOSX_DEPLOYMENT_TARGET = 10.7 -PRODUCT_NAME = ${TARGET_NAME} -PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.Sparkle.${PRODUCT_NAME:rfc1034identifier} - -GCC_PREPROCESSOR_DEFINITIONS_COMMON = SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME=$(SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) SPARKLE_AUTOMATED_DOWNGRADES=$(SPARKLE_AUTOMATED_DOWNGRADES) SPARKLE_APPEND_VERSION_NUMBER=$(SPARKLE_APPEND_VERSION_NUMBER) SPARKLE_BUNDLE_IDENTIFIER=\"$(SPARKLE_BUNDLE_IDENTIFIER)\" SPARKLE_RELAUNCH_TOOL_NAME=\"$(SPARKLE_RELAUNCH_TOOL_NAME)\" SPARKLE_FILEOP_TOOL_NAME=\"$(SPARKLE_FILEOP_TOOL_NAME)\" - -CLANG_ENABLE_OBJC_ARC = YES -GCC_ENABLE_PASCAL_STRINGS = NO -GCC_NO_COMMON_BLOCKS = YES; -COMBINE_HIDPI_IMAGES = NO; - -// Enable warnings -CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; -CLANG_ANALYZER_SECURITY_FLOATLOOPCOUNTER = YES -CLANG_ANALYZER_SECURITY_INSECUREAPI_RAND = YES -CLANG_ANALYZER_SECURITY_INSECUREAPI_STRCPY = YES -CLANG_ENABLE_MODULES = YES -CLANG_WARN__DUPLICATE_METHOD_MATCH = YES -CLANG_WARN_ASSIGN_ENUM = YES -CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES -CLANG_WARN_DOCUMENTATION_COMMENTS = YES -CLANG_WARN_EMPTY_BODY = YES -CLANG_WARN_IMPLICIT_SIGN_CONVERSION = YES -CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES -CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = YES -CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES -CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = YES -CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES -CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES -CLANG_WARN_UNREACHABLE_CODE = YES -GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = YES -GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES -GCC_WARN_64_TO_32_BIT_CONVERSION = YES -GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES -GCC_WARN_ABOUT_MISSING_NEWLINE = YES -GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES -GCC_WARN_ABOUT_RETURN_TYPE = YES -GCC_WARN_FOUR_CHARACTER_CONSTANTS = YES -GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES -GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES -GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES -GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES -GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES -GCC_WARN_PEDANTIC = YES -GCC_WARN_SHADOW = YES -GCC_WARN_SIGN_COMPARE = YES -GCC_WARN_STRICT_SELECTOR_MATCH = YES -GCC_WARN_UNDECLARED_SELECTOR = YES -GCC_WARN_UNKNOWN_PRAGMAS = YES -GCC_WARN_UNUSED_FUNCTION = YES -GCC_WARN_UNUSED_LABEL = YES -GCC_WARN_UNUSED_PARAMETER = YES -GCC_WARN_UNUSED_VARIABLE = YES - -// Fixes a strange issue where the compiler thinks references to some enums are ambiguous -CLANG_ENABLE_MODULES[sdk=macosx10.7] = NO -CLANG_ENABLE_MODULES[sdk=macosx10.8] = NO - -// These should be removed once the conversion to ARC is complete -WARNING_CFLAGS_EXTRA = -Wno-custom-atomic-properties -Wno-implicit-atomic-properties - -// Turn on all warnings, then disable a few which are almost impossible to avoid -WARNING_CFLAGS = -Wall -Weverything -Wno-unused-macros -Wno-gnu-statement-expression -Wno-arc-repeated-use-of-weak -Wno-auto-import $(WARNING_CFLAGS_EXTRA) diff --git a/Sparkle/Configurations/ConfigCommonCoverage.xcconfig b/Sparkle/Configurations/ConfigCommonCoverage.xcconfig deleted file mode 100755 index afa2360c..00000000 --- a/Sparkle/Configurations/ConfigCommonCoverage.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -#include "ConfigCommonDebug.xcconfig" - -GCC_GENERATE_TEST_COVERAGE_FILES = YES -GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = YES diff --git a/Sparkle/Configurations/ConfigCommonDebug.xcconfig b/Sparkle/Configurations/ConfigCommonDebug.xcconfig deleted file mode 100755 index 2ac1b545..00000000 --- a/Sparkle/Configurations/ConfigCommonDebug.xcconfig +++ /dev/null @@ -1,12 +0,0 @@ -#include "ConfigCommon.xcconfig" - -// Debug only - -GCC_OPTIMIZATION_LEVEL = 0 -SWIFT_OPTIMIZATION_LEVEL = -Onone -DEBUG_INFORMATION_FORMAT = dwarf -ENABLE_TESTABILITY = YES -GCC_GENERATE_DEBUGGING_SYMBOLS = YES -GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) DEBUG=1 -ONLY_ACTIVE_ARCH = YES -COPY_PHASE_STRIP = NO diff --git a/Sparkle/Configurations/ConfigCommonRelease.xcconfig b/Sparkle/Configurations/ConfigCommonRelease.xcconfig deleted file mode 100755 index 32eae505..00000000 --- a/Sparkle/Configurations/ConfigCommonRelease.xcconfig +++ /dev/null @@ -1,12 +0,0 @@ -#include "ConfigCommon.xcconfig" - -// Release only - -GCC_OPTIMIZATION_LEVEL = s -SWIFT_OPTIMIZATION_LEVEL = -Ofast -DEBUG_INFORMATION_FORMAT = dwarf-with-dsym -GCC_GENERATE_DEBUGGING_SYMBOLS = YES -GCC_PREPROCESSOR_DEFINITIONS = $(GCC_PREPROCESSOR_DEFINITIONS_COMMON) -DEAD_CODE_STRIPPING = YES -GCC_TREAT_WARNINGS_AS_ERRORS = NO -GCC_WARN_UNINITIALIZED_AUTOS = YES diff --git a/Sparkle/Configurations/ConfigFileop.xcconfig b/Sparkle/Configurations/ConfigFileop.xcconfig deleted file mode 100755 index 33efd218..00000000 --- a/Sparkle/Configurations/ConfigFileop.xcconfig +++ /dev/null @@ -1,5 +0,0 @@ -// Fileop tool only - -PRODUCT_NAME = $(SPARKLE_FILEOP_TOOL_NAME) -SKIP_INSTALL = YES -CLANG_ENABLE_MODULES = NO diff --git a/Sparkle/Configurations/ConfigFramework.xcconfig b/Sparkle/Configurations/ConfigFramework.xcconfig deleted file mode 100755 index fb394e01..00000000 --- a/Sparkle/Configurations/ConfigFramework.xcconfig +++ /dev/null @@ -1,13 +0,0 @@ -// Framework only - -DYLIB_INSTALL_NAME_BASE = @rpath -DYLIB_COMPATIBILITY_VERSION = 1.6 -DYLIB_CURRENT_VERSION = $(SPARKLE_VERSION_MAJOR).$(SPARKLE_VERSION_MINOR).$(SPARKLE_VERSION_PATCH) -WRAPPER_EXTENSION = framework -FRAMEWORK_VERSION = A -INFOPLIST_FILE = Sparkle/Sparkle-Info.plist -GCC_PREPROCESSOR_DEFINITIONS = $(inherited) BUILDING_SPARKLE=1 -OTHER_LDFLAGS = -Wl,-U,_NSURLQuarantinePropertiesKey -SKIP_INSTALL = YES -DEFINES_MODULE = YES -PRODUCT_BUNDLE_IDENTIFIER = ${SPARKLE_BUNDLE_IDENTIFIER} diff --git a/Sparkle/Configurations/ConfigFrameworkDebug.xcconfig b/Sparkle/Configurations/ConfigFrameworkDebug.xcconfig deleted file mode 100755 index 184b8a7d..00000000 --- a/Sparkle/Configurations/ConfigFrameworkDebug.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -#include "ConfigFramework.xcconfig" - -// Unit tests need access to non-public classes -GCC_SYMBOLS_PRIVATE_EXTERN = NO diff --git a/Sparkle/Configurations/ConfigFrameworkRelease.xcconfig b/Sparkle/Configurations/ConfigFrameworkRelease.xcconfig deleted file mode 100755 index 58d6b5aa..00000000 --- a/Sparkle/Configurations/ConfigFrameworkRelease.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigFramework.xcconfig" - diff --git a/Sparkle/Configurations/ConfigRelaunch.xcconfig b/Sparkle/Configurations/ConfigRelaunch.xcconfig deleted file mode 100755 index 292437c9..00000000 --- a/Sparkle/Configurations/ConfigRelaunch.xcconfig +++ /dev/null @@ -1,8 +0,0 @@ -// Relaunch Tool only - -INFOPLIST_FILE = Sparkle/Autoupdate/Autoupdate-Info.plist -PRODUCT_NAME = $(SPARKLE_RELAUNCH_TOOL_NAME) -SKIP_INSTALL = YES -ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon -CLANG_ENABLE_MODULES = NO -OTHER_LDFLAGS = -Wl,-U,_NSURLQuarantinePropertiesKey diff --git a/Sparkle/Configurations/ConfigRelaunchDebug.xcconfig b/Sparkle/Configurations/ConfigRelaunchDebug.xcconfig deleted file mode 100755 index 4ddb5d77..00000000 --- a/Sparkle/Configurations/ConfigRelaunchDebug.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "ConfigRelaunch.xcconfig" diff --git a/Sparkle/Configurations/ConfigRelaunchRelease.xcconfig b/Sparkle/Configurations/ConfigRelaunchRelease.xcconfig deleted file mode 100755 index 4ddb5d77..00000000 --- a/Sparkle/Configurations/ConfigRelaunchRelease.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "ConfigRelaunch.xcconfig" diff --git a/Sparkle/Configurations/ConfigSwift.xcconfig b/Sparkle/Configurations/ConfigSwift.xcconfig deleted file mode 100755 index 8e0862f9..00000000 --- a/Sparkle/Configurations/ConfigSwift.xcconfig +++ /dev/null @@ -1 +0,0 @@ -SWIFT_VERSION = 3.0 diff --git a/Sparkle/Configurations/ConfigSwiftDebug.xcconfig b/Sparkle/Configurations/ConfigSwiftDebug.xcconfig deleted file mode 100755 index 4a437b26..00000000 --- a/Sparkle/Configurations/ConfigSwiftDebug.xcconfig +++ /dev/null @@ -1 +0,0 @@ -SWIFT_OPTIMIZATION_LEVEL = -Onone diff --git a/Sparkle/Configurations/ConfigSwiftRelease.xcconfig b/Sparkle/Configurations/ConfigSwiftRelease.xcconfig deleted file mode 100755 index 05d2efe9..00000000 --- a/Sparkle/Configurations/ConfigSwiftRelease.xcconfig +++ /dev/null @@ -1 +0,0 @@ -SWIFT_OPTIMIZATION_LEVEL = -Ofast diff --git a/Sparkle/Configurations/ConfigTestApp.xcconfig b/Sparkle/Configurations/ConfigTestApp.xcconfig deleted file mode 100755 index f34249fc..00000000 --- a/Sparkle/Configurations/ConfigTestApp.xcconfig +++ /dev/null @@ -1,7 +0,0 @@ -// Test Application only - -INFOPLIST_FILE = TestApplication/TestApplication-Info.plist -WRAPPER_EXTENSION = app -ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon -LD_RUNPATH_SEARCH_PATHS = @executable_path/../Frameworks -PRODUCT_BUNDLE_IDENTIFIER = org.sparkle-project.SparkleTestApp diff --git a/Sparkle/Configurations/ConfigTestAppDebug.xcconfig b/Sparkle/Configurations/ConfigTestAppDebug.xcconfig deleted file mode 100755 index 476c0f07..00000000 --- a/Sparkle/Configurations/ConfigTestAppDebug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigTestApp.xcconfig" - diff --git a/Sparkle/Configurations/ConfigTestAppRelease.xcconfig b/Sparkle/Configurations/ConfigTestAppRelease.xcconfig deleted file mode 100755 index de0d2802..00000000 --- a/Sparkle/Configurations/ConfigTestAppRelease.xcconfig +++ /dev/null @@ -1 +0,0 @@ -#include "ConfigTestApp.xcconfig" diff --git a/Sparkle/Configurations/ConfigUITest.xcconfig b/Sparkle/Configurations/ConfigUITest.xcconfig deleted file mode 100755 index badc3e13..00000000 --- a/Sparkle/Configurations/ConfigUITest.xcconfig +++ /dev/null @@ -1,13 +0,0 @@ -// UI Test only - -#include "ConfigSwift.xcconfig" - -INFOPLIST_FILE = UITests/UITests-Info.plist -WRAPPER_EXTENSION = xctest -MACOSX_DEPLOYMENT_TARGET = 10.11 - -FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) -LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks - -TEST_TARGET_NAME = Sparkle Test App -USES_XCTRUNNER = YES diff --git a/Sparkle/Configurations/ConfigUITestCoverage.xcconfig b/Sparkle/Configurations/ConfigUITestCoverage.xcconfig deleted file mode 100755 index c4cf79fd..00000000 --- a/Sparkle/Configurations/ConfigUITestCoverage.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -#include "ConfigUITest.xcconfig" - -GCC_GENERATE_TEST_COVERAGE_FILES = NO -GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO diff --git a/Sparkle/Configurations/ConfigUITestDebug.xcconfig b/Sparkle/Configurations/ConfigUITestDebug.xcconfig deleted file mode 100755 index 486dab5b..00000000 --- a/Sparkle/Configurations/ConfigUITestDebug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigUITest.xcconfig" -#include "ConfigSwiftDebug.xcconfig" diff --git a/Sparkle/Configurations/ConfigUITestRelease.xcconfig b/Sparkle/Configurations/ConfigUITestRelease.xcconfig deleted file mode 100755 index f8ae8bbf..00000000 --- a/Sparkle/Configurations/ConfigUITestRelease.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigUITest.xcconfig" -#include "ConfigSwiftRelease.xcconfig" diff --git a/Sparkle/Configurations/ConfigUnitTest.xcconfig b/Sparkle/Configurations/ConfigUnitTest.xcconfig deleted file mode 100755 index f9e7cea3..00000000 --- a/Sparkle/Configurations/ConfigUnitTest.xcconfig +++ /dev/null @@ -1,14 +0,0 @@ -// Unit Test only - -#include "ConfigSwift.xcconfig" - -INFOPLIST_FILE = Tests/SparkleTests-Info.plist -WRAPPER_EXTENSION = xctest -OTHER_CFLAGS = $(inherited) -iframework"$(DEVELOPER_FRAMEWORKS_DIR)" -iframework"$(PLATFORM_DIR)/Developer/Library/Frameworks" -GCC_SYMBOLS_PRIVATE_EXTERN = NO -WARNING_CFLAGS = $(inherited) -Wno-variadic-macros -Wno-gnu-zero-variadic-macro-arguments -FRAMEWORK_SEARCH_PATHS = $(inherited) $(DEVELOPER_FRAMEWORKS_DIR) -LD_RUNPATH_SEARCH_PATHS = @loader_path/../Frameworks -MACOSX_DEPLOYMENT_TARGET = 10.9 -CLANG_ENABLE_MODULES = YES -SWIFT_OBJC_BRIDGING_HEADER = Tests/Sparkle Unit Tests-Bridging-Header.h diff --git a/Sparkle/Configurations/ConfigUnitTestCoverage.xcconfig b/Sparkle/Configurations/ConfigUnitTestCoverage.xcconfig deleted file mode 100755 index f3d5d3db..00000000 --- a/Sparkle/Configurations/ConfigUnitTestCoverage.xcconfig +++ /dev/null @@ -1,4 +0,0 @@ -#include "ConfigUnitTest.xcconfig" - -GCC_GENERATE_TEST_COVERAGE_FILES = NO -GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO diff --git a/Sparkle/Configurations/ConfigUnitTestDebug.xcconfig b/Sparkle/Configurations/ConfigUnitTestDebug.xcconfig deleted file mode 100755 index 869437db..00000000 --- a/Sparkle/Configurations/ConfigUnitTestDebug.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigUnitTest.xcconfig" -#include "ConfigSwiftDebug.xcconfig" diff --git a/Sparkle/Configurations/ConfigUnitTestRelease.xcconfig b/Sparkle/Configurations/ConfigUnitTestRelease.xcconfig deleted file mode 100755 index e89e456c..00000000 --- a/Sparkle/Configurations/ConfigUnitTestRelease.xcconfig +++ /dev/null @@ -1,2 +0,0 @@ -#include "ConfigUnitTest.xcconfig" -#include "ConfigSwiftRelease.xcconfig" diff --git a/Sparkle/Configurations/make-release-package.sh b/Sparkle/Configurations/make-release-package.sh deleted file mode 100755 index bddecff9..00000000 --- a/Sparkle/Configurations/make-release-package.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -set -e - -if [ "$ACTION" = "" ] ; then - # Sanity check that the Podspec version matches the Sparkle version - spec_version=$(printf "require 'cocoapods'\nspec = %s\nprint spec.version" "$(cat "$SRCROOT/Sparkle.podspec")" | LANG=en_US.UTF-8 ruby) - if [ "$spec_version" != "$CURRENT_PROJECT_VERSION" ] ; then - echo "podspec version '$spec_version' does not match the current project version '$CURRENT_PROJECT_VERSION'" >&2 - exit 1 - fi - - rm -rf "$CONFIGURATION_BUILD_DIR/staging" - rm -f "Sparkle-$CURRENT_PROJECT_VERSION.tar.bz2" - - mkdir -p "$CONFIGURATION_BUILD_DIR/staging" - cp "$SRCROOT/CHANGELOG" "$SRCROOT/LICENSE" "$SRCROOT/Resources/SampleAppcast.xml" "$CONFIGURATION_BUILD_DIR/staging" - cp -R "$SRCROOT/bin" "$CONFIGURATION_BUILD_DIR/staging" - cp "$CONFIGURATION_BUILD_DIR/BinaryDelta" "$CONFIGURATION_BUILD_DIR/staging/bin" - cp -R "$CONFIGURATION_BUILD_DIR/Sparkle Test App.app" "$CONFIGURATION_BUILD_DIR/staging" - cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework" "$CONFIGURATION_BUILD_DIR/staging" - - # Only copy dSYMs for Release builds, but don't check for the presence of the actual files - # because missing dSYMs in a release build SHOULD trigger a build failure - if [ "$CONFIGURATION" = "Release" ] ; then - cp -R "$CONFIGURATION_BUILD_DIR/BinaryDelta.dSYM" "$CONFIGURATION_BUILD_DIR/staging/bin" - cp -R "$CONFIGURATION_BUILD_DIR/Sparkle Test App.app.dSYM" "$CONFIGURATION_BUILD_DIR/staging" - cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" - fi - - cd "$CONFIGURATION_BUILD_DIR/staging" - # Sorted file list groups similar files together, which improves tar compression - find . \! -type d | rev | sort | rev | tar cjvf "../Sparkle-$CURRENT_PROJECT_VERSION.tar.bz2" --files-from=- - rm -rf "$CONFIGURATION_BUILD_DIR/staging" -fi diff --git a/Sparkle/Configurations/set-git-version-info.sh b/Sparkle/Configurations/set-git-version-info.sh deleted file mode 100755 index f1f31624..00000000 --- a/Sparkle/Configurations/set-git-version-info.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -set -e - -if ! which -s git ; then - exit 0 -fi - -if [ -z "$SRCROOT" ] || \ - [ -z "$BUILT_PRODUCTS_DIR" ] || \ - [ -z "$INFOPLIST_PATH" ] || \ - [ -z "$CURRENT_PROJECT_VERSION" ]; then - echo "$0: Must be run from Xcode!" 1>&2 - exit 1 -fi - -version="$CURRENT_PROJECT_VERSION" - -# Get version in format 1.x.x-commits-hash -gitversion=$( cd "$SRCROOT"; git describe --tags --match '[12].*' || true ) -if [ -z "$gitversion" ] ; then - echo "$0: Can't find a Git hash!" 1>&2 - exit 0 -fi - -# remove everything before the first "-" to keep the hash part only -versionsuffix=${gitversion#*-}; -if [ "$versionsuffix" != "$gitversion" ]; then - version="$version $versionsuffix" -fi - -# and use it to set the CFBundleShortVersionString value -export PATH="$PATH:/usr/libexec" -PlistBuddy -c "Set :CFBundleShortVersionString '$version'" \ - "$BUILT_PRODUCTS_DIR/$INFOPLIST_PATH" diff --git a/Sparkle/Documentation/.gitignore b/Sparkle/Documentation/.gitignore deleted file mode 100755 index 1936cc1d..00000000 --- a/Sparkle/Documentation/.gitignore +++ /dev/null @@ -1 +0,0 @@ -html diff --git a/Sparkle/Documentation/Doxyfile b/Sparkle/Documentation/Doxyfile deleted file mode 100755 index 4b6ae1ae..00000000 --- a/Sparkle/Documentation/Doxyfile +++ /dev/null @@ -1,20 +0,0 @@ -PROJECT_NAME = Sparkle -PROJECT_NUMBER = 1.14.0 -PROJECT_BRIEF = "A software update framework for macOS" -PROJECT_LOGO = Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png - -RECURSIVE = YES -INPUT = Sparkle -OUTPUT_DIRECTORY = Documentation - -GENERATE_HTML = YES -GENERATE_LATEX = NO - -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST = YES -GENERATE_TODOLIST = YES - -ALPHABETICAL_INDEX = YES - -QT_AUTOBRIEF = YES -WARN_IF_UNDOCUMENTED = NO diff --git a/Sparkle/Documentation/build-docs.sh b/Sparkle/Documentation/build-docs.sh deleted file mode 100755 index 44b43bf4..00000000 --- a/Sparkle/Documentation/build-docs.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -if [ "$ACTION" = "" ] ; then - if which -s doxygen ; then - doxygen Documentation/Doxyfile - else - echo "warning: Doxygen not found in PATH" - fi -elif [ "$ACTION" = "clean" ] ; then - rm -rf "$SRCROOT/Documentation/html" -fi diff --git a/Sparkle/LICENSE b/Sparkle/LICENSE deleted file mode 100755 index f4020f8d..00000000 --- a/Sparkle/LICENSE +++ /dev/null @@ -1,60 +0,0 @@ -Copyright (c) 2006-2013 Andy Matuschak. -Copyright (c) 2009-2013 Elgato Systems GmbH. -Copyright (c) 2011-2014 Kornel Lesiński. -Copyright (c) 2014 C.W. Betts. -Copyright (c) 2014 Petroules Corporation. -Copyright (c) 2014 Big Nerd Ranch. -All rights reserved. - -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. - -================= -EXTERNAL LICENSES -================= - -bspatch.c and bsdiff.c, from bsdiff 4.3 : - Copyright (c) 2003-2005 Colin Percival. - -sais.c and sais.c, from sais-lite (2010/08/07) : - Copyright (c) 2008-2010 Yuta Mori. - -SUDSAVerifier.m: - Copyright (c) 2011 Mark Hamlin. - -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted providing that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. 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. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. diff --git a/Sparkle/Makefile b/Sparkle/Makefile deleted file mode 100755 index 2aa20aa9..00000000 --- a/Sparkle/Makefile +++ /dev/null @@ -1,42 +0,0 @@ -.PHONY: all localizable-strings release build test ci - -ifndef BUILDDIR - BUILDDIR := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") -endif - -localizable-strings: - rm -f Sparkle/en.lproj/Sparkle.strings - genstrings -o Sparkle/en.lproj -s SULocalizedString Sparkle/*.m Sparkle/*.h - iconv -f UTF-16 -t UTF-8 < Sparkle/en.lproj/Localizable.strings > Sparkle/en.lproj/Sparkle.strings - rm Sparkle/en.lproj/Localizable.strings - -release: - xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(BUILDDIR)" build - open -R "$(BUILDDIR)/Build/Products/Release/Sparkle-"*.tar.bz2 - cat Sparkle.podspec - @echo "Don't forget to update CocoaPods! pod trunk push" - -build: - xcodebuild clean build - -test: - xcodebuild -scheme Distribution -configuration Debug test - -uitest: - xcodebuild -scheme UITests -configuration Debug test - -ci: - for i in {7..9} ; do \ - if xcrun --sdk "macosx10.$$i" --show-sdk-path 2> /dev/null ; then \ - ( rm -rf build && xcodebuild -sdk "macosx10.$$i" -scheme Distribution -configuration Coverage -derivedDataPath build ) || exit 1 ; \ - fi ; \ - done - for i in {10..11} ; do \ - if xcrun --sdk "macosx10.$$i" --show-sdk-path 2> /dev/null ; then \ - ( rm -rf build && xcodebuild -sdk "macosx10.$$i" -scheme Distribution -configuration Coverage -derivedDataPath build test ) || exit 1 ; \ - fi ; \ - done - -check-localizations: - ./Sparkle/CheckLocalizations.swift -root . -htmlPath "$(TMPDIR)/LocalizationsReport.htm" - open "$(TMPDIR)/LocalizationsReport.htm" diff --git a/Sparkle/Makefile-icon b/Sparkle/Makefile-icon deleted file mode 100755 index 7a04bb84..00000000 --- a/Sparkle/Makefile-icon +++ /dev/null @@ -1,24 +0,0 @@ -# To update the icon run make -f Makefile-icon -# Requires: -# autoconf, automake, libtool, pkg-config, pngquant - -ICONDIR=./Resources/Images.xcassets/AppIcon.appiconset -OPTIMIZEDICONS=$(ICONDIR)/optimized_16x16.png $(ICONDIR)/optimized_32x32.png $(ICONDIR)/optimized_128x128.png $(ICONDIR)/optimized_512x512.png -DESTICON=Resources/AppIcon.icns - -all: $(DESTICON) - -libicns: - git clone https://github.com/pornel/libicns.git - -libicns/Makefile: libicns - ( cd libicns && autoreconf -vif && ./configure ) - -libicns/icnsutils/png2icns: libicns/Makefile - ( cd libicns && make -j8 ) - -optimized_%.png: icon_%.png - pngquant -s1 -f -o $@ $< - -$(DESTICON): libicns/icnsutils/png2icns $(OPTIMIZEDICONS) - ./libicns/icnsutils/png2icns $@ $(OPTIMIZEDICONS) diff --git a/Sparkle/README.markdown b/Sparkle/README.markdown deleted file mode 100755 index d7595acd..00000000 --- a/Sparkle/README.markdown +++ /dev/null @@ -1,58 +0,0 @@ -# Sparkle [![Build Status](https://travis-ci.org/sparkle-project/Sparkle.svg?branch=master)](https://travis-ci.org/sparkle-project/Sparkle) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods](https://img.shields.io/cocoapods/v/Sparkle.svg?maxAge=2592000)]() sponsored by: StackPath - -An easy-to-use software update framework for Cocoa developers. - -Sparkle shows familiar update window with release notes - -## Changes since 1.5b - -* Compatibilty with macOS Sierra. -* Up-to-date with 10.12 SDK and Xcode 8 (supports macOS 10.7+). -* Important security fixes. -* Cleaned up and modernized code, using ARC and Autolayout. -* Truly automatic background updates (no UI at all) when user agreed to "Automatically download and install updates in the future." -* Upgraded and more reliable binary delta and code signing verification. -* Ability to mark updates as critical. -* Progress and status notifications for the host app. -* Name of finish_installation.app can be configured to match your app's name. - -## Features - -* Seamless integration—there's no mention of Sparkle; your icons and app name are used. -* True self-updating—the user can choose to automatically download and install all updates. -* Displays a detailed progress window to the user. -* Supports authentication for installing in secure locations. -* Supports Apple Code Signing and DSA signatures for ultra-secure updates. -* Easy to install. Sparkle requires no code in your app, so it's trivial to upgrade or remove the framework. -* Uses RSS-based appcasts for release information. Appcasts are supported by 3rd party update-tracking programs and websites. -* Displays release notes to the user via WebKit. -* Sparkle doesn't bug the user until second launch for better first impressions. -* Deep delegate support to make Sparkle work exactly as you need. -* Optionally sends system information to the server when checking for updates. -* Supports bundles, preference panes, plugins, and other non-.app software. Can install .pkg files for more complicated products. -* Supports branches due to minimum OS version requirements. - -## Requirements - -* Runtime: macOS 10.7 or greater -* Build: Xcode 5 and 10.8 SDK or greater -* HTTPS server for serving updates (see [App Transport Security](http://sparkle-project.org/documentation/app-transport-security/)) - -## API - -Sparkle is built with `-fvisibility=hidden -fvisibility-inlines-hidden` which means no symbols are exported by default. -If you are adding a symbol to the public API you must decorate the declaration with the `SU_EXPORT` macro (grep the source code for examples). - -## Building the distribution package - -`cd` to the root of the Sparkle source tree and run `make release`. Sparkle-*VERSION*.tar.bz2 will be created in a temporary directory and revealed in Finder after the build has completed. - -Alternatively, build the Distribution scheme in the Xcode UI. - -## Code of Conduct - -We pledge to have an open and welcoming environment. See our [Code of Conduct](CODE_OF_CONDUCT.md). - -## Project Sponsor - -[StackPath](https://www.stackpath.com/?utm_source=sparkle-github&utm_medium=link&utm_campaign=readme-footer) diff --git a/Sparkle/Resources/AppIcon.icns b/Sparkle/Resources/AppIcon.icns deleted file mode 100644 index 5a392637..00000000 Binary files a/Sparkle/Resources/AppIcon.icns and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/Contents.json b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100755 index 7cd4f8e1..00000000 --- a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "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" - }, - { - "size" : "256x256", - "idiom" : "mac", - "filename" : "icon_256x256.png", - "scale" : "1x" - }, - { - "size" : "256x256", - "idiom" : "mac", - "filename" : "icon_256x256@2x.png", - "scale" : "2x" - }, - { - "size" : "512x512", - "idiom" : "mac", - "filename" : "icon_512x512.png", - "scale" : "1x" - }, - { - "size" : "512x512", - "idiom" : "mac", - "filename" : "icon_512x512@2x.png", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png deleted file mode 100755 index 02080831..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png deleted file mode 100755 index c0583922..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_128x128@2x.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png deleted file mode 100755 index a67751fa..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png deleted file mode 100755 index 3e77a450..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_16x16@2x.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png deleted file mode 100755 index 1777fcc9..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png deleted file mode 100755 index 6ec496fe..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_256x256@2x.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png deleted file mode 100755 index 3be1d474..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png deleted file mode 100755 index f51f5972..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png deleted file mode 100755 index 54d52234..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512.png and /dev/null differ diff --git a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png b/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png deleted file mode 100755 index 8fe6aa07..00000000 Binary files a/Sparkle/Resources/Images.xcassets/AppIcon.appiconset/icon_512x512@2x.png and /dev/null differ diff --git a/Sparkle/Resources/SUModelTranslation.plist b/Sparkle/Resources/SUModelTranslation.plist deleted file mode 100755 index 1f75b248..00000000 --- a/Sparkle/Resources/SUModelTranslation.plist +++ /dev/null @@ -1,314 +0,0 @@ - - - - - ADP2,1 - Developer Transition Kit - iMac1,1 - iMac G3 (Rev A-D) - iMac4,1 - iMac (Core Duo) - iMac4,2 - iMac for Education (17 inch, Core Duo) - iMac5,1 - iMac (Core 2 Duo, 17 or 20 inch, SuperDrive) - iMac5,2 - iMac (Core 2 Duo, 17 inch, Combo Drive) - iMac6,1 - iMac (Core 2 Duo, 24 inch, SuperDrive) - iMac7,1 - iMac Intel Core 2 Duo (aluminum enclosure) - iMac8,1 - iMac (Core 2 Duo, 20 or 24 inch, Early 2008 ) - iMac9,1 - iMac (Core 2 Duo, 20 or 24 inch, Early or Mid 2009 ) - iMac10,1 - iMac (Core 2 Duo, 21.5 or 27 inch, Late 2009 ) - iMac11,1 - iMac (Core i5 or i7, 27 inch Late 2009) - iMac11,2 - 21.5" iMac (mid 2010) - iMac11,3 - iMac (Core i5 or i7, 27 inch Mid 2010) - iMac12,1 - iMac (Core i3 or i5 or i7, 21.5 inch Mid 2010 or Late 2011) - iMac12,2 - iMac (Core i5 or i7, 27 inch Mid 2011) - iMac13,1 - iMac (Core i3 or i5 or i7, 21.5 inch Late 2012 or Early 2013) - iMac13,2 - iMac (Core i5 or i7, 27 inch Late 2012) - iMac14,1 - iMac (Core i5, 21.5 inch Late 2013) - iMac14,2 - iMac (Core i5 or i7, 27 inch Late 2013) - iMac14,3 - iMac (Core i5 or i7, 21.5 inch Late 2013) - iMac14,4 - iMac (Core i5, 21.5 inch Mid 2014) - iMac15,1 - iMac (Retina 5K Core i5 or i7, 27 inch Late 2014 or Mid 2015) - iMac16,1 - iMac (Core i5, 21,5 inch Late 2015) - iMac16,2 - iMac (Retina 4K Core i5 or i7, 21.5 inch Late 2015) - iMac17,1 - iMac (Retina 5K Core i5 or i7, 27 inch Late 2015) - MacBook1,1 - MacBook (Core Duo) - MacBook2,1 - MacBook (Core 2 Duo) - MacBook4,1 - MacBook (Core 2 Duo Feb 2008) - MacBook5,1 - MacBook (Core 2 Duo, Late 2008, Unibody) - MacBook5,2 - MacBook (Core 2 Duo, Early 2009, White) - MacBook6,1 - MacBook (Core 2 Duo, Late 2009, Unibody) - MacBook7,1 - MacBook (Core 2 Duo, Mid 2010, White) - MacBook8,1 - MacBook (Core M, 12 inch, Early 2015) - MacBookAir1,1 - MacBook Air (Core 2 Duo, 13 inch, Early 2008) - MacBookAir2,1 - MacBook Air (Core 2 Duo, 13 inch, Mid 2009) - MacBookAir3,1 - MacBook Air (Core 2 Duo, 11 inch, Late 2010) - MacBookAir3,2 - MacBook Air (Core 2 Duo, 13 inch, Late 2010) - MacBookAir4,1 - MacBook Air (Core i5 or i7, 11 inch, Mid 2011) - MacBookAir4,2 - MacBook Air (Core i5 or i7, 13 inch, Mid 2011) - MacBookAir5,1 - MacBook Air (Core i5 or i7, 11 inch, Mid 2012) - MacBookAir5,2 - MacBook Air (Core i5 or i7, 13 inch, Mid 2012) - MacBookAir6,1 - MacBook Air (Core i5 or i7, 11 inch, Mid 2013 or Early 2014) - MacBookAir6,2 - MacBook Air (Core i5 or i7, 13 inch, Mid 2013 or Early 2014) - MacBookAir7,1 - MacBook Air (Core i5 or i7, 11 inch, Early 2015) - MacBookAir7,2 - MacBook Air (Core i5 or i7, 13 inch, Early 2015) - MacBookPro1,1 - MacBook Pro Core Duo (15-inch) - MacBookPro1,2 - MacBook Pro Core Duo (17-inch) - MacBookPro2,1 - MacBook Pro Core 2 Duo (17-inch) - MacBookPro2,2 - MacBook Pro Core 2 Duo (15-inch) - MacBookPro3,1 - MacBook Pro Core 2 Duo (15-inch LED, Core 2 Duo) - MacBookPro3,2 - MacBook Pro Core 2 Duo (17-inch HD, Core 2 Duo) - MacBookPro4,1 - MacBook Pro (Core 2 Duo Feb 2008) - MacBookPro5,1 - MacBook Pro Intel Core 2 Duo (aluminum unibody) - MacBookPro5,2 - MacBook Pro Intel Core 2 Duo (aluminum unibody) - MacBookPro5,3 - MacBook Pro Intel Core 2 Duo (aluminum unibody) - MacBookPro5,4 - MacBook Pro Intel Core 2 Duo (aluminum unibody) - MacBookPro5,5 - MacBook Pro Intel Core 2 Duo (aluminum unibody) - MacBookPro6,1 - MacBook Pro Intel Core i5, Intel Core i7 (mid 2010) - MacBookPro6,2 - MacBook Pro Intel Core i5, Intel Core i7 (mid 2010) - MacBookPro7,1 - MacBook Pro Intel Core 2 Duo (mid 2010) - MacBookPro8,1 - MacBook Pro Intel Core i5, Intel Core i7, 13" (early 2011) - MacBookPro8,2 - MacBook Pro Intel Core i7, 15" (early 2011) - MacBookPro8,3 - MacBook Pro Intel Core i7, 17" (early 2011) - MacBookPro9,1 - MacBook Pro (15-inch, Mid 2012) - MacBookPro9,2 - MacBook Pro (13-inch, Mid 2012) - MacBookPro10,1 - MacBook Pro (Retina, Mid 2012) - MacBookPro10,2 - MacBook Pro (Retina, 13-inch, Late 2012) - MacBookPro11,1 - MacBook Pro (Retina, 13-inch, Late 2013) - MacBookPro11,2 - MacBook Pro (Retina, 15-inch, Late 2013) - MacBookPro11,3 - MacBook Pro (Retina, 15-inch, Late 2013) - MacbookPro11,4 - MacBook Pro (Retina, 15-inch, Mid 2015) - MacbookPro11,5 - MacBook Pro (Retina, 15-inch, Mid 2015) - MacbookPro12,1  - MacBook Pro (Retina, 13-inch, Early 2015) - Macmini1,1 - Mac Mini (Core Solo/Duo) - Macmini2,1 - Mac mini Intel Core - Macmini3,1 - Mac mini Intel Core - Macmini4,1 - Mac mini Intel Core (Mid 2010) - Macmini5,1 - Mac mini (Core i5, Mid 2011) - Macmini5,2 - Mac mini (Core i5 or Core i7, Mid 2011) - Macmini5,3 - Mac mini (Core i7, Server, Mid 2011) - Macmini6,1 - Mac mini (Core i5, Late 2012) - Macmini6,2 - Mac mini (Core i7, Normal or Server, Late 2012) - Macmini7,1 - Mac mini (Core i5 or Core i7, Late 2014) - MacPro1,1,Quad - Mac Pro - MacPro1,1 - Mac Pro (four-core) - MacPro2,1 - Mac Pro (eight-core) - MacPro3,1 - Mac Pro (January 2008 4- or 8- core "Harpertown") - MacPro4,1 - Mac Pro (March 2009) - MacPro5,1 - Mac Pro (2010 or 2012) - MacPro6,1 - Mac Pro (Late 2013) - PowerBook1,1 - PowerBook G3 - PowerBook2,1 - iBook G3 - PowerBook2,2 - iBook G3 (FireWire) - PowerBook2,3 - iBook G3 - PowerBook2,4 - iBook G3 - PowerBook3,1 - PowerBook G3 (FireWire) - PowerBook3,2 - PowerBook G4 - PowerBook3,3 - PowerBook G4 (Gigabit Ethernet) - PowerBook3,4 - PowerBook G4 (DVI) - PowerBook3,5 - PowerBook G4 (1GHz / 867MHz) - PowerBook4,1 - iBook G3 (Dual USB, Late 2001) - PowerBook4,2 - iBook G3 (16MB VRAM) - PowerBook4,3 - iBook G3 Opaque 16MB VRAM, 32MB VRAM, Early 2003) - PowerBook5,1 - PowerBook G4 (17 inch) - PowerBook5,2 - PowerBook G4 (15 inch FW 800) - PowerBook5,3 - PowerBook G4 (17-inch 1.33GHz) - PowerBook5,4 - PowerBook G4 (15 inch 1.5/1.33GHz) - PowerBook5,5 - PowerBook G4 (17-inch 1.5GHz) - PowerBook5,6 - PowerBook G4 (15 inch 1.67GHz/1.5GHz) - PowerBook5,7 - PowerBook G4 (17-inch 1.67GHz) - PowerBook5,8 - PowerBook G4 (Double layer SD, 15 inch) - PowerBook5,9 - PowerBook G4 (Double layer SD, 17 inch) - PowerBook6,1 - PowerBook G4 (12 inch) - PowerBook6,2 - PowerBook G4 (12 inch, DVI) - PowerBook6,3 - iBook G4 - PowerBook6,4 - PowerBook G4 (12 inch 1.33GHz) - PowerBook6,5 - iBook G4 (Early-Late 2004) - PowerBook6,7 - iBook G4 (Mid 2005) - PowerBook6,8 - PowerBook G4 (12 inch 1.5GHz) - PowerMac1,1 - Power Macintosh G3 (Blue & White) - PowerMac1,2 - Power Macintosh G4 (PCI Graphics) - PowerMac2,1 - iMac G3 (Slot-loading CD-ROM) - PowerMac2,2 - iMac G3 (Summer 2000) - PowerMac3,1 - Power Macintosh G4 (AGP Graphics) - PowerMac3,2 - Power Macintosh G4 (AGP Graphics) - PowerMac3,3 - Power Macintosh G4 (Gigabit Ethernet) - PowerMac3,4 - Power Macintosh G4 (Digital Audio) - PowerMac3,5 - Power Macintosh G4 (Quick Silver) - PowerMac3,6 - Power Macintosh G4 (Mirrored Drive Door) - PowerMac4,1 - iMac G3 (Early/Summer 2001) - PowerMac4,2 - iMac G4 (Flat Panel) - PowerMac4,4 - eMac - PowerMac4,5 - iMac G4 (17-inch Flat Panel) - PowerMac5,1 - Power Macintosh G4 Cube - PowerMac5,2 - Power Mac G4 Cube - PowerMac6,1 - iMac G4 (USB 2.0) - PowerMac6,3 - iMac G4 (20-inch Flat Panel) - PowerMac6,4 - eMac (USB 2.0, 2005) - PowerMac7,2 - Power Macintosh G5 - PowerMac7,3 - Power Macintosh G5 - PowerMac8,1 - iMac G5 - PowerMac8,2 - iMac G5 (Ambient Light Sensor) - PowerMac9,1 - Power Macintosh G5 (Late 2005) - PowerMac10,1 - Mac Mini G4 - PowerMac10,2 - Mac Mini (Late 2005) - PowerMac11,2 - Power Macintosh G5 (Late 2005) - PowerMac12,1 - iMac G5 (iSight) - RackMac1,1 - Xserve G4 - RackMac1,2 - Xserve G4 (slot-loading, cluster node) - RackMac3,1 - Xserve G5 - Xserve1,1 - Xserve (Intel Xeon) - Xserve2,1 - Xserve (January 2008 quad-core) - Xserve3,1 - Xserve (early 2009) - - diff --git a/Sparkle/Resources/SampleAppcast.xml b/Sparkle/Resources/SampleAppcast.xml deleted file mode 100755 index dd9c089d..00000000 --- a/Sparkle/Resources/SampleAppcast.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - Your Great App's Changelog - Most recent changes with links to updates. - en - - Version 2.0 (2 bugs fixed; 3 new features) - - http://you.com/app/2.0.html - - Wed, 09 Jan 2006 19:20:11 +0000 - - 10.7 - - - - Version 1.5 (8 bugs fixed; 2 new features) - - http://you.com/app/1.5.html - - Wed, 01 Jan 2006 12:20:11 +0000 - - 10.7 - - - - - Version 1.4 (5 bugs fixed; 2 new features) - - http://you.com/app/1.4.html - - Wed, 25 Dec 2005 12:20:11 +0000 - - 10.7 - - - diff --git a/Sparkle/Resources/Screenshot.png b/Sparkle/Resources/Screenshot.png deleted file mode 100755 index 1b52ba3d..00000000 Binary files a/Sparkle/Resources/Screenshot.png and /dev/null differ diff --git a/Sparkle/Resources/Sparkle-Icon.sketch b/Sparkle/Resources/Sparkle-Icon.sketch deleted file mode 100755 index 4116f3aa..00000000 Binary files a/Sparkle/Resources/Sparkle-Icon.sketch and /dev/null differ diff --git a/Sparkle/Sparkle.podspec b/Sparkle/Sparkle.podspec deleted file mode 100755 index 882746a6..00000000 --- a/Sparkle/Sparkle.podspec +++ /dev/null @@ -1,32 +0,0 @@ -Pod::Spec.new do |s| - s.name = "Sparkle" - s.version = "1.15.1" - s.summary = "A software update framework for macOS" - s.description = "Sparkle is an easy-to-use software update framework for Cocoa developers." - s.homepage = "http://sparkle-project.org" - s.documentation_url = "http://sparkle-project.org/documentation/" - s.screenshot = "http://sparkle-project.org/images/screenshot-noshadow@2x.png" - s.license = { - :type => 'MIT', - :file => 'LICENSE' - } - s.authors = { - 'Mayur Pawashe' => 'zorgiepoo@gmail.com', - 'Kornel Lesiński' => 'pornel@pornel.net', - 'Jake Petroules' => 'jake.petroules@petroules.com', - 'C.W. Betts' => 'computers57@hotmail.com', - 'Andy Matuschak' => 'andy@andymatuschak.org', - } - - s.platform = :osx, '10.7' - s.source = { :http => "https://github.com/sparkle-project/Sparkle/releases/download/#{s.version}/Sparkle-#{s.version}.tar.bz2" } - s.source_files = 'Sparkle.framework/Versions/A/Headers/*.h' - - s.public_header_files = 'Sparkle.framework/Versions/A/Headers/*.h' - s.vendored_frameworks = 'Sparkle.framework' - s.xcconfig = { - 'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/Sparkle"', - 'LD_RUNPATH_SEARCH_PATHS' => '@loader_path/../Frameworks' - } - s.requires_arc = true -end diff --git a/Sparkle/Sparkle.xcodeproj/project.pbxproj b/Sparkle/Sparkle.xcodeproj/project.pbxproj deleted file mode 100755 index 2bc8d7ef..00000000 --- a/Sparkle/Sparkle.xcodeproj/project.pbxproj +++ /dev/null @@ -1,2467 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXAggregateTarget section */ - 1495005F195FB89400BC5B5B /* All */ = { - isa = PBXAggregateTarget; - buildConfigurationList = 14950060195FB89500BC5B5B /* Build configuration list for PBXAggregateTarget "All" */; - buildPhases = ( - ); - dependencies = ( - 14950064195FB8A600BC5B5B /* PBXTargetDependency */, - 14950066195FB8A600BC5B5B /* PBXTargetDependency */, - 14950068195FB8A600BC5B5B /* PBXTargetDependency */, - 1495006A195FB8A600BC5B5B /* PBXTargetDependency */, - 1495006C195FB8A600BC5B5B /* PBXTargetDependency */, - ); - name = All; - productName = All; - }; -/* End PBXAggregateTarget section */ - -/* Begin PBXBuildFile section */ - 1420DF50196247F900203BB0 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1420DF4F196247F900203BB0 /* Images.xcassets */; }; - 142E0E0019A6954400E4312B /* Sparkle.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 142E0E0219A6A14700E4312B /* Sparkle.framework in Copy Files */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; - 142E0E0419A6A26F00E4312B /* Autoupdate.app in CopyFiles */ = {isa = PBXBuildFile; fileRef = 55C14BB7136EEF1500649790 /* Autoupdate.app */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */; }; - 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; - 14652F7D19A9726700959E44 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; }; - 14652F7E19A9728A00959E44 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; - 14652F8019A9740F00959E44 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; - 14652F8219A9746000959E44 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; - 14652F8419A978C200959E44 /* SUExport.h in Headers */ = {isa = PBXBuildFile; fileRef = 14652F8319A9759F00959E44 /* SUExport.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 14732BC01960F2C200593899 /* test_app_only_dsa_pub.pem in Resources */ = {isa = PBXBuildFile; fileRef = 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */; }; - 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 14732BD119610A1200593899 /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; - 14732BD319610A1800593899 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 14732BD219610A1800593899 /* XCTest.framework */; }; - 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; - 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 14950070195FCE3A00BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 14950071195FCE3D00BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; - 14950072195FCE4B00BC5B5B /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 14950073195FCE4E00BC5B5B /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; - 14958C6E19AEBC950061B14F /* signed-test-file.txt in Resources */ = {isa = PBXBuildFile; fileRef = 14958C6B19AEBC530061B14F /* signed-test-file.txt */; }; - 14958C6F19AEBC980061B14F /* test-pubkey.pem in Resources */ = {isa = PBXBuildFile; fileRef = 14958C6C19AEBC610061B14F /* test-pubkey.pem */; }; - 3772FEA913DE0B6B00F79537 /* SUVersionDisplayProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 55C14BD4136EEFCE00649790 /* Autoupdate.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14BD3136EEFCE00649790 /* Autoupdate.m */; }; - 55C14BD9136EF00C00649790 /* SUStatus.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BD8136EF00C00649790 /* SUStatus.xib */; }; - 55C14BEE136EF20D00649790 /* SUAutomaticUpdateAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */; }; - 55C14BEF136EF21700649790 /* SUStatus.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BD8136EF00C00649790 /* SUStatus.xib */; }; - 55C14C04136EF26100649790 /* SUUpdateAlert.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */; }; - 55C14C19136EF2C700649790 /* SUUpdatePermissionPrompt.xib in Resources */ = {isa = PBXBuildFile; fileRef = 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */; }; - 55C14F00136EF6B700649790 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 55C14F06136EF6DB00649790 /* SULog.h in Headers */ = {isa = PBXBuildFile; fileRef = 55C14F04136EF6DB00649790 /* SULog.h */; }; - 55C14F07136EF6DB00649790 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; - 55C14F08136EF6DB00649790 /* SULog.m in Sources */ = {isa = PBXBuildFile; fileRef = 55C14F05136EF6DB00649790 /* SULog.m */; }; - 55C14F0C136EF6EA00649790 /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; - 55C14F0D136EF6F200649790 /* SUInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5000DAE88B40026945C /* SUInstaller.m */; }; - 55C14F20136EF84300649790 /* SUStatusController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6196CFE409C71ADE000DC222 /* SUStatusController.m */; }; - 55C14F21136EF84D00649790 /* SUPlainInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5040DAE8AB80026945C /* SUPlainInstaller.m */; }; - 55C14F22136EF86000649790 /* SUStandardVersionComparator.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */; }; - 55C14F23136EF86700649790 /* SUSystemProfiler.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A2279B0D1CEE7600430CCD /* SUSystemProfiler.m */; }; - 55C14F24136EF86F00649790 /* SUPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */; }; - 55C14F2A136EF9A900649790 /* SUWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 61180BC90D64138900B4E0D1 /* SUWindowController.m */; }; - 55C14F32136EFC2400649790 /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 55C14F31136EFC2400649790 /* SystemConfiguration.framework */; }; - 55C14F9A136F045400649790 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; - 55C14FC7136F05E100649790 /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; }; - 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */ = {isa = PBXBuildFile; fileRef = 55E6F33219EC9F6C00005E76 /* SUErrors.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */; }; - 5A6D31EE1BF53245009C5157 /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; - 5A6D31EF1BF5325F009C5157 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; - 5AD0FA7F1C73F2E2004BCEFF /* testappcast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */; }; - 5AE459001C34118500E3BB47 /* SUUpdaterTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */; }; - 5AE459021C34118500E3BB47 /* SUVersionComparisonTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */; }; - 5AE7E1111DC81AD3009C2C12 /* AppIcon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 5AE7E10E1DC81ACA009C2C12 /* AppIcon.icns */; }; - 5AF6C74F1AEA46D10014A3AB /* test.sparkle_guided.pkg in Resources */ = {isa = PBXBuildFile; fileRef = 5AF6C74E1AEA46D10014A3AB /* test.sparkle_guided.pkg */; }; - 5AF6C7541AEA49840014A3AB /* SUInstallerTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */; }; - 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */; }; - 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; - 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */; }; - 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; - 5D06E8EC0FD68CE4005AE3F6 /* SUBinaryDeltaApply.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */; }; - 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */; }; - 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; - 5D06E8FF0FD68D6D005AE3F6 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; - 5D06E9050FD68D7D005AE3F6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 5D06E9390FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h in Headers */ = {isa = PBXBuildFile; fileRef = 5D06E9370FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h */; }; - 5D06E93A0FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */; }; - 5D1AF58A0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; }; - 5D1AF58B0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; }; - 5D1AF5900FD767AD0065DB48 /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */; }; - 5D1AF59A0FD767E50065DB48 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5990FD767E50065DB48 /* libz.dylib */; }; - 5D1AF82B0FD768180065DB48 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5990FD767E50065DB48 /* libz.dylib */; }; - 5F1510A21C96E591006E1629 /* testnamespaces.xml in Resources */ = {isa = PBXBuildFile; fileRef = 5F1510A11C96E591006E1629 /* testnamespaces.xml */; }; - 610134730DD250470049ACDF /* SUUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 610134710DD250470049ACDF /* SUUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; - 610134740DD250470049ACDF /* SUUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 610134720DD250470049ACDF /* SUUpdateDriver.m */; }; - 6101347B0DD2541A0049ACDF /* SUProbingUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 610134790DD2541A0049ACDF /* SUProbingUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; - 6101347C0DD2541A0049ACDF /* SUProbingUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 6101347A0DD2541A0049ACDF /* SUProbingUpdateDriver.m */; }; - 6102FE460E077FCE00F85D09 /* SUPipedUnarchiver.h in Headers */ = {isa = PBXBuildFile; fileRef = 6102FE440E077FCE00F85D09 /* SUPipedUnarchiver.h */; settings = {ATTRIBUTES = (); }; }; - 6102FE4A0E07803800F85D09 /* SUDiskImageUnarchiver.h in Headers */ = {isa = PBXBuildFile; fileRef = 6102FE480E07803800F85D09 /* SUDiskImageUnarchiver.h */; settings = {ATTRIBUTES = (); }; }; - 6102FE4B0E07803800F85D09 /* SUDiskImageUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 6102FE490E07803800F85D09 /* SUDiskImageUnarchiver.m */; }; - 6102FE5B0E08C7EC00F85D09 /* SUUnarchiver_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 6102FE590E08C7EC00F85D09 /* SUUnarchiver_Private.h */; settings = {ATTRIBUTES = (); }; }; - 611142E910FB1BE5009810AA /* bspatch.h in Headers */ = {isa = PBXBuildFile; fileRef = 611142E810FB1BE5009810AA /* bspatch.h */; }; - 61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6117796E0D1112E000749C97 /* IOKit.framework */; }; - 61180BCA0D64138900B4E0D1 /* SUWindowController.h in Headers */ = {isa = PBXBuildFile; fileRef = 61180BC80D64138900B4E0D1 /* SUWindowController.h */; settings = {ATTRIBUTES = (); }; }; - 61180BCB0D64138900B4E0D1 /* SUWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 61180BC90D64138900B4E0D1 /* SUWindowController.m */; }; - 6120721209CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */; settings = {ATTRIBUTES = (); }; }; - 6120721309CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */; }; - 61299A2F09CA2DAB00B7442F /* SUDSAVerifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */; settings = {ATTRIBUTES = (); }; }; - 61299A3009CA2DAB00B7442F /* SUDSAVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */; settings = {COMPILER_FLAGS = "-Wno-deprecated-declarations"; }; }; - 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A5B09CA6D4500B7442F /* SUConstants.h */; settings = {ATTRIBUTES = (); }; }; - 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 61299A8D09CA790200B7442F /* SUUnarchiver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299A8B09CA790200B7442F /* SUUnarchiver.h */; settings = {ATTRIBUTES = (Private, ); }; }; - 61299A8E09CA790200B7442F /* SUUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A8C09CA790200B7442F /* SUUnarchiver.m */; }; - 61299B3609CB04E000B7442F /* Sparkle.h in Headers */ = {isa = PBXBuildFile; fileRef = 61299B3509CB04E000B7442F /* Sparkle.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 612DCBAF0D488BC60015DBEA /* SUUpdatePermissionPrompt.h in Headers */ = {isa = PBXBuildFile; fileRef = 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */; settings = {ATTRIBUTES = (); }; }; - 612DCBB00D488BC60015DBEA /* SUUpdatePermissionPrompt.m in Sources */ = {isa = PBXBuildFile; fileRef = 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */; }; - 6158A1C5137904B300487EC1 /* SUUpdater_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 6158A1C4137904B300487EC1 /* SUUpdater_Private.h */; }; - 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */ = {isa = PBXBuildFile; fileRef = 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */; }; - 618FA5010DAE88B40026945C /* SUInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 618FA4FF0DAE88B40026945C /* SUInstaller.h */; settings = {ATTRIBUTES = (); }; }; - 618FA5020DAE88B40026945C /* SUInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5000DAE88B40026945C /* SUInstaller.m */; }; - 618FA5050DAE8AB80026945C /* SUPlainInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 618FA5030DAE8AB80026945C /* SUPlainInstaller.h */; settings = {ATTRIBUTES = (); }; }; - 618FA5060DAE8AB80026945C /* SUPlainInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5040DAE8AB80026945C /* SUPlainInstaller.m */; }; - 618FA5220DAE8E8A0026945C /* SUPackageInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 618FA5200DAE8E8A0026945C /* SUPackageInstaller.h */; settings = {ATTRIBUTES = (); }; }; - 618FA5230DAE8E8A0026945C /* SUPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */; }; - 6196CFF909C72148000DC222 /* SUStatusController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6196CFE309C71ADE000DC222 /* SUStatusController.h */; settings = {ATTRIBUTES = (); }; }; - 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6196CFE409C71ADE000DC222 /* SUStatusController.m */; }; - 61A2259E0D1C495D00430CCD /* SUVersionComparisonProtocol.h in Headers */ = {isa = PBXBuildFile; fileRef = 61A2259C0D1C495D00430CCD /* SUVersionComparisonProtocol.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61A225A40D1C4AC000430CCD /* SUStandardVersionComparator.h in Headers */ = {isa = PBXBuildFile; fileRef = 61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */; }; - 61A2279C0D1CEE7600430CCD /* SUSystemProfiler.h in Headers */ = {isa = PBXBuildFile; fileRef = 61A2279A0D1CEE7600430CCD /* SUSystemProfiler.h */; settings = {ATTRIBUTES = (); }; }; - 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A2279B0D1CEE7600430CCD /* SUSystemProfiler.m */; }; - 61A354550DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61A354530DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; - 61A354560DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61A354540DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m */; }; - 61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61AAE8220A321A7F00D8810D /* Sparkle.strings */; }; - 61B078CE15A5FB6100600039 /* SUCodeSigningVerifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B078CC15A5FB6100600039 /* SUCodeSigningVerifier.h */; }; - 61B078CF15A5FB6100600039 /* SUCodeSigningVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B078CD15A5FB6100600039 /* SUCodeSigningVerifier.m */; }; - 61B5F8ED09C4CE3C00B25A18 /* SUUpdater.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5F8E309C4CE3C00B25A18 /* SUUpdater.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61B5F8EE09C4CE3C00B25A18 /* SUUpdater.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F8E409C4CE3C00B25A18 /* SUUpdater.m */; }; - 61B5F8F709C4CEB300B25A18 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; - 61B5F90F09C4CF3A00B25A18 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; }; - 61B5F92E09C4CFD800B25A18 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 61B5F92A09C4CFD800B25A18 /* InfoPlist.strings */; }; - 61B5F92F09C4CFD800B25A18 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 61B5F92C09C4CFD800B25A18 /* MainMenu.xib */; }; - 61B5F93009C4CFDC00B25A18 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5F92409C4CFC900B25A18 /* main.m */; }; - 61B5FBB709C4FAFF00B25A18 /* SUAppcast.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FB9509C4F04600B25A18 /* SUAppcast.m */; }; - 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FB9409C4F04600B25A18 /* SUAppcast.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61B5FC4C09C4FD5E00B25A18 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */; }; - 61B5FC6F09C51F4900B25A18 /* SUAppcastItem.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */; }; - 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 61B5FCDE09C52A9F00B25A18 /* SUUpdateAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */; }; - 61B5FCDF09C52A9F00B25A18 /* SUUpdateAlert.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B5FCA009C5228F00B25A18 /* SUUpdateAlert.h */; settings = {ATTRIBUTES = (); }; }; - 61B93A3C0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B93A390DD02D6400DCD2F8 /* SUUIBasedUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; - 61B93A3D0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B93A3A0DD02D6400DCD2F8 /* SUUIBasedUpdateDriver.m */; }; - 61B93B270DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B93B250DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; - 61B93B280DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B93B260DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m */; }; - 61B93C090DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h in Headers */ = {isa = PBXBuildFile; fileRef = 61B93C070DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h */; settings = {ATTRIBUTES = (); }; }; - 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B93C080DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m */; }; - 61CFB3290E385186007A1735 /* Sparkle.pch in Headers */ = {isa = PBXBuildFile; fileRef = 61CFB3280E385186007A1735 /* Sparkle.pch */; }; - 61D85D6D0E10B2ED00F9B4A9 /* SUPipedUnarchiver.m in Sources */ = {isa = PBXBuildFile; fileRef = 6129C0B90E0B79810062CE76 /* SUPipedUnarchiver.m */; }; - 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */ = {isa = PBXBuildFile; fileRef = 61EF67550E25B58D00F754E0 /* SUHost.m */; }; - 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */ = {isa = PBXBuildFile; fileRef = 61EF67580E25C5B400F754E0 /* SUHost.h */; }; - 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, ); }; }; - 720B16451C66433D006985FB /* SUTestApplicationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 720B16431C66433D006985FB /* SUTestApplicationTest.swift */; }; - 7210C7681B9A9A1500EB90AC /* SUUnarchiverTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */; }; - 721BC2111D1DFF05002BC71E /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; - 721CF1A71AD7643600D9AC09 /* bsdiff.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */; }; - 721CF1A81AD7644100D9AC09 /* bspatch.c in Sources */ = {isa = PBXBuildFile; fileRef = 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */; }; - 721CF1A91AD7644C00D9AC09 /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; - 721CF1AA1AD7647000D9AC09 /* libxar.1.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */; }; - 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */; }; - 7223E7631AD1AEFF008E3161 /* sais.c in Sources */ = {isa = PBXBuildFile; fileRef = 7223E7611AD1AEFF008E3161 /* sais.c */; }; - 722954B71D04ADAF00ECF9CA /* fileop.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954B61D04ADAF00ECF9CA /* fileop.m */; }; - 722954BC1D04AE1100ECF9CA /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; - 722954BD1D04AE3800ECF9CA /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 722954C11D04D9ED00ECF9CA /* fileop in Copy fileop */ = {isa = PBXBuildFile; fileRef = 722954B41D04ADAF00ECF9CA /* fileop */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; - 722954C41D04E66F00ECF9CA /* SUFileOperationConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 722954C21D04E66F00ECF9CA /* SUFileOperationConstants.h */; }; - 722954C51D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; - 722954C61D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; - 722954C71D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; - 722954C91D04EA5C00ECF9CA /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D69BFE84028FC02AAC07 /* Foundation.framework */; }; - 722954CA1D04EA6000ECF9CA /* AppKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0867D6A5FE840307C02AAC07 /* AppKit.framework */; }; - 722954CB1D04EA6900ECF9CA /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 61B5F8F609C4CEB300B25A18 /* Security.framework */; }; - 722954CC1D04EA7000ECF9CA /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; - 723A920E1D722438004A9DED /* SUSpotlightImporterTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 723A920D1D722438004A9DED /* SUSpotlightImporterTest.swift */; }; - 723B252D1CEAB3A600909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; - 723B252E1CEAB3A600909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; - 723B252F1CEAB3A600909873 /* bscommon.c in Sources */ = {isa = PBXBuildFile; fileRef = 723B252B1CEAB3A600909873 /* bscommon.c */; }; - 723B25301CEAB3A600909873 /* bscommon.h in Headers */ = {isa = PBXBuildFile; fileRef = 723B252C1CEAB3A600909873 /* bscommon.h */; }; - 72544FFC1D0991A4000CFB2C /* SUFileOperationConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */; }; - 7268AC631AD634C200C3E0C1 /* SUBinaryDeltaCreate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */; }; - 726F2CDE1BC9BE5B001971A4 /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; - 726F2CE51BC9C33D001971A4 /* SUOperatingSystem.h in Headers */ = {isa = PBXBuildFile; fileRef = 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */; }; - 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; - 726F2CE71BC9C3E2001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; - 726F2CE81BC9C48F001971A4 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 726F2CE91BC9C499001971A4 /* SUOperatingSystem.m in Sources */ = {isa = PBXBuildFile; fileRef = 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */; }; - 726F2CEB1BC9C733001971A4 /* SUConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = 61299A5F09CA6EB100B7442F /* SUConstants.m */; }; - 7275F9C11B5F1F2900B1D19E /* SUFileManager.h in Headers */ = {isa = PBXBuildFile; fileRef = 7275F9BF1B5F1F2900B1D19E /* SUFileManager.h */; }; - 7275F9C21B5F1F2900B1D19E /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; - 7275F9C31B5F1F2900B1D19E /* SUFileManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */; }; - 729924731DF3478A00DBCDF5 /* SUUpdateValidator.h in Headers */ = {isa = PBXBuildFile; fileRef = 729924711DF3478A00DBCDF5 /* SUUpdateValidator.h */; }; - 729924741DF3478A00DBCDF5 /* SUUpdateValidator.m in Sources */ = {isa = PBXBuildFile; fileRef = 729924721DF3478A00DBCDF5 /* SUUpdateValidator.m */; }; - 72A4A2401BB6567D00E7820D /* SUFileManagerTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */; }; - 72AC6B261B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */; }; - 72AC6B281B9AAD6700F62325 /* SparkleTestCodeSignApp.tar in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */; }; - 72AC6B2A1B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */; }; - 72AC6B2C1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B2B1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz */; }; - 72AC6B2E1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg in Resources */ = {isa = PBXBuildFile; fileRef = 72AC6B2D1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg */; }; - 72D4DAA11AD7632900B211E2 /* SUBinaryDeltaCreate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */; }; - 72E45CF31B640CDD005C701A /* SUTestApplicationDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 72E45CF21B640CDD005C701A /* SUTestApplicationDelegate.m */; }; - 72E45CF71B640DAE005C701A /* SUUpdateSettingsWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */; }; - 72E45CF81B640DAE005C701A /* SUUpdateSettingsWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */; }; - 72E45CFC1B641961005C701A /* sparkletestcast.xml in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CFB1B641961005C701A /* sparkletestcast.xml */; }; - 72E45CFE1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem in Resources */ = {isa = PBXBuildFile; fileRef = 72E45CFD1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem */; }; - 72E45DDD1B65C3BD005C701A /* sign_update in Resources */ = {isa = PBXBuildFile; fileRef = 72E45DDC1B65C3BD005C701A /* sign_update */; }; - 72E641801D08D754000404CA /* fileop in Resources */ = {isa = PBXBuildFile; fileRef = 722954B41D04ADAF00ECF9CA /* fileop */; }; - 767B61AC1972D488004E0C3C /* SUGuidedPackageInstaller.h in Headers */ = {isa = PBXBuildFile; fileRef = 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */; }; - 767B61AD1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */; }; - 767B61AE1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */ = {isa = PBXBuildFile; fileRef = 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */; }; - A5BF4F1D1BC7668B007A052A /* SUTestWebServer.m in Sources */ = {isa = PBXBuildFile; fileRef = A5BF4F1C1BC7668B007A052A /* SUTestWebServer.m */; }; - C23E885B1BE7B24F0050BB73 /* SparkleTestCodeSignApp.enc.dmg in Resources */ = {isa = PBXBuildFile; fileRef = C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */; }; - F8761EB11ADC5068000C9034 /* SUCodeSigningVerifierTest.m in Sources */ = {isa = PBXBuildFile; fileRef = F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */; }; - F8761EB31ADC50EB000C9034 /* SparkleTestCodeSignApp.zip in Resources */ = {isa = PBXBuildFile; fileRef = F8761EB21ADC50EB000C9034 /* SparkleTestCodeSignApp.zip */; }; - F8761EB61ADC5E7A000C9034 /* SUCodeSigningVerifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 61B078CD15A5FB6100600039 /* SUCodeSigningVerifier.m */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 1454BA1519637EDB00344E57 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 61B5F90109C4CEE200B25A18; - remoteInfo = "Sparkle Test App"; - }; - 1454BA1719637EE900344E57 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 1420DF491962329200203BB0; - remoteInfo = Documentation; - }; - 14732BCA1960F73500593899 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; - 14732BCE1960F73500593899 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5D06E8CF0FD68C7C005AE3F6; - remoteInfo = BinaryDelta; - }; - 14950063195FB8A600BC5B5B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; - 14950065195FB8A600BC5B5B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 61B5F90109C4CEE200B25A18; - remoteInfo = "Sparkle Test App"; - }; - 14950067195FB8A600BC5B5B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 612279D80DB5470200AB99EA; - remoteInfo = "Sparkle Unit Tests"; - }; - 14950069195FB8A600BC5B5B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5D06E8CF0FD68C7C005AE3F6; - remoteInfo = BinaryDelta; - }; - 1495006B195FB8A600BC5B5B /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 55C14BB6136EEF1500649790; - remoteInfo = Autoupdate; - }; - 55C14F96136F044100649790 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 55C14BB6136EEF1500649790; - remoteInfo = Autoupdate; - }; - 5D06E8D50FD68C86005AE3F6 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; - 61B5F91B09C4CF7200B25A18 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; - 61FA528C0E2D9EB200EF58AD /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216; - remoteInfo = Sparkle; - }; - 722954BE1D04D9CB00ECF9CA /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 722954B31D04ADAF00ECF9CA; - remoteInfo = fileop; - }; - 726B2B621C645FC900388755 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 61B5F90109C4CEE200B25A18; - remoteInfo = "Sparkle Test App"; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXCopyFilesBuildPhase section */ - 142E0E0119A6A13300E4312B /* Copy Files */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 142E0E0219A6A14700E4312B /* Sparkle.framework in Copy Files */, - ); - name = "Copy Files"; - runOnlyForDeploymentPostprocessing = 0; - }; - 142E0E0319A6A24100E4312B /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 12; - files = ( - 142E0E0419A6A26F00E4312B /* Autoupdate.app in CopyFiles */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 61B5FB4D09C4E9FA00B25A18 /* Copy Frameworks */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - 142E0E0019A6954400E4312B /* Sparkle.framework in Copy Frameworks */, - ); - name = "Copy Frameworks"; - runOnlyForDeploymentPostprocessing = 0; - }; - 722954B21D04ADAF00ECF9CA /* CopyFiles */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = /usr/share/man/man1/; - dstSubfolderSpec = 0; - files = ( - ); - runOnlyForDeploymentPostprocessing = 1; - }; - 722954C01D04D9D600ECF9CA /* Copy fileop */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 6; - files = ( - 722954C11D04D9ED00ECF9CA /* fileop in Copy fileop */, - ); - name = "Copy fileop"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 004A8652192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ro; path = ro.lproj/Sparkle.strings; sourceTree = ""; }; - 004A8653192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ro; path = ro.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 004A8654192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ro; path = ro.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 004A8655192A492B00C9730D /* ro */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ro; path = ro.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 0263187214FEBB31005EBF43 /* uk */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/Sparkle.strings; sourceTree = ""; }; - 0263187514FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 0263187614FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 0263187714FEBB42005EBF43 /* uk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = uk; path = uk.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 0867D69BFE84028FC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; - 0867D6A5FE840307C02AAC07 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; }; - 1420DF4D196247B500203BB0 /* build-docs.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "build-docs.sh"; sourceTree = ""; }; - 1420DF4E196247B500203BB0 /* Doxyfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Doxyfile; sourceTree = ""; }; - 1420DF4F196247F900203BB0 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaTest.m; sourceTree = ""; }; - 14652F7919A93E5F00959E44 /* set-git-version-info.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "set-git-version-info.sh"; sourceTree = ""; }; - 14652F8319A9759F00959E44 /* SUExport.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SUExport.h; sourceTree = ""; }; - 146EC84E19A68CF8004A50C5 /* Sparkle.podspec */ = {isa = PBXFileReference; lastKnownFileType = text; path = Sparkle.podspec; sourceTree = SOURCE_ROOT; }; - 14732BB1195FF6B700593899 /* .clang-format */ = {isa = PBXFileReference; lastKnownFileType = text; path = ".clang-format"; sourceTree = SOURCE_ROOT; }; - 14732BB91960EEEE00593899 /* SampleAppcast.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = SampleAppcast.xml; sourceTree = ""; }; - 14732BBA1960EF7100593899 /* CHANGELOG */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = CHANGELOG; sourceTree = SOURCE_ROOT; }; - 14732BBC1960EFB500593899 /* README.markdown */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.markdown; sourceTree = SOURCE_ROOT; }; - 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */ = {isa = PBXFileReference; lastKnownFileType = text; path = test_app_only_dsa_pub.pem; sourceTree = ""; }; - 14732BC11960F3B200593899 /* Makefile */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = SOURCE_ROOT; usesTabs = 1; }; - 14732BC31960F3FF00593899 /* generate_keys */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = generate_keys; sourceTree = ""; }; - 14732BC41960F3FF00593899 /* sign_update */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = sign_update; sourceTree = ""; }; - 14732BC91960F70A00593899 /* make-release-package.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "make-release-package.sh"; sourceTree = ""; }; - 14732BD219610A1800593899 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 147D6D9E1B66DC3C006607AB /* CheckLocalizations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = CheckLocalizations.swift; path = Sparkle/CheckLocalizations.swift; sourceTree = SOURCE_ROOT; }; - 147D6DA71B66EC1C006607AB /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/Sparkle.strings; sourceTree = ""; }; - 147D6DA91B66EC22006607AB /* fi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fi; path = fi.lproj/Sparkle.strings; sourceTree = ""; }; - 147D6DAA1B66EC25006607AB /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/Sparkle.strings; sourceTree = ""; }; - 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdaterTest.m; sourceTree = ""; usesTabs = 0; }; - 14958C6B19AEBC530061B14F /* signed-test-file.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "signed-test-file.txt"; sourceTree = ""; }; - 14958C6C19AEBC610061B14F /* test-pubkey.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "test-pubkey.pem"; sourceTree = ""; }; - 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigCommonCoverage.xcconfig; sourceTree = ""; }; - 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUnitTestCoverage.xcconfig; sourceTree = ""; }; - 1A985A321C5C329C0001163A /* ja */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A331C5C329D0001163A /* fr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A341C5C329E0001163A /* de */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A351C5C329E0001163A /* zh-Hant */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hant"; path = "zh-Hant.lproj/InfoPlist.strings"; sourceTree = ""; }; - 1A985A361C5C32A20001163A /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A371C5C32A30001163A /* ca */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ca; path = ca.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A381C5C32A40001163A /* cs */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A391C5C32A40001163A /* cy */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = cy; path = cy.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A3A1C5C32A50001163A /* da */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A3B1C5C32A60001163A /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A3C1C5C32A70001163A /* fi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fi; path = fi.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A3D1C5C32A80001163A /* he */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = he; path = he.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A3E1C5C32A90001163A /* hu */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = hu; path = hu.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A3F1C5C32AA0001163A /* id */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = id; path = id.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A401C5C32AA0001163A /* is */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = is; path = is.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A411C5C32AB0001163A /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A421C5C32AC0001163A /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A431C5C32AD0001163A /* nl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A441C5C32AE0001163A /* pl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A451C5C32AF0001163A /* ru */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A461C5C32B00001163A /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A471C5C32B10001163A /* sv */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A481C5C32B10001163A /* th */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = th; path = th.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A491C5C32B20001163A /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A4A1C5C32B50001163A /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = ""; }; - 1A985A4B1C5C32B60001163A /* fr-CA */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "fr-CA"; path = "fr-CA.lproj/InfoPlist.strings"; sourceTree = ""; }; - 1A985A4C1C5C32B70001163A /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "pt-PT.lproj/InfoPlist.strings"; sourceTree = ""; }; - 1A985A4D1C5C32B70001163A /* pt-BR */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-BR"; path = "pt-BR.lproj/InfoPlist.strings"; sourceTree = ""; }; - 1A985A4E1C5C32B80001163A /* pt */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = pt; path = pt.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A4F1C5C32B90001163A /* sl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sl; path = sl.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A501C5C32BA0001163A /* ro */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ro; path = ro.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A511C5C32BB0001163A /* uk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uk; path = uk.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A521C5C32BC0001163A /* ar */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/InfoPlist.strings; sourceTree = ""; }; - 1A985A531C5C32BD0001163A /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/InfoPlist.strings; sourceTree = ""; }; - 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUVersionDisplayProtocol.h; sourceTree = ""; }; - 4607BEA21948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = nb; path = nb.lproj/Sparkle.strings; sourceTree = ""; }; - 4607BEA31948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 4607BEA41948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 4607BEA51948443800EF8DA4 /* nb */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nb; path = nb.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 525A278F133D6AE900FD8D70 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; - 555CF29A196C52330000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = el; path = el.lproj/Sparkle.strings; sourceTree = ""; }; - 555CF29B196C523E0000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 555CF29C196C52460000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 555CF29D196C524C0000B31E /* el */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = el; path = el.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14BB7136EEF1500649790 /* Autoupdate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Autoupdate.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 55C14BB9136EEF1500649790 /* Autoupdate-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Autoupdate-Info.plist"; sourceTree = ""; }; - 55C14BD3136EEFCE00649790 /* Autoupdate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Autoupdate.m; sourceTree = ""; }; - 55C14BD8136EF00C00649790 /* SUStatus.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SUStatus.xib; sourceTree = ""; }; - 55C14BDB136EF20D00649790 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BDC136EF20D00649790 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BDD136EF20D00649790 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BDE136EF20D00649790 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BDF136EF20D00649790 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE0136EF20D00649790 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE1136EF20D00649790 /* is */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = is; path = is.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE2136EF20D00649790 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = it.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE3136EF20D00649790 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE4136EF20D00649790 /* ko */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ko; path = ko.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE5136EF20D00649790 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = nl.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE6136EF20D00649790 /* pl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pl; path = pl.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE7136EF20D00649790 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_BR; path = pt_BR.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BE9136EF20D00649790 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BEA136EF20D00649790 /* sk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sk; path = sk.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BEB136EF20D00649790 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BEC136EF20D00649790 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BED136EF20D00649790 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 55C14BF1136EF26100649790 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF2136EF26100649790 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF3136EF26100649790 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF4136EF26100649790 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF5136EF26100649790 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF6136EF26100649790 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF7136EF26100649790 /* is */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = is; path = is.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF8136EF26100649790 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = it.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BF9136EF26100649790 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BFA136EF26100649790 /* ko */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ko; path = ko.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BFB136EF26100649790 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = nl.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BFC136EF26100649790 /* pl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pl; path = pl.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BFD136EF26100649790 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_BR; path = pt_BR.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14BFF136EF26100649790 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C00136EF26100649790 /* sk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sk; path = sk.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C01136EF26100649790 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C02136EF26100649790 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C03136EF26100649790 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 55C14C06136EF2C700649790 /* cs */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = cs; path = cs.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C07136EF2C700649790 /* da */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = da; path = da.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C08136EF2C700649790 /* de */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = de; path = de.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C09136EF2C700649790 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0A136EF2C700649790 /* es */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = es; path = es.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0B136EF2C700649790 /* fr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = fr; path = fr.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0C136EF2C700649790 /* is */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = is; path = is.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0D136EF2C700649790 /* it */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = it; path = it.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0E136EF2C700649790 /* ja */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ja; path = ja.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C0F136EF2C700649790 /* ko */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ko; path = ko.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C10136EF2C700649790 /* nl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = nl; path = nl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C11136EF2C700649790 /* pl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pl; path = pl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C12136EF2C700649790 /* pt_BR */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_BR; path = pt_BR.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C14136EF2C700649790 /* ru */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ru; path = ru.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C15136EF2C700649790 /* sk */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sk; path = sk.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C16136EF2C700649790 /* sv */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sv; path = sv.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C17136EF2C700649790 /* zh_CN */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_CN; path = zh_CN.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14C18136EF2C700649790 /* zh_TW */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = zh_TW; path = zh_TW.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 55C14F04136EF6DB00649790 /* SULog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SULog.h; sourceTree = ""; }; - 55C14F05136EF6DB00649790 /* SULog.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SULog.m; sourceTree = ""; }; - 55C14F31136EFC2400649790 /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; }; - 55E6F33219EC9F6C00005E76 /* SUErrors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUErrors.h; sourceTree = ""; }; - 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUAppcastTest.swift; sourceTree = ""; }; - 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = testappcast.xml; sourceTree = ""; }; - 5AE7E10E1DC81ACA009C2C12 /* AppIcon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = AppIcon.icns; sourceTree = ""; }; - 5AEF45D9189D1CC90030D7DC /* tr */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = tr; path = tr.lproj/Sparkle.strings; sourceTree = ""; }; - 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUInstallerTest.m; sourceTree = ""; }; - 5AF6C74E1AEA46D10014A3AB /* test.sparkle_guided.pkg */ = {isa = PBXFileReference; lastKnownFileType = file; path = test.sparkle_guided.pkg; sourceTree = ""; }; - 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDSAVerifierTest.m; sourceTree = ""; }; - 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = BinaryDelta; sourceTree = BUILT_PRODUCTS_DIR; }; - 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */ = {isa = PBXFileReference; comments = "-Wno-shorten-64-to-32"; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bsdiff.c; sourceTree = ""; }; - 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bspatch.c; sourceTree = ""; }; - 5D06E8DF0FD68CC7005AE3F6 /* SUBinaryDeltaApply.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaApply.h; sourceTree = ""; }; - 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaApply.m; sourceTree = ""; }; - 5D06E8E10FD68CC7005AE3F6 /* SUBinaryDeltaCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCommon.h; sourceTree = ""; }; - 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaCommon.m; sourceTree = ""; }; - 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaTool.m; sourceTree = ""; usesTabs = 0; }; - 5D06E8F10FD68D21005AE3F6 /* ConfigBinaryDelta.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigBinaryDelta.xcconfig; sourceTree = ""; }; - 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigBinaryDeltaDebug.xcconfig; sourceTree = ""; }; - 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigBinaryDeltaRelease.xcconfig; sourceTree = ""; }; - 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.dylib; path = usr/lib/libbz2.dylib; sourceTree = SDKROOT; }; - 5D06E9370FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaUnarchiver.h; sourceTree = ""; }; - 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaUnarchiver.m; sourceTree = ""; }; - 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxar.1.dylib; path = usr/lib/libxar.1.dylib; sourceTree = SDKROOT; }; - 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = usr/lib/libxml2.dylib; sourceTree = SDKROOT; }; - 5D1AF5990FD767E50065DB48 /* libz.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libz.dylib; path = usr/lib/libz.dylib; sourceTree = SDKROOT; }; - 5F1510A11C96E591006E1629 /* testnamespaces.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = testnamespaces.xml; sourceTree = ""; }; - 610134710DD250470049ACDF /* SUUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateDriver.h; sourceTree = ""; }; - 610134720DD250470049ACDF /* SUUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateDriver.m; sourceTree = ""; }; - 610134790DD2541A0049ACDF /* SUProbingUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUProbingUpdateDriver.h; sourceTree = ""; }; - 6101347A0DD2541A0049ACDF /* SUProbingUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUProbingUpdateDriver.m; sourceTree = ""; }; - 6102FE440E077FCE00F85D09 /* SUPipedUnarchiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPipedUnarchiver.h; sourceTree = ""; }; - 6102FE480E07803800F85D09 /* SUDiskImageUnarchiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDiskImageUnarchiver.h; sourceTree = ""; }; - 6102FE490E07803800F85D09 /* SUDiskImageUnarchiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDiskImageUnarchiver.m; sourceTree = ""; }; - 6102FE590E08C7EC00F85D09 /* SUUnarchiver_Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUnarchiver_Private.h; sourceTree = ""; }; - 611142E810FB1BE5009810AA /* bspatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bspatch.h; sourceTree = ""; }; - 61131A050F846CE600E97AF6 /* da */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = da; path = da.lproj/Sparkle.strings; sourceTree = ""; }; - 61131A090F846D0A00E97AF6 /* zh_CN */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = zh_CN; path = zh_CN.lproj/Sparkle.strings; sourceTree = ""; }; - 61131A0A0F846D1100E97AF6 /* zh_TW */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = zh_TW; path = zh_TW.lproj/Sparkle.strings; sourceTree = ""; }; - 6117796E0D1112E000749C97 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - 61180BC80D64138900B4E0D1 /* SUWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUWindowController.h; sourceTree = ""; }; - 61180BC90D64138900B4E0D1 /* SUWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUWindowController.m; sourceTree = ""; }; - 611A904210240DD300CC659E /* pl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pl; path = pl.lproj/Sparkle.strings; sourceTree = ""; }; - 611A904610240DF700CC659E /* ja */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = ja; path = ja.lproj/Sparkle.strings; sourceTree = ""; }; - 6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAutomaticUpdateAlert.h; sourceTree = ""; }; - 6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAutomaticUpdateAlert.m; sourceTree = ""; }; - 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Sparkle Unit Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 612279DA0DB5470200AB99EA /* SparkleTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "SparkleTests-Info.plist"; sourceTree = ""; }; - 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUVersionComparisonTest.m; sourceTree = ""; }; - 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUDSAVerifier.h; sourceTree = ""; }; - 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUDSAVerifier.m; sourceTree = ""; }; - 61299A5B09CA6D4500B7442F /* SUConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUConstants.h; sourceTree = ""; }; - 61299A5F09CA6EB100B7442F /* SUConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUConstants.m; sourceTree = ""; }; - 61299A8B09CA790200B7442F /* SUUnarchiver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUnarchiver.h; sourceTree = ""; }; - 61299A8C09CA790200B7442F /* SUUnarchiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUnarchiver.m; sourceTree = ""; }; - 61299B3509CB04E000B7442F /* Sparkle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sparkle.h; sourceTree = ""; }; - 6129C0B90E0B79810062CE76 /* SUPipedUnarchiver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUPipedUnarchiver.m; sourceTree = ""; }; - 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdatePermissionPrompt.h; sourceTree = ""; }; - 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdatePermissionPrompt.m; sourceTree = ""; }; - 613151B20FB4946A000DCD59 /* is */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = is; path = is.lproj/Sparkle.strings; sourceTree = ""; }; - 6149E6EA1601ABAC008A351E /* ar */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = ar; path = ar.lproj/Sparkle.strings; sourceTree = ""; }; - 6149E6ED1601ABAC008A351E /* ar */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ar; path = ar.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 6149E6EF1601ABAC008A351E /* ar */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ar; path = ar.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 6149E6F01601ABAC008A351E /* ar */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = ar; path = ar.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 615409C4103BBC4000125AF1 /* cs */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = cs; path = cs.lproj/Sparkle.strings; sourceTree = ""; }; - 6158A1B81378F64700487EC1 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_PT; path = pt_PT.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 6158A1BA1378F68100487EC1 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_PT; path = pt_PT.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 6158A1BB1378F68100487EC1 /* pt_PT */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = pt_PT; path = pt_PT.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 6158A1BE1378F8BB00487EC1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = tr; path = tr.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 6158A1BF1378F8BB00487EC1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = tr; path = tr.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 6158A1C01378F8BB00487EC1 /* tr */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = tr; path = tr.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 6158A1C4137904B300487EC1 /* SUUpdater_Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdater_Private.h; sourceTree = ""; }; - 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SUModelTranslation.plist; sourceTree = ""; }; - 6186554310D7484E00B1E074 /* pt_PT */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pt_PT; path = pt_PT.lproj/Sparkle.strings; sourceTree = ""; }; - 618915730E35937600B5E981 /* sv */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = sv; path = sv.lproj/Sparkle.strings; 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 = ""; }; - 618FA5040DAE8AB80026945C /* SUPlainInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUPlainInstaller.m; sourceTree = ""; }; - 618FA5200DAE8E8A0026945C /* SUPackageInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUPackageInstaller.h; sourceTree = ""; }; - 618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUPackageInstaller.m; sourceTree = ""; }; - 6195D4920E404AD700D41A50 /* ru */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = ru; path = ru.lproj/Sparkle.strings; sourceTree = ""; }; - 6196CFE309C71ADE000DC222 /* SUStatusController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStatusController.h; sourceTree = ""; }; - 6196CFE409C71ADE000DC222 /* SUStatusController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStatusController.m; sourceTree = ""; }; - 619B17200E1E9D0800E72754 /* de */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = de; path = de.lproj/Sparkle.strings; sourceTree = ""; }; - 61A2259C0D1C495D00430CCD /* SUVersionComparisonProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUVersionComparisonProtocol.h; sourceTree = ""; }; - 61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUStandardVersionComparator.h; sourceTree = ""; }; - 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUStandardVersionComparator.m; sourceTree = ""; }; - 61A2279A0D1CEE7600430CCD /* SUSystemProfiler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUSystemProfiler.h; sourceTree = ""; }; - 61A2279B0D1CEE7600430CCD /* SUSystemProfiler.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUSystemProfiler.m; sourceTree = ""; }; - 61A354530DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUserInitiatedUpdateDriver.h; sourceTree = ""; }; - 61A354540DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUserInitiatedUpdateDriver.m; sourceTree = ""; }; - 61AAE8230A321A7F00D8810D /* en */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Sparkle.strings; sourceTree = ""; }; - 61AAE84F0A321AF700D8810D /* es */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Sparkle.strings; sourceTree = ""; }; - 61AAE8590A321B0400D8810D /* fr */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = fr; path = fr.lproj/Sparkle.strings; sourceTree = ""; }; - 61AAE8710A321F7700D8810D /* nl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = nl; path = nl.lproj/Sparkle.strings; sourceTree = ""; }; - 61B078CC15A5FB6100600039 /* SUCodeSigningVerifier.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUCodeSigningVerifier.h; sourceTree = ""; }; - 61B078CD15A5FB6100600039 /* SUCodeSigningVerifier.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUCodeSigningVerifier.m; sourceTree = ""; }; - 61B5F8E309C4CE3C00B25A18 /* SUUpdater.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = SUUpdater.h; sourceTree = ""; }; - 61B5F8E409C4CE3C00B25A18 /* SUUpdater.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = SUUpdater.m; sourceTree = ""; }; - 61B5F8F609C4CEB300B25A18 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; }; - 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Sparkle Test App.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 61B5F90409C4CEE200B25A18 /* TestApplication-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "TestApplication-Info.plist"; sourceTree = ""; }; - 61B5F92409C4CFC900B25A18 /* main.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 61B5F92B09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; - 61B5F92D09C4CFD800B25A18 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = ""; }; - 61B5FB9409C4F04600B25A18 /* SUAppcast.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAppcast.h; sourceTree = ""; }; - 61B5FB9509C4F04600B25A18 /* SUAppcast.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAppcast.m; sourceTree = ""; }; - 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WebKit.framework; path = System/Library/Frameworks/WebKit.framework; sourceTree = SDKROOT; }; - 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAppcastItem.h; sourceTree = ""; }; - 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAppcastItem.m; sourceTree = ""; }; - 61B5FCA009C5228F00B25A18 /* SUUpdateAlert.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateAlert.h; sourceTree = ""; }; - 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateAlert.m; sourceTree = ""; }; - 61B93A390DD02D6400DCD2F8 /* SUUIBasedUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUIBasedUpdateDriver.h; sourceTree = ""; }; - 61B93A3A0DD02D6400DCD2F8 /* SUUIBasedUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUIBasedUpdateDriver.m; sourceTree = ""; }; - 61B93B250DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUAutomaticUpdateDriver.h; sourceTree = ""; }; - 61B93B260DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUAutomaticUpdateDriver.m; sourceTree = ""; }; - 61B93C070DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUScheduledUpdateDriver.h; sourceTree = ""; }; - 61B93C080DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUScheduledUpdateDriver.m; sourceTree = ""; }; - 61BA66CC14BDFA0400D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sl; path = sl.lproj/Sparkle.strings; sourceTree = ""; }; - 61BA66DA14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 61BA66DB14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 61BA66DC14BDFC5500D02D86 /* sl */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = sl; path = sl.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 61C268090E2DB5D000175E6C /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = SOURCE_ROOT; }; - 61CFB3280E385186007A1735 /* Sparkle.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Sparkle.pch; sourceTree = ""; }; - 61E31A80103299500051D188 /* pt_BR */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = pt_BR; path = pt_BR.lproj/Sparkle.strings; sourceTree = ""; }; - 61EF67550E25B58D00F754E0 /* SUHost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUHost.m; sourceTree = ""; }; - 61EF67580E25C5B400F754E0 /* SUHost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUHost.h; sourceTree = ""; }; - 61F3AC1215C22D4A00260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = th; path = th.lproj/Sparkle.strings; sourceTree = ""; }; - 61F3AC1415C22D5900260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = th; path = th.lproj/SUAutomaticUpdateAlert.xib; sourceTree = ""; }; - 61F3AC1615C22D5900260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = th; path = th.lproj/SUUpdateAlert.xib; sourceTree = ""; }; - 61F3AC1715C22D5900260CA2 /* th */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = th; path = th.lproj/SUUpdatePermissionPrompt.xib; sourceTree = ""; }; - 61F614540E24A12D009F47E7 /* it */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Sparkle.strings; sourceTree = ""; }; - 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBasicUpdateDriver.h; sourceTree = ""; }; - 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBasicUpdateDriver.m; sourceTree = ""; }; - 720B16421C66433D006985FB /* UITests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "UITests-Info.plist"; path = "UITests/UITests-Info.plist"; sourceTree = SOURCE_ROOT; }; - 720B16431C66433D006985FB /* SUTestApplicationTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SUTestApplicationTest.swift; path = UITests/SUTestApplicationTest.swift; sourceTree = SOURCE_ROOT; }; - 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUUnarchiverTest.swift; sourceTree = ""; }; - 7223E7611AD1AEFF008E3161 /* sais.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sais.c; sourceTree = ""; }; - 7223E7621AD1AEFF008E3161 /* sais.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = sais.h; sourceTree = ""; }; - 722954B41D04ADAF00ECF9CA /* fileop */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = fileop; sourceTree = BUILT_PRODUCTS_DIR; }; - 722954B61D04ADAF00ECF9CA /* fileop.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = fileop.m; sourceTree = ""; }; - 722954C21D04E66F00ECF9CA /* SUFileOperationConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUFileOperationConstants.h; sourceTree = ""; }; - 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileOperationConstants.m; sourceTree = ""; }; - 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigFileop.xcconfig; sourceTree = ""; }; - 722FB7471DD51331001D40CE /* ConfigSwift.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigSwift.xcconfig; sourceTree = ""; }; - 722FB7481DD51350001D40CE /* ConfigSwiftDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigSwiftDebug.xcconfig; sourceTree = ""; }; - 722FB7491DD51350001D40CE /* ConfigSwiftRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigSwiftRelease.xcconfig; sourceTree = ""; }; - 723A920D1D722438004A9DED /* SUSpotlightImporterTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUSpotlightImporterTest.swift; sourceTree = ""; }; - 723B252B1CEAB3A600909873 /* bscommon.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = bscommon.c; sourceTree = ""; }; - 723B252C1CEAB3A600909873 /* bscommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = bscommon.h; sourceTree = ""; }; - 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUBinaryDeltaCreate.m; sourceTree = ""; }; - 7268AC641AD634E400C3E0C1 /* SUBinaryDeltaCreate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUBinaryDeltaCreate.h; sourceTree = ""; }; - 726B2B5D1C645FC900388755 /* UI Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "UI Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; - 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUOperatingSystem.h; sourceTree = ""; }; - 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUOperatingSystem.m; sourceTree = ""; }; - 7275F9BF1B5F1F2900B1D19E /* SUFileManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUFileManager.h; sourceTree = ""; }; - 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUFileManager.m; sourceTree = ""; }; - 729924711DF3478A00DBCDF5 /* SUUpdateValidator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateValidator.h; sourceTree = ""; }; - 729924721DF3478A00DBCDF5 /* SUUpdateValidator.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateValidator.m; sourceTree = ""; }; - 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITest.xcconfig; sourceTree = ""; }; - 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestCoverage.xcconfig; sourceTree = ""; }; - 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestDebug.xcconfig; sourceTree = ""; }; - 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = ConfigUITestRelease.xcconfig; sourceTree = ""; }; - 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SUFileManagerTest.swift; sourceTree = ""; }; - 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; path = SparkleTestCodeSignApp.tar.gz; sourceTree = ""; }; - 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */ = {isa = PBXFileReference; lastKnownFileType = archive.tar; path = SparkleTestCodeSignApp.tar; sourceTree = ""; }; - 72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.tar.bz2; sourceTree = ""; }; - 72AC6B2B1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.tar.xz; sourceTree = ""; }; - 72AC6B2D1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.dmg; sourceTree = ""; }; - 72AFC6121B9A944200F6B565 /* Sparkle Unit Tests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Sparkle Unit Tests-Bridging-Header.h"; sourceTree = ""; }; - 72E45CF11B640CDD005C701A /* SUTestApplicationDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUTestApplicationDelegate.h; sourceTree = ""; }; - 72E45CF21B640CDD005C701A /* SUTestApplicationDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUTestApplicationDelegate.m; sourceTree = ""; }; - 72E45CF41B640DAE005C701A /* SUUpdateSettingsWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUUpdateSettingsWindowController.h; sourceTree = ""; }; - 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUUpdateSettingsWindowController.m; sourceTree = ""; }; - 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SUUpdateSettingsWindowController.xib; sourceTree = ""; }; - 72E45CFB1B641961005C701A /* sparkletestcast.xml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = sparkletestcast.xml; sourceTree = ""; }; - 72E45CFD1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = test_app_only_dsa_priv_dont_ever_do_this_for_real.pem; sourceTree = ""; }; - 72E45DDC1B65C3BD005C701A /* sign_update */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; name = sign_update; path = bin/sign_update; sourceTree = SOURCE_ROOT; }; - 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUGuidedPackageInstaller.h; sourceTree = ""; }; - 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUGuidedPackageInstaller.m; sourceTree = ""; }; - 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Sparkle-Info.plist"; sourceTree = ""; }; - 8DC2EF5B0486A6940098B216 /* Sparkle.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Sparkle.framework; sourceTree = BUILT_PRODUCTS_DIR; }; - A5BF4F1B1BC7668B007A052A /* SUTestWebServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SUTestWebServer.h; sourceTree = ""; }; - A5BF4F1C1BC7668B007A052A /* SUTestWebServer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUTestWebServer.m; sourceTree = ""; }; - C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */ = {isa = PBXFileReference; lastKnownFileType = file; path = SparkleTestCodeSignApp.enc.dmg; sourceTree = ""; }; - F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SUCodeSigningVerifierTest.m; sourceTree = ""; }; - F8761EB21ADC50EB000C9034 /* SparkleTestCodeSignApp.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = SparkleTestCodeSignApp.zip; 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 = ""; }; - FA1941CD0D94A70100DD942E /* ConfigTestApp.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigTestApp.xcconfig; sourceTree = ""; }; - FA1941CE0D94A70100DD942E /* ConfigRelaunch.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigRelaunch.xcconfig; sourceTree = ""; }; - FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigCommonDebug.xcconfig; sourceTree = ""; }; - FA1941D00D94A70100DD942E /* ConfigCommon.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigCommon.xcconfig; sourceTree = ""; }; - FA1941D10D94A70100DD942E /* ConfigFramework.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigFramework.xcconfig; sourceTree = ""; }; - FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigTestAppRelease.xcconfig; sourceTree = ""; }; - FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigRelaunchDebug.xcconfig; sourceTree = ""; }; - FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigRelaunchRelease.xcconfig; sourceTree = ""; }; - FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigFrameworkRelease.xcconfig; sourceTree = ""; }; - FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTestRelease.xcconfig; sourceTree = ""; }; - FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTestDebug.xcconfig; sourceTree = ""; }; - FA3AAF3B1050B273004B3130 /* ConfigUnitTest.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = ConfigUnitTest.xcconfig; sourceTree = ""; }; - FE5536F517A2C6A7007CB333 /* ko */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ko; path = ko.lproj/Sparkle.strings; sourceTree = ""; }; - FE5536F617A2C6AB007CB333 /* sk */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = sk; path = sk.lproj/Sparkle.strings; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 55C14BB5136EEF1500649790 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 14950071195FCE3D00BC5B5B /* AppKit.framework in Frameworks */, - 14950070195FCE3A00BC5B5B /* Foundation.framework in Frameworks */, - 55C14F9A136F045400649790 /* Security.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D06E8CE0FD68C7C005AE3F6 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5D06E9050FD68D7D005AE3F6 /* Foundation.framework in Frameworks */, - 5D06E8FF0FD68D6D005AE3F6 /* libbz2.dylib in Frameworks */, - 5D1AF58B0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */, - 5D1AF5900FD767AD0065DB48 /* libxml2.dylib in Frameworks */, - 5D1AF59A0FD767E50065DB48 /* libz.dylib in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 612279D60DB5470200AB99EA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 14732BD119610A1200593899 /* AppKit.framework in Frameworks */, - 14732BD019610A0D00593899 /* Foundation.framework in Frameworks */, - 721CF1AB1AD764EB00D9AC09 /* libbz2.dylib in Frameworks */, - 721CF1AA1AD7647000D9AC09 /* libxar.1.dylib in Frameworks */, - 14652F8019A9740F00959E44 /* Security.framework in Frameworks */, - 61FA52880E2D9EA400EF58AD /* Sparkle.framework in Frameworks */, - 14732BD319610A1800593899 /* XCTest.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 61B5F90009C4CEE200B25A18 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 14950073195FCE4E00BC5B5B /* AppKit.framework in Frameworks */, - 14950072195FCE4B00BC5B5B /* Foundation.framework in Frameworks */, - 61B5F90F09C4CF3A00B25A18 /* Sparkle.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 722954B11D04ADAF00ECF9CA /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 722954CB1D04EA6900ECF9CA /* Security.framework in Frameworks */, - 722954CA1D04EA6000ECF9CA /* AppKit.framework in Frameworks */, - 722954C91D04EA5C00ECF9CA /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 726B2B5A1C645FC900388755 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8DC2EF560486A6940098B216 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 1495006E195FCE1100BC5B5B /* AppKit.framework in Frameworks */, - 1495006F195FCE1800BC5B5B /* Foundation.framework in Frameworks */, - 61177A1F0D1112E900749C97 /* IOKit.framework in Frameworks */, - 5D06E8FD0FD68D6B005AE3F6 /* libbz2.dylib in Frameworks */, - 5D1AF58A0FD7678C0065DB48 /* libxar.1.dylib in Frameworks */, - 5D1AF82B0FD768180065DB48 /* libz.dylib in Frameworks */, - 61B5F8F709C4CEB300B25A18 /* Security.framework in Frameworks */, - 55C14F32136EFC2400649790 /* SystemConfiguration.framework in Frameworks */, - 61B5FC4C09C4FD5E00B25A18 /* WebKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 034768DFFF38A50411DB9C8B /* Products */ = { - isa = PBXGroup; - children = ( - 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */, - 55C14BB7136EEF1500649790 /* Autoupdate.app */, - 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */, - 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */, - 8DC2EF5B0486A6940098B216 /* Sparkle.framework */, - 726B2B5D1C645FC900388755 /* UI Tests.xctest */, - 722954B41D04ADAF00ECF9CA /* fileop */, - ); - name = Products; - sourceTree = ""; - }; - 0867D691FE84028FC02AAC07 /* Sparkle */ = { - isa = PBXGroup; - children = ( - 1495006D195FBBBD00BC5B5B /* Sparkle */, - 14732BB81960EEB600593899 /* Resources */, - 61227A100DB5484000AB99EA /* Tests */, - 61B5F91D09C4CF7F00B25A18 /* Test Application */, - 14732BB51960ECBA00593899 /* Third Party */, - 1420DE391962322200203BB0 /* Documentation */, - FA1941C40D94A6EA00DD942E /* Configurations */, - 726B2B5E1C645FC900388755 /* UI Tests */, - 0867D69AFE84028FC02AAC07 /* Frameworks */, - 034768DFFF38A50411DB9C8B /* Products */, - ); - name = Sparkle; - sourceTree = ""; - usesTabs = 0; - }; - 0867D69AFE84028FC02AAC07 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 0867D6A5FE840307C02AAC07 /* AppKit.framework */, - 525A278F133D6AE900FD8D70 /* Cocoa.framework */, - 0867D69BFE84028FC02AAC07 /* Foundation.framework */, - 6117796E0D1112E000749C97 /* IOKit.framework */, - 5D06E8FB0FD68D61005AE3F6 /* libbz2.dylib */, - 5D1AF5890FD7678C0065DB48 /* libxar.1.dylib */, - 5D1AF58F0FD767AD0065DB48 /* libxml2.dylib */, - 5D1AF5990FD767E50065DB48 /* libz.dylib */, - 61B5F8F609C4CEB300B25A18 /* Security.framework */, - 55C14F31136EFC2400649790 /* SystemConfiguration.framework */, - 61B5FC3F09C4FD4000B25A18 /* WebKit.framework */, - 14732BD219610A1800593899 /* XCTest.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 089C1665FE841158C02AAC07 /* Framework Resources */ = { - isa = PBXGroup; - children = ( - 8DC2EF5A0486A6940098B216 /* Sparkle-Info.plist */, - 61AAE8220A321A7F00D8810D /* Sparkle.strings */, - 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */, - 55C14BD8136EF00C00649790 /* SUStatus.xib */, - 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */, - 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */, - ); - name = "Framework Resources"; - sourceTree = ""; - }; - 1420DE391962322200203BB0 /* Documentation */ = { - isa = PBXGroup; - children = ( - 1420DF4E196247B500203BB0 /* Doxyfile */, - 1420DF4D196247B500203BB0 /* build-docs.sh */, - ); - path = Documentation; - sourceTree = ""; - }; - 14732BB51960ECBA00593899 /* Third Party */ = { - isa = PBXGroup; - children = ( - 14732BB61960ECE800593899 /* bsdiff */, - ); - name = "Third Party"; - path = Vendor; - sourceTree = ""; - }; - 14732BB61960ECE800593899 /* bsdiff */ = { - isa = PBXGroup; - children = ( - 723B252B1CEAB3A600909873 /* bscommon.c */, - 723B252C1CEAB3A600909873 /* bscommon.h */, - 5D06E8DB0FD68CB9005AE3F6 /* bsdiff.c */, - 5D06E8DC0FD68CB9005AE3F6 /* bspatch.c */, - 611142E810FB1BE5009810AA /* bspatch.h */, - 7223E7611AD1AEFF008E3161 /* sais.c */, - 7223E7621AD1AEFF008E3161 /* sais.h */, - ); - path = bsdiff; - sourceTree = ""; - }; - 14732BB81960EEB600593899 /* Resources */ = { - isa = PBXGroup; - children = ( - 14732BC21960F3FF00593899 /* bin */, - 14732BBA1960EF7100593899 /* CHANGELOG */, - 61C268090E2DB5D000175E6C /* LICENSE */, - 14732BC11960F3B200593899 /* Makefile */, - 147D6D9E1B66DC3C006607AB /* CheckLocalizations.swift */, - 1420DF4F196247F900203BB0 /* Images.xcassets */, - 14732BBC1960EFB500593899 /* README.markdown */, - 14732BB91960EEEE00593899 /* SampleAppcast.xml */, - 5AE7E10E1DC81ACA009C2C12 /* AppIcon.icns */, - 615AE3CF0D64DC40001CA7BD /* SUModelTranslation.plist */, - ); - path = Resources; - sourceTree = ""; - }; - 14732BC21960F3FF00593899 /* bin */ = { - isa = PBXGroup; - children = ( - 14732BC31960F3FF00593899 /* generate_keys */, - 14732BC41960F3FF00593899 /* sign_update */, - ); - path = bin; - sourceTree = SOURCE_ROOT; - }; - 1495006D195FBBBD00BC5B5B /* Sparkle */ = { - isa = PBXGroup; - children = ( - 61299B3909CB055000B7442F /* Appcast Support */, - 55C14BD5136EEFD000649790 /* Autoupdate */, - 089C1665FE841158C02AAC07 /* Framework Resources */, - 618FA6DB0DB485440026945C /* Installation */, - 61B5F8F309C4CE5900B25A18 /* Other Sources */, - 6101354A0DD25B7F0049ACDF /* Unarchiving */, - 61F83F6E0DBFE07A006FDD30 /* Update Control */, - 61299B3A09CB056100B7442F /* User Interface */, - ); - path = Sparkle; - sourceTree = ""; - }; - 14958C7019AEBE350061B14F /* Resources */ = { - isa = PBXGroup; - children = ( - 14958C6B19AEBC530061B14F /* signed-test-file.txt */, - 72AC6B2D1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg */, - C23E88591BE7AF890050BB73 /* SparkleTestCodeSignApp.enc.dmg */, - 72AC6B271B9AAD6700F62325 /* SparkleTestCodeSignApp.tar */, - 72AC6B291B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 */, - 72AC6B251B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz */, - 72AC6B2B1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz */, - F8761EB21ADC50EB000C9034 /* SparkleTestCodeSignApp.zip */, - 14958C6C19AEBC610061B14F /* test-pubkey.pem */, - 5AF6C74E1AEA46D10014A3AB /* test.sparkle_guided.pkg */, - 5AD0FA7E1C73F2E2004BCEFF /* testappcast.xml */, - 5F1510A11C96E591006E1629 /* testnamespaces.xml */, - ); - path = Resources; - sourceTree = ""; - }; - 55C14BD5136EEFD000649790 /* Autoupdate */ = { - isa = PBXGroup; - children = ( - 722954B51D04ADAF00ECF9CA /* fileop */, - 55C14BB9136EEF1500649790 /* Autoupdate-Info.plist */, - 55C14BD3136EEFCE00649790 /* Autoupdate.m */, - ); - path = Autoupdate; - sourceTree = ""; - }; - 5D06E8D90FD68C95005AE3F6 /* Binary Delta */ = { - isa = PBXGroup; - children = ( - 5D06E8DF0FD68CC7005AE3F6 /* SUBinaryDeltaApply.h */, - 5D06E8E00FD68CC7005AE3F6 /* SUBinaryDeltaApply.m */, - 5D06E8E10FD68CC7005AE3F6 /* SUBinaryDeltaCommon.h */, - 5D06E8E20FD68CC7005AE3F6 /* SUBinaryDeltaCommon.m */, - 7268AC641AD634E400C3E0C1 /* SUBinaryDeltaCreate.h */, - 7268AC621AD634C200C3E0C1 /* SUBinaryDeltaCreate.m */, - 5D06E8E30FD68CC7005AE3F6 /* SUBinaryDeltaTool.m */, - 5D06E9370FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h */, - 5D06E9380FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m */, - ); - name = "Binary Delta"; - sourceTree = ""; - }; - 6101354A0DD25B7F0049ACDF /* Unarchiving */ = { - isa = PBXGroup; - children = ( - 5D06E8D90FD68C95005AE3F6 /* Binary Delta */, - 6102FE480E07803800F85D09 /* SUDiskImageUnarchiver.h */, - 6102FE490E07803800F85D09 /* SUDiskImageUnarchiver.m */, - 6102FE440E077FCE00F85D09 /* SUPipedUnarchiver.h */, - 6129C0B90E0B79810062CE76 /* SUPipedUnarchiver.m */, - 61299A8B09CA790200B7442F /* SUUnarchiver.h */, - 61299A8C09CA790200B7442F /* SUUnarchiver.m */, - 6102FE590E08C7EC00F85D09 /* SUUnarchiver_Private.h */, - ); - name = Unarchiving; - sourceTree = ""; - }; - 61227A100DB5484000AB99EA /* Tests */ = { - isa = PBXGroup; - children = ( - 14958C7019AEBE350061B14F /* Resources */, - 72AFC6121B9A944200F6B565 /* Sparkle Unit Tests-Bridging-Header.h */, - 612279DA0DB5470200AB99EA /* SparkleTests-Info.plist */, - 5AA4DCD01C73E5510078F128 /* SUAppcastTest.swift */, - 142E0E0819A83AAC00E4312B /* SUBinaryDeltaTest.m */, - F8761EB01ADC5068000C9034 /* SUCodeSigningVerifierTest.m */, - 5AF9DC3B1981DBEE001EA135 /* SUDSAVerifierTest.m */, - 72A4A23F1BB6567D00E7820D /* SUFileManagerTest.swift */, - 5AF6C74C1AEA40760014A3AB /* SUInstallerTest.m */, - 723A920D1D722438004A9DED /* SUSpotlightImporterTest.swift */, - 7210C7671B9A9A1500EB90AC /* SUUnarchiverTest.swift */, - 14950074195FDF5900BC5B5B /* SUUpdaterTest.m */, - 61227A150DB548B800AB99EA /* SUVersionComparisonTest.m */, - ); - path = Tests; - sourceTree = ""; - }; - 61299B3909CB055000B7442F /* Appcast Support */ = { - isa = PBXGroup; - children = ( - 61B5FB9409C4F04600B25A18 /* SUAppcast.h */, - 61B5FB9509C4F04600B25A18 /* SUAppcast.m */, - 61B5FC5309C5182000B25A18 /* SUAppcastItem.h */, - 61B5FC5409C5182000B25A18 /* SUAppcastItem.m */, - 61A225A20D1C4AC000430CCD /* SUStandardVersionComparator.h */, - 61A225A30D1C4AC000430CCD /* SUStandardVersionComparator.m */, - 61A2279A0D1CEE7600430CCD /* SUSystemProfiler.h */, - 61A2279B0D1CEE7600430CCD /* SUSystemProfiler.m */, - 61A2259C0D1C495D00430CCD /* SUVersionComparisonProtocol.h */, - 3772FEA813DE0B6B00F79537 /* SUVersionDisplayProtocol.h */, - ); - name = "Appcast Support"; - sourceTree = ""; - }; - 61299B3A09CB056100B7442F /* User Interface */ = { - isa = PBXGroup; - children = ( - 6120721009CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h */, - 6120721109CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m */, - 6196CFE309C71ADE000DC222 /* SUStatusController.h */, - 6196CFE409C71ADE000DC222 /* SUStatusController.m */, - 61B5FCA009C5228F00B25A18 /* SUUpdateAlert.h */, - 61B5FCA109C5228F00B25A18 /* SUUpdateAlert.m */, - 612DCBAD0D488BC60015DBEA /* SUUpdatePermissionPrompt.h */, - 612DCBAE0D488BC60015DBEA /* SUUpdatePermissionPrompt.m */, - 61180BC80D64138900B4E0D1 /* SUWindowController.h */, - 61180BC90D64138900B4E0D1 /* SUWindowController.m */, - ); - name = "User Interface"; - sourceTree = ""; - }; - 618FA6DB0DB485440026945C /* Installation */ = { - isa = PBXGroup; - children = ( - 7275F9BF1B5F1F2900B1D19E /* SUFileManager.h */, - 7275F9C01B5F1F2900B1D19E /* SUFileManager.m */, - 767B61AA1972D488004E0C3C /* SUGuidedPackageInstaller.h */, - 767B61AB1972D488004E0C3C /* SUGuidedPackageInstaller.m */, - 618FA4FF0DAE88B40026945C /* SUInstaller.h */, - 618FA5000DAE88B40026945C /* SUInstaller.m */, - 618FA5200DAE8E8A0026945C /* SUPackageInstaller.h */, - 618FA5210DAE8E8A0026945C /* SUPackageInstaller.m */, - 618FA5030DAE8AB80026945C /* SUPlainInstaller.h */, - 618FA5040DAE8AB80026945C /* SUPlainInstaller.m */, - ); - name = Installation; - sourceTree = ""; - }; - 61B5F8F309C4CE5900B25A18 /* Other Sources */ = { - isa = PBXGroup; - children = ( - 61299B3509CB04E000B7442F /* Sparkle.h */, - 61CFB3280E385186007A1735 /* Sparkle.pch */, - 61299A5B09CA6D4500B7442F /* SUConstants.h */, - 61299A5F09CA6EB100B7442F /* SUConstants.m */, - 55E6F33219EC9F6C00005E76 /* SUErrors.h */, - 14652F8319A9759F00959E44 /* SUExport.h */, - 61EF67580E25C5B400F754E0 /* SUHost.h */, - 61EF67550E25B58D00F754E0 /* SUHost.m */, - 55C14F04136EF6DB00649790 /* SULog.h */, - 55C14F05136EF6DB00649790 /* SULog.m */, - 726F2CE31BC9C33D001971A4 /* SUOperatingSystem.h */, - 726F2CE41BC9C33D001971A4 /* SUOperatingSystem.m */, - ); - includeInIndex = 1; - name = "Other Sources"; - sourceTree = ""; - }; - 61B5F91D09C4CF7F00B25A18 /* Test Application */ = { - isa = PBXGroup; - children = ( - 72E45DDC1B65C3BD005C701A /* sign_update */, - 61B5F92A09C4CFD800B25A18 /* InfoPlist.strings */, - 61B5F92409C4CFC900B25A18 /* main.m */, - 61B5F92C09C4CFD800B25A18 /* MainMenu.xib */, - 72E45CFB1B641961005C701A /* sparkletestcast.xml */, - 72E45CF11B640CDD005C701A /* SUTestApplicationDelegate.h */, - 72E45CF21B640CDD005C701A /* SUTestApplicationDelegate.m */, - A5BF4F1B1BC7668B007A052A /* SUTestWebServer.h */, - A5BF4F1C1BC7668B007A052A /* SUTestWebServer.m */, - 72E45CF41B640DAE005C701A /* SUUpdateSettingsWindowController.h */, - 72E45CF51B640DAE005C701A /* SUUpdateSettingsWindowController.m */, - 72E45CF61B640DAE005C701A /* SUUpdateSettingsWindowController.xib */, - 72E45CFD1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem */, - 14732BBF1960F0AC00593899 /* test_app_only_dsa_pub.pem */, - 61B5F90409C4CEE200B25A18 /* TestApplication-Info.plist */, - ); - name = "Test Application"; - path = TestApplication; - sourceTree = ""; - }; - 61CFB2C10E384958007A1735 /* Support */ = { - isa = PBXGroup; - children = ( - 729924711DF3478A00DBCDF5 /* SUUpdateValidator.h */, - 729924721DF3478A00DBCDF5 /* SUUpdateValidator.m */, - 61B078CC15A5FB6100600039 /* SUCodeSigningVerifier.h */, - 61B078CD15A5FB6100600039 /* SUCodeSigningVerifier.m */, - 61299A2D09CA2DAB00B7442F /* SUDSAVerifier.h */, - 61299A2E09CA2DAB00B7442F /* SUDSAVerifier.m */, - ); - name = Support; - sourceTree = ""; - }; - 61CFB2C20E38496B007A1735 /* Drivers */ = { - isa = PBXGroup; - children = ( - 61B93B250DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h */, - 61B93B260DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m */, - 61F83F6F0DBFE137006FDD30 /* SUBasicUpdateDriver.h */, - 61F83F700DBFE137006FDD30 /* SUBasicUpdateDriver.m */, - 610134790DD2541A0049ACDF /* SUProbingUpdateDriver.h */, - 6101347A0DD2541A0049ACDF /* SUProbingUpdateDriver.m */, - 61B93C070DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h */, - 61B93C080DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m */, - 61B93A390DD02D6400DCD2F8 /* SUUIBasedUpdateDriver.h */, - 61B93A3A0DD02D6400DCD2F8 /* SUUIBasedUpdateDriver.m */, - 610134710DD250470049ACDF /* SUUpdateDriver.h */, - 610134720DD250470049ACDF /* SUUpdateDriver.m */, - 61A354530DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.h */, - 61A354540DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m */, - ); - name = Drivers; - sourceTree = ""; - }; - 61F83F6E0DBFE07A006FDD30 /* Update Control */ = { - isa = PBXGroup; - children = ( - 61CFB2C20E38496B007A1735 /* Drivers */, - 61CFB2C10E384958007A1735 /* Support */, - 61B5F8E309C4CE3C00B25A18 /* SUUpdater.h */, - 61B5F8E409C4CE3C00B25A18 /* SUUpdater.m */, - 6158A1C4137904B300487EC1 /* SUUpdater_Private.h */, - ); - name = "Update Control"; - sourceTree = ""; - }; - 722954B51D04ADAF00ECF9CA /* fileop */ = { - isa = PBXGroup; - children = ( - 722954B61D04ADAF00ECF9CA /* fileop.m */, - 722954C21D04E66F00ECF9CA /* SUFileOperationConstants.h */, - 722954C31D04E66F00ECF9CA /* SUFileOperationConstants.m */, - ); - name = fileop; - path = ../../fileop; - sourceTree = ""; - }; - 726B2B5E1C645FC900388755 /* UI Tests */ = { - isa = PBXGroup; - children = ( - 720B16431C66433D006985FB /* SUTestApplicationTest.swift */, - 720B16421C66433D006985FB /* UITests-Info.plist */, - ); - path = "UI Tests"; - sourceTree = ""; - }; - FA1941C40D94A6EA00DD942E /* Configurations */ = { - isa = PBXGroup; - children = ( - 14732BB1195FF6B700593899 /* .clang-format */, - 5D06E8F10FD68D21005AE3F6 /* ConfigBinaryDelta.xcconfig */, - 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */, - 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */, - FA1941D00D94A70100DD942E /* ConfigCommon.xcconfig */, - 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */, - FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */, - FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */, - FA1941D10D94A70100DD942E /* ConfigFramework.xcconfig */, - FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */, - FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */, - FA1941CE0D94A70100DD942E /* ConfigRelaunch.xcconfig */, - FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */, - FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */, - 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */, - FA1941CD0D94A70100DD942E /* ConfigTestApp.xcconfig */, - FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */, - FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */, - FA3AAF3B1050B273004B3130 /* ConfigUnitTest.xcconfig */, - 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */, - FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */, - FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */, - 729F10FD1C65A9B500DFCCC5 /* ConfigUITest.xcconfig */, - 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */, - 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */, - 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */, - 722FB7471DD51331001D40CE /* ConfigSwift.xcconfig */, - 722FB7481DD51350001D40CE /* ConfigSwiftDebug.xcconfig */, - 722FB7491DD51350001D40CE /* ConfigSwiftRelease.xcconfig */, - 14732BC91960F70A00593899 /* make-release-package.sh */, - 14652F7919A93E5F00959E44 /* set-git-version-info.sh */, - 146EC84E19A68CF8004A50C5 /* Sparkle.podspec */, - ); - path = Configurations; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 8DC2EF500486A6940098B216 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 611142E910FB1BE5009810AA /* bspatch.h in Headers */, - 61299B3609CB04E000B7442F /* Sparkle.h in Headers */, - 61CFB3290E385186007A1735 /* Sparkle.pch in Headers */, - 61B5FC0D09C4FC8200B25A18 /* SUAppcast.h in Headers */, - 61B5FC7009C51F4A00B25A18 /* SUAppcastItem.h in Headers */, - 6120721209CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.h in Headers */, - 61B93B270DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.h in Headers */, - 61F83F740DBFE141006FDD30 /* SUBasicUpdateDriver.h in Headers */, - 5D06E9390FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.h in Headers */, - 61B078CE15A5FB6100600039 /* SUCodeSigningVerifier.h in Headers */, - 61299A5C09CA6D4500B7442F /* SUConstants.h in Headers */, - 6102FE4A0E07803800F85D09 /* SUDiskImageUnarchiver.h in Headers */, - 61299A2F09CA2DAB00B7442F /* SUDSAVerifier.h in Headers */, - 55E6F33319EC9F6C00005E76 /* SUErrors.h in Headers */, - 14652F8419A978C200959E44 /* SUExport.h in Headers */, - 7275F9C11B5F1F2900B1D19E /* SUFileManager.h in Headers */, - 767B61AC1972D488004E0C3C /* SUGuidedPackageInstaller.h in Headers */, - 61EF67590E25C5B400F754E0 /* SUHost.h in Headers */, - 729924731DF3478A00DBCDF5 /* SUUpdateValidator.h in Headers */, - 723B25301CEAB3A600909873 /* bscommon.h in Headers */, - 618FA5010DAE88B40026945C /* SUInstaller.h in Headers */, - 55C14F06136EF6DB00649790 /* SULog.h in Headers */, - 726F2CE51BC9C33D001971A4 /* SUOperatingSystem.h in Headers */, - 618FA5220DAE8E8A0026945C /* SUPackageInstaller.h in Headers */, - 6102FE460E077FCE00F85D09 /* SUPipedUnarchiver.h in Headers */, - 618FA5050DAE8AB80026945C /* SUPlainInstaller.h in Headers */, - 6101347B0DD2541A0049ACDF /* SUProbingUpdateDriver.h in Headers */, - 61B93C090DD112FF00DCD2F8 /* SUScheduledUpdateDriver.h in Headers */, - 61A225A40D1C4AC000430CCD /* SUStandardVersionComparator.h in Headers */, - 6196CFF909C72148000DC222 /* SUStatusController.h in Headers */, - 61A2279C0D1CEE7600430CCD /* SUSystemProfiler.h in Headers */, - 61B93A3C0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.h in Headers */, - 61299A8D09CA790200B7442F /* SUUnarchiver.h in Headers */, - 6102FE5B0E08C7EC00F85D09 /* SUUnarchiver_Private.h in Headers */, - 61B5FCDF09C52A9F00B25A18 /* SUUpdateAlert.h in Headers */, - 610134730DD250470049ACDF /* SUUpdateDriver.h in Headers */, - 612DCBAF0D488BC60015DBEA /* SUUpdatePermissionPrompt.h in Headers */, - 61B5F8ED09C4CE3C00B25A18 /* SUUpdater.h in Headers */, - 6158A1C5137904B300487EC1 /* SUUpdater_Private.h in Headers */, - 61A354550DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.h in Headers */, - 61A2259E0D1C495D00430CCD /* SUVersionComparisonProtocol.h in Headers */, - 3772FEA913DE0B6B00F79537 /* SUVersionDisplayProtocol.h in Headers */, - 722954C41D04E66F00ECF9CA /* SUFileOperationConstants.h in Headers */, - 61180BCA0D64138900B4E0D1 /* SUWindowController.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXLegacyTarget section */ - 1420DF491962329200203BB0 /* Documentation */ = { - isa = PBXLegacyTarget; - buildArgumentsString = "\"$(SRCROOT)/Documentation/build-docs.sh\" $(ACTION)"; - buildConfigurationList = 1420DF4A1962329200203BB0 /* Build configuration list for PBXLegacyTarget "Documentation" */; - buildPhases = ( - ); - buildToolPath = bash; - buildWorkingDirectory = ""; - dependencies = ( - ); - name = Documentation; - passBuildSettingsInEnvironment = 1; - productName = Documentation; - }; - 14732BC51960F69300593899 /* Distribution */ = { - isa = PBXLegacyTarget; - buildArgumentsString = "$(SRCROOT)/Configurations/make-release-package.sh $(ACTION)"; - buildConfigurationList = 14732BC61960F69300593899 /* Build configuration list for PBXLegacyTarget "Distribution" */; - buildPhases = ( - ); - buildToolPath = bash; - buildWorkingDirectory = ""; - dependencies = ( - 14732BCB1960F73500593899 /* PBXTargetDependency */, - 1454BA1619637EDB00344E57 /* PBXTargetDependency */, - 14732BCF1960F73500593899 /* PBXTargetDependency */, - 1454BA1819637EE900344E57 /* PBXTargetDependency */, - ); - name = Distribution; - passBuildSettingsInEnvironment = 1; - productName = Distribution; - }; -/* End PBXLegacyTarget section */ - -/* Begin PBXNativeTarget section */ - 55C14BB6136EEF1500649790 /* Autoupdate */ = { - isa = PBXNativeTarget; - buildConfigurationList = 55C14BBE136EEF1500649790 /* Build configuration list for PBXNativeTarget "Autoupdate" */; - buildPhases = ( - 55C14BB3136EEF1500649790 /* Resources */, - 55C14BB4136EEF1500649790 /* Sources */, - 55C14BB5136EEF1500649790 /* Frameworks */, - 14652F7B19A945D600959E44 /* Run Script: Set Git Version Info */, - 722954C01D04D9D600ECF9CA /* Copy fileop */, - ); - buildRules = ( - ); - dependencies = ( - 722954BF1D04D9CB00ECF9CA /* PBXTargetDependency */, - ); - name = Autoupdate; - productName = Autoupdate; - productReference = 55C14BB7136EEF1500649790 /* Autoupdate.app */; - productType = "com.apple.product-type.application"; - }; - 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5D06E8DA0FD68C95005AE3F6 /* Build configuration list for PBXNativeTarget "BinaryDelta" */; - buildPhases = ( - 5D06E8CD0FD68C7C005AE3F6 /* Sources */, - 5D06E8CE0FD68C7C005AE3F6 /* Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 5D06E8D60FD68C86005AE3F6 /* PBXTargetDependency */, - ); - name = BinaryDelta; - productName = BinaryDelta; - productReference = 5D06E8D00FD68C7C005AE3F6 /* BinaryDelta */; - productType = "com.apple.product-type.tool"; - }; - 612279D80DB5470200AB99EA /* Sparkle Unit Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 612279DD0DB5470300AB99EA /* Build configuration list for PBXNativeTarget "Sparkle Unit Tests" */; - buildPhases = ( - 612279D50DB5470200AB99EA /* Sources */, - 612279D60DB5470200AB99EA /* Frameworks */, - 14958C6D19AEBC890061B14F /* Resources */, - 142E0E0119A6A13300E4312B /* Copy Files */, - ); - buildRules = ( - ); - dependencies = ( - 61FA528D0E2D9EB200EF58AD /* PBXTargetDependency */, - ); - name = "Sparkle Unit Tests"; - productName = "Sparkle Unit Tests"; - productReference = 612279D90DB5470200AB99EA /* Sparkle Unit Tests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; - 61B5F90109C4CEE200B25A18 /* Sparkle Test App */ = { - isa = PBXNativeTarget; - buildConfigurationList = 61B5F90509C4CEE300B25A18 /* Build configuration list for PBXNativeTarget "Sparkle Test App" */; - buildPhases = ( - 61B5F8FE09C4CEE200B25A18 /* Resources */, - 61B5F8FF09C4CEE200B25A18 /* Sources */, - 61B5F90009C4CEE200B25A18 /* Frameworks */, - 61B5FB4D09C4E9FA00B25A18 /* Copy Frameworks */, - ); - buildRules = ( - ); - dependencies = ( - 61B5F91C09C4CF7200B25A18 /* PBXTargetDependency */, - ); - name = "Sparkle Test App"; - productName = "Test Application"; - productReference = 61B5F90209C4CEE200B25A18 /* Sparkle Test App.app */; - productType = "com.apple.product-type.application"; - }; - 722954B31D04ADAF00ECF9CA /* fileop */ = { - isa = PBXNativeTarget; - buildConfigurationList = 722954BB1D04ADAF00ECF9CA /* Build configuration list for PBXNativeTarget "fileop" */; - buildPhases = ( - 722954B01D04ADAF00ECF9CA /* Sources */, - 722954B11D04ADAF00ECF9CA /* Frameworks */, - 722954B21D04ADAF00ECF9CA /* CopyFiles */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = fileop; - productName = fileop; - productReference = 722954B41D04ADAF00ECF9CA /* fileop */; - productType = "com.apple.product-type.tool"; - }; - 726B2B5C1C645FC900388755 /* UI Tests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 726B2B671C645FC900388755 /* Build configuration list for PBXNativeTarget "UI Tests" */; - buildPhases = ( - 726B2B591C645FC900388755 /* Sources */, - 726B2B5A1C645FC900388755 /* Frameworks */, - 726B2B5B1C645FC900388755 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 726B2B631C645FC900388755 /* PBXTargetDependency */, - ); - name = "UI Tests"; - productName = "UI Tests"; - productReference = 726B2B5D1C645FC900388755 /* UI Tests.xctest */; - productType = "com.apple.product-type.bundle.ui-testing"; - }; - 8DC2EF4F0486A6940098B216 /* Sparkle */ = { - isa = PBXNativeTarget; - buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Sparkle" */; - buildPhases = ( - 8DC2EF500486A6940098B216 /* Headers */, - 8DC2EF520486A6940098B216 /* Resources */, - 142E0E0319A6A24100E4312B /* CopyFiles */, - 8DC2EF540486A6940098B216 /* Sources */, - 8DC2EF560486A6940098B216 /* Frameworks */, - 6131B1910DDCDE32005215F0 /* Run Script: Set Git Version Info */, - 6195D4B40E40505A00D41A50 /* Run Script: Link fr_CA to fr */, - 61E31A85103299750051D188 /* Run Script: Link pt to pt_BR */, - ); - buildRules = ( - ); - dependencies = ( - 55C14F97136F044100649790 /* PBXTargetDependency */, - ); - name = Sparkle; - productInstallPath = "$(HOME)/Library/Frameworks"; - productName = Sparkle; - productReference = 8DC2EF5B0486A6940098B216 /* Sparkle.framework */; - productType = "com.apple.product-type.framework"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 0867D690FE84028FC02AAC07 /* Project object */ = { - isa = PBXProject; - attributes = { - CLASSPREFIX = SU; - LastSwiftUpdateCheck = 0720; - LastUpgradeCheck = 0800; - ORGANIZATIONNAME = "Sparkle Project"; - TargetAttributes = { - 612279D80DB5470200AB99EA = { - LastSwiftMigration = 0800; - TestTargetID = 8DC2EF4F0486A6940098B216; - }; - 722954B31D04ADAF00ECF9CA = { - CreatedOnToolsVersion = 7.3.1; - }; - 726B2B5C1C645FC900388755 = { - CreatedOnToolsVersion = 7.2.1; - LastSwiftMigration = 0800; - TestTargetID = 61B5F90109C4CEE200B25A18; - }; - }; - }; - buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 1; - knownRegions = ( - English, - Japanese, - French, - German, - Italian, - zh_TW, - en, - ca, - cs, - cy, - da, - de, - es, - fi, - fr, - he, - hu, - id, - is, - it, - ja, - ko, - nl, - no, - pl, - ru, - sk, - sv, - th, - tr, - zh_CN, - fr_ca, - pt_BR, - pt_PT, - pt, - ro, - sl, - uk, - ar, - nb, - el, - "zh-Hans", - "zh-Hant", - "fr-CA", - "pt-PT", - "pt-BR", - ); - mainGroup = 0867D691FE84028FC02AAC07 /* Sparkle */; - productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 8DC2EF4F0486A6940098B216 /* Sparkle */, - 55C14BB6136EEF1500649790 /* Autoupdate */, - 61B5F90109C4CEE200B25A18 /* Sparkle Test App */, - 612279D80DB5470200AB99EA /* Sparkle Unit Tests */, - 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */, - 14732BC51960F69300593899 /* Distribution */, - 1420DF491962329200203BB0 /* Documentation */, - 1495005F195FB89400BC5B5B /* All */, - 726B2B5C1C645FC900388755 /* UI Tests */, - 722954B31D04ADAF00ECF9CA /* fileop */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 14958C6D19AEBC890061B14F /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 72E641801D08D754000404CA /* fileop in Resources */, - 14958C6E19AEBC950061B14F /* signed-test-file.txt in Resources */, - 5F1510A21C96E591006E1629 /* testnamespaces.xml in Resources */, - 72AC6B2E1B9B218C00F62325 /* SparkleTestCodeSignApp.dmg in Resources */, - C23E885B1BE7B24F0050BB73 /* SparkleTestCodeSignApp.enc.dmg in Resources */, - 72AC6B281B9AAD6700F62325 /* SparkleTestCodeSignApp.tar in Resources */, - 72AC6B2A1B9AAF3A00F62325 /* SparkleTestCodeSignApp.tar.bz2 in Resources */, - 72AC6B261B9AAC8800F62325 /* SparkleTestCodeSignApp.tar.gz in Resources */, - 72AC6B2C1B9AB0EE00F62325 /* SparkleTestCodeSignApp.tar.xz in Resources */, - F8761EB31ADC50EB000C9034 /* SparkleTestCodeSignApp.zip in Resources */, - 14958C6F19AEBC980061B14F /* test-pubkey.pem in Resources */, - 5AF6C74F1AEA46D10014A3AB /* test.sparkle_guided.pkg in Resources */, - 5AD0FA7F1C73F2E2004BCEFF /* testappcast.xml in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 55C14BB3136EEF1500649790 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5AE7E1111DC81AD3009C2C12 /* AppIcon.icns in Resources */, - 55C14FC7136F05E100649790 /* Sparkle.strings in Resources */, - 55C14BD9136EF00C00649790 /* SUStatus.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 61B5F8FE09C4CEE200B25A18 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 1420DF50196247F900203BB0 /* Images.xcassets in Resources */, - 61B5F92E09C4CFD800B25A18 /* InfoPlist.strings in Resources */, - 61B5F92F09C4CFD800B25A18 /* MainMenu.xib in Resources */, - 72E45DDD1B65C3BD005C701A /* sign_update in Resources */, - 72E45CFC1B641961005C701A /* sparkletestcast.xml in Resources */, - 72E45CF81B640DAE005C701A /* SUUpdateSettingsWindowController.xib in Resources */, - 72E45CFE1B641D0D005C701A /* test_app_only_dsa_priv_dont_ever_do_this_for_real.pem in Resources */, - 14732BC01960F2C200593899 /* test_app_only_dsa_pub.pem in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 726B2B5B1C645FC900388755 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8DC2EF520486A6940098B216 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 61AAE8280A321A7F00D8810D /* Sparkle.strings in Resources */, - 55C14BEE136EF20D00649790 /* SUAutomaticUpdateAlert.xib in Resources */, - 615AE3D00D64DC40001CA7BD /* SUModelTranslation.plist in Resources */, - 55C14BEF136EF21700649790 /* SUStatus.xib in Resources */, - 55C14C04136EF26100649790 /* SUUpdateAlert.xib in Resources */, - 55C14C19136EF2C700649790 /* SUUpdatePermissionPrompt.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - 14652F7B19A945D600959E44 /* Run Script: Set Git Version Info */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - name = "Run Script: Set Git Version Info"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"$SRCROOT/Configurations/set-git-version-info.sh\""; - showEnvVarsInLog = 0; - }; - 6131B1910DDCDE32005215F0 /* Run Script: Set Git Version Info */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 12; - files = ( - ); - inputPaths = ( - ); - name = "Run Script: Set Git Version Info"; - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "\"$SRCROOT/Configurations/set-git-version-info.sh\""; - showEnvVarsInLog = 0; - }; - 6195D4B40E40505A00D41A50 /* Run Script: Link fr_CA to fr */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/fr.lproj", - ); - name = "Run Script: Link fr_CA to fr"; - outputPaths = ( - "$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/fr_CA.lproj", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = "/usr/bin/env sh"; - shellScript = "ln -sfh \"fr.lproj\" \"$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/fr_CA.lproj\""; - showEnvVarsInLog = 0; - }; - 61E31A85103299750051D188 /* Run Script: Link pt to pt_BR */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - "$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/pt_BR.lproj", - ); - name = "Run Script: Link pt to pt_BR"; - outputPaths = ( - "$(BUILT_PRODUCTS_DIR)/$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/pt.lproj", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = "/usr/bin/env sh"; - shellScript = "ln -sfh \"pt_BR.lproj\" \"$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/pt.lproj\""; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 55C14BB4136EEF1500649790 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 55C14BD4136EEFCE00649790 /* Autoupdate.m in Sources */, - F8761EB61ADC5E7A000C9034 /* SUCodeSigningVerifier.m in Sources */, - 55C14F00136EF6B700649790 /* SUConstants.m in Sources */, - 7275F9C31B5F1F2900B1D19E /* SUFileManager.m in Sources */, - 767B61AE1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */, - 55C14F0C136EF6EA00649790 /* SUHost.m in Sources */, - 55C14F0D136EF6F200649790 /* SUInstaller.m in Sources */, - 55C14F08136EF6DB00649790 /* SULog.m in Sources */, - 726F2CE71BC9C3E2001971A4 /* SUOperatingSystem.m in Sources */, - 55C14F24136EF86F00649790 /* SUPackageInstaller.m in Sources */, - 55C14F21136EF84D00649790 /* SUPlainInstaller.m in Sources */, - 722954C61D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */, - 55C14F22136EF86000649790 /* SUStandardVersionComparator.m in Sources */, - 55C14F20136EF84300649790 /* SUStatusController.m in Sources */, - 55C14F23136EF86700649790 /* SUSystemProfiler.m in Sources */, - 55C14F2A136EF9A900649790 /* SUWindowController.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 5D06E8CD0FD68C7C005AE3F6 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 72544FFC1D0991A4000CFB2C /* SUFileOperationConstants.m in Sources */, - 5D06E8E90FD68CDB005AE3F6 /* bsdiff.c in Sources */, - 14652F7E19A9728A00959E44 /* bspatch.c in Sources */, - 7223E7631AD1AEFF008E3161 /* sais.c in Sources */, - 723B252F1CEAB3A600909873 /* bscommon.c in Sources */, - 14652F7D19A9726700959E44 /* SUBinaryDeltaApply.m in Sources */, - 14652F7C19A9725300959E44 /* SUBinaryDeltaCommon.m in Sources */, - 7268AC631AD634C200C3E0C1 /* SUBinaryDeltaCreate.m in Sources */, - 5D06E8EA0FD68CDB005AE3F6 /* SUBinaryDeltaTool.m in Sources */, - 726F2CE81BC9C48F001971A4 /* SUConstants.m in Sources */, - 726F2CDE1BC9BE5B001971A4 /* SUFileManager.m in Sources */, - 726F2CE91BC9C499001971A4 /* SUOperatingSystem.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 612279D50DB5470200AB99EA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 723A920E1D722438004A9DED /* SUSpotlightImporterTest.swift in Sources */, - 721CF1A71AD7643600D9AC09 /* bsdiff.c in Sources */, - 721CF1A81AD7644100D9AC09 /* bspatch.c in Sources */, - 721CF1A91AD7644C00D9AC09 /* sais.c in Sources */, - 5A4094481C74EA5200983BE0 /* SUAppcastTest.swift in Sources */, - 72D4DAA11AD7632900B211E2 /* SUBinaryDeltaCreate.m in Sources */, - 723B252E1CEAB3A600909873 /* bscommon.c in Sources */, - 142E0E0919A83AAC00E4312B /* SUBinaryDeltaTest.m in Sources */, - F8761EB11ADC5068000C9034 /* SUCodeSigningVerifierTest.m in Sources */, - 5AF9DC3C1981DBEE001EA135 /* SUDSAVerifierTest.m in Sources */, - 72A4A2401BB6567D00E7820D /* SUFileManagerTest.swift in Sources */, - 5AF6C7541AEA49840014A3AB /* SUInstallerTest.m in Sources */, - 14652F8219A9746000959E44 /* SULog.m in Sources */, - 7210C7681B9A9A1500EB90AC /* SUUnarchiverTest.swift in Sources */, - 5AE459001C34118500E3BB47 /* SUUpdaterTest.m in Sources */, - 5AE459021C34118500E3BB47 /* SUVersionComparisonTest.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 61B5F8FF09C4CEE200B25A18 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 61B5F93009C4CFDC00B25A18 /* main.m in Sources */, - 726F2CEB1BC9C733001971A4 /* SUConstants.m in Sources */, - 5A6D31EE1BF53245009C5157 /* SUFileManager.m in Sources */, - 721BC2111D1DFF05002BC71E /* SUFileOperationConstants.m in Sources */, - 5A6D31EF1BF5325F009C5157 /* SUOperatingSystem.m in Sources */, - 72E45CF31B640CDD005C701A /* SUTestApplicationDelegate.m in Sources */, - A5BF4F1D1BC7668B007A052A /* SUTestWebServer.m in Sources */, - 72E45CF71B640DAE005C701A /* SUUpdateSettingsWindowController.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 722954B01D04ADAF00ECF9CA /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 722954CC1D04EA7000ECF9CA /* SUOperatingSystem.m in Sources */, - 722954BD1D04AE3800ECF9CA /* SUConstants.m in Sources */, - 722954BC1D04AE1100ECF9CA /* SUFileManager.m in Sources */, - 722954B71D04ADAF00ECF9CA /* fileop.m in Sources */, - 722954C71D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 726B2B591C645FC900388755 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 720B16451C66433D006985FB /* SUTestApplicationTest.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - 8DC2EF540486A6940098B216 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5D06E8EB0FD68CE4005AE3F6 /* bspatch.c in Sources */, - 722954C51D04E66F00ECF9CA /* SUFileOperationConstants.m in Sources */, - 61B5FBB709C4FAFF00B25A18 /* SUAppcast.m in Sources */, - 61B5FC6F09C51F4900B25A18 /* SUAppcastItem.m in Sources */, - 6120721309CC5C4B007FE0F6 /* SUAutomaticUpdateAlert.m in Sources */, - 61B93B280DD0FDD300DCD2F8 /* SUAutomaticUpdateDriver.m in Sources */, - 61F83F720DBFE140006FDD30 /* SUBasicUpdateDriver.m in Sources */, - 5D06E8EC0FD68CE4005AE3F6 /* SUBinaryDeltaApply.m in Sources */, - 5D06E8ED0FD68CE4005AE3F6 /* SUBinaryDeltaCommon.m in Sources */, - 5D06E93A0FD69271005AE3F6 /* SUBinaryDeltaUnarchiver.m in Sources */, - 61B078CF15A5FB6100600039 /* SUCodeSigningVerifier.m in Sources */, - 61299A6009CA6EB100B7442F /* SUConstants.m in Sources */, - 6102FE4B0E07803800F85D09 /* SUDiskImageUnarchiver.m in Sources */, - 61299A3009CA2DAB00B7442F /* SUDSAVerifier.m in Sources */, - 7275F9C21B5F1F2900B1D19E /* SUFileManager.m in Sources */, - 767B61AD1972D488004E0C3C /* SUGuidedPackageInstaller.m in Sources */, - 61EF67560E25B58D00F754E0 /* SUHost.m in Sources */, - 618FA5020DAE88B40026945C /* SUInstaller.m in Sources */, - 55C14F07136EF6DB00649790 /* SULog.m in Sources */, - 729924741DF3478A00DBCDF5 /* SUUpdateValidator.m in Sources */, - 723B252D1CEAB3A600909873 /* bscommon.c in Sources */, - 726F2CE61BC9C33D001971A4 /* SUOperatingSystem.m in Sources */, - 618FA5230DAE8E8A0026945C /* SUPackageInstaller.m in Sources */, - 61D85D6D0E10B2ED00F9B4A9 /* SUPipedUnarchiver.m in Sources */, - 618FA5060DAE8AB80026945C /* SUPlainInstaller.m in Sources */, - 6101347C0DD2541A0049ACDF /* SUProbingUpdateDriver.m in Sources */, - 61B93C0A0DD112FF00DCD2F8 /* SUScheduledUpdateDriver.m in Sources */, - 61A225A50D1C4AC000430CCD /* SUStandardVersionComparator.m in Sources */, - 6196CFFA09C72149000DC222 /* SUStatusController.m in Sources */, - 61A2279D0D1CEE7600430CCD /* SUSystemProfiler.m in Sources */, - 61B93A3D0DD02D7000DCD2F8 /* SUUIBasedUpdateDriver.m in Sources */, - 61299A8E09CA790200B7442F /* SUUnarchiver.m in Sources */, - 61B5FCDE09C52A9F00B25A18 /* SUUpdateAlert.m in Sources */, - 610134740DD250470049ACDF /* SUUpdateDriver.m in Sources */, - 612DCBB00D488BC60015DBEA /* SUUpdatePermissionPrompt.m in Sources */, - 61B5F8EE09C4CE3C00B25A18 /* SUUpdater.m in Sources */, - 61A354560DF113C70076ECB1 /* SUUserInitiatedUpdateDriver.m in Sources */, - 61180BCB0D64138900B4E0D1 /* SUWindowController.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXTargetDependency section */ - 1454BA1619637EDB00344E57 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 61B5F90109C4CEE200B25A18 /* Sparkle Test App */; - targetProxy = 1454BA1519637EDB00344E57 /* PBXContainerItemProxy */; - }; - 1454BA1819637EE900344E57 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 1420DF491962329200203BB0 /* Documentation */; - targetProxy = 1454BA1719637EE900344E57 /* PBXContainerItemProxy */; - }; - 14732BCB1960F73500593899 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8DC2EF4F0486A6940098B216 /* Sparkle */; - targetProxy = 14732BCA1960F73500593899 /* PBXContainerItemProxy */; - }; - 14732BCF1960F73500593899 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */; - targetProxy = 14732BCE1960F73500593899 /* PBXContainerItemProxy */; - }; - 14950064195FB8A600BC5B5B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8DC2EF4F0486A6940098B216 /* Sparkle */; - targetProxy = 14950063195FB8A600BC5B5B /* PBXContainerItemProxy */; - }; - 14950066195FB8A600BC5B5B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 61B5F90109C4CEE200B25A18 /* Sparkle Test App */; - targetProxy = 14950065195FB8A600BC5B5B /* PBXContainerItemProxy */; - }; - 14950068195FB8A600BC5B5B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 612279D80DB5470200AB99EA /* Sparkle Unit Tests */; - targetProxy = 14950067195FB8A600BC5B5B /* PBXContainerItemProxy */; - }; - 1495006A195FB8A600BC5B5B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5D06E8CF0FD68C7C005AE3F6 /* BinaryDelta */; - targetProxy = 14950069195FB8A600BC5B5B /* PBXContainerItemProxy */; - }; - 1495006C195FB8A600BC5B5B /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 55C14BB6136EEF1500649790 /* Autoupdate */; - targetProxy = 1495006B195FB8A600BC5B5B /* PBXContainerItemProxy */; - }; - 55C14F97136F044100649790 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 55C14BB6136EEF1500649790 /* Autoupdate */; - targetProxy = 55C14F96136F044100649790 /* PBXContainerItemProxy */; - }; - 5D06E8D60FD68C86005AE3F6 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8DC2EF4F0486A6940098B216 /* Sparkle */; - targetProxy = 5D06E8D50FD68C86005AE3F6 /* PBXContainerItemProxy */; - }; - 61B5F91C09C4CF7200B25A18 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8DC2EF4F0486A6940098B216 /* Sparkle */; - targetProxy = 61B5F91B09C4CF7200B25A18 /* PBXContainerItemProxy */; - }; - 61FA528D0E2D9EB200EF58AD /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 8DC2EF4F0486A6940098B216 /* Sparkle */; - targetProxy = 61FA528C0E2D9EB200EF58AD /* PBXContainerItemProxy */; - }; - 722954BF1D04D9CB00ECF9CA /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 722954B31D04ADAF00ECF9CA /* fileop */; - targetProxy = 722954BE1D04D9CB00ECF9CA /* PBXContainerItemProxy */; - }; - 726B2B631C645FC900388755 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 61B5F90109C4CEE200B25A18 /* Sparkle Test App */; - targetProxy = 726B2B621C645FC900388755 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 55C14BDA136EF20D00649790 /* SUAutomaticUpdateAlert.xib */ = { - isa = PBXVariantGroup; - children = ( - 6149E6ED1601ABAC008A351E /* ar */, - 55C14BDB136EF20D00649790 /* cs */, - 55C14BDC136EF20D00649790 /* da */, - 55C14BDD136EF20D00649790 /* de */, - 555CF29B196C523E0000B31E /* el */, - 55C14BDE136EF20D00649790 /* en */, - 55C14BDF136EF20D00649790 /* es */, - 55C14BE0136EF20D00649790 /* fr */, - 55C14BE1136EF20D00649790 /* is */, - 55C14BE2136EF20D00649790 /* it */, - 55C14BE3136EF20D00649790 /* ja */, - 55C14BE4136EF20D00649790 /* ko */, - 4607BEA31948443800EF8DA4 /* nb */, - 55C14BE5136EF20D00649790 /* nl */, - 55C14BE6136EF20D00649790 /* pl */, - 55C14BE7136EF20D00649790 /* pt_BR */, - 6158A1BA1378F68100487EC1 /* pt_PT */, - 004A8653192A492B00C9730D /* ro */, - 55C14BE9136EF20D00649790 /* ru */, - 55C14BEA136EF20D00649790 /* sk */, - 61BA66DA14BDFC5500D02D86 /* sl */, - 55C14BEB136EF20D00649790 /* sv */, - 61F3AC1415C22D5900260CA2 /* th */, - 6158A1BE1378F8BB00487EC1 /* tr */, - 0263187514FEBB42005EBF43 /* uk */, - 55C14BEC136EF20D00649790 /* zh_CN */, - 55C14BED136EF20D00649790 /* zh_TW */, - ); - name = SUAutomaticUpdateAlert.xib; - sourceTree = ""; - }; - 55C14BF0136EF26100649790 /* SUUpdateAlert.xib */ = { - isa = PBXVariantGroup; - children = ( - 6149E6EF1601ABAC008A351E /* ar */, - 55C14BF1136EF26100649790 /* cs */, - 55C14BF2136EF26100649790 /* da */, - 55C14BF3136EF26100649790 /* de */, - 555CF29C196C52460000B31E /* el */, - 55C14BF4136EF26100649790 /* en */, - 55C14BF5136EF26100649790 /* es */, - 55C14BF6136EF26100649790 /* fr */, - 55C14BF7136EF26100649790 /* is */, - 55C14BF8136EF26100649790 /* it */, - 55C14BF9136EF26100649790 /* ja */, - 55C14BFA136EF26100649790 /* ko */, - 4607BEA41948443800EF8DA4 /* nb */, - 55C14BFB136EF26100649790 /* nl */, - 55C14BFC136EF26100649790 /* pl */, - 55C14BFD136EF26100649790 /* pt_BR */, - 6158A1BB1378F68100487EC1 /* pt_PT */, - 004A8654192A492B00C9730D /* ro */, - 55C14BFF136EF26100649790 /* ru */, - 55C14C00136EF26100649790 /* sk */, - 61BA66DB14BDFC5500D02D86 /* sl */, - 55C14C01136EF26100649790 /* sv */, - 61F3AC1615C22D5900260CA2 /* th */, - 6158A1BF1378F8BB00487EC1 /* tr */, - 0263187614FEBB42005EBF43 /* uk */, - 55C14C02136EF26100649790 /* zh_CN */, - 55C14C03136EF26100649790 /* zh_TW */, - ); - name = SUUpdateAlert.xib; - sourceTree = ""; - }; - 55C14C05136EF2C700649790 /* SUUpdatePermissionPrompt.xib */ = { - isa = PBXVariantGroup; - children = ( - 6149E6F01601ABAC008A351E /* ar */, - 55C14C06136EF2C700649790 /* cs */, - 55C14C07136EF2C700649790 /* da */, - 55C14C08136EF2C700649790 /* de */, - 555CF29D196C524C0000B31E /* el */, - 55C14C09136EF2C700649790 /* en */, - 55C14C0A136EF2C700649790 /* es */, - 55C14C0B136EF2C700649790 /* fr */, - 55C14C0C136EF2C700649790 /* is */, - 55C14C0D136EF2C700649790 /* it */, - 55C14C0E136EF2C700649790 /* ja */, - 55C14C0F136EF2C700649790 /* ko */, - 4607BEA51948443800EF8DA4 /* nb */, - 55C14C10136EF2C700649790 /* nl */, - 55C14C11136EF2C700649790 /* pl */, - 55C14C12136EF2C700649790 /* pt_BR */, - 6158A1B81378F64700487EC1 /* pt_PT */, - 004A8655192A492B00C9730D /* ro */, - 55C14C14136EF2C700649790 /* ru */, - 55C14C15136EF2C700649790 /* sk */, - 61BA66DC14BDFC5500D02D86 /* sl */, - 55C14C16136EF2C700649790 /* sv */, - 61F3AC1715C22D5900260CA2 /* th */, - 6158A1C01378F8BB00487EC1 /* tr */, - 0263187714FEBB42005EBF43 /* uk */, - 55C14C17136EF2C700649790 /* zh_CN */, - 55C14C18136EF2C700649790 /* zh_TW */, - ); - name = SUUpdatePermissionPrompt.xib; - sourceTree = ""; - }; - 61AAE8220A321A7F00D8810D /* Sparkle.strings */ = { - isa = PBXVariantGroup; - children = ( - 6149E6EA1601ABAC008A351E /* ar */, - 147D6DA71B66EC1C006607AB /* ca */, - 615409C4103BBC4000125AF1 /* cs */, - 61131A050F846CE600E97AF6 /* da */, - 619B17200E1E9D0800E72754 /* de */, - 555CF29A196C52330000B31E /* el */, - 61AAE8230A321A7F00D8810D /* en */, - 61AAE84F0A321AF700D8810D /* es */, - 147D6DA91B66EC22006607AB /* fi */, - 61AAE8590A321B0400D8810D /* fr */, - 147D6DAA1B66EC25006607AB /* he */, - 613151B20FB4946A000DCD59 /* is */, - 61F614540E24A12D009F47E7 /* it */, - 611A904610240DF700CC659E /* ja */, - FE5536F517A2C6A7007CB333 /* ko */, - 4607BEA21948443800EF8DA4 /* nb */, - 61AAE8710A321F7700D8810D /* nl */, - 611A904210240DD300CC659E /* pl */, - 61E31A80103299500051D188 /* pt_BR */, - 6186554310D7484E00B1E074 /* pt_PT */, - 004A8652192A492B00C9730D /* ro */, - 6195D4920E404AD700D41A50 /* ru */, - FE5536F617A2C6AB007CB333 /* sk */, - 61BA66CC14BDFA0400D02D86 /* sl */, - 618915730E35937600B5E981 /* sv */, - 61F3AC1215C22D4A00260CA2 /* th */, - 5AEF45D9189D1CC90030D7DC /* tr */, - 0263187214FEBB31005EBF43 /* uk */, - 61131A090F846D0A00E97AF6 /* zh_CN */, - 61131A0A0F846D1100E97AF6 /* zh_TW */, - ); - name = Sparkle.strings; - sourceTree = ""; - }; - 61B5F92A09C4CFD800B25A18 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 61B5F92B09C4CFD800B25A18 /* English */, - 1A985A321C5C329C0001163A /* ja */, - 1A985A331C5C329D0001163A /* fr */, - 1A985A341C5C329E0001163A /* de */, - 1A985A351C5C329E0001163A /* zh-Hant */, - 1A985A361C5C32A20001163A /* it */, - 1A985A371C5C32A30001163A /* ca */, - 1A985A381C5C32A40001163A /* cs */, - 1A985A391C5C32A40001163A /* cy */, - 1A985A3A1C5C32A50001163A /* da */, - 1A985A3B1C5C32A60001163A /* es */, - 1A985A3C1C5C32A70001163A /* fi */, - 1A985A3D1C5C32A80001163A /* he */, - 1A985A3E1C5C32A90001163A /* hu */, - 1A985A3F1C5C32AA0001163A /* id */, - 1A985A401C5C32AA0001163A /* is */, - 1A985A411C5C32AB0001163A /* ko */, - 1A985A421C5C32AC0001163A /* nb */, - 1A985A431C5C32AD0001163A /* nl */, - 1A985A441C5C32AE0001163A /* pl */, - 1A985A451C5C32AF0001163A /* ru */, - 1A985A461C5C32B00001163A /* sk */, - 1A985A471C5C32B10001163A /* sv */, - 1A985A481C5C32B10001163A /* th */, - 1A985A491C5C32B20001163A /* tr */, - 1A985A4A1C5C32B50001163A /* zh-Hans */, - 1A985A4B1C5C32B60001163A /* fr-CA */, - 1A985A4C1C5C32B70001163A /* pt-PT */, - 1A985A4D1C5C32B70001163A /* pt-BR */, - 1A985A4E1C5C32B80001163A /* pt */, - 1A985A4F1C5C32B90001163A /* sl */, - 1A985A501C5C32BA0001163A /* ro */, - 1A985A511C5C32BB0001163A /* uk */, - 1A985A521C5C32BC0001163A /* ar */, - 1A985A531C5C32BD0001163A /* el */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - 61B5F92C09C4CFD800B25A18 /* MainMenu.xib */ = { - isa = PBXVariantGroup; - children = ( - 61B5F92D09C4CFD800B25A18 /* English */, - ); - name = MainMenu.xib; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 1420DF4B1962329200203BB0 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Debug; - }; - 1420DF4C1962329200203BB0 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Release; - }; - 14732BC71960F69300593899 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Debug; - }; - 14732BC81960F69300593899 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Release; - }; - 14950061195FB89500BC5B5B /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Debug; - }; - 14950062195FB89500BC5B5B /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Release; - }; - 149B785A1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 149B78631B7D3A0C00D7D62C /* ConfigCommonCoverage.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = Binaries; - }; - name = Coverage; - }; - 149B785B1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785C1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785D1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 149B78641B7D3A4800D7D62C /* ConfigUnitTestCoverage.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785E1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B785F1B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 149B78601B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Coverage; - }; - 149B78611B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Coverage; - }; - 149B78621B7D398100D7D62C /* Coverage */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Coverage; - }; - 1DEB91AE08733DA50010E9CD /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 1DEB91AF08733DA50010E9CD /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */; - buildSettings = { - }; - name = Release; - }; - 1DEB91B208733DA50010E9CD /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CF0D94A70100DD942E /* ConfigCommonDebug.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = Binaries; - }; - name = Debug; - }; - 1DEB91B308733DA50010E9CD /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CC0D94A70100DD942E /* ConfigCommonRelease.xcconfig */; - buildSettings = { - CONFIGURATION_BUILD_DIR = Binaries; - }; - name = Release; - }; - 55C14BBB136EEF1500649790 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 55C14BBC136EEF1500649790 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */; - buildSettings = { - }; - name = Release; - }; - 5D06E8D20FD68C7D005AE3F6 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 5D06E8D30FD68C7D005AE3F6 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */; - buildSettings = { - }; - name = Release; - }; - 612279DB0DB5470300AB99EA /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 612279DC0DB5470300AB99EA /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */; - buildSettings = { - }; - name = Release; - }; - 61B5F90609C4CEE300B25A18 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 61B5F90709C4CEE300B25A18 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */; - buildSettings = { - }; - name = Release; - }; - 722954B81D04ADAF00ECF9CA /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */; - buildSettings = { - GCC_WARN_UNUSED_VARIABLE = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 722954B91D04ADAF00ECF9CA /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */; - buildSettings = { - GCC_WARN_UNUSED_VARIABLE = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Coverage; - }; - 722954BA1D04ADAF00ECF9CA /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 722954C81D04E89500ECF9CA /* ConfigFileop.xcconfig */; - buildSettings = { - GCC_WARN_UNUSED_VARIABLE = YES; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; - 726B2B641C645FC900388755 /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 729F10FF1C65A9B500DFCCC5 /* ConfigUITestDebug.xcconfig */; - buildSettings = { - }; - name = Debug; - }; - 726B2B651C645FC900388755 /* Coverage */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 729F10FE1C65A9B500DFCCC5 /* ConfigUITestCoverage.xcconfig */; - buildSettings = { - }; - name = Coverage; - }; - 726B2B661C645FC900388755 /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 729F11001C65A9B500DFCCC5 /* ConfigUITestRelease.xcconfig */; - buildSettings = { - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 1420DF4A1962329200203BB0 /* Build configuration list for PBXLegacyTarget "Documentation" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1420DF4B1962329200203BB0 /* Debug */, - 149B78611B7D398100D7D62C /* Coverage */, - 1420DF4C1962329200203BB0 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 14732BC61960F69300593899 /* Build configuration list for PBXLegacyTarget "Distribution" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 14732BC71960F69300593899 /* Debug */, - 149B78601B7D398100D7D62C /* Coverage */, - 14732BC81960F69300593899 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 14950060195FB89500BC5B5B /* Build configuration list for PBXAggregateTarget "All" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 14950061195FB89500BC5B5B /* Debug */, - 149B78621B7D398100D7D62C /* Coverage */, - 14950062195FB89500BC5B5B /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Sparkle" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1DEB91AE08733DA50010E9CD /* Debug */, - 149B785B1B7D398100D7D62C /* Coverage */, - 1DEB91AF08733DA50010E9CD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 1DEB91B208733DA50010E9CD /* Debug */, - 149B785A1B7D398100D7D62C /* Coverage */, - 1DEB91B308733DA50010E9CD /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 55C14BBE136EEF1500649790 /* Build configuration list for PBXNativeTarget "Autoupdate" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 55C14BBB136EEF1500649790 /* Debug */, - 149B785F1B7D398100D7D62C /* Coverage */, - 55C14BBC136EEF1500649790 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 5D06E8DA0FD68C95005AE3F6 /* Build configuration list for PBXNativeTarget "BinaryDelta" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5D06E8D20FD68C7D005AE3F6 /* Debug */, - 149B785E1B7D398100D7D62C /* Coverage */, - 5D06E8D30FD68C7D005AE3F6 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 612279DD0DB5470300AB99EA /* Build configuration list for PBXNativeTarget "Sparkle Unit Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 612279DB0DB5470300AB99EA /* Debug */, - 149B785D1B7D398100D7D62C /* Coverage */, - 612279DC0DB5470300AB99EA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 61B5F90509C4CEE300B25A18 /* Build configuration list for PBXNativeTarget "Sparkle Test App" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 61B5F90609C4CEE300B25A18 /* Debug */, - 149B785C1B7D398100D7D62C /* Coverage */, - 61B5F90709C4CEE300B25A18 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 722954BB1D04ADAF00ECF9CA /* Build configuration list for PBXNativeTarget "fileop" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 722954B81D04ADAF00ECF9CA /* Debug */, - 722954B91D04ADAF00ECF9CA /* Coverage */, - 722954BA1D04ADAF00ECF9CA /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 726B2B671C645FC900388755 /* Build configuration list for PBXNativeTarget "UI Tests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 726B2B641C645FC900388755 /* Debug */, - 726B2B651C645FC900388755 /* Coverage */, - 726B2B661C645FC900388755 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 0867D690FE84028FC02AAC07 /* Project object */; -} diff --git a/Sparkle/Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Sparkle/Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100755 index 192f7326..00000000 --- a/Sparkle/Sparkle.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme b/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme deleted file mode 100755 index 328e2254..00000000 --- a/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/Distribution.xcscheme +++ /dev/null @@ -1,99 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme b/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme deleted file mode 100755 index eecd6a58..00000000 --- a/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme +++ /dev/null @@ -1,100 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/UITests.xcscheme b/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/UITests.xcscheme deleted file mode 100755 index 26db70de..00000000 --- a/Sparkle/Sparkle.xcodeproj/xcshareddata/xcschemes/UITests.xcscheme +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/Autoupdate/Autoupdate-Info.plist b/Sparkle/Sparkle/Autoupdate/Autoupdate-Info.plist deleted file mode 100755 index 579d8ed9..00000000 --- a/Sparkle/Sparkle/Autoupdate/Autoupdate-Info.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - APPL - CFBundleShortVersionString - ${CURRENT_PROJECT_VERSION} - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - LSBackgroundOnly - 1 - LSMinimumSystemVersion - ${MACOSX_DEPLOYMENT_TARGET} - LSUIElement - 1 - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - CFBundleIconFile - ${ASSETCATALOG_COMPILER_APPICON_NAME}.icns - - diff --git a/Sparkle/Sparkle/Autoupdate/Autoupdate.m b/Sparkle/Sparkle/Autoupdate/Autoupdate.m deleted file mode 100755 index a021172b..00000000 --- a/Sparkle/Sparkle/Autoupdate/Autoupdate.m +++ /dev/null @@ -1,276 +0,0 @@ -#import -#import "SUInstaller.h" -#import "SUHost.h" -#import "SUStandardVersionComparator.h" -#import "SUStatusController.h" -#import "SULog.h" - -#include - -/*! - * Time this app uses to recheck if the parent has already died. - */ -static const NSTimeInterval SUParentQuitCheckInterval = .25; - -@interface TerminationListener : NSObject - -- (instancetype)initWithProcessId:(pid_t)pid; - -@end - -@interface TerminationListener () - -@property (nonatomic, assign) pid_t processIdentifier; -@property (nonatomic, strong) NSTimer *watchdogTimer; - -@end - -@implementation TerminationListener - -@synthesize processIdentifier = _processIdentifier; -@synthesize watchdogTimer = _watchdogTimer; - -- (instancetype)initWithProcessId:(pid_t)pid -{ - if (!(self = [super init])) { - return nil; - } - - self.processIdentifier = pid; - - return self; -} - -- (void)cleanupWithCompletion:(void (^)(void))completionBlock -{ - [self.watchdogTimer invalidate]; - completionBlock(); -} - -- (void)startListeningWithCompletion:(void (^)(void))completionBlock -{ - BOOL alreadyTerminated = (getppid() == 1); // ppid is launchd (1) => parent terminated already - if (alreadyTerminated) - [self cleanupWithCompletion:completionBlock]; - else - self.watchdogTimer = [NSTimer scheduledTimerWithTimeInterval:SUParentQuitCheckInterval target:self selector:@selector(watchdog:) userInfo:completionBlock repeats:YES]; -} - -- (void)watchdog:(NSTimer *)timer -{ - if (![NSRunningApplication runningApplicationWithProcessIdentifier:self.processIdentifier]) { - [self cleanupWithCompletion:timer.userInfo]; - } -} - -@end - -/*! - * If the Installation takes longer than this time the Application Icon is shown in the Dock so that the user has some feedback. - */ -static const NSTimeInterval SUInstallationTimeLimit = 5; - -/*! - * Terminate the application after a delay from launching the new update to avoid OS activation issues - * This delay should be be high enough to increase the likelihood that our updated app will be launched up front, - * but should be low enough so that the user doesn't ponder why the updater hasn't finished terminating yet - */ -static const NSTimeInterval SUTerminationTimeDelay = 0.5; - -@interface AppInstaller : NSObject - -/* - * hostPath - path to host (original) application - * relaunchPath - path to what the host wants to relaunch (default is same as hostPath) - * parentProcessId - process identifier of the host before launching us - * updateFolderPath - path to update folder (i.e, temporary directory containing the new update) - * shouldRelaunch - indicates if the new installed app should re-launched - * shouldShowUI - indicates if we should show the status window when installing the update - */ -- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString *)relaunchPath parentProcessId:(pid_t)parentProcessId updateFolderPath:(NSString *)updateFolderPath shouldRelaunch:(BOOL)shouldRelaunch shouldShowUI:(BOOL)shouldShowUI; - -@end - -@interface AppInstaller () - -@property (nonatomic, strong) TerminationListener *terminationListener; -@property (nonatomic, strong) SUStatusController *statusController; - -@property (nonatomic, copy) NSString *updateFolderPath; -@property (nonatomic, copy) NSString *hostPath; -@property (nonatomic, copy) NSString *relaunchPath; -@property (nonatomic, assign) BOOL shouldRelaunch; -@property (nonatomic, assign) BOOL shouldShowUI; - -@property (nonatomic, assign) BOOL isTerminating; - -@end - -@implementation AppInstaller - -@synthesize terminationListener = _terminationListener; -@synthesize statusController = _statusController; -@synthesize updateFolderPath = _updateFolderPath; -@synthesize hostPath = _hostPath; -@synthesize relaunchPath = _relaunchPath; -@synthesize shouldRelaunch = _shouldRelaunch; -@synthesize shouldShowUI = _shouldShowUI; -@synthesize isTerminating = _isTerminating; - -- (instancetype)initWithHostPath:(NSString *)hostPath relaunchPath:(NSString *)relaunchPath parentProcessId:(pid_t)parentProcessId updateFolderPath:(NSString *)updateFolderPath shouldRelaunch:(BOOL)shouldRelaunch shouldShowUI:(BOOL)shouldShowUI -{ - if (!(self = [super init])) { - return nil; - } - - self.hostPath = hostPath; - self.relaunchPath = relaunchPath; - self.terminationListener = [[TerminationListener alloc] initWithProcessId:parentProcessId]; - self.updateFolderPath = updateFolderPath; - self.shouldRelaunch = shouldRelaunch; - self.shouldShowUI = shouldShowUI; - - return self; -} - -- (void)applicationDidFinishLaunching:(NSNotification __unused *)notification -{ - [self.terminationListener startListeningWithCompletion:^{ - self.terminationListener = nil; - - if (self.shouldShowUI) { - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(SUInstallationTimeLimit * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ - if (!self.isTerminating) { - // Show app icon in the dock - ProcessSerialNumber psn = { 0, kCurrentProcess }; - TransformProcessType(&psn, kProcessTransformToForegroundApplication); - } - }); - } - - [self install]; - }]; -} - -- (void)install -{ - NSBundle *theBundle = [NSBundle bundleWithPath:self.hostPath]; - SUHost *host = [[SUHost alloc] initWithBundle:theBundle]; - NSString *installationPath = [[host installationPath] copy]; - - if (self.shouldShowUI) { - self.statusController = [[SUStatusController alloc] initWithHost:host]; - [self.statusController setButtonTitle:SULocalizedString(@"Cancel Update", @"") target:nil action:Nil isDefault:NO]; - [self.statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"") - maxProgressValue: 0 statusText: @""]; - [self.statusController showWindow:self]; - } - - NSString *fileOperationToolPath = [[[[NSBundle mainBundle] executablePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:@""SPARKLE_FILEOP_TOOL_NAME]; - - if (![[NSFileManager defaultManager] fileExistsAtPath:fileOperationToolPath]) { - SULog(@"Potential Installation Error: File operation tool path %@ is not found", fileOperationToolPath); - } - - [SUInstaller installFromUpdateFolder:self.updateFolderPath - overHost:host - installationPath:installationPath - fileOperationToolPath:fileOperationToolPath - versionComparator:[SUStandardVersionComparator defaultComparator] - completionHandler:^(NSError *error) { - if (error) { - NSError *underlyingError = [error.userInfo objectForKey:NSUnderlyingErrorKey]; - if (underlyingError == nil || underlyingError.code != SUInstallationCancelledError) { - SULog(@"Installation Error: %@", error); - if (self.shouldShowUI) { - NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = @""; - alert.informativeText = [NSString stringWithFormat:@"%@", [error localizedDescription]]; - [alert runModal]; - } - } - exit(EXIT_FAILURE); - } else { - NSString *pathToRelaunch = nil; - // If the installation path differs from the host path, we give higher precedence for it than - // if the desired relaunch path differs from the host path - if (![installationPath.pathComponents isEqualToArray:self.hostPath.pathComponents] || [self.relaunchPath.pathComponents isEqualToArray:self.hostPath.pathComponents]) { - pathToRelaunch = installationPath; - } else { - pathToRelaunch = self.relaunchPath; - } - [self cleanupAndTerminateWithPathToRelaunch:pathToRelaunch]; - } - }]; -} - -- (void)cleanupAndTerminateWithPathToRelaunch:(NSString *)relaunchPath -{ - self.isTerminating = YES; - - dispatch_block_t cleanupAndExit = ^{ - NSError *theError = nil; - if (![[NSFileManager defaultManager] removeItemAtPath:self.updateFolderPath error:&theError]) { - SULog(@"Couldn't remove update folder: %@.", theError); - } - - [[NSFileManager defaultManager] removeItemAtPath:[[NSBundle mainBundle] bundlePath] error:NULL]; - - exit(EXIT_SUCCESS); - }; - - if (self.shouldRelaunch) { - // The auto updater can terminate before the newly updated app is finished launching - // If that happens, the OS may not make the updated app active and frontmost - // (Or it does become frontmost, but the OS backgrounds it afterwards.. It's some kind of timing/activation issue that doesn't occur all the time) - // The only remedy I've been able to find is waiting an arbitrary delay before exiting our application - - // Don't use -launchApplication: because we may not be launching an application. Eg: it could be a system prefpane - if (![[NSWorkspace sharedWorkspace] openFile:relaunchPath]) { - SULog(@"Failed to launch %@", relaunchPath); - } - - [self.statusController close]; - - // Don't even think about hiding the app icon from the dock if we've already shown it - // Transforming the app back to a background one has a backfiring effect, decreasing the likelihood - // that the updated app will be brought up front - - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(SUTerminationTimeDelay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ - cleanupAndExit(); - }); - } else { - cleanupAndExit(); - } -} - -@end - -int main(int __unused argc, const char __unused *argv[]) -{ - @autoreleasepool - { - NSArray *args = [[NSProcessInfo processInfo] arguments]; - if (args.count < 5 || args.count > 7) { - return EXIT_FAILURE; - } - - NSApplication *application = [NSApplication sharedApplication]; - - BOOL shouldShowUI = (args.count > 6) ? [[args objectAtIndex:6] boolValue] : YES; - if (shouldShowUI) { - [application activateIgnoringOtherApps:YES]; - } - - AppInstaller *appInstaller = [[AppInstaller alloc] initWithHostPath:[args objectAtIndex:1] - relaunchPath:[args objectAtIndex:2] - parentProcessId:[[args objectAtIndex:3] intValue] - updateFolderPath:[args objectAtIndex:4] - shouldRelaunch:(args.count > 5) ? [[args objectAtIndex:5] boolValue] : YES - shouldShowUI:shouldShowUI]; - [application setDelegate:appInstaller]; - [application run]; - } - - return EXIT_SUCCESS; -} diff --git a/Sparkle/Sparkle/CheckLocalizations.swift b/Sparkle/Sparkle/CheckLocalizations.swift deleted file mode 100755 index 431e8348..00000000 --- a/Sparkle/Sparkle/CheckLocalizations.swift +++ /dev/null @@ -1,115 +0,0 @@ -#!/usr/bin/xcrun swift - -import Foundation - -func die(msg: String) { - print("ERROR: \(msg)") - exit(1) -} - -extension NSXMLElement { - convenience init(name: String, attributes: [String: String], stringValue string: String? = nil) { - self.init(name: name, stringValue: string) - setAttributesWithDictionary(attributes) - } -} - -let ud = NSUserDefaults.standardUserDefaults() -let sparkleRoot = ud.objectForKey("root") as? String -let htmlPath = ud.objectForKey("htmlPath") as? String -if sparkleRoot == nil || htmlPath == nil { - die("Missing arguments") -} - -let enStringsPath = sparkleRoot! + "/Sparkle/en.lproj/Sparkle.strings" -let enStringsDict = NSDictionary(contentsOfFile: enStringsPath) -if enStringsDict == nil { - die("Invalid English strings") -} -let enStringsDictKeys = enStringsDict!.allKeys - -let dirPath = NSString(string: sparkleRoot! + "/Sparkle") -let dirContents = try! NSFileManager.defaultManager().contentsOfDirectoryAtPath(dirPath as String) -let css = - "body { font-family: sans-serif; font-size: 10pt; }" + - "h1 { font-size: 12pt; }" + - ".missing { background-color: #FFBABA; color: #D6010E; white-space: pre; }" + - ".unused { background-color: #BDE5F8; color: #00529B; white-space: pre; }" + - ".unlocalized { background-color: #FEEFB3; color: #9F6000; white-space: pre; }" -var html = NSXMLDocument(rootElement: NSXMLElement(name: "html")) -html.DTD = NSXMLDTD() -html.DTD!.name = html.rootElement()!.name -html.characterEncoding = "UTF-8" -html.documentContentKind = NSXMLDocumentContentKind.XHTMLKind -var body = NSXMLElement(name: "body") -var head = NSXMLElement(name: "head") -html.rootElement()!.addChild(head) -html.rootElement()!.addChild(body) -head.addChild(NSXMLElement(name: "meta", attributes: ["charset": html.characterEncoding!])) -head.addChild(NSXMLElement(name: "title", stringValue: "Sparkle Localizations Report")) -head.addChild(NSXMLElement(name: "style", stringValue: css)) - -let locale = NSLocale.currentLocale() -for dirEntry in dirContents { - if NSString(string: dirEntry).pathExtension != "lproj" || dirEntry == "en.lproj" { - continue - } - - let lang = locale.displayNameForKey(NSLocaleLanguageCode, value: NSString(string: dirEntry).stringByDeletingPathExtension) - body.addChild(NSXMLElement(name: "h1", stringValue: "\(dirEntry) (\(lang!))")) - - let stringsPath = NSString(string: dirPath.stringByAppendingPathComponent(dirEntry)).stringByAppendingPathComponent("Sparkle.strings") - let stringsDict = NSDictionary(contentsOfFile: stringsPath) - if stringsDict == nil { - die("Invalid strings file \(dirEntry)") - continue - } - - var missing: [String] = [] - var unlocalized: [String] = [] - var unused: [String] = [] - - for key in enStringsDictKeys { - let str = stringsDict?.objectForKey(key) as? String - if str == nil { - missing.append(key as! String) - } else if let enStr = enStringsDict?.objectForKey(key) as? String { - if enStr == str { - unlocalized.append(key as! String) - } - } - } - - let stringsDictKeys = stringsDict!.allKeys - for key in stringsDictKeys { - if enStringsDict?.objectForKey(key) == nil { - unused.append(key as! String) - } - } - - let sorter = { (s1: String, s2: String) -> Bool in - return s1 < s2 - } - missing.sortInPlace(sorter) - unlocalized.sortInPlace(sorter) - unused.sortInPlace(sorter) - - let addRow = { (prefix: String, cssClass: String, key: String) -> Void in - body.addChild(NSXMLElement(name: "span", attributes: ["class": cssClass], stringValue: [prefix, key].joinWithSeparator(" ") + "\n")) - } - - for key in missing { - addRow("Missing", "missing", key) - } - for key in unlocalized { - addRow("Unlocalized", "unlocalized", key) - } - for key in unused { - addRow("Unused", "unused", key) - } -} - -var err: NSError? -if !html.XMLData.writeToFile(htmlPath!, atomically: true) { - die("Can't write report: \(err)") -} diff --git a/Sparkle/Sparkle/SUAppcast.h b/Sparkle/Sparkle/SUAppcast.h deleted file mode 100755 index fee97567..00000000 --- a/Sparkle/Sparkle/SUAppcast.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// SUAppcast.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAPPCAST_H -#define SUAPPCAST_H - -#if __has_feature(modules) -@import Foundation; -#else -#import -#endif -#import "SUExport.h" - -@class SUAppcastItem; -SU_EXPORT @interface SUAppcast : NSObject - -@property (copy) NSString *userAgentString; -@property (copy) NSDictionary *httpHeaders; - -- (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))err; -- (SUAppcast *)copyWithoutDeltaUpdates; - -@property (readonly, copy) NSArray *items; -@end - -#endif diff --git a/Sparkle/Sparkle/SUAppcast.m b/Sparkle/Sparkle/SUAppcast.m deleted file mode 100755 index d4f32fd9..00000000 --- a/Sparkle/Sparkle/SUAppcast.m +++ /dev/null @@ -1,328 +0,0 @@ -// -// SUAppcast.m -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUAppcast.h" -#import "SUConstants.h" -#import "SULog.h" - -@interface NSXMLElement (SUAppcastExtensions) -@property (readonly, copy) NSDictionary *attributesAsDictionary; -@end - -@implementation NSXMLElement (SUAppcastExtensions) -- (NSDictionary *)attributesAsDictionary -{ - NSEnumerator *attributeEnum = [[self attributes] objectEnumerator]; - NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; - - for (NSXMLNode *attribute in attributeEnum) { - NSString *attrName = [attribute name]; - if (!attrName) { - continue; - } - NSString *attributeStringValue = [attribute stringValue]; - if (attributeStringValue != nil) { - [dictionary setObject:attributeStringValue forKey:attrName]; - } - } - return dictionary; -} -@end - -@interface SUAppcast () -@property (strong) void (^completionBlock)(NSError *); -@property (copy) NSString *downloadFilename; -@property (strong) NSURLDownload *download; -@property (copy) NSArray *items; -- (void)reportError:(NSError *)error; -- (NSXMLNode *)bestNodeInNodes:(NSArray *)nodes; -@end - -@implementation SUAppcast - -@synthesize downloadFilename; -@synthesize completionBlock; -@synthesize userAgentString; -@synthesize httpHeaders; -@synthesize download; -@synthesize items; - -- (void)fetchAppcastFromURL:(NSURL *)url completionBlock:(void (^)(NSError *))block -{ - self.completionBlock = block; - - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30.0]; - if (self.userAgentString) { - [request setValue:self.userAgentString forHTTPHeaderField:@"User-Agent"]; - } - - if (self.httpHeaders) { - for (NSString *key in self.httpHeaders) { - id value = [self.httpHeaders objectForKey:key]; - [request setValue:value forHTTPHeaderField:key]; - } - } - - [request setValue:@"application/rss+xml,*/*;q=0.1" forHTTPHeaderField:@"Accept"]; - - self.download = [[NSURLDownload alloc] initWithRequest:request delegate:self]; -} - -- (void)download:(NSURLDownload *)__unused aDownload decideDestinationWithSuggestedFilename:(NSString *)filename -{ - NSString *destinationFilename = NSTemporaryDirectory(); - if (destinationFilename) - { - destinationFilename = [destinationFilename stringByAppendingPathComponent:filename]; - [self.download setDestination:destinationFilename allowOverwrite:NO]; - } -} - -- (void)download:(NSURLDownload *)__unused aDownload didCreateDestination:(NSString *)path -{ - self.downloadFilename = path; -} - -- (void)downloadDidFinish:(NSURLDownload *)__unused aDownload -{ - NSError *error = nil; - NSArray *appcastItems = [self parseAppcastItemsFromXMLFile:[NSURL fileURLWithPath:self.downloadFilename] error:&error]; - - [[NSFileManager defaultManager] removeItemAtPath:self.downloadFilename error:nil]; - self.downloadFilename = nil; - - if (appcastItems) { - self.items = appcastItems; - self.completionBlock(nil); - self.completionBlock = nil; - } else { - NSMutableDictionary *userInfo = [NSMutableDictionary - dictionaryWithObject: SULocalizedString(@"An error occurred while parsing the update feed.", nil) - forKey: NSLocalizedDescriptionKey]; - if (error) { - [userInfo setObject:error forKey:NSUnderlyingErrorKey]; - } - [self reportError:[NSError errorWithDomain:SUSparkleErrorDomain - code:SUAppcastParseError - userInfo:userInfo]]; - } -} - -- (NSDictionary *)attributesOfNode:(NSXMLElement *)node -{ - NSEnumerator *attributeEnum = [[node attributes] objectEnumerator]; - NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; - - for (NSXMLNode *attribute in attributeEnum) { - NSString *attrName = [self sparkleNamespacedNameOfNode:attribute]; - if (!attrName) { - continue; - } - NSString *stringValue = [attribute stringValue]; - if (stringValue) { - [dictionary setObject:stringValue forKey:attrName]; - } - } - return dictionary; -} - --(NSString *)sparkleNamespacedNameOfNode:(NSXMLNode *)node { - // XML namespace prefix is semantically meaningless, so compare namespace URI - // NS URI isn't used to fetch anything, and must match exactly, so we look for http:// not https:// - if ([[node URI] isEqualToString:@"http://www.andymatuschak.org/xml-namespaces/sparkle"]) { - NSString *localName = [node localName]; - assert(localName); - return [@"sparkle:" stringByAppendingString:localName]; - } else { - return [node name]; // Backwards compatibility - } -} - --(NSArray *)parseAppcastItemsFromXMLFile:(NSURL *)appcastFile error:(NSError *__autoreleasing*)errorp { - if (errorp) { - *errorp = nil; - } - - if (!appcastFile) { - return nil; - } - - NSUInteger options = NSXMLNodeLoadExternalEntitiesNever; // Prevent inclusion from file:// - NSXMLDocument *document = [[NSXMLDocument alloc] initWithContentsOfURL:appcastFile options:options error:errorp]; - if (nil == document) { - return nil; - } - - NSArray *xmlItems = [document nodesForXPath:@"/rss/channel/item" error:errorp]; - if (nil == xmlItems) { - return nil; - } - - NSMutableArray *appcastItems = [NSMutableArray array]; - NSEnumerator *nodeEnum = [xmlItems objectEnumerator]; - NSXMLNode *node; - - while((node = [nodeEnum nextObject])) { - NSMutableDictionary *nodesDict = [NSMutableDictionary dictionary]; - NSMutableDictionary *dict = [NSMutableDictionary dictionary]; - - // First, we'll "index" all the first-level children of this appcast item so we can pick them out by language later. - if ([[node children] count]) { - node = [node childAtIndex:0]; - while (nil != node) { - NSString *name = [self sparkleNamespacedNameOfNode:node]; - if (name) { - NSMutableArray *nodes = [nodesDict objectForKey:name]; - if (nodes == nil) { - nodes = [NSMutableArray array]; - [nodesDict setObject:nodes forKey:name]; - } - [nodes addObject:node]; - } - node = [node nextSibling]; - } - } - - for (NSString *name in nodesDict) { - node = [self bestNodeInNodes:[nodesDict objectForKey:name]]; - if ([name isEqualToString:SURSSElementEnclosure]) { - // enclosure is flattened as a separate dictionary for some reason - NSDictionary *encDict = [self attributesOfNode:(NSXMLElement *)node]; - [dict setObject:encDict forKey:name]; - } - else if ([name isEqualToString:SURSSElementPubDate]) { - // We don't want to parse and create a NSDate instance - - // that's a risk we can avoid. We don't use the date anywhere other - // than it being accessible from SUAppcastItem - NSString *dateString = node.stringValue; - if (dateString) { - [dict setObject:dateString forKey:name]; - } - } - else if ([name isEqualToString:SUAppcastElementDeltas]) { - NSMutableArray *deltas = [NSMutableArray array]; - NSEnumerator *childEnum = [[node children] objectEnumerator]; - for (NSXMLNode *child in childEnum) { - if ([[child name] isEqualToString:SURSSElementEnclosure]) { - [deltas addObject:[self attributesOfNode:(NSXMLElement *)child]]; - } - } - [dict setObject:deltas forKey:name]; - } - else if ([name isEqualToString:SUAppcastElementTags]) { - NSMutableArray *tags = [NSMutableArray array]; - NSEnumerator *childEnum = [[node children] objectEnumerator]; - for (NSXMLNode *child in childEnum) { - NSString *childName = child.name; - if (childName) { - [tags addObject:childName]; - } - } - [dict setObject:tags forKey:name]; - } - else if (name != nil) { - // add all other values as strings - NSString *theValue = [[node stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; - if (theValue != nil) { - [dict setObject:theValue forKey:name]; - } - } - } - - NSString *errString; - SUAppcastItem *anItem = [[SUAppcastItem alloc] initWithDictionary:dict failureReason:&errString]; - if (anItem) { - [appcastItems addObject:anItem]; - } - else { - SULog(@"Sparkle Updater: Failed to parse appcast item: %@.\nAppcast dictionary was: %@", errString, dict); - if (errorp) *errorp = [NSError errorWithDomain:SUSparkleErrorDomain - code:SUAppcastParseError - userInfo:@{NSLocalizedDescriptionKey: errString}]; - return nil; - } - } - - self.items = appcastItems; - - return appcastItems; -} - -- (void)download:(NSURLDownload *)__unused aDownload didFailWithError:(NSError *)error -{ - if (self.downloadFilename) { - [[NSFileManager defaultManager] removeItemAtPath:self.downloadFilename error:nil]; - } - self.downloadFilename = nil; - - [self reportError:error]; -} - -- (NSURLRequest *)download:(NSURLDownload *)__unused aDownload willSendRequest:(NSURLRequest *)request redirectResponse:(NSURLResponse *)__unused redirectResponse -{ - return request; -} - -- (void)reportError:(NSError *)error -{ - NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithDictionary:@{ - NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred in retrieving update information. Please try again later.", nil), - NSLocalizedFailureReasonErrorKey: [error localizedDescription], - NSUnderlyingErrorKey: error, - }]; - - NSURL *failingUrl = [error.userInfo objectForKey:NSURLErrorFailingURLErrorKey]; - if (failingUrl) { - [userInfo setObject:failingUrl forKey:NSURLErrorFailingURLErrorKey]; - } - - self.completionBlock([NSError errorWithDomain:SUSparkleErrorDomain code:SUAppcastError userInfo:userInfo]); - self.completionBlock = nil; -} - -- (NSXMLNode *)bestNodeInNodes:(NSArray *)nodes -{ - // We use this method to pick out the localized version of a node when one's available. - if ([nodes count] == 1) - return [nodes objectAtIndex:0]; - else if ([nodes count] == 0) - return nil; - - NSMutableArray *languages = [NSMutableArray array]; - NSString *lang; - NSUInteger i; - for (NSXMLElement *node in nodes) { - lang = [[node attributeForName:@"xml:lang"] stringValue]; - [languages addObject:(lang ? lang : @"")]; - } - lang = [[NSBundle preferredLocalizationsFromArray:languages] objectAtIndex:0]; - i = [languages indexOfObject:([languages containsObject:lang] ? lang : @"")]; - if (i == NSNotFound) { - i = 0; - } - return [nodes objectAtIndex:i]; -} - -- (SUAppcast *)copyWithoutDeltaUpdates { - SUAppcast *other = [SUAppcast new]; - NSMutableArray *nonDeltaItems = [NSMutableArray new]; - - for(SUAppcastItem *item in self.items) { - if (![item isDeltaUpdate]) [nonDeltaItems addObject:item]; - } - - other.items = nonDeltaItems; - return other; -} - -@end diff --git a/Sparkle/Sparkle/SUAppcastItem.h b/Sparkle/Sparkle/SUAppcastItem.h deleted file mode 100755 index 51b9393f..00000000 --- a/Sparkle/Sparkle/SUAppcastItem.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// SUAppcastItem.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAPPCASTITEM_H -#define SUAPPCASTITEM_H - -#if __has_feature(modules) -@import Foundation; -#else -#import -#endif -#import "SUExport.h" - -SU_EXPORT @interface SUAppcastItem : NSObject -@property (copy, readonly) NSString *title; -@property (copy, readonly) NSString *dateString; -@property (copy, readonly) NSString *itemDescription; -@property (strong, readonly) NSURL *releaseNotesURL; -@property (copy, readonly) NSString *DSASignature; -@property (copy, readonly) NSString *minimumSystemVersion; -@property (copy, readonly) NSString *maximumSystemVersion; -@property (strong, readonly) NSURL *fileURL; -@property (copy, readonly) NSString *versionString; -@property (copy, readonly) NSString *displayVersionString; -@property (copy, readonly) NSDictionary *deltaUpdates; -@property (strong, readonly) NSURL *infoURL; - -// Initializes with data from a dictionary provided by the RSS class. -- (instancetype)initWithDictionary:(NSDictionary *)dict; -- (instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString **)error; - -@property (getter=isDeltaUpdate, readonly) BOOL deltaUpdate; -@property (getter=isCriticalUpdate, readonly) BOOL criticalUpdate; -@property (getter=isInformationOnlyUpdate, readonly) BOOL informationOnlyUpdate; - -// Returns the dictionary provided in initWithDictionary; this might be useful later for extensions. -@property (readonly, copy) NSDictionary *propertiesDictionary; - -- (NSURL *)infoURL; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUAppcastItem.m b/Sparkle/Sparkle/SUAppcastItem.m deleted file mode 100755 index 4cbc4e44..00000000 --- a/Sparkle/Sparkle/SUAppcastItem.m +++ /dev/null @@ -1,196 +0,0 @@ -// -// SUAppcastItem.m -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUAppcastItem.h" -#import "SULog.h" - -@interface SUAppcastItem () -@property (copy, readwrite) NSString *title; -@property (copy, readwrite) NSString *dateString; -@property (copy, readwrite) NSString *itemDescription; -@property (strong, readwrite) NSURL *releaseNotesURL; -@property (copy, readwrite) NSString *DSASignature; -@property (copy, readwrite) NSString *minimumSystemVersion; -@property (copy, readwrite) NSString *maximumSystemVersion; -@property (strong, readwrite) NSURL *fileURL; -@property (copy, readwrite) NSString *versionString; -@property (copy, readwrite) NSString *displayVersionString; -@property (copy, readwrite) NSDictionary *deltaUpdates; -@property (strong, readwrite) NSURL *infoURL; -@property (readwrite, copy) NSDictionary *propertiesDictionary; -@end - -@implementation SUAppcastItem -@synthesize dateString; -@synthesize deltaUpdates; -@synthesize displayVersionString; -@synthesize DSASignature; -@synthesize fileURL; -@synthesize infoURL; -@synthesize itemDescription; -@synthesize maximumSystemVersion; -@synthesize minimumSystemVersion; -@synthesize releaseNotesURL; -@synthesize title; -@synthesize versionString; -@synthesize propertiesDictionary; - -- (BOOL)isDeltaUpdate -{ - NSDictionary *rssElementEnclosure = [self.propertiesDictionary objectForKey:SURSSElementEnclosure]; - return [rssElementEnclosure objectForKey:SUAppcastAttributeDeltaFrom] != nil; -} - -- (BOOL)isCriticalUpdate -{ - return [[self.propertiesDictionary objectForKey:SUAppcastElementTags] containsObject:SUAppcastElementCriticalUpdate]; -} - -- (BOOL)isInformationOnlyUpdate -{ - return self.infoURL && !self.fileURL; -} - -- (instancetype)initWithDictionary:(NSDictionary *)dict -{ - return [self initWithDictionary:dict failureReason:nil]; -} - -- (instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString *__autoreleasing *)error -{ - self = [super init]; - if (self) { - NSDictionary *enclosure = [dict objectForKey:SURSSElementEnclosure]; - - // Try to find a version string. - // Finding the new version number from the RSS feed is a little bit hacky. There are two ways: - // 1. A "sparkle:version" attribute on the enclosure tag, an extension from the RSS spec. - // 2. If there isn't a version attribute, Sparkle will parse the path in the enclosure, expecting - // that it will look like this: http://something.com/YourApp_0.5.zip. It'll read whatever's between the last - // underscore and the last period as the version number. So name your packages like this: APPNAME_VERSION.extension. - // The big caveat with this is that you can't have underscores in your version strings, as that'll confuse Sparkle. - // Feel free to change the separator string to a hyphen or something more suited to your needs if you like. - NSString *newVersion = [enclosure objectForKey:SUAppcastAttributeVersion]; - if (newVersion == nil) { - newVersion = [dict objectForKey:SUAppcastAttributeVersion]; // Get version from the item, in case it's a download-less item (i.e. paid upgrade). - } - if (newVersion == nil) // no sparkle:version attribute anywhere? - { - SULog(@"warning: <%@> for URL '%@' is missing %@ attribute. Version comparison may be unreliable. Please always specify %@", SURSSElementEnclosure, [enclosure objectForKey:SURSSAttributeURL], SUAppcastAttributeVersion, SUAppcastAttributeVersion); - - // Separate the url by underscores and take the last component, as that'll be closest to the end, - // then we remove the extension. Hopefully, this will be the version. - NSArray *fileComponents = [[enclosure objectForKey:SURSSAttributeURL] componentsSeparatedByString:@"_"]; - if ([fileComponents count] > 1) { - newVersion = [[fileComponents lastObject] stringByDeletingPathExtension]; - } - } - - if (!newVersion) { - if (error) { - *error = [NSString stringWithFormat:@"Feed item lacks %@ attribute, and version couldn't be deduced from file name (would have used last component of a file name like AppName_1.3.4.zip)", SUAppcastAttributeVersion]; - } - return nil; - } - - propertiesDictionary = [[NSMutableDictionary alloc] initWithDictionary:dict]; - self.title = [dict objectForKey:SURSSElementTitle]; - self.dateString = [dict objectForKey:SURSSElementPubDate]; - self.itemDescription = [dict objectForKey:SURSSElementDescription]; - - NSString *theInfoURL = [dict objectForKey:SURSSElementLink]; - if (theInfoURL) { - if (![theInfoURL isKindOfClass:[NSString class]]) { - SULog(@"%@ -%@ Info URL is not of valid type.", NSStringFromClass([self class]), NSStringFromSelector(_cmd)); - } else { - self.infoURL = [NSURL URLWithString:theInfoURL]; - } - } - - // Need an info URL or an enclosure URL. Former to show "More Info" - // page, latter to download & install: - if (!enclosure && !theInfoURL) { - if (error) { - *error = @"No enclosure in feed item"; - } - return nil; - } - - NSString *enclosureURLString = [enclosure objectForKey:SURSSAttributeURL]; - if (!enclosureURLString && !theInfoURL) { - if (error) { - *error = @"Feed item's enclosure lacks URL"; - } - return nil; - } - - if (enclosureURLString) { - // Sparkle used to always URL-encode, so for backwards compatibility spaces in URLs must be forgiven. - NSString *fileURLString = [enclosureURLString stringByReplacingOccurrencesOfString:@" " withString:@"%20"]; - self.fileURL = [NSURL URLWithString:fileURLString]; - } - if (enclosure) { - self.DSASignature = [enclosure objectForKey:SUAppcastAttributeDSASignature]; - } - - self.versionString = newVersion; - self.minimumSystemVersion = [dict objectForKey:SUAppcastElementMinimumSystemVersion]; - self.maximumSystemVersion = [dict objectForKey:SUAppcastElementMaximumSystemVersion]; - - NSString *shortVersionString = [enclosure objectForKey:SUAppcastAttributeShortVersionString]; - if (nil == shortVersionString) { - shortVersionString = [dict objectForKey:SUAppcastAttributeShortVersionString]; // fall back on the - } - - if (shortVersionString) { - self.displayVersionString = shortVersionString; - } else { - self.displayVersionString = self.versionString; - } - - // Find the appropriate release notes URL. - NSString *releaseNotesString = [dict objectForKey:SUAppcastElementReleaseNotesLink]; - if (releaseNotesString) { - NSURL *url = [NSURL URLWithString:releaseNotesString]; - if ([url isFileURL]) { - SULog(@"Release notes with file:// URLs are not supported"); - } else { - self.releaseNotesURL = url; - } - } else if ([self.itemDescription hasPrefix:@"http://"] || [self.itemDescription hasPrefix:@"https://"]) { // if the description starts with http:// or https:// use that. - self.releaseNotesURL = [NSURL URLWithString:self.itemDescription]; - } else { - self.releaseNotesURL = nil; - } - - NSArray *deltaDictionaries = [dict objectForKey:SUAppcastElementDeltas]; - if (deltaDictionaries) { - NSMutableDictionary *deltas = [NSMutableDictionary dictionary]; - for (NSDictionary *deltaDictionary in deltaDictionaries) { - NSString *deltaFrom = [deltaDictionary objectForKey:SUAppcastAttributeDeltaFrom]; - if (!deltaFrom) continue; - - NSMutableDictionary *fakeAppCastDict = [dict mutableCopy]; - [fakeAppCastDict removeObjectForKey:SUAppcastElementDeltas]; - [fakeAppCastDict setObject:deltaDictionary forKey:SURSSElementEnclosure]; - SUAppcastItem *deltaItem = [[SUAppcastItem alloc] initWithDictionary:fakeAppCastDict]; - - [deltas setObject:deltaItem forKey:deltaFrom]; - } - self.deltaUpdates = deltas; - } - } - return self; -} - -@end diff --git a/Sparkle/Sparkle/SUAutomaticUpdateAlert.h b/Sparkle/Sparkle/SUAutomaticUpdateAlert.h deleted file mode 100755 index 1fcfcfb7..00000000 --- a/Sparkle/Sparkle/SUAutomaticUpdateAlert.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// SUAutomaticUpdateAlert.h -// Sparkle -// -// Created by Andy Matuschak on 3/18/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUAUTOMATICUPDATEALERT_H -#define SUAUTOMATICUPDATEALERT_H - -#import "SUWindowController.h" - -typedef NS_ENUM(NSInteger, SUAutomaticInstallationChoice) { - SUInstallNowChoice, - SUInstallLaterChoice, - SUDoNotInstallChoice -}; - -@class SUAppcastItem, SUHost; -@interface SUAutomaticUpdateAlert : SUWindowController - -- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)hostBundle completionBlock:(void (^)(SUAutomaticInstallationChoice))c; -- (IBAction)installNow:sender; -- (IBAction)installLater:sender; -- (IBAction)doNotInstall:sender; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUAutomaticUpdateAlert.m b/Sparkle/Sparkle/SUAutomaticUpdateAlert.m deleted file mode 100755 index c1e24d7f..00000000 --- a/Sparkle/Sparkle/SUAutomaticUpdateAlert.m +++ /dev/null @@ -1,89 +0,0 @@ -// -// SUAutomaticUpdateAlert.m -// Sparkle -// -// Created by Andy Matuschak on 3/18/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#import "SUAutomaticUpdateAlert.h" - -#import "SUHost.h" - -@interface SUAutomaticUpdateAlert () -@property (strong) void(^completionBlock)(SUAutomaticInstallationChoice); -@property (strong) SUAppcastItem *updateItem; -@property (strong) SUHost *host; -@end - -@implementation SUAutomaticUpdateAlert -@synthesize host; -@synthesize updateItem; -@synthesize completionBlock; - -- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost completionBlock:(void (^)(SUAutomaticInstallationChoice))block -{ - self = [super initWithWindowNibName:@"SUAutomaticUpdateAlert"]; - if (self) { - self.updateItem = item; - self.completionBlock = block; - self.host = aHost; - [self setShouldCascadeWindows:NO]; - [[self window] center]; - } - return self; -} - -- (NSString *__nonnull)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; } - -- (IBAction)installNow:(id)__unused sender -{ - [self close]; - self.completionBlock(SUInstallNowChoice); - self.completionBlock = nil; -} - -- (IBAction)installLater:(id)__unused sender -{ - [self close]; - self.completionBlock(SUInstallLaterChoice); - self.completionBlock = nil; -} - -- (IBAction)doNotInstall:(id)__unused sender -{ - [self close]; - self.completionBlock(SUDoNotInstallChoice); - self.completionBlock = nil; -} - -- (NSImage *__nonnull)applicationIcon -{ - return [self.host icon]; -} - -- (NSString *__nonnull)titleText -{ - if ([self.updateItem isCriticalUpdate]) - { - return [NSString stringWithFormat:SULocalizedString(@"An important update to %@ is ready to install", nil), [self.host name]]; - } - else - { - return [NSString stringWithFormat:SULocalizedString(@"A new version of %@ is ready to install!", nil), [self.host name]]; - } -} - -- (NSString *)descriptionText -{ - if ([self.updateItem isCriticalUpdate]) - { - return [NSString stringWithFormat:SULocalizedString(@"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?", nil), [self.host name], [self.updateItem displayVersionString]]; - } - else - { - return [NSString stringWithFormat:SULocalizedString(@"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?", nil), [self.host name], [self.updateItem displayVersionString]]; - } -} - -@end diff --git a/Sparkle/Sparkle/SUAutomaticUpdateDriver.h b/Sparkle/Sparkle/SUAutomaticUpdateDriver.h deleted file mode 100755 index 4dd90e8f..00000000 --- a/Sparkle/Sparkle/SUAutomaticUpdateDriver.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// SUAutomaticUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUAUTOMATICUPDATEDRIVER_H -#define SUAUTOMATICUPDATEDRIVER_H - -#import -#import "SUBasicUpdateDriver.h" -#import "SUAutomaticUpdateAlert.h" - -@interface SUAutomaticUpdateDriver : SUBasicUpdateDriver - -@end - -#endif diff --git a/Sparkle/Sparkle/SUAutomaticUpdateDriver.m b/Sparkle/Sparkle/SUAutomaticUpdateDriver.m deleted file mode 100755 index 6727d0d9..00000000 --- a/Sparkle/Sparkle/SUAutomaticUpdateDriver.m +++ /dev/null @@ -1,222 +0,0 @@ -// -// SUAutomaticUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUAutomaticUpdateDriver.h" - -#import "SUAutomaticUpdateAlert.h" -#import "SUHost.h" -#import "SUConstants.h" - -// If the user hasn't quit in a week, ask them if they want to relaunch to get the latest bits. It doesn't matter that this measure of "one day" is imprecise. -static const NSTimeInterval SUAutomaticUpdatePromptImpatienceTimer = 60 * 60 * 24 * 7; - -@interface SUUpdateDriver () - -@property (getter=isInterruptible) BOOL interruptible; - -@end - -@interface SUAutomaticUpdateDriver () - -@property (assign) BOOL postponingInstallation; -@property (assign) BOOL showErrors; -@property (assign) BOOL willUpdateOnTermination; -@property (assign) BOOL isTerminating; -@property (strong) SUAutomaticUpdateAlert *alert; -@property (strong) NSTimer *showUpdateAlertTimer; - -@end - -@implementation SUAutomaticUpdateDriver - -@synthesize postponingInstallation; -@synthesize showErrors; -@synthesize willUpdateOnTermination; -@synthesize isTerminating; -@synthesize alert; -@synthesize showUpdateAlertTimer; - -- (void)showUpdateAlert -{ - self.interruptible = NO; - self.alert = [[SUAutomaticUpdateAlert alloc] initWithAppcastItem:self.updateItem host:self.host completionBlock:^(SUAutomaticInstallationChoice choice) { - [self automaticUpdateAlertFinishedWithChoice:choice]; - }]; - - // If the app is a menubar app or the like, we need to focus it first and alter the - // update prompt to behave like a normal window. Otherwise if the window were hidden - // there may be no way for the application to be activated to make it visible again. - if ([self.host isBackgroundApplication]) { - [[self.alert window] setHidesOnDeactivate:NO]; - [NSApp activateIgnoringOtherApps:YES]; - } - - if ([NSApp isActive]) - [[self.alert window] makeKeyAndOrderFront:self]; - else - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive:) name:NSApplicationDidBecomeActiveNotification object:NSApp]; -} - -- (void)unarchiverDidFinish:(SUUnarchiver *)__unused ua -{ - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationWillTerminate:) name:NSApplicationWillTerminateNotification object:nil]; - [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(systemWillPowerOff:) name:NSWorkspaceWillPowerOffNotification object:nil]; - - // Sudden termination is available on 10.6+ - NSProcessInfo *processInfo = [NSProcessInfo processInfo]; - [processInfo disableSuddenTermination]; - - self.willUpdateOnTermination = YES; - - id updaterDelegate = [self.updater delegate]; - if ([updaterDelegate respondsToSelector:@selector(updater:willInstallUpdateOnQuit:immediateInstallationInvocation:)]) - { - BOOL relaunch = YES; - BOOL showUI = NO; - NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[[self class] instanceMethodSignatureForSelector:@selector(installWithToolAndRelaunch:displayingUserInterface:)]]; - [invocation setSelector:@selector(installWithToolAndRelaunch:displayingUserInterface:)]; - [invocation setArgument:&relaunch atIndex:2]; - [invocation setArgument:&showUI atIndex:3]; - [invocation setTarget:self]; - - [updaterDelegate updater:self.updater willInstallUpdateOnQuit:self.updateItem immediateInstallationInvocation:invocation]; - } - - // If this is marked as a critical update, we'll prompt the user to install it right away. - if ([self.updateItem isCriticalUpdate]) - { - [self showUpdateAlert]; - } - else - { - self.showUpdateAlertTimer = [NSTimer scheduledTimerWithTimeInterval:SUAutomaticUpdatePromptImpatienceTimer target:self selector:@selector(showUpdateAlert) userInfo:nil repeats:NO]; - - // At this point the driver is idle, allow it to be interrupted for user-initiated update checks. - self.interruptible = YES; - } -} - -- (void)stopUpdatingOnTermination -{ - if (self.willUpdateOnTermination) - { - [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationWillTerminateNotification object:nil]; - [[[NSWorkspace sharedWorkspace] notificationCenter] removeObserver:self name:NSWorkspaceWillPowerOffNotification object:nil]; - - NSProcessInfo *processInfo = [NSProcessInfo processInfo]; - [processInfo enableSuddenTermination]; - - self.willUpdateOnTermination = NO; - - id updaterDelegate = [self.updater delegate]; - if ([updaterDelegate respondsToSelector:@selector(updater:didCancelInstallUpdateOnQuit:)]) - [updaterDelegate updater:self.updater didCancelInstallUpdateOnQuit:self.updateItem]; - } -} - -- (void)invalidateShowUpdateAlertTimer -{ - [self.showUpdateAlertTimer invalidate]; - self.showUpdateAlertTimer = nil; -} - -- (void)dealloc -{ - [self stopUpdatingOnTermination]; - [self invalidateShowUpdateAlertTimer]; -} - -- (void)abortUpdate -{ - self.isTerminating = NO; - [self stopUpdatingOnTermination]; - [self invalidateShowUpdateAlertTimer]; - [super abortUpdate]; -} - -- (void)applicationDidBecomeActive:(NSNotification *)__unused aNotification -{ - [[self.alert window] makeKeyAndOrderFront:self]; - [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationDidBecomeActiveNotification object:NSApp]; -} - -- (void)automaticUpdateAlertFinishedWithChoice:(SUAutomaticInstallationChoice)choice -{ - switch (choice) - { - case SUInstallNowChoice: - [self stopUpdatingOnTermination]; - [self installWithToolAndRelaunch:YES]; - break; - - case SUInstallLaterChoice: - self.postponingInstallation = YES; - // We're already waiting on quit, just indicate that we're idle. - self.interruptible = YES; - break; - - case SUDoNotInstallChoice: - [self.host setObject:[self.updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey]; - [self abortUpdate]; - break; - } -} - - -- (void)installWithToolAndRelaunch:(BOOL)relaunch displayingUserInterface:(BOOL)showUI -{ - if (relaunch) { - [self stopUpdatingOnTermination]; - } - - self.showErrors = YES; - [super installWithToolAndRelaunch:relaunch displayingUserInterface:showUI]; -} - -- (void)systemWillPowerOff:(NSNotification *)__unused note -{ - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSystemPowerOffError userInfo:@{ - NSLocalizedDescriptionKey: SULocalizedString(@"The update will not be installed because the user requested for the system to power off", nil) - }]]; -} - -- (void)applicationWillTerminate:(NSNotification *)__unused note -{ - // We don't want to terminate the app if the user or someone else initiated a termination - // Use a property instead of passing an argument to installWithToolAndRelaunch: - // because we give the delegate an invocation to our install methods and - // this code was added later :| - self.isTerminating = YES; - - [self installWithToolAndRelaunch:NO]; -} - -- (void)terminateApp -{ - if (!self.isTerminating) { - [super terminateApp]; - } -} - -- (void)abortUpdateWithError:(NSError *)error -{ - if (self.showErrors) { - [super abortUpdateWithError:error]; - } else { - // Call delegate separately here because otherwise it won't know we stopped. - // Normally this gets called by the superclass - id updaterDelegate = [self.updater delegate]; - if ([updaterDelegate respondsToSelector:@selector(updater:didAbortWithError:)]) { - [updaterDelegate updater:self.updater didAbortWithError:error]; - } - - [self abortUpdate]; - } -} - -@end diff --git a/Sparkle/Sparkle/SUBasicUpdateDriver.h b/Sparkle/Sparkle/SUBasicUpdateDriver.h deleted file mode 100755 index 301b4bc5..00000000 --- a/Sparkle/Sparkle/SUBasicUpdateDriver.h +++ /dev/null @@ -1,56 +0,0 @@ -// -// SUBasicUpdateDriver.h -// Sparkle, -// -// Created by Andy Matuschak on 4/23/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUBASICUPDATEDRIVER_H -#define SUBASICUPDATEDRIVER_H - -#import -#import "SUUpdateDriver.h" -#import "SUUnarchiver.h" -#import "SUAppcast.h" - -@class SUAppcastItem, SUHost; -@interface SUBasicUpdateDriver : SUUpdateDriver - -@property (strong, readonly) SUAppcastItem *updateItem; -@property (strong, readonly) NSURLDownload *download; -@property (copy, readonly) NSString *downloadPath; - -- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host; - -- (BOOL)isItemNewer:(SUAppcastItem *)ui; -+ (BOOL)hostSupportsItem:(SUAppcastItem *)ui; -- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui; -- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui; -- (void)appcastDidFinishLoading:(SUAppcast *)ac; -- (void)didFindValidUpdate; -- (void)didNotFindUpdate; - -- (void)downloadUpdate; -- (void)download:(NSURLDownload *)d decideDestinationWithSuggestedFilename:(NSString *)name; -- (void)downloadDidFinish:(NSURLDownload *)d; -- (void)download:(NSURLDownload *)download didFailWithError:(NSError *)error; - -- (void)extractUpdate; -- (void)unarchiverDidFinish:(SUUnarchiver *)ua; -- (void)unarchiverDidFail:(SUUnarchiver *)ua; -- (void)failedToApplyDeltaUpdate; - -- (void)installWithToolAndRelaunch:(BOOL)relaunch; -- (void)installWithToolAndRelaunch:(BOOL)relaunch displayingUserInterface:(BOOL)showUI; -- (void)installerForHost:(SUHost *)host failedWithError:(NSError *)error; - -- (void)cleanUpDownload; - -- (void)abortUpdate; -- (void)abortUpdateWithError:(NSError *)error; -- (void)terminateApp; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUBasicUpdateDriver.m b/Sparkle/Sparkle/SUBasicUpdateDriver.m deleted file mode 100755 index 0c714d03..00000000 --- a/Sparkle/Sparkle/SUBasicUpdateDriver.m +++ /dev/null @@ -1,577 +0,0 @@ -// -// SUBasicUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 4/23/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUBasicUpdateDriver.h" - -#import "SUHost.h" -#import "SUOperatingSystem.h" -#import "SUStandardVersionComparator.h" -#import "SUUnarchiver.h" -#import "SUConstants.h" -#import "SULog.h" -#import "SUBinaryDeltaCommon.h" -#import "SUUpdater_Private.h" -#import "SUFileManager.h" -#import "SUUpdateValidator.h" - -@interface SUBasicUpdateDriver () - -@property (strong) SUAppcastItem *updateItem; -@property (strong) NSURLDownload *download; -@property (copy) NSString *downloadPath; - -@property (strong) SUAppcastItem *nonDeltaUpdateItem; -@property (copy) NSString *tempDir; -@property (copy) NSString *relaunchPath; - -@property (nonatomic) SUUpdateValidator *updateValidator; - -@end - -@implementation SUBasicUpdateDriver - -@synthesize updateItem; -@synthesize download; -@synthesize downloadPath; - -@synthesize nonDeltaUpdateItem; -@synthesize tempDir; -@synthesize relaunchPath; - -@synthesize updateValidator = _updateValidator; - -- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost -{ - [super checkForUpdatesAtURL:URL host:aHost]; - if ([aHost isRunningOnReadOnlyVolume]) - { - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURunningFromDiskImageError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again.", nil), [aHost name]] }]]; - return; - } - - SUAppcast *appcast = [[SUAppcast alloc] init]; - - [appcast setUserAgentString:[self.updater userAgentString]]; - [appcast setHttpHeaders:[self.updater httpHeaders]]; - [appcast fetchAppcastFromURL:URL completionBlock:^(NSError *error) { - if (error) { - [self abortUpdateWithError:error]; - } else { - [self appcastDidFinishLoading:appcast]; - } - }]; -} - -- (id)versionComparator -{ - id comparator = nil; - - // Give the delegate a chance to provide a custom version comparator - if ([[self.updater delegate] respondsToSelector:@selector(versionComparatorForUpdater:)]) { - comparator = [[self.updater delegate] versionComparatorForUpdater:self.updater]; - } - - // If we don't get a comparator from the delegate, use the default comparator - if (!comparator) { - comparator = [SUStandardVersionComparator defaultComparator]; - } - - return comparator; -} - -+ (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem:(SUAppcastItem * __autoreleasing *)deltaItem withHostVersion:(NSString *)hostVersion comparator:(id)comparator -{ - SUAppcastItem *item = nil; - for(SUAppcastItem *candidate in appcastItems) { - if ([[self class] hostSupportsItem:candidate]) { - if (!item || [comparator compareVersion:item.versionString toVersion:candidate.versionString] == NSOrderedAscending) { - item = candidate; - } - } - } - - if (item && deltaItem) { - SUAppcastItem *deltaUpdateItem = [[item deltaUpdates] objectForKey:hostVersion]; - if (deltaUpdateItem && [[self class] hostSupportsItem:deltaUpdateItem]) { - *deltaItem = deltaUpdateItem; - } - } - - return item; -} - -+ (BOOL)hostSupportsItem:(SUAppcastItem *)ui -{ - if (([ui minimumSystemVersion] == nil || [[ui minimumSystemVersion] isEqualToString:@""]) && - ([ui maximumSystemVersion] == nil || [[ui maximumSystemVersion] isEqualToString:@""])) { return YES; } - - BOOL minimumVersionOK = TRUE; - BOOL maximumVersionOK = TRUE; - - // Check minimum and maximum System Version - if ([ui minimumSystemVersion] != nil && ![[ui minimumSystemVersion] isEqualToString:@""]) { - minimumVersionOK = [[SUStandardVersionComparator defaultComparator] compareVersion:[ui minimumSystemVersion] toVersion:[SUOperatingSystem systemVersionString]] != NSOrderedDescending; - } - if ([ui maximumSystemVersion] != nil && ![[ui maximumSystemVersion] isEqualToString:@""]) { - maximumVersionOK = [[SUStandardVersionComparator defaultComparator] compareVersion:[ui maximumSystemVersion] toVersion:[SUOperatingSystem systemVersionString]] != NSOrderedAscending; - } - - return minimumVersionOK && maximumVersionOK; -} - -- (BOOL)isItemNewer:(SUAppcastItem *)ui -{ - return [[self versionComparator] compareVersion:[self.host version] toVersion:[ui versionString]] == NSOrderedAscending; -} - -- (BOOL)itemContainsSkippedVersion:(SUAppcastItem *)ui -{ - NSString *skippedVersion = [self.host objectForUserDefaultsKey:SUSkippedVersionKey]; - if (skippedVersion == nil) { return NO; } - return [[self versionComparator] compareVersion:[ui versionString] toVersion:skippedVersion] != NSOrderedDescending; -} - -- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui -{ - return ui && [[self class] hostSupportsItem:ui] && [self isItemNewer:ui] && ![self itemContainsSkippedVersion:ui]; -} - -- (void)appcastDidFinishLoading:(SUAppcast *)ac -{ - if ([[self.updater delegate] respondsToSelector:@selector(updater:didFinishLoadingAppcast:)]) { - [[self.updater delegate] updater:self.updater didFinishLoadingAppcast:ac]; - } - - NSDictionary *userInfo = (ac != nil) ? @{ SUUpdaterAppcastNotificationKey: ac } : nil; - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidFinishLoadingAppCastNotification object:self.updater userInfo:userInfo]; - - SUAppcastItem *item = nil; - - // Now we have to find the best valid update in the appcast. - if ([[self.updater delegate] respondsToSelector:@selector(bestValidUpdateInAppcast:forUpdater:)]) // Does the delegate want to handle it? - { - item = [[self.updater delegate] bestValidUpdateInAppcast:ac forUpdater:self.updater]; - if ([item isDeltaUpdate]) { - self.nonDeltaUpdateItem = [[self.updater delegate] bestValidUpdateInAppcast:[ac copyWithoutDeltaUpdates] forUpdater:self.updater]; - } - } - else // If not, we'll take care of it ourselves. - { - // Find the best supported update - SUAppcastItem *deltaUpdateItem = nil; - item = [[self class] bestItemFromAppcastItems:ac.items getDeltaItem:&deltaUpdateItem withHostVersion:self.host.version comparator:[self versionComparator]]; - - if (item && deltaUpdateItem) { - self.nonDeltaUpdateItem = item; - item = deltaUpdateItem; - } - } - - if ([self itemContainsValidUpdate:item]) { - self.updateItem = item; - [self didFindValidUpdate]; - } else { - self.updateItem = nil; - [self didNotFindUpdate]; - } -} - -- (void)didFindValidUpdate -{ - assert(self.updateItem); - - if ([[self.updater delegate] respondsToSelector:@selector(updater:didFindValidUpdate:)]) { - [[self.updater delegate] updater:self.updater didFindValidUpdate:self.updateItem]; - } - - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidFindValidUpdateNotification - object:self.updater - userInfo:@{ SUUpdaterAppcastItemNotificationKey: self.updateItem }]; - [self downloadUpdate]; -} - -- (void)didNotFindUpdate -{ - if ([[self.updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)]) { - [[self.updater delegate] updaterDidNotFindUpdate:self.updater]; - } - - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidNotFindUpdateNotification object:self.updater]; - - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain - code:SUNoUpdateError - userInfo:@{ - NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"You already have the newest version of %@.", "'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI)"), self.host.name] - }]]; -} - -- (NSString *)appCachePath -{ - NSArray *cachePaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); - NSString *cachePath = nil; - if ([cachePaths count]) { - cachePath = [cachePaths objectAtIndex:0]; - } - if (!cachePath) { - SULog(@"Failed to find user's cache directory! Using system default"); - cachePath = NSTemporaryDirectory(); - } - - NSString *name = [self.host.bundle bundleIdentifier]; - if (!name) { - name = [self.host name]; - } - - cachePath = [cachePath stringByAppendingPathComponent:name]; - cachePath = [cachePath stringByAppendingPathComponent:@SPARKLE_BUNDLE_IDENTIFIER]; - return cachePath; -} - -- (void)downloadUpdate -{ - // Clear cache directory so that downloads can't possibly accumulate inside - NSString *appCachePath = [self appCachePath]; - if ([[NSFileManager defaultManager] fileExistsAtPath:appCachePath]) { - [[NSFileManager defaultManager] removeItemAtPath:appCachePath error:NULL]; - } - - NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[self.updateItem fileURL]]; - [request setValue:[self.updater userAgentString] forHTTPHeaderField:@"User-Agent"]; - if ([[self.updater delegate] respondsToSelector:@selector(updater:willDownloadUpdate:withRequest:)]) { - [[self.updater delegate] updater:self.updater - willDownloadUpdate:self.updateItem - withRequest:request]; - } - self.download = [[NSURLDownload alloc] initWithRequest:request delegate:self]; -} - -- (void)download:(NSURLDownload *)__unused d decideDestinationWithSuggestedFilename:(NSString *)name -{ - NSString *downloadFileName = [NSString stringWithFormat:@"%@ %@", [self.host name], [self.updateItem versionString]]; - - NSString *appCachePath = [self appCachePath]; - - self.tempDir = [appCachePath stringByAppendingPathComponent:downloadFileName]; - int cnt = 1; - while ([[NSFileManager defaultManager] fileExistsAtPath:self.tempDir] && cnt <= 999) - { - self.tempDir = [appCachePath stringByAppendingPathComponent:[NSString stringWithFormat:@"%@ %d", downloadFileName, cnt++]]; - } - - // Create the temporary directory if necessary. - BOOL success = [[NSFileManager defaultManager] createDirectoryAtPath:self.tempDir withIntermediateDirectories:YES attributes:nil error:NULL]; - if (!success) - { - // Okay, something's really broken with this user's file structure. - [self.download cancel]; - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUTemporaryDirectoryError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Can't make a temporary directory for the update download at %@.", self.tempDir] }]]; - } - - self.downloadPath = [self.tempDir stringByAppendingPathComponent:name]; - [self.download setDestination:self.downloadPath allowOverwrite:YES]; -} - -- (void)downloadDidFinish:(NSURLDownload *)__unused d -{ - assert(self.updateItem); - - [self extractUpdate]; -} - -- (void)download:(NSURLDownload *)__unused download didFailWithError:(NSError *)error -{ - NSURL *failingUrl = [error.userInfo objectForKey:NSURLErrorFailingURLErrorKey]; - if (!failingUrl) { - failingUrl = [self.updateItem fileURL]; - } - - if ([[self.updater delegate] respondsToSelector:@selector(updater:failedToDownloadUpdate:error:)]) { - [[self.updater delegate] updater:self.updater - failedToDownloadUpdate:self.updateItem - error:error]; - } - - NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithDictionary:@{ - NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while downloading the update. Please try again later.", nil), - NSUnderlyingErrorKey: error, - }]; - if (failingUrl) { - [userInfo setObject:failingUrl forKey:NSURLErrorFailingURLErrorKey]; - } - - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUDownloadError userInfo:userInfo]]; -} - -- (BOOL)download:(NSURLDownload *)__unused download shouldDecodeSourceDataOfMIMEType:(NSString *)encodingType -{ - // We don't want the download system to extract our gzips. - // Note that we use a substring matching here instead of direct comparison because the docs say "application/gzip" but the system *uses* "application/x-gzip". This is a documentation bug. - return ([encodingType rangeOfString:@"gzip"].location == NSNotFound); -} - -- (void)extractUpdate -{ - SUUnarchiver *unarchiver = [SUUnarchiver unarchiverForPath:self.downloadPath updatingHostBundlePath:self.host.bundlePath withPassword:self.updater.decryptionPassword]; - - BOOL success; - if (!unarchiver) { - SULog(@"Error: No valid unarchiver for %@!", self.downloadPath); - - success = NO; - } else { - // Currently unsafe archives are the only case where we can prevalidate before extraction, but that could change in the future - BOOL needsPrevalidation = [[unarchiver class] unsafeIfArchiveIsNotValidated]; - - self.updateValidator = [[SUUpdateValidator alloc] initWithDownloadPath:self.downloadPath dsaSignature:self.updateItem.DSASignature host:self.host performingPrevalidation:needsPrevalidation]; - - success = self.updateValidator.canValidate; - } - - if (!success) { - [self unarchiverDidFail:nil]; - } else { - unarchiver.delegate = self; - [unarchiver start]; - } -} - -- (void)failedToApplyDeltaUpdate -{ - // When a delta update fails to apply we fall back on updating via a full install. - self.updateItem = self.nonDeltaUpdateItem; - self.nonDeltaUpdateItem = nil; - - [self downloadUpdate]; -} - -- (void)unarchiverDidFinish:(SUUnarchiver *)__unused ua -{ - assert(self.updateItem); - - [self installWithToolAndRelaunch:YES]; -} - -- (void)unarchiverDidFail:(SUUnarchiver *)__unused ua -{ - // No longer needed - self.updateValidator = nil; - - if ([self.updateItem isDeltaUpdate]) { - [self failedToApplyDeltaUpdate]; - return; - } - - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUUnarchivingError userInfo:@{ NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil) }]]; -} - -- (void)installWithToolAndRelaunch:(BOOL)relaunch -{ - // Perhaps a poor assumption but: if we're not relaunching, we assume we shouldn't be showing any UI either. Because non-relaunching installations are kicked off without any user interaction, we shouldn't be interrupting them. - [self installWithToolAndRelaunch:relaunch displayingUserInterface:relaunch]; -} - -// Creates intermediate directories up until targetPath if they don't already exist, -// and removes the directory at targetPath if one already exists there -- (BOOL)preparePathForRelaunchTool:(NSString *)targetPath error:(NSError * __autoreleasing *)error -{ - NSFileManager *fileManager = [[NSFileManager alloc] init]; - if ([fileManager fileExistsAtPath:targetPath]) { - NSError *removeError = nil; - if (![fileManager removeItemAtPath:targetPath error:&removeError]) { - if (error != NULL) { - *error = removeError; - } - return NO; - } - } else { - NSError *createDirectoryError = nil; - if (![fileManager createDirectoryAtPath:[targetPath stringByDeletingLastPathComponent] withIntermediateDirectories:YES attributes:@{} error:&createDirectoryError]) { - if (error != NULL) { - *error = createDirectoryError; - } - return NO; - } - } - return YES; -} - -- (void)installWithToolAndRelaunch:(BOOL)relaunch displayingUserInterface:(BOOL)showUI -{ - assert(self.updateItem); - assert(self.updateValidator); - - BOOL validationCheckSuccess = [self.updateValidator validateWithUpdateDirectory:self.tempDir]; - if (!validationCheckSuccess) { - NSDictionary *userInfo = @{ - NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while extracting the archive. Please try again later.", nil), - NSLocalizedFailureReasonErrorKey: SULocalizedString(@"The update is improperly signed.", nil), - }; - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUSignatureError userInfo:userInfo]]; - return; - } - - if (![self.updater mayUpdateAndRestart]) - { - [self abortUpdate]; - return; - } - - // Give the host app an opportunity to postpone the install and relaunch. - static BOOL postponedOnce = NO; - id updaterDelegate = [self.updater delegate]; - if (!postponedOnce && [updaterDelegate respondsToSelector:@selector(updater:shouldPostponeRelaunchForUpdate:untilInvoking:)]) - { - NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[[self class] instanceMethodSignatureForSelector:@selector(installWithToolAndRelaunch:)]]; - [invocation setSelector:@selector(installWithToolAndRelaunch:)]; - [invocation setArgument:&relaunch atIndex:2]; - [invocation setTarget:self]; - postponedOnce = YES; - if ([updaterDelegate updater:self.updater shouldPostponeRelaunchForUpdate:self.updateItem untilInvoking:invocation]) { - return; - } - } - - - if ([updaterDelegate respondsToSelector:@selector(updater:willInstallUpdate:)]) { - [updaterDelegate updater:self.updater willInstallUpdate:self.updateItem]; - } - - NSBundle *sparkleBundle = self.updater.sparkleBundle; - - // Copy the relauncher into a temporary directory so we can get to it after the new version's installed. - // Only the paranoid survive: if there's already a stray copy of relaunch there, we would have problems. - NSString *const relaunchToolName = @"" SPARKLE_RELAUNCH_TOOL_NAME; - NSString *const relaunchToolSourcePath = [sparkleBundle pathForResource:relaunchToolName ofType:@"app"]; - NSString *relaunchCopyTargetPath = nil; - NSError *error = nil; - BOOL copiedRelaunchPath = NO; - - if (relaunchToolSourcePath) { - relaunchCopyTargetPath = [[self appCachePath] stringByAppendingPathComponent:[relaunchToolSourcePath lastPathComponent]]; - - SUFileManager *fileManager = [SUFileManager defaultManager]; - - NSURL *relaunchToolSourceURL = [NSURL fileURLWithPath:relaunchToolSourcePath]; - NSURL *relaunchCopyTargetURL = [NSURL fileURLWithPath:relaunchCopyTargetPath]; - - // We only need to run our copy of the app by spawning a task - // Since we are copying the app to a directory that is write-accessible, we don't need to muck with owner/group IDs - if ([self preparePathForRelaunchTool:relaunchCopyTargetPath error:&error] && [fileManager copyItemAtURL:relaunchToolSourceURL toURL:relaunchCopyTargetURL error:&error]) { - copiedRelaunchPath = YES; - - // We probably don't need to release the quarantine, but we'll do it just in case it's necessary. - // Perhaps in a sandboxed environment this matters more. Note that this may not be a fatal error. - NSError *quarantineError = nil; - if (![fileManager releaseItemFromQuarantineAtRootURL:relaunchCopyTargetURL error:&quarantineError]) { - SULog(@"Failed to release quarantine on %@ with error %@", relaunchCopyTargetPath, quarantineError); - } - } - } - - if (!copiedRelaunchPath) { - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:@{ - NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@.", nil), [self.host name]], - NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:@"Couldn't copy relauncher (%@) to temporary path (%@)! %@", - relaunchToolSourcePath, relaunchCopyTargetPath, (error ? [error localizedDescription] : @"")], - }]]; - return; - } - - self.relaunchPath = relaunchCopyTargetPath; // Set for backwards compatibility, in case any delegates modify it - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterWillRestartNotification object:self]; - if ([updaterDelegate respondsToSelector:@selector(updaterWillRelaunchApplication:)]) - [updaterDelegate updaterWillRelaunchApplication:self.updater]; - - NSString *relaunchToolPath = [[NSBundle bundleWithPath:self.relaunchPath] executablePath]; - if (!relaunchToolPath || ![[NSFileManager defaultManager] fileExistsAtPath:self.relaunchPath]) { - // Note that we explicitly use the host app's name here, since updating plugin for Mail relaunches Mail, not just the plugin. - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:@{ - NSLocalizedDescriptionKey: [NSString stringWithFormat:SULocalizedString(@"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@.", nil), [self.host name]], - NSLocalizedFailureReasonErrorKey: [NSString stringWithFormat:@"Couldn't find the relauncher (expected to find it at %@ and %@)", relaunchToolSourcePath, self.relaunchPath], - }]]; - return; - } - - NSString *pathToRelaunch = [self.host bundlePath]; - if ([updaterDelegate respondsToSelector:@selector(pathToRelaunchForUpdater:)]) { - pathToRelaunch = [updaterDelegate pathToRelaunchForUpdater:self.updater]; - } - - [NSTask launchedTaskWithLaunchPath:relaunchToolPath arguments:@[[self.host bundlePath], - pathToRelaunch, - [NSString stringWithFormat:@"%d", [[NSProcessInfo processInfo] processIdentifier]], - self.tempDir, - relaunch ? @"1" : @"0", - showUI ? @"1" : @"0"]]; - [self terminateApp]; -} - -// Note: this is overridden by the automatic update driver to not terminate in some cases -- (void)terminateApp -{ - [NSApp terminate:self]; -} - -- (void)cleanUpDownload -{ - if (self.tempDir != nil) // tempDir contains downloadPath, so we implicitly delete both here. - { - BOOL success = NO; - NSError *error = nil; - success = [[NSFileManager defaultManager] removeItemAtPath:self.tempDir error:&error]; // Clean up the copied relauncher - if (!success) - [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:[self.tempDir stringByDeletingLastPathComponent] destination:@"" files:@[[self.tempDir lastPathComponent]] tag:NULL]; - } -} - -- (void)installerForHost:(SUHost *)aHost failedWithError:(NSError *)error -{ - if (aHost != self.host) { - return; - } - NSError *dontThrow = nil; - [[NSFileManager defaultManager] removeItemAtPath:self.relaunchPath error:&dontThrow]; // Clean up the copied relauncher - [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ - NSLocalizedDescriptionKey: SULocalizedString(@"An error occurred while installing the update. Please try again later.", nil), - NSLocalizedFailureReasonErrorKey: [error localizedDescription], - NSUnderlyingErrorKey: error, - }]]; -} - -- (void)abortUpdate -{ - [self cleanUpDownload]; - [[NSNotificationCenter defaultCenter] removeObserver:self]; - self.updateItem = nil; - [super abortUpdate]; -} - -- (void)abortUpdateWithError:(NSError *)error -{ - if ([error code] != SUNoUpdateError) { // Let's not bother logging this. - NSError *errorToDisplay = error; - int finiteRecursion=5; - do { - SULog(@"Error: %@ %@ (URL %@)", errorToDisplay.localizedDescription, errorToDisplay.localizedFailureReason, [errorToDisplay.userInfo objectForKey:NSURLErrorFailingURLErrorKey]); - errorToDisplay = [errorToDisplay.userInfo objectForKey:NSUnderlyingErrorKey]; - } while(--finiteRecursion && errorToDisplay); - } - if (self.download) { - [self.download cancel]; - } - - // Notify host app that update has aborted - id updaterDelegate = [self.updater delegate]; - if ([updaterDelegate respondsToSelector:@selector(updater:didAbortWithError:)]) { - [updaterDelegate updater:self.updater didAbortWithError:error]; - } - - [self abortUpdate]; -} - -@end diff --git a/Sparkle/Sparkle/SUBinaryDeltaApply.h b/Sparkle/Sparkle/SUBinaryDeltaApply.h deleted file mode 100755 index 8390d9c0..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaApply.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// SUBinaryDeltaApply.h -// Sparkle -// -// Created by Mark Rowe on 2009-06-01. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#ifndef SUBINARYDELTAAPPLY_H -#define SUBINARYDELTAAPPLY_H - -@class NSString; -BOOL applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFile, BOOL verbose, NSError * __autoreleasing *error); - -#endif diff --git a/Sparkle/Sparkle/SUBinaryDeltaApply.m b/Sparkle/Sparkle/SUBinaryDeltaApply.m deleted file mode 100755 index 63abdb4f..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaApply.m +++ /dev/null @@ -1,284 +0,0 @@ -// -// SUBinaryDeltaApply.m -// Sparkle -// -// Created by Mark Rowe on 2009-06-01. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#import "SUBinaryDeltaApply.h" -#import "SUBinaryDeltaCommon.h" -#include -#import -#include "bspatch.h" -#include -#include -#include - -static BOOL applyBinaryDeltaToFile(xar_t x, xar_file_t file, NSString *sourceFilePath, NSString *destinationFilePath) -{ - NSString *patchFile = temporaryFilename(@"apply-binary-delta"); - xar_extract_tofile(x, file, [patchFile fileSystemRepresentation]); - const char *argv[] = {"/usr/bin/bspatch", [sourceFilePath fileSystemRepresentation], [destinationFilePath fileSystemRepresentation], [patchFile fileSystemRepresentation]}; - BOOL success = (bspatch(4, argv) == 0); - unlink([patchFile fileSystemRepresentation]); - return success; -} - -BOOL applyBinaryDelta(NSString *source, NSString *destination, NSString *patchFile, BOOL verbose, NSError * __autoreleasing *error) -{ - xar_t x = xar_open([patchFile fileSystemRepresentation], READ); - if (!x) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to open %@. Giving up.", patchFile] }]; - } - return NO; - } - - SUBinaryDeltaMajorVersion majorDiffVersion = FIRST_DELTA_DIFF_MAJOR_VERSION; - SUBinaryDeltaMinorVersion minorDiffVersion = FIRST_DELTA_DIFF_MINOR_VERSION; - - NSString *expectedBeforeHashv1 = nil; - NSString *expectedAfterHashv1 = nil; - - NSString *expectedNewBeforeHash = nil; - NSString *expectedNewAfterHash = nil; - - xar_subdoc_t subdoc; - for (subdoc = xar_subdoc_first(x); subdoc; subdoc = xar_subdoc_next(subdoc)) { - if (!strcmp(xar_subdoc_name(subdoc), BINARY_DELTA_ATTRIBUTES_KEY)) { - const char *value = 0; - - // available in version 2.0 or later - xar_subdoc_prop_get(subdoc, MAJOR_DIFF_VERSION_KEY, &value); - if (value) - majorDiffVersion = (SUBinaryDeltaMajorVersion)[@(value) intValue]; - - // available in version 2.0 or later - xar_subdoc_prop_get(subdoc, MINOR_DIFF_VERSION_KEY, &value); - if (value) - minorDiffVersion = (SUBinaryDeltaMinorVersion)[@(value) intValue]; - - // available in version 2.0 or later - xar_subdoc_prop_get(subdoc, BEFORE_TREE_SHA1_KEY, &value); - if (value) - expectedNewBeforeHash = @(value); - - // available in version 2.0 or later - xar_subdoc_prop_get(subdoc, AFTER_TREE_SHA1_KEY, &value); - if (value) - expectedNewAfterHash = @(value); - - // only available in version 1.0 - xar_subdoc_prop_get(subdoc, BEFORE_TREE_SHA1_OLD_KEY, &value); - if (value) - expectedBeforeHashv1 = @(value); - - // only available in version 1.0 - xar_subdoc_prop_get(subdoc, AFTER_TREE_SHA1_OLD_KEY, &value); - if (value) - expectedAfterHashv1 = @(value); - } - } - - if (majorDiffVersion < FIRST_DELTA_DIFF_MAJOR_VERSION) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadCorruptFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to identify diff-version %u in delta. Giving up.", majorDiffVersion] }]; - } - return NO; - } - - if (majorDiffVersion > LATEST_DELTA_DIFF_MAJOR_VERSION) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"A later version is needed to apply this patch (on major version %u, but patch requests version %u).", LATEST_DELTA_DIFF_MAJOR_VERSION, majorDiffVersion] }]; - } - return NO; - } - - BOOL usesNewTreeHash = MAJOR_VERSION_IS_AT_LEAST(majorDiffVersion, SUBeigeMajorVersion); - - NSString *expectedBeforeHash = usesNewTreeHash ? expectedNewBeforeHash : expectedBeforeHashv1; - NSString *expectedAfterHash = usesNewTreeHash ? expectedNewAfterHash : expectedAfterHashv1; - - if (!expectedBeforeHash || !expectedAfterHash) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadCorruptFileError userInfo:@{ NSLocalizedDescriptionKey: @"Unable to find before-sha1 or after-sha1 metadata in delta. Giving up." }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "Applying version %u.%u patch...\n", majorDiffVersion, minorDiffVersion); - fprintf(stderr, "Verifying source..."); - } - - NSString *beforeHash = hashOfTreeWithVersion(source, majorDiffVersion); - if (!beforeHash) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to calculate hash of tree %@", source] }]; - } - return NO; - } - - if (![beforeHash isEqualToString:expectedBeforeHash]) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Source doesn't have expected hash (%@ != %@). Giving up.", expectedBeforeHash, beforeHash] }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "\nCopying files..."); - } - - if (!removeTree(destination)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to remove %@", destination] }]; - } - return NO; - } - if (!copyTree(source, destination)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to copy %@ to %@", source, destination] }]; - } - return NO; - } - - BOOL hasExtractKeyAvailable = MAJOR_VERSION_IS_AT_LEAST(majorDiffVersion, SUBeigeMajorVersion); - - if (verbose) { - fprintf(stderr, "\nPatching..."); - } - NSFileManager *fileManager = [[NSFileManager alloc] init]; - xar_file_t file; - xar_iter_t iter = xar_iter_new(); - for (file = xar_file_first(x, iter); file; file = xar_file_next(iter)) { - NSString *path = @(xar_get_path(file)); - NSString *sourceFilePath = [source stringByAppendingPathComponent:path]; - NSString *destinationFilePath = [destination stringByAppendingPathComponent:path]; - - // Don't use -[NSFileManager fileExistsAtPath:] because it will follow symbolic links - BOOL fileExisted = verbose && [fileManager attributesOfItemAtPath:destinationFilePath error:nil]; - BOOL removedFile = NO; - - const char *value; - if (!xar_prop_get(file, DELETE_KEY, &value) || - (!hasExtractKeyAvailable && !xar_prop_get(file, DELETE_THEN_EXTRACT_OLD_KEY, &value))) { - if (!removeTree(destinationFilePath)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"%@ or %@: failed to remove %@", @DELETE_KEY, @DELETE_THEN_EXTRACT_OLD_KEY, destination] }]; - } - return NO; - } - if (!hasExtractKeyAvailable && !xar_prop_get(file, DELETE_KEY, &value)) { - if (verbose) { - fprintf(stderr, "\n❌ %s %s", VERBOSE_DELETED, [path fileSystemRepresentation]); - } - continue; - } - - removedFile = YES; - } - - if (!xar_prop_get(file, BINARY_DELTA_KEY, &value)) { - if (!applyBinaryDeltaToFile(x, file, sourceFilePath, destinationFilePath)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to patch %@ to destination %@", sourceFilePath, destinationFilePath] }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "\n🔨 %s %s", VERBOSE_PATCHED, [path fileSystemRepresentation]); - } - } else if ((hasExtractKeyAvailable && !xar_prop_get(file, EXTRACT_KEY, &value)) || - (!hasExtractKeyAvailable && xar_prop_get(file, MODIFY_PERMISSIONS_KEY, &value))) { // extract and permission modifications don't coexist - - if (xar_extract_tofile(x, file, [destinationFilePath fileSystemRepresentation]) != 0) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to extract file to %@", destinationFilePath] }]; - } - return NO; - } - - if (verbose) { - if (fileExisted) { - fprintf(stderr, "\n✏️ %s %s", VERBOSE_UPDATED, [path fileSystemRepresentation]); - } else { - fprintf(stderr, "\n✅ %s %s", VERBOSE_ADDED, [path fileSystemRepresentation]); - } - } - } else if (verbose && removedFile) { - fprintf(stderr, "\n❌ %s %s", VERBOSE_DELETED, [path fileSystemRepresentation]); - } - - if (!xar_prop_get(file, MODIFY_PERMISSIONS_KEY, &value)) { - mode_t mode = (mode_t)[[NSString stringWithUTF8String:value] intValue]; - if (!modifyPermissions(destinationFilePath, mode)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteNoPermissionError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to modify permissions (%@) on file %@", @(value), destinationFilePath] }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "\n👮 %s %s (0%o)", VERBOSE_MODIFIED, [path fileSystemRepresentation], mode); - } - } - } - xar_close(x); - - if (verbose) { - fprintf(stderr, "\nVerifying destination..."); - } - NSString *afterHash = hashOfTreeWithVersion(destination, majorDiffVersion); - if (!afterHash) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Unable to calculate hash of tree %@", destination] }]; - } - return NO; - } - - if (![afterHash isEqualToString:expectedAfterHash]) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination doesn't have expected hash (%@ != %@). Giving up.", expectedAfterHash, afterHash] }]; - } - removeTree(destination); - return NO; - } - - if (verbose) { - fprintf(stderr, "\nDone!\n"); - } - return YES; -} diff --git a/Sparkle/Sparkle/SUBinaryDeltaCommon.h b/Sparkle/Sparkle/SUBinaryDeltaCommon.h deleted file mode 100755 index 3e7db6c6..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaCommon.h +++ /dev/null @@ -1,84 +0,0 @@ -// -// SUBinaryDeltaCommon.h -// Sparkle -// -// Created by Mark Rowe on 2009-06-01. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#ifndef SUBINARYDELTACOMMON_H -#define SUBINARYDELTACOMMON_H - -#import - -#include - -#define PERMISSION_FLAGS (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX) - -#define IS_VALID_PERMISSIONS(mode) \ - (((mode & PERMISSION_FLAGS) == 0755) || ((mode & PERMISSION_FLAGS) == 0644)) - -#define APPLE_CODE_SIGN_XATTR_CODE_DIRECTORY_KEY "com.apple.cs.CodeDirectory" -#define APPLE_CODE_SIGN_XATTR_CODE_REQUIREMENTS_KEY "com.apple.cs.CodeRequirements" -#define APPLE_CODE_SIGN_XATTR_CODE_SIGNATURE_KEY "com.apple.cs.CodeSignature" - -#define BINARY_DELTA_ATTRIBUTES_KEY "binary-delta-attributes" -#define MAJOR_DIFF_VERSION_KEY "major-version" -#define MINOR_DIFF_VERSION_KEY "minor-version" -#define BEFORE_TREE_SHA1_KEY "before-tree-sha1" -#define AFTER_TREE_SHA1_KEY "after-tree-sha1" -#define DELETE_KEY "delete" -#define EXTRACT_KEY "extract" -#define BINARY_DELTA_KEY "binary-delta" -#define MODIFY_PERMISSIONS_KEY "mod-permissions" - -// Properties no longer used in new patches -#define DELETE_THEN_EXTRACT_OLD_KEY "delete-then-extract" -#define BEFORE_TREE_SHA1_OLD_KEY "before-sha1" -#define AFTER_TREE_SHA1_OLD_KEY "after-sha1" - -#define VERBOSE_DELETED "Deleted" // file is deleted from the file system when applying a patch -#define VERBOSE_REMOVED "Removed" // file is set to be removed when creating a patch -#define VERBOSE_ADDED "Added" // file is added to the patch or file system -#define VERBOSE_DIFFED "Diffed" // file is diffed when creating a patch -#define VERBOSE_PATCHED "Patched" // file is patched when applying a patch -#define VERBOSE_UPDATED "Updated" // file's contents are updated -#define VERBOSE_MODIFIED "Modified" // file's metadata is modified - -#define MAJOR_VERSION_IS_AT_LEAST(actualMajor, expectedMajor) (actualMajor >= expectedMajor) - -// Each major version will be assigned a name of a color -// Changes that break backwards compatibility will have different major versions -// Changes that affect creating but not applying patches will have different minor versions - -typedef NS_ENUM(uint16_t, SUBinaryDeltaMajorVersion) -{ - SUAzureMajorVersion = 1, - SUBeigeMajorVersion = 2 -}; - -// Only keep track of the latest minor version for each major version -typedef NS_ENUM(uint16_t, SUBinaryDeltaMinorVersion) -{ - SUAzureMinorVersion = 1, - SUBeigeMinorVersion = 1, -}; - -#define FIRST_DELTA_DIFF_MAJOR_VERSION SUAzureMajorVersion -#define FIRST_DELTA_DIFF_MINOR_VERSION ((SUBinaryDeltaMinorVersion)0) - -#define LATEST_DELTA_DIFF_MAJOR_VERSION SUBeigeMajorVersion - -extern int compareFiles(const FTSENT **a, const FTSENT **b); -extern NSData *hashOfFileContents(FTSENT *ent); -extern NSString *hashOfTreeWithVersion(NSString *path, uint16_t majorVersion); -extern NSString *hashOfTree(NSString *path); -extern BOOL removeTree(NSString *path); -extern BOOL copyTree(NSString *source, NSString *dest); -extern BOOL modifyPermissions(NSString *path, mode_t desiredPermissions); -extern NSString *pathRelativeToDirectory(NSString *directory, NSString *path); -NSString *temporaryFilename(NSString *base); -NSString *temporaryDirectory(NSString *base); -NSString *stringWithFileSystemRepresentation(const char*); -SUBinaryDeltaMinorVersion latestMinorVersionForMajorVersion(SUBinaryDeltaMajorVersion majorVersion); -#endif diff --git a/Sparkle/Sparkle/SUBinaryDeltaCommon.m b/Sparkle/Sparkle/SUBinaryDeltaCommon.m deleted file mode 100755 index 5f6ce079..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaCommon.m +++ /dev/null @@ -1,244 +0,0 @@ -// -// SUBinaryDeltaCommon.m -// Sparkle -// -// Created by Mark Rowe on 2009-06-01. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#include "SUBinaryDeltaCommon.h" -#import "SUFileManager.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include - -int compareFiles(const FTSENT **a, const FTSENT **b) -{ - return strcoll((*a)->fts_name, (*b)->fts_name); -} - -NSString *pathRelativeToDirectory(NSString *directory, NSString *path) -{ - NSUInteger directoryLength = [directory length]; - if ([path hasPrefix:directory]) - return [path substringFromIndex:directoryLength]; - - return path; -} - -NSString *stringWithFileSystemRepresentation(const char *input) { - return [[NSFileManager defaultManager] stringWithFileSystemRepresentation:input length:strlen(input)]; -} - -SUBinaryDeltaMinorVersion latestMinorVersionForMajorVersion(SUBinaryDeltaMajorVersion majorVersion) -{ - switch (majorVersion) { - case SUAzureMajorVersion: - return SUAzureMinorVersion; - case SUBeigeMajorVersion: - return SUBeigeMinorVersion; - } - return (SUBinaryDeltaMinorVersion)0; -} - -NSString *temporaryFilename(NSString *base) -{ - NSString *template = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.XXXXXXXXXX", base]]; - NSMutableData *data = [NSMutableData data]; - [data appendBytes:template.fileSystemRepresentation length:strlen(template.fileSystemRepresentation) + 1]; - - char *buffer = data.mutableBytes; - int fd = mkstemp(buffer); - if (fd == -1) { - perror("mkstemp"); - return nil; - } - - if (close(fd) != 0) { - perror("close"); - return nil; - } - - return stringWithFileSystemRepresentation(buffer); -} - -NSString *temporaryDirectory(NSString *base) -{ - NSString *template = [NSTemporaryDirectory() stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.XXXXXXXXXX", base]]; - NSMutableData *data = [NSMutableData data]; - [data appendBytes:template.fileSystemRepresentation length:strlen(template.fileSystemRepresentation) + 1]; - - char *buffer = data.mutableBytes; - char *templateResult = mkdtemp(buffer); - if (templateResult == NULL) { - perror("mkdtemp"); - return nil; - } - - return stringWithFileSystemRepresentation(templateResult); -} - -static void _hashOfBuffer(unsigned char *hash, const char* buffer, ssize_t bufferLength) -{ - assert(bufferLength >= 0 && bufferLength <= UINT32_MAX); - CC_SHA1_CTX hashContext; - CC_SHA1_Init(&hashContext); - CC_SHA1_Update(&hashContext, buffer, (CC_LONG)bufferLength); - CC_SHA1_Final(hash, &hashContext); -} - -static BOOL _hashOfFileContents(unsigned char* hash, FTSENT *ent) -{ - if (ent->fts_info == FTS_SL) { - char linkDestination[MAXPATHLEN + 1]; - ssize_t linkDestinationLength = readlink(ent->fts_path, linkDestination, MAXPATHLEN); - if (linkDestinationLength < 0) { - perror("readlink"); - return NO; - } - - _hashOfBuffer(hash, linkDestination, linkDestinationLength); - } else if (ent->fts_info == FTS_F) { - int fileDescriptor = open(ent->fts_path, O_RDONLY); - if (fileDescriptor == -1) { - perror("open"); - return NO; - } - - ssize_t fileSize = ent->fts_statp->st_size; - if (fileSize == 0) { - _hashOfBuffer(hash, NULL, 0); - } else { - void *buffer = mmap(0, (size_t)fileSize, PROT_READ, MAP_FILE | MAP_PRIVATE, fileDescriptor, 0); - if (buffer == (void*)-1) { - close(fileDescriptor); - perror("mmap"); - return NO; - } - - _hashOfBuffer(hash, buffer, fileSize); - munmap(buffer, (size_t)fileSize); - } - close(fileDescriptor); - } else if (ent->fts_info == FTS_D) { - memset(hash, 0xdd, CC_SHA1_DIGEST_LENGTH); - } else { - return NO; - } - return YES; -} - -NSData *hashOfFileContents(FTSENT *ent) -{ - unsigned char fileHash[CC_SHA1_DIGEST_LENGTH]; - if (!_hashOfFileContents(fileHash, ent)) { - return nil; - } - return [NSData dataWithBytes:fileHash length:CC_SHA1_DIGEST_LENGTH]; -} - -NSString *hashOfTreeWithVersion(NSString *path, uint16_t majorVersion) -{ - char pathBuffer[PATH_MAX] = {0}; - if (![path getFileSystemRepresentation:pathBuffer maxLength:sizeof(pathBuffer)]) { - return nil; - } - - char * const sourcePaths[] = {pathBuffer, 0}; - FTS *fts = fts_open(sourcePaths, FTS_PHYSICAL | FTS_NOCHDIR, compareFiles); - if (!fts) { - perror("fts_open"); - return nil; - } - - CC_SHA1_CTX hashContext; - CC_SHA1_Init(&hashContext); - - FTSENT *ent = 0; - while ((ent = fts_read(fts))) { - if (ent->fts_info != FTS_F && ent->fts_info != FTS_SL && ent->fts_info != FTS_D) - continue; - - if (ent->fts_info == FTS_D && !MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion)) { - continue; - } - - NSString *relativePath = pathRelativeToDirectory(path, stringWithFileSystemRepresentation(ent->fts_path)); - if (relativePath.length == 0) - continue; - - unsigned char fileHash[CC_SHA1_DIGEST_LENGTH]; - if (!_hashOfFileContents(fileHash, ent)) { - return nil; - } - CC_SHA1_Update(&hashContext, fileHash, sizeof(fileHash)); - - const char *relativePathBytes = [relativePath fileSystemRepresentation]; - CC_SHA1_Update(&hashContext, relativePathBytes, (CC_LONG)strlen(relativePathBytes)); - - if (MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion)) { - uint16_t mode = ent->fts_statp->st_mode; - uint16_t type = ent->fts_info; - uint16_t permissions = mode & PERMISSION_FLAGS; - - CC_SHA1_Update(&hashContext, &type, sizeof(type)); - CC_SHA1_Update(&hashContext, &permissions, sizeof(permissions)); - } - } - fts_close(fts); - - unsigned char hash[CC_SHA1_DIGEST_LENGTH]; - CC_SHA1_Final(hash, &hashContext); - - char hexHash[CC_SHA1_DIGEST_LENGTH * 2 + 1]; - size_t i; - for (i = 0; i < CC_SHA1_DIGEST_LENGTH; i++) - sprintf(hexHash + i * 2, "%02x", hash[i]); - - return @(hexHash); -} - -extern NSString *hashOfTree(NSString *path) -{ - return hashOfTreeWithVersion(path, LATEST_DELTA_DIFF_MAJOR_VERSION); -} - -BOOL removeTree(NSString *path) -{ - NSFileManager *fileManager = [NSFileManager defaultManager]; - // Don't use fileExistsForPath: because it will try to follow symbolic links - if (![fileManager attributesOfItemAtPath:path error:nil]) { - return YES; - } - return [fileManager removeItemAtPath:path error:nil]; -} - -BOOL copyTree(NSString *source, NSString *dest) -{ - return [[SUFileManager defaultManager] copyItemAtURL:[NSURL fileURLWithPath:source] toURL:[NSURL fileURLWithPath:dest] error:NULL]; -} - -BOOL modifyPermissions(NSString *path, mode_t desiredPermissions) -{ - NSFileManager *fileManager = [NSFileManager defaultManager]; - NSDictionary *attributes = [fileManager attributesOfItemAtPath:path error:nil]; - if (!attributes) { - return NO; - } - NSNumber *permissions = [attributes objectForKey:NSFilePosixPermissions]; - if (!permissions) { - return NO; - } - mode_t newMode = ([permissions unsignedShortValue] & ~PERMISSION_FLAGS) | desiredPermissions; - int (*changeModeFunc)(const char *, mode_t) = [[attributes objectForKey:NSFileType] isEqualToString:NSFileTypeSymbolicLink] ? lchmod : chmod; - if (changeModeFunc([path fileSystemRepresentation], newMode) != 0) { - return NO; - } - return YES; -} diff --git a/Sparkle/Sparkle/SUBinaryDeltaCreate.h b/Sparkle/Sparkle/SUBinaryDeltaCreate.h deleted file mode 100755 index 7111b503..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaCreate.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SUBinaryDeltaCreate.m -// Sparkle -// -// Created by Mayur Pawashe on 4/9/15. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#ifndef SUBINARYDELTACREATE_H -#define SUBINARYDELTACREATE_H - -#import "SUBinaryDeltaCommon.h" - -@class NSString; -BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchFile, SUBinaryDeltaMajorVersion majorVersion, BOOL verbose, NSError * __autoreleasing *error); - -#endif diff --git a/Sparkle/Sparkle/SUBinaryDeltaCreate.m b/Sparkle/Sparkle/SUBinaryDeltaCreate.m deleted file mode 100755 index 0a8fbc52..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaCreate.m +++ /dev/null @@ -1,587 +0,0 @@ -// -// SUBinaryDeltaCreate.m -// Sparkle -// -// Created by Mayur Pawashe on 4/9/15. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import "SUBinaryDeltaCreate.h" -#import -#include "SUBinaryDeltaCommon.h" -#import -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -extern int bsdiff(int argc, const char **argv); - -@interface CreateBinaryDeltaOperation : NSOperation -@property (copy) NSString *relativePath; -@property (strong) NSString *resultPath; -@property (strong) NSNumber *oldPermissions; -@property (strong) NSNumber *permissions; -@property (strong) NSString *_fromPath; -@property (strong) NSString *_toPath; -- (id)initWithRelativePath:(NSString *)relativePath oldTree:(NSString *)oldTree newTree:(NSString *)newTree oldPermissions:(NSNumber *)oldPermissions newPermissions:(NSNumber *)permissions; -@end - -@implementation CreateBinaryDeltaOperation -@synthesize relativePath = _relativePath; -@synthesize resultPath = _resultPath; -@synthesize oldPermissions = _oldPermissions; -@synthesize permissions = _permissions; -@synthesize _fromPath = _fromPath; -@synthesize _toPath = _toPath; - -- (id)initWithRelativePath:(NSString *)relativePath oldTree:(NSString *)oldTree newTree:(NSString *)newTree oldPermissions:(NSNumber *)oldPermissions newPermissions:(NSNumber *)permissions -{ - if ((self = [super init])) { - self.relativePath = relativePath; - self.oldPermissions = oldPermissions; - self.permissions = permissions; - self._fromPath = [oldTree stringByAppendingPathComponent:relativePath]; - self._toPath = [newTree stringByAppendingPathComponent:relativePath]; - } - return self; -} - -- (void)main -{ - NSString *temporaryFile = temporaryFilename(@"BinaryDelta"); - const char *argv[] = {"/usr/bin/bsdiff", [self._fromPath fileSystemRepresentation], [self._toPath fileSystemRepresentation], [temporaryFile fileSystemRepresentation]}; - int result = bsdiff(4, argv); - if (!result) - self.resultPath = temporaryFile; -} - -@end - -#define INFO_HASH_KEY @"hash" -#define INFO_TYPE_KEY @"type" -#define INFO_PERMISSIONS_KEY @"permissions" -#define INFO_SIZE_KEY @"size" - -static NSDictionary *infoForFile(FTSENT *ent) -{ - NSData *hash = hashOfFileContents(ent); - if (!hash) { - return nil; - } - - off_t size = (ent->fts_info != FTS_D) ? ent->fts_statp->st_size : 0; - - assert(ent->fts_statp != NULL); - - mode_t permissions = ent->fts_statp->st_mode & PERMISSION_FLAGS; - - return @{INFO_HASH_KEY: hash, INFO_TYPE_KEY: @(ent->fts_info), INFO_PERMISSIONS_KEY : @(permissions), INFO_SIZE_KEY: @(size)}; -} - -static bool aclExists(const FTSENT *ent) -{ - // macOS does not currently support ACLs for symlinks - if (ent->fts_info == FTS_SL) { - return NO; - } - - acl_t acl = acl_get_link_np(ent->fts_path, ACL_TYPE_EXTENDED); - if (acl != NULL) { - acl_entry_t entry; - int result = acl_get_entry(acl, ACL_FIRST_ENTRY, &entry); - assert(acl_free((void *)acl) == 0); - return (result == 0); - } - return false; -} - -static bool codeSignatureExtendedAttributeExists(const FTSENT *ent) -{ - const int options = XATTR_NOFOLLOW; - ssize_t listSize = listxattr(ent->fts_path, NULL, 0, options); - if (listSize == -1) { - return false; - } - - char *buffer = malloc((size_t)listSize); - assert(buffer != NULL); - - ssize_t sizeBack = listxattr(ent->fts_path, buffer, (size_t)listSize, options); - assert(sizeBack == listSize); - - size_t startCharacterIndex = 0; - for (size_t characterIndex = 0; characterIndex < (size_t)listSize; characterIndex++) { - if (buffer[characterIndex] == '\0') { - char *attribute = &buffer[startCharacterIndex]; - size_t length = characterIndex - startCharacterIndex; - if (strncmp(APPLE_CODE_SIGN_XATTR_CODE_DIRECTORY_KEY, attribute, length) == 0 || - strncmp(APPLE_CODE_SIGN_XATTR_CODE_REQUIREMENTS_KEY, attribute, length) == 0 || - strncmp(APPLE_CODE_SIGN_XATTR_CODE_SIGNATURE_KEY, attribute, length) == 0) { - free(buffer); - return true; - } - startCharacterIndex = characterIndex + 1; - } - } - - free(buffer); - return false; -} - -static NSString *absolutePath(NSString *path) -{ - NSURL *url = [[NSURL alloc] initFileURLWithPath:path]; - return [[url absoluteURL] path]; -} - -static NSString *temporaryPatchFile(NSString *patchFile) -{ - NSString *path = absolutePath(patchFile); - NSString *directory = [path stringByDeletingLastPathComponent]; - NSString *file = [path lastPathComponent]; - return [NSString stringWithFormat:@"%@/.%@.tmp", directory, file]; -} - -#define MIN_FILE_SIZE_FOR_CREATING_DELTA 4096 - -static BOOL shouldSkipDeltaCompression(NSDictionary* originalInfo, NSDictionary *newInfo) -{ - unsigned long long fileSize = [newInfo[INFO_SIZE_KEY] unsignedLongLongValue]; - if (fileSize < MIN_FILE_SIZE_FOR_CREATING_DELTA) { - return YES; - } - - if (!originalInfo) { - return YES; - } - - if ([originalInfo[INFO_TYPE_KEY] unsignedShortValue] != [newInfo[INFO_TYPE_KEY] unsignedShortValue]) { - return YES; - } - - if ([originalInfo[INFO_HASH_KEY] isEqual:newInfo[INFO_HASH_KEY]]) { - // this is possible if just the permissions have changed - return YES; - } - - return NO; -} - -static BOOL shouldDeleteThenExtract(NSDictionary* originalInfo, NSDictionary *newInfo) -{ - if (!originalInfo) { - return NO; - } - - if ([originalInfo[INFO_TYPE_KEY] unsignedShortValue] != [newInfo[INFO_TYPE_KEY] unsignedShortValue]) { - return YES; - } - - return NO; -} - -static BOOL shouldSkipExtracting(NSDictionary *originalInfo, NSDictionary *newInfo) -{ - if (!originalInfo) { - return NO; - } - - if ([originalInfo[INFO_TYPE_KEY] unsignedShortValue] != [newInfo[INFO_TYPE_KEY] unsignedShortValue]) { - return NO; - } - - if (![originalInfo[INFO_HASH_KEY] isEqual:newInfo[INFO_HASH_KEY]]) { - return NO; - } - - return YES; -} - -static BOOL shouldChangePermissions(NSDictionary *originalInfo, NSDictionary *newInfo) -{ - if (!originalInfo) { - return NO; - } - - if ([originalInfo[INFO_TYPE_KEY] unsignedShortValue] != [newInfo[INFO_TYPE_KEY] unsignedShortValue]) { - return NO; - } - - if ([originalInfo[INFO_PERMISSIONS_KEY] unsignedShortValue] == [newInfo[INFO_PERMISSIONS_KEY] unsignedShortValue]) { - return NO; - } - - return YES; -} - -BOOL createBinaryDelta(NSString *source, NSString *destination, NSString *patchFile, SUBinaryDeltaMajorVersion majorVersion, BOOL verbose, NSError * __autoreleasing *error) -{ - assert(source); - assert(destination); - assert(patchFile); - assert(majorVersion >= FIRST_DELTA_DIFF_MAJOR_VERSION && majorVersion <= LATEST_DELTA_DIFF_MAJOR_VERSION); - - SUBinaryDeltaMinorVersion minorVersion = latestMinorVersionForMajorVersion(majorVersion); - - NSMutableDictionary *originalTreeState = [NSMutableDictionary dictionary]; - - char pathBuffer[PATH_MAX] = {0}; - if (![source getFileSystemRepresentation:pathBuffer maxLength:sizeof(pathBuffer)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to retrieve file system path representation from source %@", source] }]; - } - return NO; - } - - char *sourcePaths[] = {pathBuffer, 0}; - FTS *fts = fts_open(sourcePaths, FTS_PHYSICAL | FTS_NOCHDIR, compareFiles); - if (!fts) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"fts_open failed on source: %@", @(strerror(errno))] }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "Creating version %u.%u patch...\n", majorVersion, minorVersion); - fprintf(stderr, "Processing %s...", [source fileSystemRepresentation]); - } - - FTSENT *ent = 0; - while ((ent = fts_read(fts))) { - if (ent->fts_info != FTS_F && ent->fts_info != FTS_SL && ent->fts_info != FTS_D) { - continue; - } - - NSString *key = pathRelativeToDirectory(source, stringWithFileSystemRepresentation(ent->fts_path)); - if (![key length]) { - continue; - } - - NSDictionary *info = infoForFile(ent); - if (!info) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to retrieve info for file %@", @(ent->fts_path)] }]; - } - return NO; - } - originalTreeState[key] = info; - - if (aclExists(ent)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Diffing ACLs are not supported. Detected ACL in before-tree on file %@", @(ent->fts_path)] }]; - } - return NO; - } - - if (codeSignatureExtendedAttributeExists(ent)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Diffing code signed extended attributes are not supported. Detected extended attribute in before-tree on file %@", @(ent->fts_path)] }]; - } - return NO; - } - } - fts_close(fts); - - NSString *beforeHash = hashOfTreeWithVersion(source, majorVersion); - - if (!beforeHash) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to generate hash for tree %@", source] }]; - } - return NO; - } - - NSMutableDictionary *newTreeState = [NSMutableDictionary dictionary]; - for (NSString *key in originalTreeState) - { - newTreeState[key] = [NSNull null]; - } - - if (verbose) { - fprintf(stderr, "\nProcessing %s...", [destination fileSystemRepresentation]); - } - - pathBuffer[0] = 0; - if (![destination getFileSystemRepresentation:pathBuffer maxLength:sizeof(pathBuffer)]) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to retrieve file system path representation from destination %@", destination] }]; - } - return NO; - } - - sourcePaths[0] = pathBuffer; - fts = fts_open(sourcePaths, FTS_PHYSICAL | FTS_NOCHDIR, compareFiles); - if (!fts) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"fts_open failed on destination: %@", @(strerror(errno))] }]; - } - return NO; - } - - - while ((ent = fts_read(fts))) { - if (ent->fts_info != FTS_F && ent->fts_info != FTS_SL && ent->fts_info != FTS_D) { - continue; - } - - NSString *key = pathRelativeToDirectory(destination, stringWithFileSystemRepresentation(ent->fts_path)); - if (![key length]) { - continue; - } - - NSDictionary *info = infoForFile(ent); - if (!info) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to retrieve info from file %@", @(ent->fts_path)] }]; - } - return NO; - } - - // We should validate permissions and ACLs even if we don't store the info in the diff in the case of ACLs, - // or in the case of permissions if the patch version is 1 - - // We should also not allow files with code signed extended attributes since Apple doesn't recommend inserting these - // inside an application, and since we don't preserve extended attribitutes anyway - - mode_t permissions = [info[INFO_PERMISSIONS_KEY] unsignedShortValue]; - if (!IS_VALID_PERMISSIONS(permissions)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Invalid file permissions after-tree on file %@ (only permissions with modes 0755 and 0644 are supported)", @(ent->fts_path)] }]; - } - return NO; - } - - if (aclExists(ent)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Diffing ACLs are not supported. Detected ACL in after-tree on file %@", @(ent->fts_path)] }]; - } - return NO; - } - - if (codeSignatureExtendedAttributeExists(ent)) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Diffing code signed extended attributes are not supported. Detected extended attribute in after-tree on file %@", @(ent->fts_path)] }]; - } - return NO; - } - - NSDictionary *oldInfo = originalTreeState[key]; - - if ([info isEqual:oldInfo]) { - [newTreeState removeObjectForKey:key]; - } else { - newTreeState[key] = info; - - if (oldInfo && [oldInfo[INFO_TYPE_KEY] unsignedShortValue] == FTS_D && [info[INFO_TYPE_KEY] unsignedShortValue] != FTS_D) { - NSArray *parentPathComponents = key.pathComponents; - - for (NSString *childPath in originalTreeState) { - NSArray *childPathComponents = childPath.pathComponents; - if (childPathComponents.count > parentPathComponents.count && - [parentPathComponents isEqualToArray:[childPathComponents subarrayWithRange:NSMakeRange(0, parentPathComponents.count)]]) { - [newTreeState removeObjectForKey:childPath]; - } - } - } - } - } - fts_close(fts); - - NSString *afterHash = hashOfTreeWithVersion(destination, majorVersion); - if (!afterHash) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to generate hash for tree %@", destination] }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "\nGenerating delta..."); - } - - NSString *temporaryFile = temporaryPatchFile(patchFile); - xar_t x = xar_open([temporaryFile fileSystemRepresentation], WRITE); - if (!x) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to write to %@", temporaryFile] }]; - } - return NO; - } - - xar_opt_set(x, XAR_OPT_COMPRESSION, "bzip2"); - - xar_subdoc_t attributes = xar_subdoc_new(x, BINARY_DELTA_ATTRIBUTES_KEY); - - xar_subdoc_prop_set(attributes, MAJOR_DIFF_VERSION_KEY, [[NSString stringWithFormat:@"%u", majorVersion] UTF8String]); - xar_subdoc_prop_set(attributes, MINOR_DIFF_VERSION_KEY, [[NSString stringWithFormat:@"%u", minorVersion] UTF8String]); - - // Version 1 patches don't have a major or minor version field, so we need to differentiate between the hash keys - const char *beforeHashKey = - MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion) ? BEFORE_TREE_SHA1_KEY : BEFORE_TREE_SHA1_OLD_KEY; - const char *afterHashKey = - MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion) ? AFTER_TREE_SHA1_KEY : AFTER_TREE_SHA1_OLD_KEY; - - xar_subdoc_prop_set(attributes, beforeHashKey, [beforeHash UTF8String]); - xar_subdoc_prop_set(attributes, afterHashKey, [afterHash UTF8String]); - - NSOperationQueue *deltaQueue = [[NSOperationQueue alloc] init]; - NSMutableArray *deltaOperations = [NSMutableArray array]; - - // Sort the keys by preferring the ones from the original tree to appear first - // We want to enforce deleting before extracting in the case paths differ only by case - NSArray *keys = [[newTreeState allKeys] sortedArrayUsingComparator:^NSComparisonResult(NSString *key1, NSString *key2) { - NSComparisonResult insensitiveCompareResult = [key1 caseInsensitiveCompare:key2]; - if (insensitiveCompareResult != NSOrderedSame) { - return insensitiveCompareResult; - } - - return originalTreeState[key1] ? NSOrderedAscending : NSOrderedDescending; - }]; - for (NSString* key in keys) { - id value = [newTreeState valueForKey:key]; - - if ([value isEqual:[NSNull null]]) { - xar_file_t newFile = xar_add_frombuffer(x, 0, [key fileSystemRepresentation], (char *)"", 1); - assert(newFile); - xar_prop_set(newFile, DELETE_KEY, "true"); - - if (verbose) { - fprintf(stderr, "\n❌ %s %s", VERBOSE_REMOVED, [key fileSystemRepresentation]); - } - continue; - } - - NSDictionary *originalInfo = originalTreeState[key]; - NSDictionary *newInfo = newTreeState[key]; - if (shouldSkipDeltaCompression(originalInfo, newInfo)) { - if (MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion) && shouldSkipExtracting(originalInfo, newInfo)) { - if (shouldChangePermissions(originalInfo, newInfo)) { - xar_file_t newFile = xar_add_frombuffer(x, 0, [key fileSystemRepresentation], (char *)"", 1); - assert(newFile); - xar_prop_set(newFile, MODIFY_PERMISSIONS_KEY, [[NSString stringWithFormat:@"%u", [newInfo[INFO_PERMISSIONS_KEY] unsignedShortValue]] UTF8String]); - - if (verbose) { - fprintf(stderr, "\n👮 %s %s (0%o -> 0%o)", VERBOSE_MODIFIED, [key fileSystemRepresentation], [originalInfo[INFO_PERMISSIONS_KEY] unsignedShortValue], [newInfo[INFO_PERMISSIONS_KEY] unsignedShortValue]); - } - } - } else { - NSString *path = [destination stringByAppendingPathComponent:key]; - xar_file_t newFile = xar_add_frompath(x, 0, [key fileSystemRepresentation], [path fileSystemRepresentation]); - assert(newFile); - - if (shouldDeleteThenExtract(originalInfo, newInfo)) { - if (MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion)) { - xar_prop_set(newFile, DELETE_KEY, "true"); - } else { - xar_prop_set(newFile, DELETE_THEN_EXTRACT_OLD_KEY, "true"); - } - } - - if (MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion)) { - xar_prop_set(newFile, EXTRACT_KEY, "true"); - } - - if (verbose) { - if (originalInfo) { - fprintf(stderr, "\n✏️ %s %s", VERBOSE_UPDATED, [key fileSystemRepresentation]); - } else { - fprintf(stderr, "\n✅ %s %s", VERBOSE_ADDED, [key fileSystemRepresentation]); - } - } - } - } else { - NSNumber *permissions = - (MAJOR_VERSION_IS_AT_LEAST(majorVersion, SUBeigeMajorVersion) && shouldChangePermissions(originalInfo, newInfo)) ? - newInfo[INFO_PERMISSIONS_KEY] : - nil; - CreateBinaryDeltaOperation *operation = [[CreateBinaryDeltaOperation alloc] initWithRelativePath:key oldTree:source newTree:destination oldPermissions:originalInfo[INFO_PERMISSIONS_KEY] newPermissions:permissions]; - [deltaQueue addOperation:operation]; - [deltaOperations addObject:operation]; - } - } - - [deltaQueue waitUntilAllOperationsAreFinished]; - - for (CreateBinaryDeltaOperation *operation in deltaOperations) { - NSString *resultPath = [operation resultPath]; - if (!resultPath) { - if (verbose) { - fprintf(stderr, "\n"); - } - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteUnknownError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to create patch from source %@ and destination %@", operation.relativePath, resultPath] }]; - } - return NO; - } - - if (verbose) { - fprintf(stderr, "\n🔨 %s %s", VERBOSE_DIFFED, [[operation relativePath] fileSystemRepresentation]); - } - - xar_file_t newFile = xar_add_frompath(x, 0, [[operation relativePath] fileSystemRepresentation], [resultPath fileSystemRepresentation]); - assert(newFile); - xar_prop_set(newFile, BINARY_DELTA_KEY, "true"); - unlink([resultPath fileSystemRepresentation]); - - if (operation.permissions) { - xar_prop_set(newFile, MODIFY_PERMISSIONS_KEY, [[NSString stringWithFormat:@"%u", [operation.permissions unsignedShortValue]] UTF8String]); - - if (verbose) { - fprintf(stderr, "\n👮 %s %s (0%o -> 0%o)", VERBOSE_MODIFIED, [[operation relativePath] fileSystemRepresentation], operation.oldPermissions.unsignedShortValue, operation.permissions.unsignedShortValue); - } - } - } - - xar_close(x); - - unlink([patchFile fileSystemRepresentation]); - link([temporaryFile fileSystemRepresentation], [patchFile fileSystemRepresentation]); - unlink([temporaryFile fileSystemRepresentation]); - - if (verbose) { - fprintf(stderr, "\nDone!\n"); - } - - return YES; -} diff --git a/Sparkle/Sparkle/SUBinaryDeltaTool.m b/Sparkle/Sparkle/SUBinaryDeltaTool.m deleted file mode 100755 index 01f07dcf..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaTool.m +++ /dev/null @@ -1,240 +0,0 @@ -// -// SUBinaryDeltaTool.m -// Sparkle -// -// Created by Mark Rowe on 2009-06-01. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#include "SUBinaryDeltaApply.h" -#include "SUBinaryDeltaCreate.h" -#import "SUBinaryDeltaCommon.h" -#include -#include - -#define VERBOSE_FLAG @"--verbose" -#define VERSION_FLAG @"--version" - -#define CREATE_COMMAND @"create" -#define APPLY_COMMAND @"apply" -#define VERSION_COMMAND @"version" -#define VERSION_ALTERNATE_COMMAND @"--version" - -static void printUsage(NSString *programName) -{ - fprintf(stderr, "Usage:\n"); - fprintf(stderr, "%s create [--verbose] [--version=] \n", [programName UTF8String]); - fprintf(stderr, "%s apply [--verbose] \n", [programName UTF8String]); - fprintf(stderr, "%s version []\n", [programName UTF8String]); -} - -static BOOL runCreateCommand(NSString *programName, NSArray *args) -{ - if (args.count < 3 || args.count > 5) { - printUsage(programName); - return NO; - } - - NSUInteger numberOflagsFound = 0; - NSUInteger verboseIndex = [args indexOfObject:VERBOSE_FLAG]; - NSUInteger versionIndex = NSNotFound; - for (NSUInteger argumentIndex = 0; argumentIndex < args.count; ++argumentIndex) { - if ([args[argumentIndex] hasPrefix:VERSION_FLAG]) { - versionIndex = argumentIndex; - break; - } - } - - if (verboseIndex != NSNotFound) { - ++numberOflagsFound; - } - if (versionIndex != NSNotFound) { - ++numberOflagsFound; - } - - if (args.count - numberOflagsFound < 3) { - printUsage(programName); - return NO; - } - - BOOL verbose = (verboseIndex != NSNotFound); - NSString *versionField = (versionIndex != NSNotFound) ? args[versionIndex] : nil; - - NSArray *versionComponents = nil; - if (versionField) { - versionComponents = [versionField componentsSeparatedByString:@"="]; - if (versionComponents.count != 2) { - printUsage(programName); - return NO; - } - } - - SUBinaryDeltaMajorVersion patchVersion = - !versionComponents ? - LATEST_DELTA_DIFF_MAJOR_VERSION : - (SUBinaryDeltaMajorVersion)[[versionComponents[1] componentsSeparatedByString:@"."][0] intValue]; // ignore minor version if provided - - if (patchVersion < FIRST_DELTA_DIFF_MAJOR_VERSION) { - fprintf(stderr, "Version provided (%u) is not valid\n", patchVersion); - return NO; - } - - if (patchVersion > LATEST_DELTA_DIFF_MAJOR_VERSION) { - fprintf(stderr, "This program is too old to create a version %u patch, or the version number provided is invalid\n", patchVersion); - return NO; - } - - NSMutableArray *fileArgs = [NSMutableArray array]; - for (NSString *argument in args) { - if (![argument hasPrefix:VERSION_FLAG] && ![argument isEqualToString:VERBOSE_FLAG]) { - [fileArgs addObject:argument]; - } - } - - if (fileArgs.count != 3) { - printUsage(programName); - return NO; - } - - BOOL isDirectory; - if (![[NSFileManager defaultManager] fileExistsAtPath:fileArgs[0] isDirectory:&isDirectory] || !isDirectory) { - printUsage(programName); - fprintf(stderr, "Error: before-tree must be a directory\n"); - return NO; - } - - if (![[NSFileManager defaultManager] fileExistsAtPath:fileArgs[1] isDirectory:&isDirectory] || !isDirectory) { - printUsage(programName); - fprintf(stderr, "Error: after-tree must be a directory\n"); - return NO; - } - - NSError *createDiffError = nil; - if (!createBinaryDelta(fileArgs[0], fileArgs[1], fileArgs[2], patchVersion, verbose, &createDiffError)) { - fprintf(stderr, "%s\n", [createDiffError.localizedDescription UTF8String]); - return NO; - } - - return YES; -} - -static BOOL runApplyCommand(NSString *programName, NSArray *args) -{ - if (args.count < 3 || args.count > 4) { - printUsage(programName); - return NO; - } - - BOOL verbose = [args containsObject:VERBOSE_FLAG]; - - if (args.count == 4 && !verbose) { - printUsage(programName); - return NO; - } - - NSMutableArray *fileArgs = [NSMutableArray array]; - for (NSString *argument in args) { - if (![argument isEqualToString:VERBOSE_FLAG]) { - [fileArgs addObject:argument]; - } - } - - if (fileArgs.count != 3) { - printUsage(programName); - return NO; - } - - BOOL isDirectory; - if (![[NSFileManager defaultManager] fileExistsAtPath:fileArgs[0] isDirectory:&isDirectory] || !isDirectory) { - printUsage(programName); - fprintf(stderr, "Error: before-tree must be a directory\n"); - return NO; - } - - if (![[NSFileManager defaultManager] fileExistsAtPath:fileArgs[2] isDirectory:&isDirectory] || isDirectory) { - printUsage(programName); - fprintf(stderr, "Error: patch-file must be a file %d\n", isDirectory); - return NO; - } - - NSError *applyDiffError = nil; - if (!applyBinaryDelta(fileArgs[0], fileArgs[1], fileArgs[2], verbose, &applyDiffError)) { - fprintf(stderr, "%s\n", [applyDiffError.localizedDescription UTF8String]); - return NO; - } - - return YES; -} - -static BOOL runVersionCommand(NSString *programName, NSArray *args) -{ - if (args.count > 1) { - printUsage(programName); - return NO; - } - - if (args.count == 0) { - fprintf(stdout, "%u.%u\n", LATEST_DELTA_DIFF_MAJOR_VERSION, latestMinorVersionForMajorVersion(LATEST_DELTA_DIFF_MAJOR_VERSION)); - } else { - NSString *patchFile = args[0]; - xar_t x = xar_open([patchFile fileSystemRepresentation], READ); - if (!x) { - fprintf(stderr, "Unable to open patch %s\n", [patchFile fileSystemRepresentation]); - return NO; - } - - SUBinaryDeltaMajorVersion majorDiffVersion = FIRST_DELTA_DIFF_MAJOR_VERSION; - SUBinaryDeltaMinorVersion minorDiffVersion = FIRST_DELTA_DIFF_MINOR_VERSION; - - xar_subdoc_t subdoc; - for (subdoc = xar_subdoc_first(x); subdoc; subdoc = xar_subdoc_next(subdoc)) { - if (!strcmp(xar_subdoc_name(subdoc), BINARY_DELTA_ATTRIBUTES_KEY)) { - const char *value = 0; - - // available in version 2.0 or later - xar_subdoc_prop_get(subdoc, MAJOR_DIFF_VERSION_KEY, &value); - if (value) - majorDiffVersion = (SUBinaryDeltaMajorVersion)[@(value) intValue]; - - // available in version 2.0 or later - xar_subdoc_prop_get(subdoc, MINOR_DIFF_VERSION_KEY, &value); - if (value) - minorDiffVersion = (SUBinaryDeltaMinorVersion)[@(value) intValue]; - } - } - - fprintf(stdout, "%u.%u\n", majorDiffVersion, minorDiffVersion); - } - - return YES; -} - -int main(int __unused argc, char __unused *argv[]) -{ - @autoreleasepool { - NSArray *args = [[NSProcessInfo processInfo] arguments]; - NSString *programName = [args[0] lastPathComponent]; - - if (args.count < 2) { - printUsage(programName); - return 1; - } - - NSString *command = args[1]; - NSArray *commandArguments = [args subarrayWithRange:NSMakeRange(2, args.count - 2)]; - - BOOL result; - if ([command isEqualToString:CREATE_COMMAND]) { - result = runCreateCommand(programName, commandArguments); - } else if ([command isEqualToString:APPLY_COMMAND]) { - result = runApplyCommand(programName, commandArguments); - } else if ([command isEqualToString:VERSION_COMMAND] || [command isEqualToString:VERSION_ALTERNATE_COMMAND]) { - result = runVersionCommand(programName, commandArguments); - } else { - result = NO; - printUsage(programName); - } - - return result ? 0 : 1; - } -} diff --git a/Sparkle/Sparkle/SUBinaryDeltaUnarchiver.h b/Sparkle/Sparkle/SUBinaryDeltaUnarchiver.h deleted file mode 100755 index 1e71cbe4..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaUnarchiver.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUBinaryDeltaUnarchiver.h -// Sparkle -// -// Created by Mark Rowe on 2009-06-03. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#ifndef SUBINARYDELTAUNARCHIVER_H -#define SUBINARYDELTAUNARCHIVER_H - -#import -#import "SUUnarchiver.h" - -@interface SUBinaryDeltaUnarchiver : SUUnarchiver - -@end - -#endif diff --git a/Sparkle/Sparkle/SUBinaryDeltaUnarchiver.m b/Sparkle/Sparkle/SUBinaryDeltaUnarchiver.m deleted file mode 100755 index 5ff34bd8..00000000 --- a/Sparkle/Sparkle/SUBinaryDeltaUnarchiver.m +++ /dev/null @@ -1,100 +0,0 @@ -// -// SUBinaryDeltaUnarchiver.m -// Sparkle -// -// Created by Mark Rowe on 2009-06-03. -// Copyright 2009 Mark Rowe. All rights reserved. -// - -#import "SUBinaryDeltaCommon.h" -#import "SUBinaryDeltaUnarchiver.h" -#import "SUBinaryDeltaApply.h" -#import "SUUnarchiver_Private.h" -#import "SUFileManager.h" -#import "SUHost.h" -#import "SULog.h" - -@implementation SUBinaryDeltaUnarchiver - -+ (BOOL)canUnarchivePath:(NSString *)path -{ - return [[path pathExtension] isEqualToString:@"delta"]; -} - -+ (BOOL)unsafeIfArchiveIsNotValidated -{ - return YES; -} - -// According to https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/MDImporters/Concepts/Troubleshooting.html -// We should make sure mdimporter bundles have an up to date time in the event they were delta updated. -// We used to invoke mdimport on the bundle but this is not a very good approach. -// There's no need to do that for non-delta updates and for updates that contain no mdimporters. -// Moreover, updating the timestamp on the mdimporter bundles is what developers have to do anyway when shipping their new update outside of Sparkle -+ (void)updateSpotlightImportersAtBundlePath:(NSString *)targetPath -{ - NSURL *targetURL = [NSURL fileURLWithPath:targetPath]; - // Only recurse if it's actually a directory. Don't recurse into a - // root-level symbolic link. - NSDictionary *rootAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:targetPath error:nil]; - NSString *rootType = [rootAttributes objectForKey:NSFileType]; - - if ([rootType isEqualToString:NSFileTypeDirectory]) { - // The NSDirectoryEnumerator will avoid recursing into any contained - // symbolic links, so no further type checks are needed. - NSDirectoryEnumerator *directoryEnumerator = [[NSFileManager defaultManager] enumeratorAtURL:targetURL includingPropertiesForKeys:nil options:(NSDirectoryEnumerationOptions)0 errorHandler:nil]; - - NSMutableArray *filesToUpdate = [[NSMutableArray alloc] init]; - for (NSURL *file in directoryEnumerator) { - if ([file.pathExtension isEqualToString:@"mdimporter"]) { - [filesToUpdate addObject:file]; - } - } - - SUFileManager *fileManager = [SUFileManager defaultManager]; - for (NSURL *file in filesToUpdate) { - NSError *error = nil; - if (![fileManager updateModificationAndAccessTimeOfItemAtURL:file error:&error]) { - SULog(@"Error: During delta unarchiving, failed to touch %@", error); - } - } - } -} - -- (void)applyBinaryDelta -{ - @autoreleasepool { - NSString *sourcePath = self.updateHostBundlePath; - NSString *targetPath = [[self.archivePath stringByDeletingLastPathComponent] stringByAppendingPathComponent:[sourcePath lastPathComponent]]; - - NSError *applyDiffError = nil; - BOOL success = applyBinaryDelta(sourcePath, targetPath, self.archivePath, NO, &applyDiffError); - if (success) { - [[self class] updateSpotlightImportersAtBundlePath:targetPath]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [self notifyDelegateOfSuccess]; - }); - } - else { - SULog(@"Applying delta patch failed with error: %@", applyDiffError); - dispatch_async(dispatch_get_main_queue(), ^{ - [self notifyDelegateOfFailure]; - }); - } - } -} - -- (void)start -{ - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - [self applyBinaryDelta]; - }); -} - -+ (void)load -{ - [self registerImplementation:self]; -} - -@end diff --git a/Sparkle/Sparkle/SUCodeSigningVerifier.h b/Sparkle/Sparkle/SUCodeSigningVerifier.h deleted file mode 100755 index bae76685..00000000 --- a/Sparkle/Sparkle/SUCodeSigningVerifier.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// SUCodeSigningVerifier.h -// Sparkle -// -// Created by Andy Matuschak on 7/5/12. -// -// - -#ifndef SUCODESIGNINGVERIFIER_H -#define SUCODESIGNINGVERIFIER_H - -#import - -@interface SUCodeSigningVerifier : NSObject -+ (BOOL)codeSignatureAtBundleURL:(NSURL *)oldBundlePath matchesSignatureAtBundleURL:(NSURL *)newBundlePath error:(NSError **)error; -+ (BOOL)codeSignatureIsValidAtBundleURL:(NSURL *)bundlePath error:(NSError **)error; -+ (BOOL)bundleAtURLIsCodeSigned:(NSURL *)bundlePath; -@end - -#endif diff --git a/Sparkle/Sparkle/SUCodeSigningVerifier.m b/Sparkle/Sparkle/SUCodeSigningVerifier.m deleted file mode 100755 index 1da556f2..00000000 --- a/Sparkle/Sparkle/SUCodeSigningVerifier.m +++ /dev/null @@ -1,161 +0,0 @@ -// -// SUCodeSigningVerifier.m -// Sparkle -// -// Created by Andy Matuschak on 7/5/12. -// -// - -#include -#include -#import "SUCodeSigningVerifier.h" -#import "SULog.h" - -@implementation SUCodeSigningVerifier - -+ (BOOL)codeSignatureAtBundleURL:(NSURL *)oldBundleURL matchesSignatureAtBundleURL:(NSURL *)newBundleURL error:(NSError *__autoreleasing *)error -{ - OSStatus result; - SecRequirementRef requirement = NULL; - SecStaticCodeRef staticCode = NULL; - SecStaticCodeRef oldCode = NULL; - CFErrorRef cfError = NULL; - if (error) { - *error = nil; - } - - result = SecStaticCodeCreateWithPath((__bridge CFURLRef)oldBundleURL, kSecCSDefaultFlags, &oldCode); - if (result == errSecCSUnsigned) { - return NO; - } - - result = SecCodeCopyDesignatedRequirement(oldCode, kSecCSDefaultFlags, &requirement); - if (result != noErr) { - SULog(@"Failed to copy designated requirement. Code Signing OSStatus code: %d", result); - goto finally; - } - - result = SecStaticCodeCreateWithPath((__bridge CFURLRef)newBundleURL, kSecCSDefaultFlags, &staticCode); - if (result != noErr) { - SULog(@"Failed to get static code %d", result); - goto finally; - } - - // Note that kSecCSCheckNestedCode may not work with pre-Mavericks code signing. - // See https://github.com/sparkle-project/Sparkle/issues/376#issuecomment-48824267 and https://developer.apple.com/library/mac/technotes/tn2206 - // Aditionally, there are several reasons to stay away from deep verification and to prefer DSA signing the download archive instead. - // See https://github.com/sparkle-project/Sparkle/pull/523#commitcomment-17549302 and https://github.com/sparkle-project/Sparkle/issues/543 - SecCSFlags flags = (SecCSFlags) (kSecCSDefaultFlags | kSecCSCheckAllArchitectures); - result = SecStaticCodeCheckValidityWithErrors(staticCode, flags, requirement, &cfError); - - if (cfError) { - NSError *tmpError = CFBridgingRelease(cfError); - if (error) *error = tmpError; - } - - if (result != noErr) { - if (result == errSecCSUnsigned) { - SULog(@"The host app is signed, but the new version of the app is not signed using Apple Code Signing. Please ensure that the new app is signed and that archiving did not corrupt the signature."); - } - if (result == errSecCSReqFailed) { - CFStringRef requirementString = nil; - if (SecRequirementCopyString(requirement, kSecCSDefaultFlags, &requirementString) == noErr) { - SULog(@"Code signature of the new version doesn't match the old version: %@. Please ensure that old and new app is signed using exactly the same certificate.", requirementString); - CFRelease(requirementString); - } - - [self logSigningInfoForCode:oldCode label:@"old info"]; - [self logSigningInfoForCode:staticCode label:@"new info"]; - } - } - -finally: - if (oldCode) CFRelease(oldCode); - if (staticCode) CFRelease(staticCode); - if (requirement) CFRelease(requirement); - return (result == noErr); -} - -+ (BOOL)codeSignatureIsValidAtBundleURL:(NSURL *)bundleURL error:(NSError *__autoreleasing *)error -{ - OSStatus result; - SecStaticCodeRef staticCode = NULL; - CFErrorRef cfError = NULL; - if (error) { - *error = nil; - } - - result = SecStaticCodeCreateWithPath((__bridge CFURLRef)bundleURL, kSecCSDefaultFlags, &staticCode); - if (result != noErr) { - SULog(@"Failed to get static code %d", result); - goto finally; - } - - // See in -codeSignatureAtBundleURL:matchesSignatureAtBundleURL:error: for why kSecCSCheckNestedCode is not passed - SecCSFlags flags = (SecCSFlags) (kSecCSDefaultFlags | kSecCSCheckAllArchitectures); - result = SecStaticCodeCheckValidityWithErrors(staticCode, flags, NULL, &cfError); - - if (cfError) { - NSError *tmpError = CFBridgingRelease(cfError); - if (error) *error = tmpError; - } - - if (result != noErr) { - if (result == errSecCSUnsigned) { - SULog(@"Error: The app is not signed using Apple Code Signing. %@", bundleURL); - } - if (result == errSecCSReqFailed) { - [self logSigningInfoForCode:staticCode label:@"new info"]; - } - } - -finally: - if (staticCode) CFRelease(staticCode); - return (result == noErr); -} - -static id valueOrNSNull(id value) { - return value ? value : [NSNull null]; -} - -+ (void)logSigningInfoForCode:(SecStaticCodeRef)code label:(NSString*)label { - CFDictionaryRef signingInfo = nil; - const SecCSFlags flags = (SecCSFlags) (kSecCSSigningInformation | kSecCSRequirementInformation | kSecCSDynamicInformation | kSecCSContentInformation); - if (SecCodeCopySigningInformation(code, flags, &signingInfo) == noErr) { - NSDictionary *signingDict = CFBridgingRelease(signingInfo); - NSMutableDictionary *relevantInfo = [NSMutableDictionary dictionary]; - for (NSString *key in @[@"format", @"identifier", @"requirements", @"teamid", @"signing-time"]) { - [relevantInfo setObject:valueOrNSNull([signingDict objectForKey:key]) forKey:key]; - } - NSDictionary *infoPlist = [signingDict objectForKey:@"info-plist"]; - [relevantInfo setObject:valueOrNSNull([infoPlist objectForKey:@"CFBundleShortVersionString"]) forKey:@"version"]; - [relevantInfo setObject:valueOrNSNull([infoPlist objectForKey:(__bridge NSString *)kCFBundleVersionKey]) forKey:@"build"]; - SULog(@"%@: %@", label, relevantInfo); - } -} - -+ (BOOL)bundleAtURLIsCodeSigned:(NSURL *)bundleURL -{ - OSStatus result; - SecStaticCodeRef staticCode = NULL; - - result = SecStaticCodeCreateWithPath((__bridge CFURLRef)bundleURL, kSecCSDefaultFlags, &staticCode); - if (result == errSecCSUnsigned) { - return NO; - } - - SecRequirementRef requirement = NULL; - result = SecCodeCopyDesignatedRequirement(staticCode, kSecCSDefaultFlags, &requirement); - if (staticCode) { - CFRelease(staticCode); - } - if (requirement) { - CFRelease(requirement); - } - if (result == errSecCSUnsigned) { - return NO; - } - return (result == 0); -} - -@end diff --git a/Sparkle/Sparkle/SUConstants.h b/Sparkle/Sparkle/SUConstants.h deleted file mode 100755 index fe2dfd2c..00000000 --- a/Sparkle/Sparkle/SUConstants.h +++ /dev/null @@ -1,83 +0,0 @@ -// -// SUConstants.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - - -#ifndef SUCONSTANTS_H -#define SUCONSTANTS_H - -#import - -// ----------------------------------------------------------------------------- -// Misc: -// ----------------------------------------------------------------------------- - -extern const NSTimeInterval SUMinimumUpdateCheckInterval; -extern const NSTimeInterval SUDefaultUpdateCheckInterval; - -extern NSString *const SUBundleIdentifier; - -// ----------------------------------------------------------------------------- -// Notifications: -// ----------------------------------------------------------------------------- - -extern NSString *const SUTechnicalErrorInformationKey; - -// ----------------------------------------------------------------------------- -// PList keys:: -// ----------------------------------------------------------------------------- - -extern NSString *const SUFeedURLKey; -extern NSString *const SUHasLaunchedBeforeKey; -extern NSString *const SUShowReleaseNotesKey; -extern NSString *const SUSkippedVersionKey; -extern NSString *const SUScheduledCheckIntervalKey; -extern NSString *const SULastCheckTimeKey; -extern NSString *const SUExpectsDSASignatureKey; -extern NSString *const SUPublicDSAKeyKey; -extern NSString *const SUPublicDSAKeyFileKey; -extern NSString *const SUAutomaticallyUpdateKey; -extern NSString *const SUAllowsAutomaticUpdatesKey; -extern NSString *const SUEnableAutomaticChecksKey; -extern NSString *const SUEnableSystemProfilingKey; -extern NSString *const SUSendProfileInfoKey; -extern NSString *const SULastProfileSubmitDateKey; -extern NSString *const SUPromptUserOnFirstLaunchKey; -extern NSString *const SUKeepDownloadOnFailedInstallKey; -extern NSString *const SUDefaultsDomainKey; -extern NSString *const SUEnableJavaScriptKey; -extern NSString *const SUFixedHTMLDisplaySizeKey __attribute__((deprecated("This key is obsolete and has no effect."))); -extern NSString *const SUAppendVersionNumberKey __attribute__((deprecated("This key is obsolete. See SPARKLE_APPEND_VERSION_NUMBER."))); -extern NSString *const SUEnableAutomatedDowngradesKey __attribute__((deprecated("This key is obsolete. See SPARKLE_AUTOMATED_DOWNGRADES."))); -extern NSString *const SUNormalizeInstalledApplicationNameKey __attribute__((deprecated("This key is obsolete. SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME."))); -extern NSString *const SURelaunchToolNameKey __attribute__((deprecated("This key is obsolete. SPARKLE_RELAUNCH_TOOL_NAME."))); - -// ----------------------------------------------------------------------------- -// Appcast keys:: -// ----------------------------------------------------------------------------- - -extern NSString *const SUAppcastAttributeDeltaFrom; -extern NSString *const SUAppcastAttributeDSASignature; -extern NSString *const SUAppcastAttributeShortVersionString; -extern NSString *const SUAppcastAttributeVersion; - -extern NSString *const SUAppcastElementCriticalUpdate; -extern NSString *const SUAppcastElementDeltas; -extern NSString *const SUAppcastElementMinimumSystemVersion; -extern NSString *const SUAppcastElementMaximumSystemVersion; -extern NSString *const SUAppcastElementReleaseNotesLink; -extern NSString *const SUAppcastElementTags; - -extern NSString *const SURSSAttributeURL; - -extern NSString *const SURSSElementDescription; -extern NSString *const SURSSElementEnclosure; -extern NSString *const SURSSElementLink; -extern NSString *const SURSSElementPubDate; -extern NSString *const SURSSElementTitle; - -#endif diff --git a/Sparkle/Sparkle/SUConstants.m b/Sparkle/Sparkle/SUConstants.m deleted file mode 100755 index 33aa91fd..00000000 --- a/Sparkle/Sparkle/SUConstants.m +++ /dev/null @@ -1,73 +0,0 @@ -// -// SUConstants.m -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUConstants.h" - -#ifndef DEBUG -#define DEBUG 0 -#endif - -// Define some minimum intervals to avoid DoS-like checking attacks -const NSTimeInterval SUMinimumUpdateCheckInterval = DEBUG ? 60 : (60 * 60); -const NSTimeInterval SUDefaultUpdateCheckInterval = DEBUG ? 60 : (60 * 60 * 24); - -NSString *const SUBundleIdentifier = @SPARKLE_BUNDLE_IDENTIFIER; - -NSString *const SUTechnicalErrorInformationKey = @"SUTechnicalErrorInformation"; - -NSString *const SUHasLaunchedBeforeKey = @"SUHasLaunchedBefore"; -NSString *const SUFeedURLKey = @"SUFeedURL"; -NSString *const SUShowReleaseNotesKey = @"SUShowReleaseNotes"; -NSString *const SUSkippedVersionKey = @"SUSkippedVersion"; -NSString *const SUScheduledCheckIntervalKey = @"SUScheduledCheckInterval"; -NSString *const SULastCheckTimeKey = @"SULastCheckTime"; -NSString *const SUExpectsDSASignatureKey = @"SUExpectsDSASignature"; -NSString *const SUPublicDSAKeyKey = @"SUPublicDSAKey"; -NSString *const SUPublicDSAKeyFileKey = @"SUPublicDSAKeyFile"; -NSString *const SUAutomaticallyUpdateKey = @"SUAutomaticallyUpdate"; -NSString *const SUAllowsAutomaticUpdatesKey = @"SUAllowsAutomaticUpdates"; -NSString *const SUEnableSystemProfilingKey = @"SUEnableSystemProfiling"; -NSString *const SUEnableAutomaticChecksKey = @"SUEnableAutomaticChecks"; -NSString *const SUSendProfileInfoKey = @"SUSendProfileInfo"; -NSString *const SULastProfileSubmitDateKey = @"SULastProfileSubmissionDate"; -NSString *const SUPromptUserOnFirstLaunchKey = @"SUPromptUserOnFirstLaunch"; -NSString *const SUEnableJavaScriptKey = @"SUEnableJavaScript"; -NSString *const SUFixedHTMLDisplaySizeKey = @"SUFixedHTMLDisplaySize"; -NSString *const SUKeepDownloadOnFailedInstallKey = @"SUKeepDownloadOnFailedInstall"; -NSString *const SUDefaultsDomainKey = @"SUDefaultsDomain"; -NSString *const SUSparkleErrorDomain = @"SUSparkleErrorDomain"; - -NSString *const SUAppendVersionNumberKey = @"SUAppendVersionNumber"; -NSString *const SUEnableAutomatedDowngradesKey = @"SUEnableAutomatedDowngrades"; -NSString *const SUNormalizeInstalledApplicationNameKey = @"SUNormalizeInstalledApplicationName"; -NSString *const SURelaunchToolNameKey = @"SURelaunchToolName"; - -NSString *const SUAppcastAttributeDeltaFrom = @"sparkle:deltaFrom"; -NSString *const SUAppcastAttributeDSASignature = @"sparkle:dsaSignature"; -NSString *const SUAppcastAttributeShortVersionString = @"sparkle:shortVersionString"; -NSString *const SUAppcastAttributeVersion = @"sparkle:version"; - -NSString *const SUAppcastElementCriticalUpdate = @"sparkle:criticalUpdate"; -NSString *const SUAppcastElementDeltas = @"sparkle:deltas"; -NSString *const SUAppcastElementMinimumSystemVersion = @"sparkle:minimumSystemVersion"; -NSString *const SUAppcastElementMaximumSystemVersion = @"sparkle:maximumSystemVersion"; -NSString *const SUAppcastElementReleaseNotesLink = @"sparkle:releaseNotesLink"; -NSString *const SUAppcastElementTags = @"sparkle:tags"; - -NSString *const SURSSAttributeURL = @"url"; - -NSString *const SURSSElementDescription = @"description"; -NSString *const SURSSElementEnclosure = @"enclosure"; -NSString *const SURSSElementLink = @"link"; -NSString *const SURSSElementPubDate = @"pubDate"; -NSString *const SURSSElementTitle = @"title"; diff --git a/Sparkle/Sparkle/SUDSAVerifier.h b/Sparkle/Sparkle/SUDSAVerifier.h deleted file mode 100755 index 1b4665b9..00000000 --- a/Sparkle/Sparkle/SUDSAVerifier.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// SUDSAVerifier.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// -// Includes code by Zach Waldowski on 10/18/13. -// Copyright 2014 Big Nerd Ranch. Licensed under MIT. -// -// Includes code from Plop by Mark Hamlin. -// Copyright 2011 Mark Hamlin. Licensed under BSD. -// - -#ifndef SUDSAVERIFIER_H -#define SUDSAVERIFIER_H - -#import - -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1090 -@interface NSData (SUDSAVerifier) -- (id)initWithBase64Encoding:(NSString *)base64String; -@end -#endif - -@interface SUDSAVerifier : NSObject - -+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString; - -- (instancetype)initWithPublicKeyData:(NSData *)data; - -- (BOOL)verifyFileAtPath:(NSString *)path signature:(NSData *)signature; -- (BOOL)verifyStream:(NSInputStream *)stream signature:(NSData *)signature; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUDSAVerifier.m b/Sparkle/Sparkle/SUDSAVerifier.m deleted file mode 100755 index fa5f9934..00000000 --- a/Sparkle/Sparkle/SUDSAVerifier.m +++ /dev/null @@ -1,165 +0,0 @@ -// -// SUDSAVerifier.m -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// -// Includes code by Zach Waldowski on 10/18/13. -// Copyright 2014 Big Nerd Ranch. Licensed under MIT. -// -// Includes code from Plop by Mark Hamlin. -// Copyright 2011 Mark Hamlin. Licensed under BSD. -// - -#import "SUDSAVerifier.h" -#import "SULog.h" -#include - -@implementation SUDSAVerifier { - SecKeyRef _secKey; -} - -+ (BOOL)validatePath:(NSString *)path withEncodedDSASignature:(NSString *)encodedSignature withPublicDSAKey:(NSString *)pkeyString -{ - if (!encodedSignature) { - SULog(@"There is no DSA signature to check"); - return NO; - } - - if (!path) { - return NO; - } - - SUDSAVerifier *verifier = [[self alloc] initWithPublicKeyData:[pkeyString dataUsingEncoding:NSUTF8StringEncoding]]; - - if (!verifier) { - return NO; - } - - NSString *strippedSignature = [encodedSignature stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceAndNewlineCharacterSet]; - NSData *signature = [[NSData alloc] initWithBase64Encoding:strippedSignature]; - return [verifier verifyFileAtPath:path signature:signature]; -} - -- (instancetype)initWithPublicKeyData:(NSData *)data -{ - self = [super init]; - - if (!self || !data.length) { - SULog(@"Could not read public DSA key"); - return nil; - } - - SecExternalFormat format = kSecFormatOpenSSL; - SecExternalItemType itemType = kSecItemTypePublicKey; - CFArrayRef items = NULL; - - OSStatus status = SecItemImport((__bridge CFDataRef)data, NULL, &format, &itemType, (SecItemImportExportFlags)0, NULL, NULL, &items); - if (status != errSecSuccess || !items) { - if (items) { - CFRelease(items); - } - SULog(@"Public DSA key could not be imported: %d", status); - return nil; - } - - if (format == kSecFormatOpenSSL && itemType == kSecItemTypePublicKey && CFArrayGetCount(items) == 1) { - // Seems silly, but we can't quiet the warning about dropping CFTypeRef's const qualifier through - // any manner of casting I've tried, including interim explicit cast to void*. The -Wcast-qual - // warning is on by default with -Weverything and apparently became more noisy as of Xcode 7. -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wcast-qual" - _secKey = (SecKeyRef)CFRetain(CFArrayGetValueAtIndex(items, 0)); -#pragma clang diagnostic pop - } - - CFRelease(items); - - return self; -} - -- (void)dealloc -{ - if (_secKey) { - CFRelease(_secKey); - } -} - -- (BOOL)verifyFileAtPath:(NSString *)path signature:(NSData *)signature -{ - if (!path.length) { - return NO; - } - NSInputStream *dataInputStream = [NSInputStream inputStreamWithFileAtPath:path]; - return [self verifyStream:dataInputStream signature:signature]; -} - -- (BOOL)verifyStream:(NSInputStream *)stream signature:(NSData *)signature -{ - if (!stream || !signature) { - return NO; - } - - __block SecGroupTransformRef group = SecTransformCreateGroupTransform(); - __block SecTransformRef dataReadTransform = NULL; - __block SecTransformRef dataDigestTransform = NULL; - __block SecTransformRef dataVerifyTransform = NULL; - __block CFErrorRef error = NULL; - - BOOL (^cleanup)(void) = ^{ - if (group) CFRelease(group); - if (dataReadTransform) CFRelease(dataReadTransform); - if (dataDigestTransform) CFRelease(dataDigestTransform); - if (dataVerifyTransform) CFRelease(dataVerifyTransform); - if (error) CFRelease(error); - return NO; - }; - - dataReadTransform = SecTransformCreateReadTransformWithReadStream((__bridge CFReadStreamRef)stream); - if (!dataReadTransform) { - SULog(@"File containing update archive could not be read (failed to create SecTransform for input stream)"); - return cleanup(); - } - - dataDigestTransform = SecDigestTransformCreate(kSecDigestSHA1, CC_SHA1_DIGEST_LENGTH, NULL); - if (!dataDigestTransform) { - return cleanup(); - } - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdirect-ivar-access" - dataVerifyTransform = SecVerifyTransformCreate(_secKey, (__bridge CFDataRef)signature, &error); -#pragma clang diagnostic pop - if (!dataVerifyTransform || error) { - SULog(@"Could not understand format of the signature: %@; Signature data: %@", error, signature); - return cleanup(); - } - - SecTransformConnectTransforms(dataReadTransform, kSecTransformOutputAttributeName, dataDigestTransform, kSecTransformInputAttributeName, group, &error); - if (error) { - SULog(@"%@", error); - return cleanup(); - } - - SecTransformConnectTransforms(dataDigestTransform, kSecTransformOutputAttributeName, dataVerifyTransform, kSecTransformInputAttributeName, group, &error); - if (error) { - SULog(@"%@", error); - return cleanup(); - } - - NSNumber *result = CFBridgingRelease(SecTransformExecute(group, &error)); - if (error) { - SULog(@"DSA signature verification failed: %@", error); - return cleanup(); - } - - if (!result.boolValue) { - SULog(@"DSA signature does not match. Data of the update file being checked is different than data that has been signed, or the public key and the private key are not from the same set."); - } - - cleanup(); - return result.boolValue; -} - -@end diff --git a/Sparkle/Sparkle/SUDiskImageUnarchiver.h b/Sparkle/Sparkle/SUDiskImageUnarchiver.h deleted file mode 100755 index 7a8e9167..00000000 --- a/Sparkle/Sparkle/SUDiskImageUnarchiver.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUDiskImageUnarchiver.h -// Sparkle -// -// Created by Andy Matuschak on 6/16/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUDISKIMAGEUNARCHIVER_H -#define SUDISKIMAGEUNARCHIVER_H - -#import -#import "SUUnarchiver.h" - -@interface SUDiskImageUnarchiver : SUUnarchiver - -@end - -#endif diff --git a/Sparkle/Sparkle/SUDiskImageUnarchiver.m b/Sparkle/Sparkle/SUDiskImageUnarchiver.m deleted file mode 100755 index e6f743e7..00000000 --- a/Sparkle/Sparkle/SUDiskImageUnarchiver.m +++ /dev/null @@ -1,206 +0,0 @@ -// -// SUDiskImageUnarchiver.m -// Sparkle -// -// Created by Andy Matuschak on 6/16/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUDiskImageUnarchiver.h" -#import "SUUnarchiver_Private.h" -#import "SULog.h" -#include - -@implementation SUDiskImageUnarchiver - -+ (BOOL)canUnarchivePath:(NSString *)path -{ - return [[path pathExtension] isEqualToString:@"dmg"]; -} - -+ (BOOL)unsafeIfArchiveIsNotValidated -{ - return NO; -} - -// Called on a non-main thread. -- (void)extractDMG -{ - @autoreleasepool { - [self extractDMGWithPassword:nil]; - } -} - -// Called on a non-main thread. -- (void)extractDMGWithPassword:(NSString *)__unused password -{ - @autoreleasepool { - BOOL mountedSuccessfully = NO; - - SULog(@"Extracting %@ as a DMG", self.archivePath); - - // get a unique mount point path - NSString *mountPoint = nil; - FSRef tmpRef; - NSFileManager *manager; - NSError *error; - NSArray *contents; - // We have to declare these before a goto to prevent an error under ARC. - // No, we cannot have them in the dispatch_async calls, as the goto "jump enters - // lifetime of block which strongly captures a variable" - dispatch_block_t delegateFailure = ^{ - [self notifyDelegateOfFailure]; - }; - dispatch_block_t delegateSuccess = ^{ - [self notifyDelegateOfSuccess]; - }; - do - { - // Using NSUUID would make creating UUIDs be done in Cocoa, - // and thus managed under ARC. Sadly, the class is in 10.8 and later. - CFUUIDRef uuid = CFUUIDCreate(NULL); - if (uuid) - { - NSString *uuidString = CFBridgingRelease(CFUUIDCreateString(NULL, uuid)); - if (uuidString) - { - mountPoint = [@"/Volumes" stringByAppendingPathComponent:uuidString]; - } - CFRelease(uuid); - } - } - while (noErr == FSPathMakeRefWithOptions((const UInt8 *)[mountPoint fileSystemRepresentation], kFSPathMakeRefDoNotFollowLeafSymlink, &tmpRef, NULL)); - - NSData *promptData = nil; - promptData = [NSData dataWithBytes:"yes\n" length:4]; - - NSMutableArray *arguments = [@[@"attach", self.archivePath, @"-mountpoint", mountPoint, /*@"-noverify",*/ @"-nobrowse", @"-noautoopen"] mutableCopy]; - - if (self.decryptionPassword) { - NSMutableData *passwordData = [[self.decryptionPassword dataUsingEncoding:NSUTF8StringEncoding] mutableCopy]; - // From the hdiutil docs: - // read a null-terminated passphrase from standard input - // - // Add the null terminator, then the newline - [passwordData appendData:[NSData dataWithBytes:"\0" length:1]]; - [passwordData appendData:promptData]; - promptData = passwordData; - - [arguments addObject:@"-stdinpass"]; - } - - NSData *output = nil; - NSInteger taskResult = -1; - @try - { - NSTask *task = [[NSTask alloc] init]; - task.launchPath = @"/usr/bin/hdiutil"; - task.currentDirectoryPath = @"/"; - task.arguments = arguments; - - NSPipe *inputPipe = [NSPipe pipe]; - NSPipe *outputPipe = [NSPipe pipe]; - - task.standardInput = inputPipe; - task.standardOutput = outputPipe; - - [task launch]; - - [inputPipe.fileHandleForWriting writeData:promptData]; - [inputPipe.fileHandleForWriting closeFile]; - - // Read data to end *before* waiting until the task ends so we don't deadlock if the stdout buffer becomes full if we haven't consumed from it - output = [outputPipe.fileHandleForReading readDataToEndOfFile]; - - [task waitUntilExit]; - taskResult = task.terminationStatus; - } - @catch (NSException *) - { - goto reportError; - } - - if (taskResult != 0) - { - NSString *resultStr = output ? [[NSString alloc] initWithData:output encoding:NSUTF8StringEncoding] : nil; - SULog(@"hdiutil failed with code: %ld data: <<%@>>", (long)taskResult, resultStr); - goto reportError; - } - mountedSuccessfully = YES; - - // Now that we've mounted it, we need to copy out its contents. - manager = [[NSFileManager alloc] init]; - contents = [manager contentsOfDirectoryAtPath:mountPoint error:&error]; - if (error) - { - SULog(@"Couldn't enumerate contents of archive mounted at %@: %@", mountPoint, error); - goto reportError; - } - - for (NSString *item in contents) - { - NSString *fromPath = [mountPoint stringByAppendingPathComponent:item]; - NSString *toPath = [[self.archivePath stringByDeletingLastPathComponent] stringByAppendingPathComponent:item]; - - // We skip any files in the DMG which are not readable. - if (![manager isReadableFileAtPath:fromPath]) { - continue; - } - - SULog(@"copyItemAtPath:%@ toPath:%@", fromPath, toPath); - - if (![manager copyItemAtPath:fromPath toPath:toPath error:&error]) - { - SULog(@"Couldn't copy item: %@ : %@", error, error.userInfo ? error.userInfo : @""); - goto reportError; - } - } - - dispatch_async(dispatch_get_main_queue(), delegateSuccess); - goto finally; - - reportError: - dispatch_async(dispatch_get_main_queue(), delegateFailure); - - finally: - if (mountedSuccessfully) { - @try { - [NSTask launchedTaskWithLaunchPath:@"/usr/bin/hdiutil" arguments:@[@"detach", mountPoint, @"-force"]]; - } @catch (NSException *exception) { - SULog(@"Failed to unmount %@", mountPoint); - SULog(@"Exception: %@", exception); - } - } else { - SULog(@"Can't mount DMG %@", self.archivePath); - } - } -} - -- (void)start -{ - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - [self extractDMG]; - }); -} - -+ (void)load -{ - [self registerImplementation:self]; -} - -- (BOOL)isEncrypted:(NSData *)resultData -{ - BOOL result = NO; - if(resultData) - { - NSString *data = [[NSString alloc] initWithData:resultData encoding:NSUTF8StringEncoding]; - - if ((data != nil) && !NSEqualRanges([data rangeOfString:@"passphrase-count"], NSMakeRange(NSNotFound, 0))) - { - result = YES; - } - } - return result; -} - -@end diff --git a/Sparkle/Sparkle/SUErrors.h b/Sparkle/Sparkle/SUErrors.h deleted file mode 100755 index 8557d7fb..00000000 --- a/Sparkle/Sparkle/SUErrors.h +++ /dev/null @@ -1,53 +0,0 @@ -// -// SUErrors.h -// Sparkle -// -// Created by C.W. Betts on 10/13/14. -// Copyright (c) 2014 Sparkle Project. All rights reserved. -// - -#ifndef SUERRORS_H -#define SUERRORS_H - -#if __has_feature(modules) -@import Foundation; -#else -#import -#endif -#import "SUExport.h" - -/** - * Error domain used by Sparkle - */ -SU_EXPORT extern NSString *const SUSparkleErrorDomain; - -typedef NS_ENUM(OSStatus, SUError) { - // Appcast phase errors. - SUAppcastParseError = 1000, - SUNoUpdateError = 1001, - SUAppcastError = 1002, - SURunningFromDiskImageError = 1003, - - // Download phase errors. - SUTemporaryDirectoryError = 2000, - SUDownloadError = 2001, - - // Extraction phase errors. - SUUnarchivingError = 3000, - SUSignatureError = 3001, - - // Installation phase errors. - SUFileCopyFailure = 4000, - SUAuthenticationFailure = 4001, - SUMissingUpdateError = 4002, - SUMissingInstallerToolError = 4003, - SURelaunchError = 4004, - SUInstallationError = 4005, - SUDowngradeError = 4006, - SUInstallationCancelledError = 4007, - - // System phase errors - SUSystemPowerOffError = 5000 -}; - -#endif diff --git a/Sparkle/Sparkle/SUExport.h b/Sparkle/Sparkle/SUExport.h deleted file mode 100755 index 3e3f8a16..00000000 --- a/Sparkle/Sparkle/SUExport.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// SUExport.h -// Sparkle -// -// Created by Jake Petroules on 2014-08-23. -// Copyright (c) 2014 Sparkle Project. All rights reserved. -// - -#ifndef SUEXPORT_H -#define SUEXPORT_H - -#ifdef BUILDING_SPARKLE -#define SU_EXPORT __attribute__((visibility("default"))) -#else -#define SU_EXPORT -#endif - -#endif diff --git a/Sparkle/Sparkle/SUFileManager.h b/Sparkle/Sparkle/SUFileManager.h deleted file mode 100755 index 6aa0f9af..00000000 --- a/Sparkle/Sparkle/SUFileManager.h +++ /dev/null @@ -1,171 +0,0 @@ -// -// SUFileManager.h -// Sparkle -// -// Created by Mayur Pawashe on 7/18/15. -// Copyright (c) 2015 zgcoder. All rights reserved. -// - -#import - -/** - * A class used for performing file operations that may also perform authorization if allowed and if permission is denied when trying to - * perform them normally as the running user. All operations on this class may be used on thread other than the main thread. - * This class provides basic file operations and stays away from including much application-level logic. - */ -@interface SUFileManager : NSObject - -/** -* Creates a file manager that will not authorize for file operations -* @return A new file manager instance -*/ -+ (instancetype)defaultManager; - -/** - * Creates a file manager that allows authorizing for file operations - * @param authorizationToolPath Specifies the path to the tool that can perform file operations and be run as root. - * This tool will be invoked when read or write access is denied when attempting ordinary file operations. See the `fileop` tool included in Sparkle. - * @return A new file manager instance - * - * This method just creates the file manager. It doesn't acquire authorization immediately or if it doesn't need to. - */ -+ (instancetype)fileManagerWithAuthorizationToolPath:(NSString *)authorizationToolPath; - -/** - * Returns a file manager that allows or disallows authorizing for file operations based on the current file manager - * @return A file manager instance that can perform authorized operations if the current file manager has already performed them. - * If the current file manager instance hasn't yet performed authorized operations, then neither can the instance returned by this method - * - * This may return a newly created file manager or re-use the existing file manager depending on the current authorization rights. - */ -- (instancetype)fileManagerByPreservingAuthorizationRights; - -/** - * Creates a temporary directory on the same volume as a provided URL - * @param preferredName A name that may be used when creating the temporary directory. Note that in the uncommon case this name is used, the temporary directory will be created inside the directory pointed by appropriateURL - * @param appropriateURL A URL to a directory that resides on the volume that the temporary directory will be created on. In the uncommon case, the temporary directory may be created inside this directory. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return A URL pointing to the newly created temporary directory, or nil with a populated error object if an error occurs. - * - * When moving an item from a source to a destination, it is desirable to create a temporary intermediate destination on the same volume as the destination to ensure - * that the item will be moved, and not copied, from the intermediate point to the final destination. This ensures file atomicity. - */ -- (NSURL *)makeTemporaryDirectoryWithPreferredName:(NSString *)preferredName appropriateForDirectoryURL:(NSURL *)appropriateURL error:(NSError **)error; - -/** - * Creates a directory at the target URL - * @param targetURL A URL pointing to the directory to create. The item at this URL must not exist, and the parent directory of this URL must already exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the item was created successfully, otherwise NO along with a populated error object - * - * This is an atomic operation. - */ -- (BOOL)makeDirectoryAtURL:(NSURL *)targetURL error:(NSError **)error; - -/** - * Moves an item from a source to a destination - * @param sourceURL A URL pointing to the item to move. The item at this URL must exist. - * @param destinationURL A URL pointing to the destination the item will be moved at. An item must not already exist at this URL. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the item was moved successfully, otherwise NO along with a populated error object - * - * If sourceURL and destinationURL reside on the same volume, this operation will be an atomic move operation. - * Otherwise this will be equivalent to a copy & remove which will be a nonatomic operation. - */ -- (BOOL)moveItemAtURL:(NSURL *)sourceURL toURL:(NSURL *)destinationURL error:(NSError **)error; - -/** - * Copies an item from a source to a destination - * @param sourceURL A URL pointing to the item to move. The item at this URL must exist. - * @param destinationURL A URL pointing to the destination the item will be moved at. An item must not already exist at this URL. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the item was copied successfully, otherwise NO along with a populated error object - * - * This is not an atomic operation. - */ -- (BOOL)copyItemAtURL:(NSURL *)sourceURL toURL:(NSURL *)destinationURL error:(NSError **)error; - -/** - * Moves an item at a specified URL to the running user's trash directory - * @param url A URL pointing to the item to move to the trash. The item at this URL must exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the item was moved to the trash successfully, otherwise NO along with a populated error object - * - * - * This method has to locate the trash directory and uses an intermediate temporary directory before trashing the item. - * A copy may have to be done if the url is not on the same volume as the running user's trash directory. - * If a failure occurs in the middle of this operation, the item to remove may be lost forever or stuck in a temporary location. - * - * This is not an atomic operation, nor intended to be a recoverable operation if the worst comes to worst. - */ -- (BOOL)moveItemAtURLToTrash:(NSURL *)url error:(NSError **)error; - -/** - * Removes an item at a URL - * @param url A URL pointing to the item to remove. The item at this URL must exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the item was removed successfully, otherwise NO along with a populated error object - * - * This is not an atomic operation. - */ -- (BOOL)removeItemAtURL:(NSURL *)url error:(NSError **)error; - -/** - * Changes the owner and group IDs of an item at a specified target URL to match another URL - * @param targetURL A URL pointing to the target item whose owner and group IDs to alter. This will be applied recursively if the item is a directory. The item at this URL must exist. - * @param matchURL A URL pointing to the item whose owner and group IDs will be used for changing on the targetURL. The item at this URL must exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the target item's owner and group IDs have changed to match the origin's ones, otherwise NO along with a populated error object - * - * If the owner and group IDs match on the root items of targetURL and matchURL, this method stops and assumes that nothing needs to be done. - * Otherwise this method recursively changes the IDs if the target is a directory. If an item in the directory is encountered that is unable to be changed, - * then this method stops and returns NO. - * - * This is not an atomic operation. - */ -- (BOOL)changeOwnerAndGroupOfItemAtRootURL:(NSURL *)targetURL toMatchURL:(NSURL *)matchURL error:(NSError **)error; - -/** - * Updates the modification and access time of an item at a specified target URL to the current time - * @param targetURL A URL pointing to the target item whose modification and access time to update. The item at this URL must exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the target item's modification and access times have been updated, otherwise NO along with a populated error object - * - * This method updates the modification and access time of an item to the current time, ideal for letting the system know we installed a new file or - * application. - * - * This is not an atomic operation. - */ -- (BOOL)updateModificationAndAccessTimeOfItemAtURL:(NSURL *)targetURL error:(NSError **)error; - -/** - * Releases Apple's quarantine extended attribute from the item at the specified root URL - * @param rootURL A URL pointing to the item to release from Apple's quarantine. This will be applied recursively if the item is a directory. The item at this URL must exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if all the items at the target could be released from quarantine, otherwise NO if any items couldn't along with a populated error object - * - * This method removes quarantine attributes from an item, ideally an application, so that when the user launches a new application themselves, they - * don't have to witness the system dialog alerting them that they downloaded an application from the internet and asking if they want to continue. - * Note that this may not exactly mimic the system behavior when a user opens an application for the first time (i.e, the xattr isn't deleted), - * but this should be sufficient enough for our purposes. - * - * This method may return NO even if some items do get released from quarantine if the target URL is pointing to a directory. - * Thus if an item cannot be released from quarantine, this method still continues on to the next enumerated item. - * - * This is not an atomic operation. - */ -- (BOOL)releaseItemFromQuarantineAtRootURL:(NSURL *)rootURL error:(NSError **)error; - -/** - * Runs an installer package (pkg) in a headless mode using /usr/sbin/installer - * @param packageURL A URL pointing to the package to execute. The item at this URL must exist. - * @param error If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL. - * @return YES if the installer ran the package successfully, otherwise NO with a populated error object - * - * This method uses the system wide installer tool to run the provided package. This process does not show any UI, except for - * an initial authorization prompt if the calling process does not have root privileges. In other words, root privileges are required to use this method, and the file manager instance must have been created by allowing authorization. - * An error can occur if the package is unable to be ran by the installer, or if the installer reports a non-zero exit status code. - */ -- (BOOL)executePackageAtURL:(NSURL *)packageURL error:(NSError **)error; - -@end diff --git a/Sparkle/Sparkle/SUFileManager.m b/Sparkle/Sparkle/SUFileManager.m deleted file mode 100755 index 6488e016..00000000 --- a/Sparkle/Sparkle/SUFileManager.m +++ /dev/null @@ -1,1036 +0,0 @@ -// -// SUFileManager.m -// Sparkle -// -// Created by Mayur Pawashe on 7/18/15. -// Copyright (c) 2015 zgcoder. All rights reserved. -// - -#import "SUFileManager.h" -#import "SUOperatingSystem.h" -#import "SUFileOperationConstants.h" - -#include -#include -#include - -static char SUAppleQuarantineIdentifier[] = "com.apple.quarantine"; - -static BOOL SUMakeRefFromURL(NSURL *url, FSRef *ref, NSError **error) { - - char path[PATH_MAX] = {0}; - if (![url.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"URL of the file (%@) cannot be represented as a file path", url.lastPathComponent] }]; - } - return NO; - } - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - OSStatus makeResult = FSPathMakeRefWithOptions((const UInt8 *)path, kFSPathMakeRefDoNotFollowLeafSymlink, ref, NULL); -#pragma clang diagnostic pop - if (makeResult != noErr) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:makeResult userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to create file system reference for %@", url.lastPathComponent] }]; - } - return NO; - } - return YES; -} - -// Used to indicate if the type of NSError requires us to attempt to peform the same operation again except with authentication -// To be safe, both read and write permission denied's are included because Cocoa's error methods are not very well documented -// and at least one case is caused from lack of read permissions (-[NSURL setResourceValue:forKey:error:]) -#define NS_HAS_PERMISSION_ERROR(error) (error.code == NSFileReadNoPermissionError || error.code == NSFileWriteNoPermissionError) - -#pragma clang diagnostic push -// Use direct access because it's easier, clearer, and faster -#pragma clang diagnostic ignored "-Wdirect-ivar-access" - -@implementation SUFileManager -{ - AuthorizationRef _auth; - NSFileManager *_fileManager; - NSString *_authorizationToolPath; -} - -- (instancetype)initWithAuthorizationToolPath:(NSString *)authorizationToolPath -{ - self = [super init]; - if (self != nil) { - _fileManager = [[NSFileManager alloc] init]; - _authorizationToolPath = [authorizationToolPath copy]; - } - return self; -} - -+ (instancetype)defaultManager -{ - return [[self alloc] initWithAuthorizationToolPath:nil]; -} - -+ (instancetype)fileManagerWithAuthorizationToolPath:(NSString *)authorizationToolPath -{ - return [[self alloc] initWithAuthorizationToolPath:authorizationToolPath]; -} - -- (instancetype)fileManagerByPreservingAuthorizationRights -{ - // Check if we don't allow authorization, or that we haven't needed to authorize yet, to create or re-use a - // file manager instance with these restrictions - return (_authorizationToolPath != nil && _auth != NULL) ? self : [SUFileManager defaultManager]; -} - -// Acquires an authorization reference with root privileges which is intended to be used for authorized file operations -- (BOOL)_acquireAuthorizationWithError:(NSError *__autoreleasing *)error -{ - // No need to continue if we already acquired an authorization reference - if (_auth != NULL) { - return YES; - } - - if (_authorizationToolPath == nil) { - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: @"Unable to grant authorization to perform action because it is explicitly turned off" }]; - } - return NO; - } - - OSStatus createStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &_auth); - if (createStatus != errAuthorizationSuccess) { - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed creating authorization reference with status code %d.", createStatus] }]; - } - _auth = NULL; - return NO; - } - - AuthorizationItem rightItems[] = { - // The right that allows us to run tools as root user - {.name = kAuthorizationRightExecute, .valueLength = 0, .value = NULL, .flags = 0} - }; - - AuthorizationRights rights = { - .count = sizeof(rightItems) / sizeof(*rightItems), - .items = rightItems - }; - - AuthorizationFlags flags = - (AuthorizationFlags)(kAuthorizationFlagDefaults | kAuthorizationFlagInteractionAllowed | kAuthorizationFlagExtendRights | kAuthorizationFlagPreAuthorize); - - // This will test if we can gain authorization for running utlities as root - OSStatus copyStatus = AuthorizationCopyRights(_auth, &rights, kAuthorizationEmptyEnvironment, flags, NULL); - if (copyStatus != errAuthorizationSuccess) { - if (error != NULL) { - if (copyStatus == errAuthorizationCanceled) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationCancelledError userInfo:@{ NSLocalizedDescriptionKey: @"Authorization access was cancelled by the user." }]; - } else { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed granting authorization rights with status code %d.", copyStatus] }]; - } - } - - AuthorizationFree(_auth, kAuthorizationFlagDefaults); - _auth = NULL; - - return NO; - } - - return YES; -} - -- (BOOL)_authorizeAndExecuteCommand:(char *)command sourcePath:(char *)sourcePath destinationPath:(char *)destinationPath error:(NSError * __autoreleasing *)error -{ - NSError *acquireError = nil; - if (![self _acquireAuthorizationWithError:&acquireError]) { - if (error != NULL) { - *error = acquireError; - } - return NO; - } - - char *arguments[] = { command, sourcePath, destinationPath, NULL }; - - char toolPath[PATH_MAX] = {0}; - if (![_authorizationToolPath getFileSystemRepresentation:toolPath maxLength:sizeof(toolPath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Authorization tool (%@) cannot be represented as a valid file name.", _authorizationToolPath.lastPathComponent] }]; - } - return NO; - } - - FILE *pipe = NULL; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - if (AuthorizationExecuteWithPrivileges(_auth, toolPath, kAuthorizationFlagDefaults, arguments, &pipe) != errAuthorizationSuccess) { -#pragma clang diagnostic pop - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey:@"Failed to run authorization tool." }]; - } - return NO; - } - - uint32_t pidData = 0; - if (fread(&pidData, sizeof(pidData), 1, pipe) < 1) { - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey:@"Failed to retrieve authorized executable process identifier." }]; - } - fclose(pipe); - return NO; - } - - pid_t childPid = (int32_t)CFSwapInt32LittleToHost(pidData); - int status = 0; - - pid_t waitResult; - do { - waitResult = waitpid(childPid, &status, 0); - } while (waitResult == -1 && errno == EINTR); - - fclose(pipe); - - if (waitResult == -1 || !WIFEXITED(status) || WEXITSTATUS(status) != 0) { - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey:[NSString stringWithFormat:@"Failed to execute authorized executable with result %d and status (%d, %d, %d).", waitResult, status, WIFEXITED(status), WEXITSTATUS(status)] }]; - } - return NO; - } - - return YES; -} - -- (void)dealloc -{ - if (_auth != NULL) { - AuthorizationFree(_auth, kAuthorizationFlagDefaults); - } -} - -// -[NSFileManager attributesOfItemAtPath:error:] won't follow symbolic links - -- (BOOL)_itemExistsAtURL:(NSURL *)fileURL -{ - NSString *path = fileURL.path; - if (path == nil) { - return NO; - } - return [_fileManager attributesOfItemAtPath:path error:NULL] != nil; -} - -- (BOOL)_itemExistsAtURL:(NSURL *)fileURL isDirectory:(BOOL *)isDirectory -{ - NSString *path = fileURL.path; - if (path == nil) { - return NO; - } - - NSDictionary *attributes = [_fileManager attributesOfItemAtPath:path error:NULL]; - if (attributes == nil) { - return NO; - } - - if (isDirectory != NULL) { - *isDirectory = [[attributes objectForKey:NSFileType] isEqualToString:NSFileTypeDirectory]; - } - - return YES; -} - -// Wrapper around getxattr() -- (ssize_t)_getXAttr:(const char *)name fromFile:(NSString *)file options:(int)options -{ - char path[PATH_MAX] = {0}; - if (![file getFileSystemRepresentation:path maxLength:sizeof(path)]) { - errno = 0; - return -1; - } - - return getxattr(path, name, NULL, 0, 0, options); -} - -// Wrapper around removexattr() -- (int)_removeXAttr:(const char *)attr fromFile:(NSString *)file options:(int)options -{ - char path[PATH_MAX] = {0}; - if (![file getFileSystemRepresentation:path maxLength:sizeof(path)]) { - errno = 0; - return -1; - } - - return removexattr(path, attr, options); -} - -#define XATTR_UTILITY_PATH "/usr/bin/xattr" -// Recursively remove an xattr at a specified root URL with authentication -- (BOOL)_removeQuarantineWithAuthenticationAtRootURL:(NSURL *)rootURL error:(NSError *__autoreleasing *)error -{ - // Because this is a system utility, it's fine to follow the symbolic link if one exists - if (![_fileManager fileExistsAtPath:@(XATTR_UTILITY_PATH)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: @"xattr utility does not exist on this system." }]; - } - return NO; - } - - char path[PATH_MAX] = {0}; - if (![rootURL.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"File to remove (%@) cannot be represented as a valid file name.", rootURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - BOOL success = [self _authorizeAndExecuteCommand:SUFileOpRemoveQuarantineCommand sourcePath:path destinationPath:NULL error:&executeError]; - if (!success && error != NULL) { - *error = executeError; - } - - return success; -} - -- (BOOL)_releaseItemFromQuarantineAtRootURL:(NSURL *)rootURL withQuarantineRetrieval:(BOOL (^)(NSURL *))quarantineRetrieval quarantineRemoval:(BOOL (^)(NSURL *, NSError * __autoreleasing *))quarantineRemoval isAccessError:(BOOL (^)(NSError *))isAccessError error:(NSError * __autoreleasing *)error -{ - if (![self _itemExistsAtURL:rootURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to remove quarantine because %@ does not exist.", rootURL.path.lastPathComponent] }]; - } - return NO; - } - - BOOL (^releasingQuarantineRequiredAuthentication)(NSURL *, BOOL *, BOOL *) = ^(NSURL *fileURL, BOOL *didReleaseQuarantine, BOOL *success) { - BOOL removedQuarantine = NO; - BOOL attemptedAuthentication = NO; - - if (quarantineRetrieval(fileURL)) { - NSError *removalError = nil; - if (quarantineRemoval(fileURL, &removalError)) { - removedQuarantine = YES; - } else { - if (isAccessError(removalError)) { - removedQuarantine = [self _removeQuarantineWithAuthenticationAtRootURL:rootURL error:error]; - attemptedAuthentication = YES; - } else { - if (success != NULL) { - // Make sure we haven't already run into an error - if (*success && error != NULL) { - *error = removalError; - } - // Fail, but still try to release other items from quarantine - *success = NO; - } - } - } - } - - if (didReleaseQuarantine != NULL) { - *didReleaseQuarantine = removedQuarantine; - } - - return attemptedAuthentication; - }; - - BOOL success = YES; - - BOOL releasedRootQuarantine = NO; - if (releasingQuarantineRequiredAuthentication(rootURL, &releasedRootQuarantine, &success)) { - return releasedRootQuarantine; - } - - // Only recurse if it's actually a directory. Don't recurse into a - // root-level symbolic link. - NSString *rootURLPath = rootURL.path; - NSDictionary *rootAttributes = [_fileManager attributesOfItemAtPath:rootURLPath error:nil]; - NSString *rootType = [rootAttributes objectForKey:NSFileType]; // 10.7 can't subscript this - - if ([rootType isEqualToString:NSFileTypeDirectory]) { - // The NSDirectoryEnumerator will avoid recursing into any contained - // symbolic links, so no further type checks are needed. - NSDirectoryEnumerator *directoryEnumerator = [_fileManager enumeratorAtURL:rootURL includingPropertiesForKeys:nil options:(NSDirectoryEnumerationOptions)0 errorHandler:nil]; - - for (NSURL *file in directoryEnumerator) { - BOOL releasedQuarantine = NO; - if (releasingQuarantineRequiredAuthentication(file, &releasedQuarantine, &success)) { - return releasedQuarantine; - } - } - } - - return success; -} - -// Removes the directory tree rooted at |root| from the file quarantine. -// The quarantine was introduced on macOS 10.5 and is described at: -// -// http://developer.apple.com/releasenotes/Carbon/RN-LaunchServices/index.html#apple_ref/doc/uid/TP40001369-DontLinkElementID_2 -// -// If |root| is not a directory, then it alone is removed from the quarantine. -// Symbolic links, including |root| if it is a symbolic link, will not be -// traversed. - -// Ordinarily, the quarantine is managed by calling LSSetItemAttribute -// to set the kLSItemQuarantineProperties attribute to a dictionary specifying -// the quarantine properties to be applied. However, it does not appear to be -// possible to remove an item from the quarantine directly through any public -// Launch Services calls. Instead, this method takes advantage of the fact -// that the quarantine is implemented in part by setting an extended attribute, -// "com.apple.quarantine", on affected files. Removing this attribute is -// sufficient to remove files from the quarantine. - -// This works by removing the quarantine extended attribute for every file we come across. -// We used to have code similar to the method below that used -[NSURL getResourceValue:forKey:error:] and -[NSURL setResourceValue:forKey:error:] -// However, those methods *really suck* - you can't rely on the return value from getting the resource value and if you set the resource value -// when the key isn't present, errors are spewed out to the console -- (BOOL)releaseItemFromQuarantineAtRootURL:(NSURL *)rootURL error:(NSError *__autoreleasing *)error -{ - static const int removeXAttrOptions = XATTR_NOFOLLOW; - - return - [self - _releaseItemFromQuarantineAtRootURL:rootURL - withQuarantineRetrieval:^BOOL(NSURL *fileURL) { - return ([self _getXAttr:SUAppleQuarantineIdentifier fromFile:fileURL.path options:removeXAttrOptions] >= 0); - } - quarantineRemoval:^BOOL(NSURL *fileURL, NSError * __autoreleasing *removalError) { - BOOL removedQuarantine = ([self _removeXAttr:SUAppleQuarantineIdentifier fromFile:fileURL.path options:removeXAttrOptions] == 0); - if (!removedQuarantine && removalError != NULL) { - *removalError = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to remove file quarantine on %@.", fileURL.lastPathComponent] }]; - } - return removedQuarantine; - } - isAccessError:^BOOL(NSError *removalError) { - return (removalError.code == EACCES); - } - error:error]; -} - -/* - * Copies an item from one location to another - * This intentionally does *not* use copyfile() or any API that uses it such as NSFileManager's copy item method - * This is because copyfile() can fail to copy symbolic links from one network mount to another, which will affect copying apps - * This failure occurs because the system may think symbolic links on a SMB mount are zero bytes in size - * For more info, see bug reports at http://openradar.appspot.com/radar?id=4925873463492608 - * and http://openradar.appspot.com/radar?id=5024037222744064 - */ -- (BOOL)copyItemAtURL:(NSURL *)sourceURL toURL:(NSURL *)destinationURL error:(NSError * __autoreleasing *)error -{ - if (![self _itemExistsAtURL:sourceURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Source file to copy (%@) does not exist.", sourceURL.lastPathComponent] }]; - } - return NO; - } - - if (![self _itemExistsAtURL:destinationURL.URLByDeletingLastPathComponent]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination parent directory to copy into (%@) does not exist.", destinationURL.URLByDeletingLastPathComponent.lastPathComponent] }]; - } - return NO; - } - - if ([self _itemExistsAtURL:destinationURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteFileExistsError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination file to copy to (%@) already exists.", destinationURL.lastPathComponent] }]; - } - return NO; - } - - FSRef sourceRef; - if (!SUMakeRefFromURL(sourceURL, &sourceRef, error)) { - return NO; - } - - FSRef destinationParentRef; - if (!SUMakeRefFromURL(destinationURL.URLByDeletingLastPathComponent, &destinationParentRef, error)) { - return NO; - } - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - OSStatus copyResult = FSCopyObjectSync(&sourceRef, &destinationParentRef, (__bridge CFStringRef)(destinationURL.lastPathComponent), NULL, kFSFileOperationDefaultOptions); -#pragma clang diagnostic pop - if (copyResult == noErr) { - return YES; - } - - // Note: I have received afpAccessDenied error in testing even when not copying from/to an AFP mount, - // when the error should have been a normal permission denied one - if (copyResult != permErr && copyResult != afpAccessDenied) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:copyResult userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to copy file (%@)", sourceURL.lastPathComponent] }]; - } - return NO; - } - - char sourcePath[PATH_MAX] = {0}; - if (![sourceURL.path getFileSystemRepresentation:sourcePath maxLength:sizeof(sourcePath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination to copy file to (%@) cannot be represented as a valid file name.", sourceURL.lastPathComponent] }]; - } - return NO; - } - - char destinationPath[PATH_MAX] = {0}; - if (![destinationURL.path getFileSystemRepresentation:destinationPath maxLength:sizeof(destinationPath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination to copy file to (%@) cannot be represented as a valid file name.", destinationURL.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - if (![self _authorizeAndExecuteCommand:SUFileOpCopyCommand sourcePath:sourcePath destinationPath:destinationPath error:&executeError]) { - if (error != NULL) { - *error = executeError; - } - return NO; - } - - return YES; -} - -/* - * Retrieves the volume ID that a particular url resides on - * The url must point to a file that exists - * There is no cocoa equivalent for obtaining the volume ID - * Although NSURLVolumeURLForRemountingKey exists as a resource key for NSURL, - * that will not return a URL if the mount is not re-mountable and I otherwise don't trust the API - */ -- (BOOL)_getVolumeID:(FSVolumeRefNum *)volumeID ofItemAtURL:(NSURL *)url -{ - FSRef pathRef; - if (!SUMakeRefFromURL(url, &pathRef, NULL)) { - return NO; - } - - FSCatalogInfo catalogInfo; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdeprecated-declarations" - OSErr catalogError = FSGetCatalogInfo(&pathRef, kFSCatInfoVolume, &catalogInfo, NULL, NULL, NULL); -#pragma clang diagnostic pop - if (catalogError != noErr) { - return NO; - } - - if (volumeID != NULL) { - *volumeID = catalogInfo.volume; - } - - return YES; -} - -- (BOOL)moveItemAtURL:(NSURL *)sourceURL toURL:(NSURL *)destinationURL error:(NSError *__autoreleasing *)error -{ - if (![self _itemExistsAtURL:sourceURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Source file to move (%@) does not exist.", sourceURL.lastPathComponent] }]; - } - return NO; - } - - NSURL *destinationURLParent = destinationURL.URLByDeletingLastPathComponent; - if (![self _itemExistsAtURL:destinationURLParent]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination parent directory to move into (%@) does not exist.", destinationURLParent.lastPathComponent] }]; - } - return NO; - } - - if ([self _itemExistsAtURL:destinationURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteFileExistsError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination file to move (%@) already exists.", destinationURL.lastPathComponent] }]; - } - return NO; - } - - // If the source and destination are on different volumes, we should not do a move; - // from my experience a move may fail when moving particular files from - // one network mount to another one. This is possibly related to the fact that - // moving a file will try to preserve ownership but copying won't - - FSVolumeRefNum sourceVolume = 0; - BOOL foundSourceVolume = [self _getVolumeID:&sourceVolume ofItemAtURL:sourceURL]; - - FSVolumeRefNum destinationVolume = 0; - BOOL foundDestinationVolume = [self _getVolumeID:&destinationVolume ofItemAtURL:destinationURLParent]; - - if (foundSourceVolume && foundDestinationVolume && sourceVolume != destinationVolume) { - return ([self copyItemAtURL:sourceURL toURL:destinationURL error:error] && [self removeItemAtURL:sourceURL error:error]); - } - - NSError *moveError = nil; - if ([_fileManager moveItemAtURL:sourceURL toURL:destinationURL error:&moveError]) { - return YES; - } - - if (!NS_HAS_PERMISSION_ERROR(moveError)) { - if (error != NULL) { - *error = moveError; - } - return NO; - } - - char sourcePath[PATH_MAX] = {0}; - if (![sourceURL.path getFileSystemRepresentation:sourcePath maxLength:sizeof(sourcePath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"File to move (%@) cannot be represented as a valid file name.", sourceURL.path.lastPathComponent] }]; - } - return NO; - } - - char destinationPath[PATH_MAX] = {0}; - if (![destinationURL.path getFileSystemRepresentation:destinationPath maxLength:sizeof(destinationPath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Destination (%@) cannot be represented as a valid file name.", destinationURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - if (![self _authorizeAndExecuteCommand:SUFileOpMoveCommand sourcePath:sourcePath destinationPath:destinationPath error:&executeError]) { - if (error != NULL) { - NSString *errorMessage = [NSString stringWithFormat:@"Failed to perform authorized file move for %@.", sourceURL.lastPathComponent]; - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey:errorMessage, NSUnderlyingErrorKey: executeError }]; - } - return NO; - } - - return YES; -} - -- (BOOL)_changeOwnerAndGroupOfItemAtURL:(NSURL *)targetURL ownerID:(NSNumber *)ownerID groupID:(NSNumber *)groupID needsAuth:(BOOL *)needsAuth error:(NSError * __autoreleasing *)error -{ - char path[PATH_MAX] = {0}; - if (![targetURL.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"File to change owner & group (%@) cannot be represented as a valid file name.", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - int fileDescriptor = open(path, O_RDONLY | O_SYMLINK); - if (fileDescriptor == -1) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to open file descriptor to %@", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - // We use fchown instead of chown because the latter can follow symbolic links - BOOL success = fchown(fileDescriptor, ownerID.unsignedIntValue, groupID.unsignedIntValue) == 0; - close(fileDescriptor); - - if (!success) { - if (errno == EPERM) { - if (needsAuth != NULL) { - *needsAuth = YES; - } - } else { - if (error != NULL) { - *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to change owner & group for %@ with owner ID %u and group ID %u.", targetURL.path.lastPathComponent, ownerID.unsignedIntValue, groupID.unsignedIntValue] }]; - } - return NO; - } - } - - return YES; -} - -- (BOOL)changeOwnerAndGroupOfItemAtRootURL:(NSURL *)targetURL toMatchURL:(NSURL *)matchURL error:(NSError * __autoreleasing *)error -{ - BOOL isTargetADirectory = NO; - if (![self _itemExistsAtURL:targetURL isDirectory:&isTargetADirectory]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to change owner & group IDs because %@ does not exist.", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - if (![self _itemExistsAtURL:matchURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to match owner & group IDs because %@ does not exist.", matchURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *matchFileAttributesError = nil; - NSString *matchURLPath = matchURL.path; - NSDictionary *matchFileAttributes = [_fileManager attributesOfItemAtPath:matchURLPath error:&matchFileAttributesError]; - if (matchFileAttributes == nil) { - if (error != NULL) { - *error = matchFileAttributesError; - } - return NO; - } - - NSError *targetFileAttributesError = nil; - NSString *targetURLPath = targetURL.path; - NSDictionary *targetFileAttributes = [_fileManager attributesOfItemAtPath:targetURLPath error:&targetFileAttributesError]; - if (targetFileAttributes == nil) { - if (error != NULL) { - *error = targetFileAttributesError; - } - return NO; - } - - NSNumber *ownerID = [matchFileAttributes objectForKey:NSFileOwnerAccountID]; - if (ownerID == nil) { - // shouldn't be possible to error here, but just in case - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadNoPermissionError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Owner ID could not be read from %@.", matchURL.path.lastPathComponent] }]; - } - return NO; - } - - NSNumber *groupID = [matchFileAttributes objectForKey:NSFileGroupOwnerAccountID]; - if (groupID == nil) { - // shouldn't be possible to error here, but just in case - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadNoPermissionError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Group ID could not be read from %@.", matchURL.path.lastPathComponent] }]; - } - return NO; - } - - NSNumber *targetOwnerID = [targetFileAttributes objectForKey:NSFileOwnerAccountID]; - NSNumber *targetGroupID = [targetFileAttributes objectForKey:NSFileGroupOwnerAccountID]; - - if ((targetOwnerID != nil && [ownerID isEqualToNumber:targetOwnerID]) && (targetGroupID != nil && [groupID isEqualToNumber:targetGroupID])) { - // Assume they're the same even if we don't check every file recursively - // Speeds up the common case - return YES; - } - - BOOL needsAuth = NO; - - if (![self _changeOwnerAndGroupOfItemAtURL:targetURL ownerID:ownerID groupID:groupID needsAuth:&needsAuth error:error]) { - return NO; - } - - if (isTargetADirectory) { - NSDirectoryEnumerator *directoryEnumerator = [_fileManager enumeratorAtURL:targetURL includingPropertiesForKeys:nil options:(NSDirectoryEnumerationOptions)0 errorHandler:nil]; - for (NSURL *url in directoryEnumerator) { - if (![self _changeOwnerAndGroupOfItemAtURL:url ownerID:ownerID groupID:groupID needsAuth:&needsAuth error:error]) { - return NO; - } - - if (needsAuth) { - break; - } - } - } - - if (!needsAuth) { - return YES; - } - - char targetPath[PATH_MAX] = {0}; - if (![targetURL.path getFileSystemRepresentation:targetPath maxLength:sizeof(targetPath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Target file (%@) cannot be represented as a valid file name.", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - char matchPath[PATH_MAX] = {0}; - if (![matchURLPath getFileSystemRepresentation:matchPath maxLength:sizeof(matchPath)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Match file (%@) cannot be represented as a valid file name.", matchURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - BOOL success = [self _authorizeAndExecuteCommand:SUFileOpChangeOwnerAndGroupCommand sourcePath:targetPath destinationPath:matchPath error:&executeError]; - if (!success && error != NULL) { - NSString *errorMessage = [NSString stringWithFormat:@"Failed to change owner & group on %@ to match %@ with authorization.", targetURL.path.lastPathComponent, matchURLPath.lastPathComponent]; - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: errorMessage, NSUnderlyingErrorKey: executeError }]; - } - - return success; -} - -// /usr/bin/touch can be used to update an application, as described in: -// https://developer.apple.com/library/mac/documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html -// The document says LSRegisterURL() can be used as well but this hasn't worked out well for me in practice -// Anyway, updating the modification time of the application is important because the system will be aware a new version of your app is available, -// Finder will report the correct file size and other metadata for it, URL schemes your app may register will be updated, etc. -// Behind the scenes, touch calls to utimes() which is what we use here - unless we need to authenticate -- (BOOL)updateModificationAndAccessTimeOfItemAtURL:(NSURL *)targetURL error:(NSError * __autoreleasing *)error -{ - if (![self _itemExistsAtURL:targetURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to update modification & access time because %@ does not exist.", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - char path[PATH_MAX] = {0}; - if (![targetURL.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"File to update modification & access time (%@) cannot be represented as a valid file name.", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - int fileDescriptor = open(path, O_RDONLY | O_SYMLINK); - if (fileDescriptor == -1) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to open file descriptor to %@", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - // Using futimes() because utimes() follows symbolic links - BOOL updatedTime = (futimes(fileDescriptor, NULL) == 0); - - close(fileDescriptor); - - if (updatedTime) { - return YES; - } - - if (errno != EACCES) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSPOSIXErrorDomain code:errno userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to update modification & access time for %@", targetURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - BOOL success = [self _authorizeAndExecuteCommand:SUFileOpUpdateModificationAndAccessTimeCommand sourcePath:path destinationPath:NULL error:&executeError]; - if (!success && error != NULL) { - NSString *errorMessage = [NSString stringWithFormat:@"Failed to update modification & access time on %@ with authorization.", targetURL.path.lastPathComponent]; - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: errorMessage, NSUnderlyingErrorKey: executeError }]; - } - - return success; -} - -// Creates a directory at the item pointed by url -// An item cannot already exist at the url, but the parent must be a directory that exists -- (BOOL)makeDirectoryAtURL:(NSURL *)url error:(NSError * __autoreleasing *)error -{ - if ([self _itemExistsAtURL:url]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileWriteFileExistsError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to create directory because file %@ already exists.", url.path.lastPathComponent] }]; - } - return NO; - } - - NSURL *parentURL = [url URLByDeletingLastPathComponent]; - BOOL isParentADirectory = NO; - if (![self _itemExistsAtURL:parentURL isDirectory:&isParentADirectory] || !isParentADirectory) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to create directory because parent directory %@ does not exist.", parentURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *createDirectoryError = nil; - if ([_fileManager createDirectoryAtURL:url withIntermediateDirectories:NO attributes:nil error:&createDirectoryError]) { - return YES; - } - - if (!NS_HAS_PERMISSION_ERROR(createDirectoryError)) { - if (error != NULL) { - *error = createDirectoryError; - } - return NO; - } - - char path[PATH_MAX] = {0}; - if (![url.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Directory to create (%@) cannot be represented as a valid file name.", url.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - BOOL success = [self _authorizeAndExecuteCommand:SUFileOpMakeDirectoryCommand sourcePath:path destinationPath:NULL error:&executeError]; - if (!success) { - if (error != NULL) { - NSString *errorMessage = [NSString stringWithFormat:@"Failed to make directory %@ with authorization.", url.path.lastPathComponent]; - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: errorMessage, NSUnderlyingErrorKey: executeError }]; - } - } - - return success; -} - -- (NSURL *)makeTemporaryDirectoryWithPreferredName:(NSString *)preferredName appropriateForDirectoryURL:(NSURL *)directoryURL error:(NSError * __autoreleasing *)error -{ - NSError *tempError = nil; - NSURL *tempURL = [_fileManager URLForDirectory:NSItemReplacementDirectory inDomain:NSUserDomainMask appropriateForURL:directoryURL create:YES error:&tempError]; - - if (tempURL != nil) { - return tempURL; - } - - // It is pretty unlikely in my testing we will get here, but just in case we do, we should create a directory inside - // the directory pointed by directoryURL, using the preferredName - - NSURL *desiredURL = [directoryURL URLByAppendingPathComponent:preferredName]; - NSUInteger tagIndex = 1; - while ([self _itemExistsAtURL:desiredURL] && tagIndex <= 9999) { - desiredURL = [directoryURL URLByAppendingPathComponent:[preferredName stringByAppendingFormat:@" (%lu)", (unsigned long)++tagIndex]]; - } - - return [self makeDirectoryAtURL:desiredURL error:error] ? desiredURL : nil; -} - -- (BOOL)removeItemAtURL:(NSURL *)url error:(NSError * __autoreleasing *)error -{ - if (![self _itemExistsAtURL:url]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to remove file %@ because it does not exist.", url.path.lastPathComponent] }]; - } - return NO; - } - - NSError *removeError = nil; - if ([_fileManager removeItemAtURL:url error:&removeError]) { - return YES; - } - - if (!NS_HAS_PERMISSION_ERROR(removeError)) { - if (error != NULL) { - *error = removeError; - } - return NO; - } - - char path[PATH_MAX] = {0}; - if (![url.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"File to remove (%@) cannot be represented as a valid file name.", url.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - BOOL success = [self _authorizeAndExecuteCommand:SUFileOpRemoveCommand sourcePath:path destinationPath:NULL error:&executeError]; - - if (!success && error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUAuthenticationFailure userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to remove %@ with authentication.", url.path.lastPathComponent], NSUnderlyingErrorKey: executeError }]; - } - - return success; -} - -- (BOOL)moveItemAtURLToTrash:(NSURL *)url error:(NSError *__autoreleasing *)error -{ - if (![self _itemExistsAtURL:url]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to move %@ to the trash because the file does not exist.", url.path.lastPathComponent] }]; - } - return NO; - } - - NSURL *trashURL = nil; - BOOL canUseNewTrashAPI = YES; -#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1080 - canUseNewTrashAPI = [SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 8, 0}]; - if (!canUseNewTrashAPI) { - FSRef trashRef; - if (FSFindFolder(kUserDomain, kTrashFolderType, kDontCreateFolder, &trashRef) == noErr) { - trashURL = CFBridgingRelease(CFURLCreateFromFSRef(kCFAllocatorDefault, &trashRef)); - } - } -#endif - - if (canUseNewTrashAPI) { - trashURL = [_fileManager URLForDirectory:NSTrashDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:NO error:nil]; - } - - if (trashURL == nil) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: @"Failed to locate the user's trash folder." }]; - } - return NO; - } - - // In the rare worst case scenario, our temporary directory will be labeled incomplete and be in the user's trash directory, - // indicating that whatever inside of there is not yet completely moved. - // Regardless, we want the item to be in our Volume before we try moving it to the trash - NSString *preferredName = [url.lastPathComponent.stringByDeletingPathExtension stringByAppendingString:@" (Incomplete Files)"]; - NSURL *tempDirectory = [self makeTemporaryDirectoryWithPreferredName:preferredName appropriateForDirectoryURL:trashURL error:error]; - if (tempDirectory == nil) { - return NO; - } - - NSString *urlLastPathComponent = url.lastPathComponent; - NSURL *tempItemURL = [tempDirectory URLByAppendingPathComponent:urlLastPathComponent]; - if (![self moveItemAtURL:url toURL:tempItemURL error:error]) { - // If we can't move the item at url, just remove it completely; chances are it's not going to be missed - [self removeItemAtURL:url error:NULL]; - [self removeItemAtURL:tempDirectory error:NULL]; - return NO; - } - - if (![self changeOwnerAndGroupOfItemAtRootURL:tempItemURL toMatchURL:trashURL error:error]) { - // Removing the item inside of the temp directory is better than trying to move the item to the trash with incorrect ownership - [self removeItemAtURL:tempDirectory error:NULL]; - return NO; - } - - // If we get here, we should be able to trash the item normally without authentication - - BOOL success = NO; -#if __MAC_OS_X_VERSION_MIN_REQUIRED < 1080 - if (!canUseNewTrashAPI) { - NSString *tempParentPath = tempItemURL.URLByDeletingLastPathComponent.path; - success = [[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation source:tempParentPath destination:@"" files:@[tempItemURL.lastPathComponent] tag:NULL]; - if (!success && error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to move file %@ into the trash.", tempItemURL.lastPathComponent] }]; - } - } -#endif - - if (canUseNewTrashAPI) { - NSError *trashError = nil; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wpartial-availability" - success = [_fileManager trashItemAtURL:tempItemURL resultingItemURL:NULL error:&trashError]; -#pragma clang diagnostic pop - if (!success && error != NULL) { - *error = trashError; - } - } - - [self removeItemAtURL:tempDirectory error:NULL]; - - return success; -} - -// Unlike other methods, authorization is required to execute this method successfully -- (BOOL)executePackageAtURL:(NSURL *)packageURL error:(NSError * __autoreleasing *)error -{ - if (![self _itemExistsAtURL:packageURL]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileNoSuchFileError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Failed to execute package %@ because the file does not exist.", packageURL.path.lastPathComponent] }]; - } - return NO; - } - - char path[PATH_MAX] = {0}; - if (![packageURL.path getFileSystemRepresentation:path maxLength:sizeof(path)]) { - if (error != NULL) { - *error = [NSError errorWithDomain:NSCocoaErrorDomain code:NSFileReadInvalidFileNameError userInfo:@{ NSLocalizedDescriptionKey: [NSString stringWithFormat:@"Package to execute (%@) cannot be represented as a valid file name.", packageURL.path.lastPathComponent] }]; - } - return NO; - } - - NSError *executeError = nil; - BOOL success = [self _authorizeAndExecuteCommand:SUFileOpInstallCommand sourcePath:path destinationPath:NULL error:&executeError]; - - if (!success && error != NULL) { - NSString* errorMessage = @"Failed to execute package installer."; - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{NSLocalizedDescriptionKey: errorMessage, NSUnderlyingErrorKey: executeError}]; - } - return success; -} - -@end - -#pragma clang diagnostic pop diff --git a/Sparkle/Sparkle/SUGuidedPackageInstaller.h b/Sparkle/Sparkle/SUGuidedPackageInstaller.h deleted file mode 100755 index 4a9fc74b..00000000 --- a/Sparkle/Sparkle/SUGuidedPackageInstaller.h +++ /dev/null @@ -1,35 +0,0 @@ -// -// SUGuidedPackageInstaller.h -// Sparkle -// -// Created by Graham Miln on 14/05/2010. -// Copyright 2010 Dragon Systems Software Limited. All rights reserved. -// - -/*! -# Sparkle Guided Installations - -A guided installation allows Sparkle to download and install a package (pkg) or multi-package (mpkg) without user interaction. - -The installer package is installed using macOS's built-in command line installer, `/usr/sbin/installer`. No installation interface is shown to the user. - -A guided installation can be started by applications other than the application being replaced. This is particularly useful where helper applications or agents are used. - -## To Do -- Replace the use of `AuthorizationExecuteWithPrivilegesAndWait`. This method remains because it is well supported and tested. Ideally a helper tool or XPC would be used. -*/ - -#ifndef SUGUIDEDPACKAGEINSTALLER_H -#define SUGUIDEDPACKAGEINSTALLER_H - -#import -#import "Sparkle.h" -#import "SUInstaller.h" - -@interface SUGuidedPackageInstaller : SUInstaller - -/*! Perform the guided installation */ -+ (void)performInstallationToPath:(NSString *)path fromPath:(NSString *)installerGuide host:(SUHost *)host fileOperationToolPath:(NSString *)fileOperationToolPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler; -@end - -#endif diff --git a/Sparkle/Sparkle/SUGuidedPackageInstaller.m b/Sparkle/Sparkle/SUGuidedPackageInstaller.m deleted file mode 100755 index 97decfa2..00000000 --- a/Sparkle/Sparkle/SUGuidedPackageInstaller.m +++ /dev/null @@ -1,34 +0,0 @@ -// -// SUGuidedPackageInstaller.m -// Sparkle -// -// Created by Graham Miln on 14/05/2010. -// Copyright 2010 Dragon Systems Software Limited. All rights reserved. -// - -#import "SUGuidedPackageInstaller.h" -#import "SUFileManager.h" - -@implementation SUGuidedPackageInstaller - -+ (void)performInstallationToPath:(NSString *)destinationPath fromPath:(NSString *)packagePath host:(SUHost *)__unused host fileOperationToolPath:(NSString *)fileOperationToolPath versionComparator:(id)__unused comparator completionHandler:(void (^)(NSError *))completionHandler -{ - SUParameterAssert(packagePath); - - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - SUFileManager *fileManager = [SUFileManager fileManagerWithAuthorizationToolPath:fileOperationToolPath]; - - NSError *error = nil; - BOOL validInstallation = [fileManager executePackageAtURL:[NSURL fileURLWithPath:packagePath] error:&error]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [self finishInstallationToPath:destinationPath - withResult:validInstallation - error:error - completionHandler:completionHandler]; - - }); - }); -} - -@end diff --git a/Sparkle/Sparkle/SUHost.h b/Sparkle/Sparkle/SUHost.h deleted file mode 100755 index 56fa7d18..00000000 --- a/Sparkle/Sparkle/SUHost.h +++ /dev/null @@ -1,48 +0,0 @@ -// -// SUHost.h -// Sparkle -// -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import -#import "SUUpdater.h" -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" - -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101000 -typedef struct { - NSInteger majorVersion; - NSInteger minorVersion; - NSInteger patchVersion; -} NSOperatingSystemVersion; -#endif - -@interface SUHost : NSObject - -@property (strong, readonly) NSBundle *bundle; - -- (instancetype)initWithBundle:(NSBundle *)aBundle; -@property (readonly, copy) NSString *bundlePath; -@property (readonly) BOOL allowsAutomaticUpdates; -@property (readonly, copy) NSString *installationPath; -@property (readonly, copy) NSString *name; -@property (readonly, copy) NSString *version; -@property (readonly, copy) NSString *displayVersion; -@property (readonly, copy) NSImage *icon; -@property (getter=isRunningOnReadOnlyVolume, readonly) BOOL runningOnReadOnlyVolume; -@property (getter=isBackgroundApplication, readonly) BOOL backgroundApplication; -@property (readonly, copy) NSString *publicDSAKey; -@property (readonly, nonatomic, copy) NSString *publicDSAKeyFileKey; -@property (readonly, copy) NSArray *systemProfile; - -- (id)objectForInfoDictionaryKey:(NSString *)key; -- (BOOL)boolForInfoDictionaryKey:(NSString *)key; -- (id)objectForUserDefaultsKey:(NSString *)defaultName; -- (void)setObject:(id)value forUserDefaultsKey:(NSString *)defaultName; -- (BOOL)boolForUserDefaultsKey:(NSString *)defaultName; -- (void)setBool:(BOOL)value forUserDefaultsKey:(NSString *)defaultName; -- (id)objectForKey:(NSString *)key; -- (BOOL)boolForKey:(NSString *)key; -@end diff --git a/Sparkle/Sparkle/SUHost.m b/Sparkle/Sparkle/SUHost.m deleted file mode 100755 index d941e066..00000000 --- a/Sparkle/Sparkle/SUHost.m +++ /dev/null @@ -1,301 +0,0 @@ -// -// SUHost.m -// Sparkle -// -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUHost.h" - -#import "SUConstants.h" -#import "SUSystemProfiler.h" -#include // For statfs for isRunningOnReadOnlyVolume -#import "SULog.h" -#import "SUFileManager.h" - -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101000 -@interface NSProcessInfo () -- (NSOperatingSystemVersion)operatingSystemVersion; -@end -#endif - -@interface SUHost () - -@property (strong, readwrite) NSBundle *bundle; -@property (copy) NSString *defaultsDomain; -@property (assign) BOOL usesStandardUserDefaults; - -@end - -@implementation SUHost - -@synthesize bundle; -@synthesize defaultsDomain; -@synthesize usesStandardUserDefaults; - -- (instancetype)initWithBundle:(NSBundle *)aBundle -{ - if ((self = [super init])) - { - SUParameterAssert(aBundle); - self.bundle = aBundle; - if (![self.bundle bundleIdentifier]) { - SULog(@"Error: the bundle being updated at %@ has no %@! This will cause preference read/write to not work properly.", self.bundle, kCFBundleIdentifierKey); - } - - self.defaultsDomain = [self.bundle objectForInfoDictionaryKey:SUDefaultsDomainKey]; - if (!self.defaultsDomain) { - self.defaultsDomain = [self.bundle bundleIdentifier]; - } - - // If we're using the main bundle's defaults we'll use the standard user defaults mechanism, otherwise we have to get CF-y. - NSString *mainBundleIdentifier = NSBundle.mainBundle.bundleIdentifier; - usesStandardUserDefaults = !self.defaultsDomain || [self.defaultsDomain isEqualToString:mainBundleIdentifier]; - } - return self; -} - - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self bundlePath], [self installationPath]]; } - -- (NSString *)bundlePath -{ - return [self.bundle bundlePath]; -} - -- (BOOL)allowsAutomaticUpdates -{ - // Does the developer want us to disable automatic updates? - NSNumber *developerAllowsAutomaticUpdates = [self objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey]; - if (developerAllowsAutomaticUpdates != nil && !developerAllowsAutomaticUpdates.boolValue) { - return NO; - } - - // Can we automatically update in the background without bugging the user (e.g, with a administrator password prompt)? - // Note it's very well possible to have the bundle be writable but not be able to write into the parent directory - // And if the bundle isn't writable, but we can write into the parent directory, we will still need to authorize to replace it - NSString *bundlePath = [self bundlePath]; - if (![[NSFileManager defaultManager] isWritableFileAtPath:bundlePath.stringByDeletingLastPathComponent] || ![[NSFileManager defaultManager] isWritableFileAtPath:bundlePath]) { - return NO; - } - - // Just because we have writability access does not mean we can set the correct owner/group silently - // Test if we can set the owner/group on a temporarily created file - // If we can, then we can probably perform an update without authorization - // One place where this matters is if you copy and run an app from /tmp/ - - NSString *tempFilename = @"permission_test" ; - - SUFileManager *suFileManager = [SUFileManager defaultManager]; - NSURL *tempDirectoryURL = [suFileManager makeTemporaryDirectoryWithPreferredName:tempFilename appropriateForDirectoryURL:[NSURL fileURLWithPath:NSTemporaryDirectory()] error:NULL]; - - if (tempDirectoryURL == nil) { - // I don't imagine this ever happening but in case it does, requesting authorization may be the better option - return NO; - } - - NSURL *tempFileURL = [tempDirectoryURL URLByAppendingPathComponent:tempFilename]; - - BOOL changeOwnerAndGroupSuccess = - [[NSData data] writeToURL:tempFileURL atomically:NO] && - [suFileManager changeOwnerAndGroupOfItemAtRootURL:tempFileURL toMatchURL:self.bundle.bundleURL error:NULL]; - - [suFileManager removeItemAtURL:tempDirectoryURL error:NULL]; - - return changeOwnerAndGroupSuccess; -} - -- (NSString *)installationPath -{ - if (SPARKLE_NORMALIZE_INSTALLED_APPLICATION_NAME) { - // We'll install to "#{CFBundleName}.app", but only if that path doesn't already exist. If we're "Foo 4.2.app," and there's a "Foo.app" in this directory, we don't want to overwrite it! But if there's no "Foo.app," we'll take that name. - NSString *normalizedAppPath = [[[self.bundle bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.%@", [self.bundle objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleNameKey], [[self.bundle bundlePath] pathExtension]]]; - - if (![[NSFileManager defaultManager] fileExistsAtPath:normalizedAppPath]) { - return normalizedAppPath; - } - } - return [self.bundle bundlePath]; -} - -- (NSString *__nonnull)name -{ - NSString *name; - - // Allow host bundle to provide a custom name - name = [self objectForInfoDictionaryKey:@"SUBundleName"]; - if (name && name.length > 0) return name; - - name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"]; - if (name && name.length > 0) return name; - - name = [self objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleNameKey]; - if (name && name.length > 0) return name; - - return [[[NSFileManager defaultManager] displayNameAtPath:[self.bundle bundlePath]] stringByDeletingPathExtension]; -} - -- (NSString *__nonnull)version -{ - NSString *version = [self.bundle objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]; - if (!version || [version isEqualToString:@""]) - [NSException raise:@"SUNoVersionException" format:@"This host (%@) has no %@! This attribute is required.", [self bundlePath], (__bridge NSString *)kCFBundleVersionKey]; - return version; -} - -- (NSString *__nonnull)displayVersion -{ - NSString *shortVersionString = [self.bundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; - if (shortVersionString) - return shortVersionString; - else - return [self version]; // Fall back on the normal version string. -} - -- (NSImage *__nonnull)icon -{ - // Cache the application icon. - NSString *iconPath = [self.bundle pathForResource:[self.bundle objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType:@"icns"]; - // According to the macOS docs, "CFBundleIconFile - This key identifies the file containing - // the icon for the bundle. The filename you specify does not need to include the .icns - // extension, although it may." - // - // However, if it *does* include the '.icns' the above method fails (tested on macOS 10.3.9) so we'll also try: - if (!iconPath) { - iconPath = [self.bundle pathForResource:[self.bundle objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType:nil]; - } - NSImage *icon = [[NSImage alloc] initWithContentsOfFile:iconPath]; - // Use a default icon if none is defined. - if (!icon) { - BOOL isMainBundle = (self.bundle == [NSBundle mainBundle]); - - NSString *fileType = isMainBundle ? (__bridge NSString *)kUTTypeApplication : (__bridge NSString *)kUTTypeBundle; - icon = [[NSWorkspace sharedWorkspace] iconForFileType:fileType]; - } - return icon; -} - -- (BOOL)isRunningOnReadOnlyVolume -{ - struct statfs statfs_info; - statfs([[self.bundle bundlePath] fileSystemRepresentation], &statfs_info); - return (statfs_info.f_flags & MNT_RDONLY) != 0; -} - -- (BOOL)isBackgroundApplication -{ - return ([[NSApplication sharedApplication] activationPolicy] == NSApplicationActivationPolicyAccessory); -} - -- (NSString *__nullable)publicDSAKey -{ - // Maybe the key is just a string in the Info.plist. - NSString *key = [self.bundle objectForInfoDictionaryKey:SUPublicDSAKeyKey]; - if (key) { - return key; - } - - // More likely, we've got a reference to a Resources file by filename: - NSString *keyFilename = [self publicDSAKeyFileKey]; - if (!keyFilename) { - return nil; - } - - NSString *keyPath = [self.bundle pathForResource:keyFilename ofType:nil]; - if (!keyPath) { - return nil; - } - return [NSString stringWithContentsOfFile:keyPath encoding:NSASCIIStringEncoding error:nil]; -} - -- (NSString * __nullable)publicDSAKeyFileKey -{ - return [self objectForInfoDictionaryKey:SUPublicDSAKeyFileKey]; -} - -- (NSArray *)systemProfile -{ - return [[SUSystemProfiler sharedSystemProfiler] systemProfileArrayForHost:self]; -} - -- (id)objectForInfoDictionaryKey:(NSString *)key -{ - return [self.bundle objectForInfoDictionaryKey:key]; -} - -- (BOOL)boolForInfoDictionaryKey:(NSString *)key -{ - return [[self objectForInfoDictionaryKey:key] boolValue]; -} - -- (id)objectForUserDefaultsKey:(NSString *)defaultName -{ - if (!defaultName || !self.defaultsDomain) { - return nil; - } - - // Under Tiger, CFPreferencesCopyAppValue doesn't get values from NSRegistrationDomain, so anything - // passed into -[NSUserDefaults registerDefaults:] is ignored. The following line falls - // back to using NSUserDefaults, but only if the host bundle is the main bundle. - if (self.usesStandardUserDefaults) { - return [[NSUserDefaults standardUserDefaults] objectForKey:defaultName]; - } - - CFPropertyListRef obj = CFPreferencesCopyAppValue((__bridge CFStringRef)defaultName, (__bridge CFStringRef)self.defaultsDomain); - return CFBridgingRelease(obj); -} - -- (void)setObject:(id)value forUserDefaultsKey:(NSString *)defaultName -{ - if (self.usesStandardUserDefaults) - { - [[NSUserDefaults standardUserDefaults] setObject:value forKey:defaultName]; - } - else - { - CFPreferencesSetValue((__bridge CFStringRef)defaultName, (__bridge CFPropertyListRef)(value), (__bridge CFStringRef)self.defaultsDomain, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); - CFPreferencesSynchronize((__bridge CFStringRef)self.defaultsDomain, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); - } -} - -- (BOOL)boolForUserDefaultsKey:(NSString *)defaultName -{ - if (self.usesStandardUserDefaults) { - return [[NSUserDefaults standardUserDefaults] boolForKey:defaultName]; - } - - BOOL value; - CFPropertyListRef plr = CFPreferencesCopyAppValue((__bridge CFStringRef)defaultName, (__bridge CFStringRef)self.defaultsDomain); - if (plr == NULL) { - value = NO; - } - else - { - value = (BOOL)CFBooleanGetValue((CFBooleanRef)plr); - CFRelease(plr); - } - return value; -} - -- (void)setBool:(BOOL)value forUserDefaultsKey:(NSString *)defaultName -{ - if (self.usesStandardUserDefaults) - { - [[NSUserDefaults standardUserDefaults] setBool:value forKey:defaultName]; - } - else - { - CFPreferencesSetValue((__bridge CFStringRef)defaultName, (__bridge CFBooleanRef) @(value), (__bridge CFStringRef)self.defaultsDomain, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); - CFPreferencesSynchronize((__bridge CFStringRef)self.defaultsDomain, kCFPreferencesCurrentUser, kCFPreferencesAnyHost); - } -} - -- (id)objectForKey:(NSString *)key { - return [self objectForUserDefaultsKey:key] ? [self objectForUserDefaultsKey:key] : [self objectForInfoDictionaryKey:key]; -} - -- (BOOL)boolForKey:(NSString *)key { - return [self objectForUserDefaultsKey:key] ? [self boolForUserDefaultsKey:key] : [self boolForInfoDictionaryKey:key]; -} - -@end diff --git a/Sparkle/Sparkle/SUInstaller.h b/Sparkle/Sparkle/SUInstaller.h deleted file mode 100755 index 0bb08c11..00000000 --- a/Sparkle/Sparkle/SUInstaller.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// SUInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUINSTALLER_H -#define SUINSTALLER_H - -#import -#import "SUVersionComparisonProtocol.h" - -@class SUHost; -@interface SUInstaller : NSObject - -+ (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(BOOL *)isGuidedPtr; -+ (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath fileOperationToolPath:(NSString *)fileOperationToolPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler; -+ (void)finishInstallationToPath:(NSString *)installationPath withResult:(BOOL)result error:(NSError *)error completionHandler:(void (^)(NSError *))completionHandler; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUInstaller.m b/Sparkle/Sparkle/SUInstaller.m deleted file mode 100755 index c96ffadd..00000000 --- a/Sparkle/Sparkle/SUInstaller.m +++ /dev/null @@ -1,141 +0,0 @@ -// -// SUInstaller.m -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUInstaller.h" -#import "SUPlainInstaller.h" -#import "SUPackageInstaller.h" -#import "SUGuidedPackageInstaller.h" -#import "SUHost.h" -#import "SUConstants.h" -#import "SULog.h" - -@implementation SUInstaller - -+ (BOOL)isAliasFolderAtPath:(NSString *)path -{ - NSNumber *aliasFlag = nil; - [[NSURL fileURLWithPath:path] getResourceValue:&aliasFlag forKey:NSURLIsAliasFileKey error:nil]; - NSNumber *directoryFlag = nil; - [[NSURL fileURLWithPath:path] getResourceValue:&directoryFlag forKey:NSURLIsDirectoryKey error:nil]; - return aliasFlag.boolValue && directoryFlag.boolValue; -} - -+ (NSString *)installSourcePathInUpdateFolder:(NSString *)inUpdateFolder forHost:(SUHost *)host isPackage:(BOOL *)isPackagePtr isGuided:(BOOL *)isGuidedPtr -{ - SUParameterAssert(inUpdateFolder); - SUParameterAssert(host); - - // Search subdirectories for the application - NSString *currentFile, - *newAppDownloadPath = nil, - *bundleFileName = [[host bundlePath] lastPathComponent], - *alternateBundleFileName = [[host name] stringByAppendingPathExtension:[[host bundlePath] pathExtension]]; - BOOL isPackage = NO; - BOOL isGuided = NO; - NSString *fallbackPackagePath = nil; - NSDirectoryEnumerator *dirEnum = [[NSFileManager defaultManager] enumeratorAtPath:inUpdateFolder]; - NSString *bundleFileNameNoExtension = [bundleFileName stringByDeletingPathExtension]; - - while ((currentFile = [dirEnum nextObject])) { - NSString *currentPath = [inUpdateFolder stringByAppendingPathComponent:currentFile]; - NSString *currentFilename = [currentFile lastPathComponent]; - NSString *currentExtension = [currentFile pathExtension]; - NSString *currentFilenameNoExtension = [currentFilename stringByDeletingPathExtension]; - if ([currentFilename isEqualToString:bundleFileName] || - [currentFilename isEqualToString:alternateBundleFileName]) // We found one! - { - isPackage = NO; - newAppDownloadPath = currentPath; - break; - } else if ([currentExtension isEqualToString:@"pkg"] || - [currentExtension isEqualToString:@"mpkg"]) { - if ([currentFilenameNoExtension isEqualToString:bundleFileNameNoExtension]) { - isPackage = YES; - newAppDownloadPath = currentPath; - break; - } else { - // Remember any other non-matching packages we have seen should we need to use one of them as a fallback. - fallbackPackagePath = currentPath; - } - } else { - // Try matching on bundle identifiers in case the user has changed the name of the host app - NSBundle *incomingBundle = [NSBundle bundleWithPath:currentPath]; - NSString *hostBundleIdentifier = host.bundle.bundleIdentifier; - if (incomingBundle && [incomingBundle.bundleIdentifier isEqualToString:hostBundleIdentifier]) { - isPackage = NO; - newAppDownloadPath = currentPath; - break; - } - } - - // Some DMGs have symlinks into /Applications! That's no good! - if ([self isAliasFolderAtPath:currentPath]) - [dirEnum skipDescendents]; - } - - // We don't have a valid path. Try to use the fallback package. - - if (newAppDownloadPath == nil && fallbackPackagePath != nil) { - isPackage = YES; - newAppDownloadPath = fallbackPackagePath; - } - - if (isPackage) { - // foo.app -> foo.sparkle_guided.pkg or foo.sparkle_guided.mpkg - if ([[[newAppDownloadPath stringByDeletingPathExtension] pathExtension] isEqualToString:@"sparkle_guided"]) { - isGuided = YES; - } - } - - if (isPackagePtr) - *isPackagePtr = isPackage; - if (isGuidedPtr) - *isGuidedPtr = isGuided; - - if (!newAppDownloadPath) { - SULog(@"Searched %@ for %@.(app|pkg)", inUpdateFolder, bundleFileNameNoExtension); - } - return newAppDownloadPath; -} - -+ (void)installFromUpdateFolder:(NSString *)inUpdateFolder overHost:(SUHost *)host installationPath:(NSString *)installationPath fileOperationToolPath:(NSString *)fileOperationToolPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler -{ - BOOL isPackage = NO; - BOOL isGuided = NO; - NSString *newAppDownloadPath = [self installSourcePathInUpdateFolder:inUpdateFolder forHost:host isPackage:&isPackage isGuided:&isGuided]; - - if (newAppDownloadPath == nil) { - [self finishInstallationToPath:installationPath withResult:NO error:[NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingUpdateError userInfo:@{ NSLocalizedDescriptionKey: @"Couldn't find an appropriate update in the downloaded package." }] completionHandler:completionHandler]; - } else { - if (isPackage && isGuided) { - [SUGuidedPackageInstaller performInstallationToPath:installationPath fromPath:newAppDownloadPath host:host fileOperationToolPath:fileOperationToolPath versionComparator:comparator completionHandler:completionHandler]; - } else if (isPackage) { - [SUPackageInstaller performInstallationToPath:installationPath fromPath:newAppDownloadPath host:host fileOperationToolPath:fileOperationToolPath versionComparator:comparator completionHandler:completionHandler]; - } else { - [SUPlainInstaller performInstallationToPath:installationPath fromPath:newAppDownloadPath host:host fileOperationToolPath:fileOperationToolPath versionComparator:comparator completionHandler:completionHandler]; - } - } -} - -+ (void)finishInstallationToPath:(NSString *)__unused installationPath withResult:(BOOL)result error:(NSError *)error completionHandler:(void (^)(NSError *))completionHandler -{ - if (result) { - dispatch_async(dispatch_get_main_queue(), ^{ - completionHandler(nil); - }); - } else { - if (!error) { - error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:nil]; - } - dispatch_async(dispatch_get_main_queue(), ^{ - completionHandler(error); - }); - } -} - -@end diff --git a/Sparkle/Sparkle/SULog.h b/Sparkle/Sparkle/SULog.h deleted file mode 100755 index 1693f535..00000000 --- a/Sparkle/Sparkle/SULog.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * SULog.h - * EyeTV - * - * Created by Uli Kusterer on 12/03/2009. - * Copyright 2008 Elgato Systems GmbH. All rights reserved. - * - */ - -/* - Log output for troubleshooting Sparkle failures on end-user machines. - Your tech support will hug you if you tell them about this. -*/ - -#ifndef SULOG_H -#define SULOG_H - -// ----------------------------------------------------------------------------- -// Headers: -// ----------------------------------------------------------------------------- - -#include - - -// ----------------------------------------------------------------------------- -// Prototypes: -// ----------------------------------------------------------------------------- - -void SUClearLog(void); -void SULog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - -#endif diff --git a/Sparkle/Sparkle/SULog.m b/Sparkle/Sparkle/SULog.m deleted file mode 100755 index 5941aac7..00000000 --- a/Sparkle/Sparkle/SULog.m +++ /dev/null @@ -1,78 +0,0 @@ -/* - * SULog.m - * EyeTV - * - * Created by Uli Kusterer on 12/03/2009. - * Copyright 2009 Elgato Systems GmbH. All rights reserved. - * - */ - -// ----------------------------------------------------------------------------- -// Headers: -// ----------------------------------------------------------------------------- - -#include "SULog.h" - - -// ----------------------------------------------------------------------------- -// Constants: -// ----------------------------------------------------------------------------- - -static NSString *const SULogFilePath = @"~/Library/Logs/SparkleUpdateLog.log"; - - -// ----------------------------------------------------------------------------- -// SUClearLog: -// Erase the log at the start of an update. We don't want to litter the -// user's hard disk with logging data that's mostly unused, so each app -// should clear the log before it starts updating, so only the most recent -// update is kept around. -// -// TAKES: -// sender - Object that sent this message, typically of type X. -// ----------------------------------------------------------------------------- - -void SUClearLog(void) -{ - FILE *logfile = fopen([[SULogFilePath stringByExpandingTildeInPath] fileSystemRepresentation], "w"); - if (logfile) { - fclose(logfile); - SULog(@"===== %@ =====", [[NSFileManager defaultManager] displayNameAtPath:[[NSBundle mainBundle] bundlePath]]); - } -} - - -// ----------------------------------------------------------------------------- -// SULog: -// Like NSLog, but logs to one specific log file. Each line is prefixed -// with the current date and time, to help in regressing issues. -// -// TAKES: -// format - NSLog/printf-style format string. -// ... - More parameters depending on format string's contents. -// ----------------------------------------------------------------------------- - -void SULog(NSString *format, ...) -{ - static BOOL loggedYet = NO; - if (!loggedYet) { - loggedYet = YES; - SUClearLog(); - } - - va_list ap; - va_start(ap, format); - NSString *theStr = [[NSString alloc] initWithFormat:format arguments:ap]; - NSLog(@"Sparkle: %@", theStr); - - FILE *logfile = fopen([[SULogFilePath stringByExpandingTildeInPath] fileSystemRepresentation], "a"); - if (logfile) { - theStr = [NSString stringWithFormat:@"%@: %@\n", [NSDate date], theStr]; - NSData *theData = [theStr dataUsingEncoding:NSUTF8StringEncoding]; - fwrite([theData bytes], 1, [theData length], logfile); - fclose(logfile); - } - va_end(ap); -} - - diff --git a/Sparkle/Sparkle/SUOperatingSystem.h b/Sparkle/Sparkle/SUOperatingSystem.h deleted file mode 100755 index bd65275f..00000000 --- a/Sparkle/Sparkle/SUOperatingSystem.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// SUOperatingSystem.h -// Sparkle -// -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -#import - -@interface SUOperatingSystem : NSObject - -+ (NSOperatingSystemVersion)operatingSystemVersion; -+ (BOOL)isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version; -+ (NSString *)systemVersionString; - -@end diff --git a/Sparkle/Sparkle/SUOperatingSystem.m b/Sparkle/Sparkle/SUOperatingSystem.m deleted file mode 100755 index 10993585..00000000 --- a/Sparkle/Sparkle/SUOperatingSystem.m +++ /dev/null @@ -1,58 +0,0 @@ -// -// SUOperatingSystem.m -// Sparkle -// -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -#import "SUOperatingSystem.h" - -@implementation SUOperatingSystem - -+ (NSOperatingSystemVersion)operatingSystemVersion -{ -#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101000 -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wselector" - // Xcode 5.1.1: operatingSystemVersion is clearly declared, must warn due to a compiler bug? - if (![NSProcessInfo instancesRespondToSelector:@selector(operatingSystemVersion)]) -#pragma clang diagnostic pop - { - NSOperatingSystemVersion version = { 0, 0, 0 }; - NSURL *coreServices = [[NSFileManager defaultManager] URLForDirectory:NSCoreServiceDirectory inDomain:NSSystemDomainMask appropriateForURL:nil create:NO error:nil]; - NSURL *url = [coreServices URLByAppendingPathComponent:@"SystemVersion.plist"]; - assert(url != nil); - NSDictionary *dictionary = [NSDictionary dictionaryWithContentsOfURL:url]; - NSArray *components = [ [dictionary objectForKey: @"ProductVersion"] componentsSeparatedByString:@"."]; - version.majorVersion = components.count > 0 ? [ [components objectAtIndex:0] integerValue] : 0; - version.minorVersion = components.count > 1 ? [ [components objectAtIndex:1] integerValue] : 0; - version.patchVersion = components.count > 2 ? [ [components objectAtIndex:2] integerValue] : 0; - return version; - } -#endif - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wpartial-availability" - return [[NSProcessInfo processInfo] operatingSystemVersion]; -#pragma clang diagnostic pop -} - -+ (BOOL)isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion)version -{ - const NSOperatingSystemVersion systemVersion = self.operatingSystemVersion; - if (systemVersion.majorVersion == version.majorVersion) { - if (systemVersion.minorVersion == version.minorVersion) { - return systemVersion.patchVersion >= version.patchVersion; - } - return systemVersion.minorVersion >= version.minorVersion; - } - return systemVersion.majorVersion >= version.majorVersion; -} - -+ (NSString *)systemVersionString -{ - NSOperatingSystemVersion version = self.operatingSystemVersion; - return [NSString stringWithFormat:@"%ld.%ld.%ld", (long)version.majorVersion, (long)version.minorVersion, (long)version.patchVersion]; -} - -@end diff --git a/Sparkle/Sparkle/SUPackageInstaller.h b/Sparkle/Sparkle/SUPackageInstaller.h deleted file mode 100755 index 444ca7fe..00000000 --- a/Sparkle/Sparkle/SUPackageInstaller.h +++ /dev/null @@ -1,24 +0,0 @@ -// -// SUPackageInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPACKAGEINSTALLER_H -#define SUPACKAGEINSTALLER_H - -#import - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUPlainInstaller.h" - -@interface SUPackageInstaller : SUPlainInstaller -@end - -#endif diff --git a/Sparkle/Sparkle/SUPackageInstaller.m b/Sparkle/Sparkle/SUPackageInstaller.m deleted file mode 100755 index 2a38db44..00000000 --- a/Sparkle/Sparkle/SUPackageInstaller.m +++ /dev/null @@ -1,41 +0,0 @@ -// -// SUPackageInstaller.m -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUPackageInstaller.h" -#import -#import "SUConstants.h" - -@implementation SUPackageInstaller - -+ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)__unused host fileOperationToolPath:(NSString *)__unused fileOperationToolPath versionComparator:(id)__unused comparator completionHandler:(void (^)(NSError *))completionHandler -{ - // Run installer using the "open" command to ensure it is launched in front of current application. - // -W = wait until the app has quit. - // -n = Open another instance if already open. - // -b = app bundle identifier - NSString *command = @"/usr/bin/open"; - NSArray *args = @[@"-W", @"-n", @"-b", @"com.apple.installer", path]; - - if (![[NSFileManager defaultManager] fileExistsAtPath:command]) { - NSError *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUMissingInstallerToolError userInfo:@{ NSLocalizedDescriptionKey: @"Couldn't find Apple's installer tool!" }]; - [self finishInstallationToPath:installationPath withResult:NO error:error completionHandler:completionHandler]; - return; - } - - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - NSTask *installer = [NSTask launchedTaskWithLaunchPath:command arguments:args]; - [installer waitUntilExit]; - - // Known bug: if the installation fails or is canceled, Sparkle goes ahead and restarts, thinking everything is fine. - dispatch_async(dispatch_get_main_queue(), ^{ - [self finishInstallationToPath:installationPath withResult:YES error:nil completionHandler:completionHandler]; - }); - }); -} - -@end diff --git a/Sparkle/Sparkle/SUPipedUnarchiver.h b/Sparkle/Sparkle/SUPipedUnarchiver.h deleted file mode 100755 index 7304ba0a..00000000 --- a/Sparkle/Sparkle/SUPipedUnarchiver.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUPipedUnarchiver.h -// Sparkle -// -// Created by Andy Matuschak on 6/16/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPIPEDUNARCHIVER_H -#define SUPIPEDUNARCHIVER_H - -#import -#import "SUUnarchiver.h" - -@interface SUPipedUnarchiver : SUUnarchiver - -@end - -#endif diff --git a/Sparkle/Sparkle/SUPipedUnarchiver.m b/Sparkle/Sparkle/SUPipedUnarchiver.m deleted file mode 100755 index 0b0157c3..00000000 --- a/Sparkle/Sparkle/SUPipedUnarchiver.m +++ /dev/null @@ -1,167 +0,0 @@ -// -// SUPipedUnarchiver.m -// Sparkle -// -// Created by Andy Matuschak on 6/16/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUPipedUnarchiver.h" -#import "SUUnarchiver_Private.h" -#import "SULog.h" - - -@implementation SUPipedUnarchiver - -+ (SEL)selectorConformingToTypeOfPath:(NSString *)path -{ - static NSDictionary *typeSelectorDictionary; - if (!typeSelectorDictionary) - typeSelectorDictionary = @{ @".zip": @"extractZIP", - @".tar": @"extractTAR", - @".tar.gz": @"extractTGZ", - @".tgz": @"extractTGZ", - @".tar.bz2": @"extractTBZ", - @".tbz": @"extractTBZ", - @".tar.xz": @"extractTXZ", - @".txz": @"extractTXZ", - @".tar.lzma": @"extractTXZ"}; - - NSString *lastPathComponent = [path lastPathComponent]; - for (NSString *currentType in typeSelectorDictionary) - { - NSString *value = [typeSelectorDictionary objectForKey:currentType]; - assert(value); - - if ([currentType length] > [lastPathComponent length]) continue; - if ([[lastPathComponent substringFromIndex:[lastPathComponent length] - [currentType length]] isEqualToString:currentType]) { - return NSSelectorFromString(value); - } - } - return NULL; -} - -+ (BOOL)unsafeIfArchiveIsNotValidated -{ - return NO; -} - -- (void)start -{ - [NSThread detachNewThreadSelector:[[self class] selectorConformingToTypeOfPath:self.archivePath] toTarget:self withObject:nil]; -} - -+ (BOOL)canUnarchivePath:(NSString *)path -{ - return ([self selectorConformingToTypeOfPath:path] != nil); -} - -// This method abstracts the types that use a command line tool piping data from stdin. -- (void)extractArchivePipingDataToCommand:(NSString *)command args:(NSArray*)args -{ - // *** GETS CALLED ON NON-MAIN THREAD!!! - @autoreleasepool { - - NSString *destination = [self.archivePath stringByDeletingLastPathComponent]; - - SULog(@"Extracting using '%@' '%@' < '%@' '%@'", command, [args componentsJoinedByString:@"' '"], self.archivePath, destination); - - // Get the file size. - NSDictionary *attributes = [[NSFileManager defaultManager] attributesOfItemAtPath:self.archivePath error:nil]; - NSUInteger expectedLength = [[attributes objectForKey:NSFileSize] unsignedIntegerValue]; - if (expectedLength > 0) { - NSFileHandle *archiveInput = [NSFileHandle fileHandleForReadingAtPath:self.archivePath]; - - NSPipe *pipe = [NSPipe pipe]; - NSFileHandle *archiveOutput = [pipe fileHandleForWriting]; - - NSTask *task = [[NSTask alloc] init]; - [task setStandardInput:[pipe fileHandleForReading]]; - [task setStandardError:[NSFileHandle fileHandleWithStandardError]]; - [task setStandardOutput:[NSFileHandle fileHandleWithStandardOutput]]; - [task setLaunchPath:command]; - [task setArguments:[args arrayByAddingObject:destination]]; - [task launch]; - - NSUInteger bytesRead = 0; - do { - NSData *data = [archiveInput readDataOfLength:256*1024]; - NSUInteger len = [data length]; - if (!len) { - break; - } - bytesRead += len; - [archiveOutput writeData:data]; - dispatch_async(dispatch_get_main_queue(), ^{ - [self notifyDelegateOfProgress:(double)bytesRead / (double)expectedLength]; - }); - } - while(bytesRead < expectedLength); - - [archiveOutput closeFile]; - - [task waitUntilExit]; - - if ([task terminationStatus] == 0) { - if (bytesRead == expectedLength) { - dispatch_async(dispatch_get_main_queue(), ^{ - [self notifyDelegateOfSuccess]; - }); - return; - } else { - SULog(@"Extraction failed, command '%@' got only %ld of %ld bytes", command, (long)bytesRead, (long)expectedLength); - } - } else { - SULog(@"Extraction failed, command '%@' returned %d", command, [task terminationStatus]); - } - } else { - SULog(@"Extraction failed, archive '%@' is empty", self.archivePath); - } - - dispatch_async(dispatch_get_main_queue(), ^{ - [self notifyDelegateOfFailure]; - }); - } -} - -- (void)extractTAR -{ - // *** GETS CALLED ON NON-MAIN THREAD!!! - - [self extractArchivePipingDataToCommand:@"/usr/bin/tar" args:@[@"-xC"]]; -} - -- (void)extractTGZ -{ - // *** GETS CALLED ON NON-MAIN THREAD!!! - - [self extractArchivePipingDataToCommand:@"/usr/bin/tar" args:@[@"-zxC"]]; -} - -- (void)extractTBZ -{ - // *** GETS CALLED ON NON-MAIN THREAD!!! - - [self extractArchivePipingDataToCommand:@"/usr/bin/tar" args:@[@"-jxC"]]; -} - -- (void)extractZIP -{ - // *** GETS CALLED ON NON-MAIN THREAD!!! - - [self extractArchivePipingDataToCommand:@"/usr/bin/ditto" args:@[@"-x",@"-k",@"-"]]; -} - -- (void)extractTXZ -{ - // *** GETS CALLED ON NON-MAIN THREAD!!! - - [self extractArchivePipingDataToCommand:@"/usr/bin/tar" args:@[@"-zxC"]]; -} - -+ (void)load -{ - [self registerImplementation:self]; -} - -@end diff --git a/Sparkle/Sparkle/SUPlainInstaller.h b/Sparkle/Sparkle/SUPlainInstaller.h deleted file mode 100755 index 5bebdee8..00000000 --- a/Sparkle/Sparkle/SUPlainInstaller.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// SUPlainInstaller.h -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPLAININSTALLER_H -#define SUPLAININSTALLER_H - -#import - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUInstaller.h" -#import "SUVersionComparisonProtocol.h" - -@class SUHost; - -@interface SUPlainInstaller : SUInstaller - -+ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host fileOperationToolPath:(NSString *)fileOperationToolPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUPlainInstaller.m b/Sparkle/Sparkle/SUPlainInstaller.m deleted file mode 100755 index d11e3bb8..00000000 --- a/Sparkle/Sparkle/SUPlainInstaller.m +++ /dev/null @@ -1,184 +0,0 @@ -// -// SUPlainInstaller.m -// Sparkle -// -// Created by Andy Matuschak on 4/10/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUPlainInstaller.h" -#import "SUFileManager.h" -#import "SUCodeSigningVerifier.h" -#import "SUConstants.h" -#import "SUHost.h" -#import "SULog.h" - -@implementation SUPlainInstaller - -// Returns the bundle version from the specified host that is appropriate to use as a filename, or nil if we're unable to retrieve one -+ (NSString *)bundleVersionAppropriateForFilenameFromHost:(SUHost *)host -{ - NSString *bundleVersion = [host objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]; - NSString *trimmedVersion = @""; - - if (bundleVersion != nil) { - NSMutableCharacterSet *validCharacters = [NSMutableCharacterSet alphanumericCharacterSet]; - [validCharacters formUnionWithCharacterSet:[NSCharacterSet characterSetWithCharactersInString:@".-()"]]; - - trimmedVersion = [bundleVersion stringByTrimmingCharactersInSet:[validCharacters invertedSet]]; - } - - return trimmedVersion.length > 0 ? trimmedVersion : nil; -} - -+ (BOOL)performInstallationToURL:(NSURL *)installationURL fromUpdateAtURL:(NSURL *)newURL withHost:(SUHost *)host fileOperationToolPath:(NSString *)fileOperationToolPath error:(NSError * __autoreleasing *)error -{ - if (installationURL == nil || newURL == nil) { - // this really shouldn't happen but just in case - SULog(@"Failed to perform installation because either installation URL (%@) or new URL (%@) is nil", installationURL, newURL); - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: @"Failed to perform installation because the paths to install at and from are not valid" }]; - } - return NO; - } - - SUFileManager *fileManager = [SUFileManager fileManagerWithAuthorizationToolPath:fileOperationToolPath]; - - // Create a temporary directory for our new app that resides on our destination's volume - NSURL *tempNewDirectoryURL = [fileManager makeTemporaryDirectoryWithPreferredName:[installationURL.lastPathComponent.stringByDeletingPathExtension stringByAppendingString:@" (Incomplete Update)"] appropriateForDirectoryURL:installationURL.URLByDeletingLastPathComponent error:error]; - if (tempNewDirectoryURL == nil) { - SULog(@"Failed to make new temp directory"); - return NO; - } - - // Move the new app to our temporary directory - NSString *newURLLastPathComponent = newURL.lastPathComponent; - NSURL *newTempURL = [tempNewDirectoryURL URLByAppendingPathComponent:newURLLastPathComponent]; - if (![fileManager moveItemAtURL:newURL toURL:newTempURL error:error]) { - SULog(@"Failed to move the new app from %@ to its temp directory at %@", newURL.path, newTempURL.path); - [fileManager removeItemAtURL:tempNewDirectoryURL error:NULL]; - return NO; - } - - // Release our new app from quarantine, fix its owner and group IDs, and update its modification time while it's at our temporary destination - // We must leave moving the app to its destination as the final step in installing it, so that - // it's not possible our new app can be left in an incomplete state at the final destination - - NSError *quarantineError = nil; - if (![fileManager releaseItemFromQuarantineAtRootURL:newTempURL error:&quarantineError]) { - // Not big enough of a deal to fail the entire installation - SULog(@"Failed to release quarantine at %@ with error %@", newTempURL.path, quarantineError); - } - - NSURL *oldURL = [NSURL fileURLWithPath:host.bundlePath]; - if (oldURL == nil) { - // this really shouldn't happen but just in case - SULog(@"Failed to construct URL from bundle path: %@", host.bundlePath); - if (error != NULL) { - *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUInstallationError userInfo:@{ NSLocalizedDescriptionKey: @"Failed to perform installation because a path could not be constructed for the old installation" }]; - } - return NO; - } - - if (![fileManager changeOwnerAndGroupOfItemAtRootURL:newTempURL toMatchURL:oldURL error:error]) { - // But this is big enough of a deal to fail - SULog(@"Failed to change owner and group of new app at %@ to match old app at %@", newTempURL.path, oldURL.path); - [fileManager removeItemAtURL:tempNewDirectoryURL error:NULL]; - return NO; - } - - if (![fileManager updateModificationAndAccessTimeOfItemAtURL:newTempURL error:error]) { - // Not a fatal error, but a pretty unfortunate one - SULog(@"Failed to update modification and access time of new app at %@", newTempURL.path); - } - - // Decide on a destination name we should use for the older app when we move it around the file system - NSString *oldDestinationName = nil; - if (SPARKLE_APPEND_VERSION_NUMBER) { - NSString *oldBundleVersion = [self bundleVersionAppropriateForFilenameFromHost:host]; - - oldDestinationName = [oldURL.lastPathComponent.stringByDeletingPathExtension stringByAppendingFormat:@" (%@)", oldBundleVersion != nil ? oldBundleVersion : @"old"]; - } else { - oldDestinationName = oldURL.lastPathComponent.stringByDeletingPathExtension; - } - - NSString *oldURLExtension = oldURL.pathExtension; - NSString *oldDestinationNameWithPathExtension = [oldDestinationName stringByAppendingPathExtension:oldURLExtension]; - - // Create a temporary directory for our old app that resides on its volume - NSURL *tempOldDirectoryURL = [fileManager makeTemporaryDirectoryWithPreferredName:oldDestinationName appropriateForDirectoryURL:oldURL.URLByDeletingLastPathComponent error:error]; - if (tempOldDirectoryURL == nil) { - SULog(@"Failed to create temporary directory for old app at %@", oldURL.path); - [fileManager removeItemAtURL:tempNewDirectoryURL error:NULL]; - return NO; - } - - // Move the old app to the temporary directory - NSURL *oldTempURL = [tempOldDirectoryURL URLByAppendingPathComponent:oldDestinationNameWithPathExtension]; - if (![fileManager moveItemAtURL:oldURL toURL:oldTempURL error:error]) { - SULog(@"Failed to move the old app at %@ to a temporary location at %@", oldURL.path, oldTempURL.path); - - // Just forget about our updated app on failure - [fileManager removeItemAtURL:tempNewDirectoryURL error:NULL]; - [fileManager removeItemAtURL:tempOldDirectoryURL error:NULL]; - - return NO; - } - - // Move the new app to its final destination - if (![fileManager moveItemAtURL:newTempURL toURL:installationURL error:error]) { - SULog(@"Failed to move new app at %@ to final destination %@", newTempURL.path, installationURL.path); - - // Forget about our updated app on failure - [fileManager removeItemAtURL:tempNewDirectoryURL error:NULL]; - - // Attempt to restore our old app back the way it was on failure - [fileManager moveItemAtURL:oldTempURL toURL:oldURL error:NULL]; - [fileManager removeItemAtURL:tempOldDirectoryURL error:NULL]; - - return NO; - } - - // From here on out, we don't really need to bring up authorization if we haven't done so prior - SUFileManager *constrainedFileManager = [fileManager fileManagerByPreservingAuthorizationRights]; - - // Cleanup: move the old app to the trash - NSError *trashError = nil; - if (![constrainedFileManager moveItemAtURLToTrash:oldTempURL error:&trashError]) { - SULog(@"Failed to move %@ to trash with error %@", oldTempURL, trashError); - } - - [constrainedFileManager removeItemAtURL:tempOldDirectoryURL error:NULL]; - - [constrainedFileManager removeItemAtURL:tempNewDirectoryURL error:NULL]; - - return YES; -} - -+ (void)performInstallationToPath:(NSString *)installationPath fromPath:(NSString *)path host:(SUHost *)host fileOperationToolPath:(NSString *)fileOperationToolPath versionComparator:(id)comparator completionHandler:(void (^)(NSError *))completionHandler -{ - SUParameterAssert(host); - - BOOL allowDowngrades = SPARKLE_AUTOMATED_DOWNGRADES; - - // Prevent malicious downgrades - if (!allowDowngrades) { - if ([comparator compareVersion:[host version] toVersion:[[NSBundle bundleWithPath:path] objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]] == NSOrderedDescending) { - NSString *errorMessage = [NSString stringWithFormat:@"For security reasons, updates that downgrade version of the application are not allowed. Refusing to downgrade app from version %@ to %@. Aborting update.", [host version], [[NSBundle bundleWithPath:path] objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]]; - NSError *error = [NSError errorWithDomain:SUSparkleErrorDomain code:SUDowngradeError userInfo:@{ NSLocalizedDescriptionKey: errorMessage }]; - [self finishInstallationToPath:installationPath withResult:NO error:error completionHandler:completionHandler]; - return; - } - } - - dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ - NSError *error = nil; - BOOL result = [self performInstallationToURL:[NSURL fileURLWithPath:installationPath] fromUpdateAtURL:[NSURL fileURLWithPath:path] withHost:host fileOperationToolPath:fileOperationToolPath error:&error]; - - dispatch_async(dispatch_get_main_queue(), ^{ - [self finishInstallationToPath:installationPath withResult:result error:error completionHandler:completionHandler]; - }); - }); -} - -@end diff --git a/Sparkle/Sparkle/SUProbingUpdateDriver.h b/Sparkle/Sparkle/SUProbingUpdateDriver.h deleted file mode 100755 index bf897c8c..00000000 --- a/Sparkle/Sparkle/SUProbingUpdateDriver.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUProbingUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUPROBINGUPDATEDRIVER_H -#define SUPROBINGUPDATEDRIVER_H - -#import -#import "SUBasicUpdateDriver.h" - -// This replaces the old SUStatusChecker. -@interface SUProbingUpdateDriver : SUBasicUpdateDriver -@end - -#endif diff --git a/Sparkle/Sparkle/SUProbingUpdateDriver.m b/Sparkle/Sparkle/SUProbingUpdateDriver.m deleted file mode 100755 index 1fde6c6d..00000000 --- a/Sparkle/Sparkle/SUProbingUpdateDriver.m +++ /dev/null @@ -1,39 +0,0 @@ -// -// SUProbingUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUProbingUpdateDriver.h" -#import "SUUpdater.h" - -@implementation SUProbingUpdateDriver - -// Stop as soon as we have an answer! Since the superclass implementations are not called, we are responsible for notifying the delegate. - -- (void)didFindValidUpdate -{ - id updaterDelegate = [self.updater delegate]; - - if ([updaterDelegate respondsToSelector:@selector(updater:didFindValidUpdate:)]) - [updaterDelegate updater:self.updater didFindValidUpdate:self.updateItem]; - NSDictionary *userInfo = (self.updateItem != nil) ? @{ SUUpdaterAppcastItemNotificationKey: self.updateItem } : nil; - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidFindValidUpdateNotification object:self.updater userInfo:userInfo]; - [self abortUpdate]; -} - -- (void)didNotFindUpdate -{ - id updaterDelegate = [self.updater delegate]; - - if ([updaterDelegate respondsToSelector:@selector(updaterDidNotFindUpdate:)]) { - [updaterDelegate updaterDidNotFindUpdate:self.updater]; - } - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidNotFindUpdateNotification object:self.updater]; - - [self abortUpdate]; -} - -@end diff --git a/Sparkle/Sparkle/SUScheduledUpdateDriver.h b/Sparkle/Sparkle/SUScheduledUpdateDriver.h deleted file mode 100755 index dfdde51f..00000000 --- a/Sparkle/Sparkle/SUScheduledUpdateDriver.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUScheduledUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUSCHEDULEDUPDATEDRIVER_H -#define SUSCHEDULEDUPDATEDRIVER_H - -#import -#import "SUUIBasedUpdateDriver.h" - -@interface SUScheduledUpdateDriver : SUUIBasedUpdateDriver - -@end - -#endif diff --git a/Sparkle/Sparkle/SUScheduledUpdateDriver.m b/Sparkle/Sparkle/SUScheduledUpdateDriver.m deleted file mode 100755 index 9d6bf141..00000000 --- a/Sparkle/Sparkle/SUScheduledUpdateDriver.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// SUScheduledUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 5/6/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUScheduledUpdateDriver.h" -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" - -@interface SUScheduledUpdateDriver () - -@property (assign) BOOL showErrors; - -@end - -@implementation SUScheduledUpdateDriver - -@synthesize showErrors; - -- (void)didFindValidUpdate -{ - self.showErrors = YES; // We only start showing errors after we present the UI for the first time. - [super didFindValidUpdate]; -} - -- (void)didNotFindUpdate -{ - id updaterDelegate = [self.updater delegate]; - - if ([updaterDelegate respondsToSelector:@selector(updaterDidNotFindUpdate:)]) { - [updaterDelegate updaterDidNotFindUpdate:self.updater]; - } - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidNotFindUpdateNotification object:self.updater]; - - [self abortUpdate]; // Don't tell the user that no update was found; this was a scheduled update. -} - -- (void)abortUpdateWithError:(NSError *)error -{ - if (self.showErrors) { - [super abortUpdateWithError:error]; - } else { - // Call delegate separately here because otherwise it won't know we stopped. - // Normally this gets called by the superclass - id updaterDelegate = [self.updater delegate]; - if ([updaterDelegate respondsToSelector:@selector(updater:didAbortWithError:)]) { - [updaterDelegate updater:self.updater didAbortWithError:error]; - } - - [self abortUpdate]; - } -} - -@end diff --git a/Sparkle/Sparkle/SUStandardVersionComparator.h b/Sparkle/Sparkle/SUStandardVersionComparator.h deleted file mode 100755 index 2eaee42f..00000000 --- a/Sparkle/Sparkle/SUStandardVersionComparator.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// SUStandardVersionComparator.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUSTANDARDVERSIONCOMPARATOR_H -#define SUSTANDARDVERSIONCOMPARATOR_H - -#if __has_feature(modules) -@import Foundation; -#else -#import -#endif -#import "SUExport.h" -#import "SUVersionComparisonProtocol.h" - -/*! - Sparkle's default version comparator. - - This comparator is adapted from MacPAD, by Kevin Ballard. - It's "dumb" in that it does essentially string comparison, - in components split by character type. -*/ -SU_EXPORT @interface SUStandardVersionComparator : NSObject - -/*! - Returns a singleton instance of the comparator. -*/ -+ (SUStandardVersionComparator *)defaultComparator; - -/*! - Compares version strings through textual analysis. - - See the implementation for more details. -*/ -- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; -@end - -#endif diff --git a/Sparkle/Sparkle/SUStandardVersionComparator.m b/Sparkle/Sparkle/SUStandardVersionComparator.m deleted file mode 100755 index 415c3074..00000000 --- a/Sparkle/Sparkle/SUStandardVersionComparator.m +++ /dev/null @@ -1,170 +0,0 @@ -// -// SUStandardVersionComparator.m -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUStandardVersionComparator.h" - -@implementation SUStandardVersionComparator - -+ (SUStandardVersionComparator *)defaultComparator -{ - static SUStandardVersionComparator *defaultComparator = nil; - if (defaultComparator == nil) { - defaultComparator = [[SUStandardVersionComparator alloc] init]; - } - return defaultComparator; -} - -typedef NS_ENUM(NSInteger, SUCharacterType) { - kNumberType, - kStringType, - kSeparatorType, -}; - -- (SUCharacterType)typeOfCharacter:(NSString *)character -{ - if ([character isEqualToString:@"."]) { - return kSeparatorType; - } else if ([[NSCharacterSet decimalDigitCharacterSet] characterIsMember:[character characterAtIndex:0]]) { - return kNumberType; - } else if ([[NSCharacterSet whitespaceAndNewlineCharacterSet] characterIsMember:[character characterAtIndex:0]]) { - return kSeparatorType; - } else if ([[NSCharacterSet punctuationCharacterSet] characterIsMember:[character characterAtIndex:0]]) { - return kSeparatorType; - } else { - return kStringType; - } -} - -- (NSArray *)splitVersionString:(NSString *)version -{ - NSString *character; - NSMutableString *s; - NSUInteger i, n; - SUCharacterType oldType, newType; - NSMutableArray *parts = [NSMutableArray array]; - if ([version length] == 0) { - // Nothing to do here - return parts; - } - s = [[version substringToIndex:1] mutableCopy]; - oldType = [self typeOfCharacter:s]; - n = [version length] - 1; - for (i = 1; i <= n; ++i) { - character = [version substringWithRange:NSMakeRange(i, 1)]; - newType = [self typeOfCharacter:character]; - if (oldType != newType || oldType == kSeparatorType) { - // We've reached a new segment - NSString *aPart = [[NSString alloc] initWithString:s]; - [parts addObject:aPart]; - [s setString:character]; - } else { - // Add character to string and continue - [s appendString:character]; - } - oldType = newType; - } - - // Add the last part onto the array - [parts addObject:[NSString stringWithString:s]]; - return parts; -} - -- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB -{ - NSArray *partsA = [self splitVersionString:versionA]; - NSArray *partsB = [self splitVersionString:versionB]; - - NSString *partA, *partB; - NSUInteger i, n; - long long valueA, valueB; - SUCharacterType typeA, typeB; - - n = MIN([partsA count], [partsB count]); - for (i = 0; i < n; ++i) { - partA = [partsA objectAtIndex:i]; - partB = [partsB objectAtIndex:i]; - - typeA = [self typeOfCharacter:partA]; - typeB = [self typeOfCharacter:partB]; - - // Compare types - if (typeA == typeB) { - // Same type; we can compare - if (typeA == kNumberType) { - valueA = [partA longLongValue]; - valueB = [partB longLongValue]; - if (valueA > valueB) { - return NSOrderedDescending; - } else if (valueA < valueB) { - return NSOrderedAscending; - } - } else if (typeA == kStringType) { - NSComparisonResult result = [partA compare:partB]; - if (result != NSOrderedSame) { - return result; - } - } - } else { - // Not the same type? Now we have to do some validity checking - if (typeA != kStringType && typeB == kStringType) { - // typeA wins - return NSOrderedDescending; - } else if (typeA == kStringType && typeB != kStringType) { - // typeB wins - return NSOrderedAscending; - } else { - // One is a number and the other is a period. The period is invalid - if (typeA == kNumberType) { - return NSOrderedDescending; - } else { - return NSOrderedAscending; - } - } - } - } - // The versions are equal up to the point where they both still have parts - // Lets check to see if one is larger than the other - if ([partsA count] != [partsB count]) { - // Yep. Lets get the next part of the larger - // n holds the index of the part we want. - NSString *missingPart; - SUCharacterType missingType; - NSComparisonResult shorterResult, largerResult; - - if ([partsA count] > [partsB count]) { - missingPart = [partsA objectAtIndex:n]; - shorterResult = NSOrderedAscending; - largerResult = NSOrderedDescending; - } else { - missingPart = [partsB objectAtIndex:n]; - shorterResult = NSOrderedDescending; - largerResult = NSOrderedAscending; - } - - missingType = [self typeOfCharacter:missingPart]; - // Check the type - if (missingType == kStringType) { - // It's a string. Shorter version wins - return shorterResult; - } else { - // It's a number/period. Larger version wins - return largerResult; - } - } - - // The 2 strings are identical - return NSOrderedSame; -} - - -@end diff --git a/Sparkle/Sparkle/SUStatus.xib b/Sparkle/Sparkle/SUStatus.xib deleted file mode 100755 index d225d6c2..00000000 --- a/Sparkle/Sparkle/SUStatus.xib +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSIsNil - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/SUStatusController.h b/Sparkle/Sparkle/SUStatusController.h deleted file mode 100755 index 03407c87..00000000 --- a/Sparkle/Sparkle/SUStatusController.h +++ /dev/null @@ -1,36 +0,0 @@ -// -// SUStatusController.h -// Sparkle -// -// Created by Andy Matuschak on 3/14/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUSTATUSCONTROLLER_H -#define SUSTATUSCONTROLLER_H - -#import "SUWindowController.h" - -@class SUHost; -@interface SUStatusController : SUWindowController -@property (weak) IBOutlet NSButton *actionButton; -@property (weak) IBOutlet NSProgressIndicator *progressBar; -@property (weak) IBOutlet NSTextField *statusTextField; - -@property (copy) NSString *statusText; -@property double progressValue; -@property (nonatomic) double maxProgressValue; -@property (getter=isButtonEnabled) BOOL buttonEnabled; - -- (instancetype)initWithHost:(SUHost *)host; - -// Pass 0 for the max progress value to get an indeterminate progress bar. -// Pass nil for the status text to not show it. -- (void)beginActionWithTitle:(NSString *)title maxProgressValue:(double)maxProgressValue statusText:(NSString *)statusText; - -// If isDefault is YES, the button's key equivalent will be \r. -- (void)setButtonTitle:(NSString *)buttonTitle target:(id)target action:(SEL)action isDefault:(BOOL)isDefault; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUStatusController.m b/Sparkle/Sparkle/SUStatusController.m deleted file mode 100755 index 23363248..00000000 --- a/Sparkle/Sparkle/SUStatusController.m +++ /dev/null @@ -1,129 +0,0 @@ -// -// SUStatusController.m -// Sparkle -// -// Created by Andy Matuschak on 3/14/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUOperatingSystem.h" -#import "SUStatusController.h" -#import "SUHost.h" - -@interface SUStatusController () -@property (copy) NSString *title, *buttonTitle; -@property (strong) SUHost *host; -@end - -@implementation SUStatusController -@synthesize progressValue; -@synthesize maxProgressValue; -@synthesize statusText; -@synthesize title; -@synthesize buttonTitle; -@synthesize host; -@synthesize actionButton; -@synthesize progressBar; -@synthesize statusTextField; - -- (instancetype)initWithHost:(SUHost *)aHost -{ - self = [super initWithWindowNibName:@"SUStatus"]; - if (self) - { - self.host = aHost; - [self setShouldCascadeWindows:NO]; - } - return self; -} - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; } - -- (void)windowDidLoad -{ - if ([self.host isBackgroundApplication]) { - [[self window] setLevel:NSFloatingWindowLevel]; - } - - [[self window] center]; - [[self window] setFrameAutosaveName:@"SUStatusFrame"]; - [self.progressBar setUsesThreadedAnimation:YES]; - - if ([SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 11, 0}]) { -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wpartial-availability" - [self.statusTextField setFont:[NSFont monospacedDigitSystemFontOfSize:0 weight:NSFontWeightRegular]]; -#pragma clang diagnostic pop - } -} - -- (NSString *)windowTitle -{ - return [NSString stringWithFormat:SULocalizedString(@"Updating %@", nil), [self.host name]]; -} - -- (NSImage *)applicationIcon -{ - return [self.host icon]; -} - -- (void)beginActionWithTitle:(NSString *)aTitle maxProgressValue:(double)aMaxProgressValue statusText:(NSString *)aStatusText -{ - self.title = aTitle; - - self.maxProgressValue = aMaxProgressValue; - self.statusText = aStatusText; -} - -- (void)setButtonTitle:(NSString *)aButtonTitle target:(id)target action:(SEL)action isDefault:(BOOL)isDefault -{ - self.buttonTitle = aButtonTitle; - - [self window]; - [self.actionButton sizeToFit]; - // Except we're going to add 15 px for padding. - [self.actionButton setFrameSize:NSMakeSize([self.actionButton frame].size.width + 15, [self.actionButton frame].size.height)]; - // Now we have to move it over so that it's always 15px from the side of the window. - [self.actionButton setFrameOrigin:NSMakePoint([[self window] frame].size.width - 15 - [self.actionButton frame].size.width, [self.actionButton frame].origin.y)]; - // Redisplay superview to clean up artifacts - [[self.actionButton superview] display]; - - [self.actionButton setTarget:target]; - [self.actionButton setAction:action]; - [self.actionButton setKeyEquivalent:isDefault ? @"\r" : @""]; - - // 06/05/2008 Alex: Avoid a crash when cancelling during the extraction - [self setButtonEnabled:(target != nil)]; -} - -- (BOOL)progressBarShouldAnimate -{ - return YES; -} - -- (void)setButtonEnabled:(BOOL)enabled -{ - [self.actionButton setEnabled:enabled]; -} - -- (BOOL)isButtonEnabled -{ - return [self.actionButton isEnabled]; -} - -- (void)setMaxProgressValue:(double)value -{ - if (value < 0.0) value = 0.0; - maxProgressValue = value; - [self setProgressValue:0.0]; - [self.progressBar setIndeterminate:(value == 0.0)]; - [self.progressBar startAnimation:self]; - [self.progressBar setUsesThreadedAnimation:YES]; -} - -@end diff --git a/Sparkle/Sparkle/SUSystemProfiler.h b/Sparkle/Sparkle/SUSystemProfiler.h deleted file mode 100755 index 37b4835a..00000000 --- a/Sparkle/Sparkle/SUSystemProfiler.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// SUSystemProfiler.h -// Sparkle -// -// Created by Andy Matuschak on 12/22/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUSYSTEMPROFILER_H -#define SUSYSTEMPROFILER_H - -#import - -@class SUHost; -@interface SUSystemProfiler : NSObject -+ (SUSystemProfiler *)sharedSystemProfiler; -- (NSMutableArray *)systemProfileArrayForHost:(SUHost *)host; -@end - -#endif diff --git a/Sparkle/Sparkle/SUSystemProfiler.m b/Sparkle/Sparkle/SUSystemProfiler.m deleted file mode 100755 index 4071da6b..00000000 --- a/Sparkle/Sparkle/SUSystemProfiler.m +++ /dev/null @@ -1,172 +0,0 @@ -// -// SUSystemProfiler.m -// Sparkle -// -// Created by Andy Matuschak on 12/22/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// Adapted from Sparkle+, by Tom Harrington. -// - -#import -#import "SUSystemProfiler.h" - -#import "SUHost.h" -#import "SUOperatingSystem.h" -#include - -static NSString *const SUSystemProfilerApplicationNameKey = @"appName"; -static NSString *const SUSystemProfilerApplicationVersionKey = @"appVersion"; -static NSString *const SUSystemProfilerCPU64bitKey = @"cpu64bit"; -static NSString *const SUSystemProfilerCPUCountKey = @"ncpu"; -static NSString *const SUSystemProfilerCPUFrequencyKey = @"cpuFreqMHz"; -static NSString *const SUSystemProfilerCPUTypeKey = @"cputype"; -static NSString *const SUSystemProfilerCPUSubtypeKey = @"cpusubtype"; -static NSString *const SUSystemProfilerHardwareModelKey = @"model"; -static NSString *const SUSystemProfilerMemoryKey = @"ramMB"; -static NSString *const SUSystemProfilerOperatingSystemVersionKey = @"osVersion"; -static NSString *const SUSystemProfilerPreferredLanguageKey = @"lang"; - -@implementation SUSystemProfiler -+ (SUSystemProfiler *)sharedSystemProfiler -{ - static SUSystemProfiler *sharedSystemProfiler = nil; - if (!sharedSystemProfiler) { - sharedSystemProfiler = [[self alloc] init]; - } - return sharedSystemProfiler; -} - -- (NSDictionary *)modelTranslationTable -{ - // Use explicit class to use the correct bundle even when subclassed - NSString *path = [[NSBundle bundleForClass:[SUSystemProfiler class]] pathForResource:@"SUModelTranslation" ofType:@"plist"]; - return [[NSDictionary alloc] initWithContentsOfFile:path]; -} - -- (NSMutableArray *)systemProfileArrayForHost:(SUHost *)host -{ - NSDictionary *modelTranslation = [self modelTranslationTable]; - - // Gather profile information and append it to the URL. - NSMutableArray *profileArray = [NSMutableArray array]; - NSArray *profileDictKeys = @[@"key", @"displayKey", @"value", @"displayValue"]; - int error = 0; - int value = 0; - size_t length = sizeof(value); - - // OS version - NSString *currentSystemVersion = [SUOperatingSystem systemVersionString]; - if (currentSystemVersion != nil) { - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerOperatingSystemVersionKey, @"OS Version", currentSystemVersion, currentSystemVersion] forKeys:profileDictKeys]]; - } - - // CPU type (decoder info for values found here is in mach/machine.h) - error = sysctlbyname("hw.cputype", &value, &length, NULL, 0); - int cpuType = -1; - if (error == 0) { - cpuType = value; - NSString *visibleCPUType; - switch (value) { - case CPU_TYPE_ARM: visibleCPUType = @"ARM"; break; - case CPU_TYPE_X86: visibleCPUType = @"Intel"; break; - case CPU_TYPE_POWERPC: visibleCPUType = @"PowerPC"; break; - default: visibleCPUType = @"Unknown"; break; - } - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerCPUTypeKey, @"CPU Type", @(value), visibleCPUType] forKeys:profileDictKeys]]; - } - error = sysctlbyname("hw.cpu64bit_capable", &value, &length, NULL, 0); - if (error != 0) { - error = sysctlbyname("hw.optional.x86_64", &value, &length, NULL, 0); //x86 specific - } - if (error != 0) { - error = sysctlbyname("hw.optional.64bitops", &value, &length, NULL, 0); //PPC specific - } - - BOOL is64bit = NO; - - if (error == 0) { - is64bit = value == 1; - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerCPU64bitKey, @"CPU is 64-Bit?", @(is64bit), is64bit ? @"Yes" : @"No"] forKeys:profileDictKeys]]; - } - error = sysctlbyname("hw.cpusubtype", &value, &length, NULL, 0); - if (error == 0) { - NSString *visibleCPUSubType; - if (cpuType == 7) { - // Intel - // TODO: other Intel processors, like Core i7, i5, i3, Xeon? - visibleCPUSubType = is64bit ? @"Intel Core 2" : @"Intel Core"; // If anyone knows how to tell a Core Duo from a Core Solo, please email tph@atomicbird.com - } else if (cpuType == 18) { - // PowerPC - switch (value) { - case 9: visibleCPUSubType=@"G3"; break; - case 10: case 11: visibleCPUSubType=@"G4"; break; - case 100: visibleCPUSubType=@"G5"; break; - default: visibleCPUSubType=@"Other"; break; - } - } else { - visibleCPUSubType = @"Other"; - } - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerCPUSubtypeKey, @"CPU Subtype", @(value), visibleCPUSubType] forKeys:profileDictKeys]]; - } - error = sysctlbyname("hw.model", NULL, &length, NULL, 0); - if (error == 0) { - char *cpuModel = (char *)malloc(sizeof(char) * length); - if (cpuModel != NULL) { - error = sysctlbyname("hw.model", cpuModel, &length, NULL, 0); - if (error == 0) { - NSString *rawModelName = @(cpuModel); - NSString *visibleModelName = [modelTranslation objectForKey:rawModelName]; - if (visibleModelName == nil) { - visibleModelName = rawModelName; - } - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerHardwareModelKey, @"Mac Model", rawModelName, visibleModelName] forKeys:profileDictKeys]]; - } - free(cpuModel); - } - } - - // Number of CPUs - error = sysctlbyname("hw.ncpu", &value, &length, NULL, 0); - if (error == 0) { - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerCPUCountKey, @"Number of CPUs", @(value), @(value)] forKeys:profileDictKeys]]; - } - - // User preferred language - NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; - NSArray *languages = [defs objectForKey:@"AppleLanguages"]; - if ([languages count] > 0) { - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerPreferredLanguageKey, @"Preferred Language", [languages objectAtIndex:0], [languages objectAtIndex:0]] forKeys:profileDictKeys]]; - } - - // Application sending the request - NSString *appName = [host name]; - if (appName) { - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerApplicationNameKey, @"Application Name", appName, appName] forKeys:profileDictKeys]]; - } - NSString *appVersion = [host version]; - if (appVersion) { - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerApplicationVersionKey, @"Application Version", appVersion, appVersion] forKeys:profileDictKeys]]; - } - - // Number of displays? - - // CPU speed - unsigned long hz; - size_t hz_size = sizeof(unsigned long); - if (sysctlbyname("hw.cpufrequency", &hz, &hz_size, NULL, 0) == 0) { - unsigned long mhz = hz / 1000000; - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerCPUFrequencyKey, @"CPU Speed (MHz)", @(mhz), @(mhz / 1000.)] forKeys:profileDictKeys]]; - } - - // amount of RAM - unsigned long bytes; - size_t bytes_size = sizeof(unsigned long); - if (sysctlbyname("hw.memsize", &bytes, &bytes_size, NULL, 0) == 0) { - double megabytes = bytes / (1024. * 1024.); - [profileArray addObject:[NSDictionary dictionaryWithObjects:@[SUSystemProfilerMemoryKey, @"Memory (MB)", @(megabytes), @(megabytes)] forKeys:profileDictKeys]]; - } - - return profileArray; -} - -@end diff --git a/Sparkle/Sparkle/SUUIBasedUpdateDriver.h b/Sparkle/Sparkle/SUUIBasedUpdateDriver.h deleted file mode 100755 index 8148912b..00000000 --- a/Sparkle/Sparkle/SUUIBasedUpdateDriver.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// SUUIBasedUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/5/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUIBASEDUPDATEDRIVER_H -#define SUUIBASEDUPDATEDRIVER_H - -#import -#import "SUBasicUpdateDriver.h" -#import "SUUpdateAlert.h" - -@class SUStatusController; - -@interface SUUIBasedUpdateDriver : SUBasicUpdateDriver - -- (void)showAlert:(NSAlert *)alert; -- (IBAction)cancelDownload:(id)sender; -- (void)installAndRestart:(id)sender; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUUIBasedUpdateDriver.m b/Sparkle/Sparkle/SUUIBasedUpdateDriver.m deleted file mode 100755 index 0a0ae572..00000000 --- a/Sparkle/Sparkle/SUUIBasedUpdateDriver.m +++ /dev/null @@ -1,307 +0,0 @@ -// -// SUUIBasedUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 5/5/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUUIBasedUpdateDriver.h" - -#import "SUUpdateAlert.h" -#import "SUUpdater_Private.h" -#import "SUHost.h" -#import "SUOperatingSystem.h" -#import "SUStatusController.h" -#import "SUConstants.h" - -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 1080 -@interface NSByteCountFormatter : NSFormatter { -@private - unsigned int _allowedUnits; - char _countStyle; - BOOL _allowsNonnumericFormatting, _includesUnit, _includesCount, _includesActualByteCount, - _adaptive, _zeroPadsFractionDigits; - int _formattingContext; - int _reserved[5]; -} -+ (NSString *)stringFromByteCount:(long long)byteCount - countStyle:(NSByteCountFormatterCountStyle)countStyle; -@end -#endif - -@interface SUUIBasedUpdateDriver () - -@property (strong) SUStatusController *statusController; -@property (strong) SUUpdateAlert *updateAlert; - -@end - -@implementation SUUIBasedUpdateDriver - -@synthesize statusController; -@synthesize updateAlert; - -- (instancetype)initWithUpdater:(SUUpdater *)anUpdater -{ - if ((self = [super initWithUpdater:anUpdater])) { - self.automaticallyInstallUpdates = NO; - } - return self; -} - -- (void)didFindValidUpdate -{ - if ([[self.updater delegate] respondsToSelector:@selector(updater:didFindValidUpdate:)]) { - [[self.updater delegate] updater:self.updater didFindValidUpdate:self.updateItem]; - } - - if (self.automaticallyInstallUpdates) { - [self updateAlertFinishedWithChoice:SUInstallUpdateChoice]; - return; - } - - self.updateAlert = [[SUUpdateAlert alloc] initWithAppcastItem:self.updateItem host:self.host completionBlock:^(SUUpdateAlertChoice choice) { - [self updateAlertFinishedWithChoice:choice]; - }]; - - id versDisp = nil; - if ([[self.updater delegate] respondsToSelector:@selector(versionDisplayerForUpdater:)]) { - versDisp = [[self.updater delegate] versionDisplayerForUpdater:self.updater]; - } - [self.updateAlert setVersionDisplayer:versDisp]; - - // If the app is a menubar app or the like, we need to focus it first and alter the - // update prompt to behave like a normal window. Otherwise if the window were hidden - // there may be no way for the application to be activated to make it visible again. - if ([self.host isBackgroundApplication]) { - [[self.updateAlert window] setHidesOnDeactivate:NO]; - [NSApp activateIgnoringOtherApps:YES]; - } - - // Only show the update alert if the app is active; otherwise, we'll wait until it is. - if ([NSApp isActive]) - [[self.updateAlert window] makeKeyAndOrderFront:self]; - else - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(applicationDidBecomeActive:) name:NSApplicationDidBecomeActiveNotification object:NSApp]; -} - -- (void)didNotFindUpdate -{ - if ([[self.updater delegate] respondsToSelector:@selector(updaterDidNotFindUpdate:)]) - [[self.updater delegate] updaterDidNotFindUpdate:self.updater]; - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdaterDidNotFindUpdateNotification object:self.updater]; - - if (!self.automaticallyInstallUpdates) { - NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = SULocalizedString(@"You're up-to-date!", "Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates."); - alert.informativeText = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is currently the newest version available.", nil), [self.host name], [self.host displayVersion]]; - [alert addButtonWithTitle:SULocalizedString(@"OK", nil)]; - [self showAlert:alert]; - } - - [self abortUpdate]; -} - -- (void)applicationDidBecomeActive:(NSNotification *)__unused aNotification -{ - [[self.updateAlert window] makeKeyAndOrderFront:self]; - [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationDidBecomeActiveNotification object:NSApp]; -} - -- (void)updateAlertFinishedWithChoice:(SUUpdateAlertChoice)choice -{ - self.updateAlert = nil; - [self.host setObject:nil forUserDefaultsKey:SUSkippedVersionKey]; - switch (choice) { - case SUInstallUpdateChoice: - [self downloadUpdate]; - break; - - case SUOpenInfoURLChoice: - [[NSWorkspace sharedWorkspace] openURL:[self.updateItem infoURL]]; - [self abortUpdate]; - break; - - case SUSkipThisVersionChoice: - [self.host setObject:[self.updateItem versionString] forUserDefaultsKey:SUSkippedVersionKey]; - [self abortUpdate]; - break; - - case SURemindMeLaterChoice: - [self abortUpdate]; - break; - } -} - -- (void)downloadUpdate -{ - BOOL createdStatusController = NO; - if (self.statusController == nil) { - self.statusController = [[SUStatusController alloc] initWithHost:self.host]; - createdStatusController = YES; - } - - [self.statusController beginActionWithTitle:SULocalizedString(@"Downloading update...", @"Take care not to overflow the status window.") maxProgressValue:0.0 statusText:nil]; - [self.statusController setButtonTitle:SULocalizedString(@"Cancel", nil) target:self action:@selector(cancelDownload:) isDefault:NO]; - [self.statusController setButtonEnabled:YES]; - - if (createdStatusController) { - [self.statusController showWindow:self]; - } - - [super downloadUpdate]; -} - -- (void)download:(NSURLDownload *)__unused download didReceiveResponse:(NSURLResponse *)response -{ - [self.statusController setMaxProgressValue:[response expectedContentLength]]; -} - -- (NSString *)localizedStringFromByteCount:(long long)value -{ - if (![SUOperatingSystem isOperatingSystemAtLeastVersion:(NSOperatingSystemVersion){10, 8, 0}]) { - if (value < 1000) { - return [NSString stringWithFormat:@"%.0lf %@", value / 1.0, - SULocalizedString(@"B", @"the unit for bytes")]; - } - - if (value < 1000 * 1000) { - return [NSString stringWithFormat:@"%.0lf %@", value / 1000.0, - SULocalizedString(@"KB", @"the unit for kilobytes")]; - } - - if (value < 1000 * 1000 * 1000) { - return [NSString stringWithFormat:@"%.1lf %@", value / 1000.0 / 1000.0, - SULocalizedString(@"MB", @"the unit for megabytes")]; - } - - return [NSString stringWithFormat:@"%.2lf %@", value / 1000.0 / 1000.0 / 1000.0, - SULocalizedString(@"GB", @"the unit for gigabytes")]; - } - -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wpartial-availability" - NSByteCountFormatter *formatter = [[NSByteCountFormatter alloc] init]; - [formatter setZeroPadsFractionDigits:YES]; - return [formatter stringFromByteCount:value]; -#pragma clang diagnostic pop -} - -- (void)download:(NSURLDownload *)__unused download didReceiveDataOfLength:(NSUInteger)length -{ - [self.statusController setProgressValue:[self.statusController progressValue] + (double)length]; - if ([self.statusController maxProgressValue] > 0.0) - [self.statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ of %@", nil), [self localizedStringFromByteCount:(long long)self.statusController.progressValue], [self localizedStringFromByteCount:(long long)self.statusController.maxProgressValue]]]; - else - [self.statusController setStatusText:[NSString stringWithFormat:SULocalizedString(@"%@ downloaded", nil), [self localizedStringFromByteCount:(long long)self.statusController.progressValue]]]; -} - -- (IBAction)cancelDownload:(id)__unused sender -{ - if (self.download) { - [self.download cancel]; - if ([[self.updater delegate] respondsToSelector:@selector(userDidCancelDownload:)]) { - [[self.updater delegate] userDidCancelDownload:self.updater]; - } - } - [self abortUpdate]; -} - -- (void)extractUpdate -{ - // Now we have to extract the downloaded archive. - [self.statusController beginActionWithTitle:SULocalizedString(@"Extracting update...", @"Take care not to overflow the status window.") maxProgressValue:0.0 statusText:nil]; - [self.statusController setButtonEnabled:NO]; - [super extractUpdate]; -} - -- (void)unarchiver:(SUUnarchiver *)__unused ua extractedProgress:(double)progress -{ - // We do this here instead of in extractUpdate so that we only have a determinate progress bar for archives with progress. - if ([self.statusController maxProgressValue] == 0.0) { - [self.statusController setMaxProgressValue:1]; - } - [self.statusController setProgressValue:progress]; -} - -- (void)unarchiverDidFinish:(SUUnarchiver *)__unused ua -{ - if (self.automaticallyInstallUpdates) { - [self installWithToolAndRelaunch:YES]; - return; - } - - [self.statusController beginActionWithTitle:SULocalizedString(@"Ready to Install", nil) maxProgressValue:1.0 statusText:nil]; - [self.statusController setProgressValue:1.0]; // Fill the bar. - [self.statusController setButtonEnabled:YES]; - [self.statusController setButtonTitle:SULocalizedString(@"Install and Relaunch", nil) target:self action:@selector(installAndRestart:) isDefault:YES]; - [[self.statusController window] makeKeyAndOrderFront:self]; - [NSApp requestUserAttention:NSInformationalRequest]; -} - -- (void)installAndRestart:(id)__unused sender -{ - [self installWithToolAndRelaunch:YES]; -} - -- (void)installWithToolAndRelaunch:(BOOL)relaunch -{ - [self.statusController beginActionWithTitle:SULocalizedString(@"Installing update...", @"Take care not to overflow the status window.") maxProgressValue:0.0 statusText:nil]; - [self.statusController setButtonEnabled:NO]; - [super installWithToolAndRelaunch:relaunch]; -} - -- (void)terminateApp -{ - // if a user chooses to NOT relaunch the app (as is the case with WebKit - // when it asks you if you are sure you want to close the app with multiple - // tabs open), the status window still stays on the screen and obscures - // other windows; with this fix, it doesn't - - if (self.statusController) { - [self.statusController close]; - self.statusController = nil; - } - - [super terminateApp]; -} - -- (void)abortUpdateWithError:(NSError *)error -{ - NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = SULocalizedString(@"Update Error!", nil); - alert.informativeText = [NSString stringWithFormat:@"%@", [error localizedDescription]]; - [alert addButtonWithTitle:SULocalizedString(@"Cancel Update", nil)]; - [self showAlert:alert]; - [super abortUpdateWithError:error]; -} - -- (void)abortUpdate -{ - if (self.statusController) - { - [self.statusController close]; - self.statusController = nil; - } - [super abortUpdate]; -} - -- (void)showAlert:(NSAlert *)alert -{ - if ([[self.updater delegate] respondsToSelector:@selector(updaterWillShowModalAlert:)]) { - [[self.updater delegate] updaterWillShowModalAlert:self.updater]; - } - - // When showing a modal alert we need to ensure that background applications - // are focused to inform the user since there is no dock icon to notify them. - if ([self.host isBackgroundApplication]) { [NSApp activateIgnoringOtherApps:YES]; } - - [alert setIcon:[self.host icon]]; - [alert runModal]; - - if ([[self.updater delegate] respondsToSelector:@selector(updaterDidShowModalAlert:)]) - [[self.updater delegate] updaterDidShowModalAlert:self.updater]; -} - -@end diff --git a/Sparkle/Sparkle/SUUnarchiver.h b/Sparkle/Sparkle/SUUnarchiver.h deleted file mode 100755 index e2f79f04..00000000 --- a/Sparkle/Sparkle/SUUnarchiver.h +++ /dev/null @@ -1,39 +0,0 @@ -// -// SUUnarchiver.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUNARCHIVER_H -#define SUUNARCHIVER_H - -#import - -@class SUHost; -@protocol SUUnarchiverDelegate; - -@interface SUUnarchiver : NSObject - -@property (copy, readonly) NSString *archivePath; -@property (copy, readonly) NSString *updateHostBundlePath; -@property (copy, readonly) NSString *decryptionPassword; -@property (weak) id delegate; - -+ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)host withPassword:(NSString *)decryptionPassword; - -+ (BOOL)unsafeIfArchiveIsNotValidated; - -- (void)start; - -@end - -@protocol SUUnarchiverDelegate -- (void)unarchiverDidFinish:(SUUnarchiver *)unarchiver; -- (void)unarchiverDidFail:(SUUnarchiver *)unarchiver; -@optional -- (void)unarchiver:(SUUnarchiver *)unarchiver extractedProgress:(double)progress; -@end - -#endif diff --git a/Sparkle/Sparkle/SUUnarchiver.m b/Sparkle/Sparkle/SUUnarchiver.m deleted file mode 100755 index b12d0648..00000000 --- a/Sparkle/Sparkle/SUUnarchiver.m +++ /dev/null @@ -1,99 +0,0 @@ -// -// SUUnarchiver.m -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - - -#import "SUUpdater.h" - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUVersionComparisonProtocol.h" -#import "SUUnarchiver.h" -#import "SUUnarchiver_Private.h" - -@implementation SUUnarchiver - -@synthesize archivePath; -@synthesize updateHostBundlePath; -@synthesize delegate; -@synthesize decryptionPassword; - -+ (SUUnarchiver *)unarchiverForPath:(NSString *)path updatingHostBundlePath:(NSString *)hostPath withPassword:(NSString *)decryptionPassword -{ - for (id current in [self unarchiverImplementations]) { - if ([current canUnarchivePath:path]) { - return [[current alloc] initWithPath:path hostBundlePath:hostPath password:decryptionPassword]; - } - } - return nil; -} - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], self.archivePath]; } - -- (void)start -{ - // No-op -} - -- (instancetype)initWithPath:(NSString *)path hostBundlePath:(NSString *)hostPath password:(NSString *)password -{ - if ((self = [super init])) - { - archivePath = [path copy]; - updateHostBundlePath = hostPath; - decryptionPassword = password; - } - return self; -} - -+ (BOOL)canUnarchivePath:(NSString *)__unused path -{ - return NO; -} - -+ (BOOL)unsafeIfArchiveIsNotValidated -{ - return NO; -} - -- (void)notifyDelegateOfProgress:(double)progress -{ - if ([self.delegate respondsToSelector:@selector(unarchiver:extractedProgress:)]) { - [self.delegate unarchiver:self extractedProgress:progress]; - } -} - -- (void)notifyDelegateOfSuccess -{ - if ([self.delegate respondsToSelector:@selector(unarchiverDidFinish:)]) { - [self.delegate unarchiverDidFinish:self]; - } -} - -- (void)notifyDelegateOfFailure -{ - if ([self.delegate respondsToSelector:@selector(unarchiverDidFail:)]) { - [self.delegate unarchiverDidFail:self]; - } -} - -static NSMutableArray *gUnarchiverImplementations; - -+ (void)registerImplementation:(Class)implementation -{ - if (!gUnarchiverImplementations) { - gUnarchiverImplementations = [[NSMutableArray alloc] init]; - } - [gUnarchiverImplementations addObject:implementation]; -} - -+ (NSArray *)unarchiverImplementations -{ - return [NSArray arrayWithArray:gUnarchiverImplementations]; -} - -@end diff --git a/Sparkle/Sparkle/SUUnarchiver_Private.h b/Sparkle/Sparkle/SUUnarchiver_Private.h deleted file mode 100755 index c29d68cf..00000000 --- a/Sparkle/Sparkle/SUUnarchiver_Private.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// SUUnarchiver_Private.h -// Sparkle -// -// Created by Andy Matuschak on 6/17/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUNARCHIVER_PRIVATE_H -#define SUUNARCHIVER_PRIVATE_H - -#import -#import "SUUnarchiver.h" - -@interface SUUnarchiver (Private) -+ (void)registerImplementation:(Class)implementation; -+ (NSArray *)unarchiverImplementations; -+ (BOOL)canUnarchivePath:(NSString *)path; -- (instancetype)initWithPath:(NSString *)archive hostBundlePath:(NSString *)host; - -- (void)notifyDelegateOfProgress:(double)progress; -- (void)notifyDelegateOfSuccess; -- (void)notifyDelegateOfFailure; -@end - -#endif diff --git a/Sparkle/Sparkle/SUUpdateAlert.h b/Sparkle/Sparkle/SUUpdateAlert.h deleted file mode 100755 index 999afd5e..00000000 --- a/Sparkle/Sparkle/SUUpdateAlert.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// SUUpdateAlert.h -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATEALERT_H -#define SUUPDATEALERT_H - -#import "SUWindowController.h" -#import "SUVersionDisplayProtocol.h" - -@protocol SUUpdateAlertDelegate; - -typedef NS_ENUM(NSInteger, SUUpdateAlertChoice) { - SUInstallUpdateChoice, - SURemindMeLaterChoice, - SUSkipThisVersionChoice, - SUOpenInfoURLChoice -}; - -@class SUAppcastItem, SUHost; -@interface SUUpdateAlert : SUWindowController - -@property (weak) id versionDisplayer; - -- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)host completionBlock:(void(^)(SUUpdateAlertChoice))c; - -- (IBAction)installUpdate:sender; -- (IBAction)skipThisVersion:sender; -- (IBAction)remindMeLater:sender; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUUpdateAlert.m b/Sparkle/Sparkle/SUUpdateAlert.m deleted file mode 100755 index 3589ffd3..00000000 --- a/Sparkle/Sparkle/SUUpdateAlert.m +++ /dev/null @@ -1,314 +0,0 @@ -// -// SUUpdateAlert.m -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -// ----------------------------------------------------------------------------- -// Headers: -// ----------------------------------------------------------------------------- - -#import "SUUpdateAlert.h" - -#import "SUHost.h" -#import - -#import "SUConstants.h" -#import "SULog.h" - -// WebKit protocols are not explicitly declared until 10.11 SDK, so -// declare dummy protocols to keep the build working on earlier SDKs. -#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101100 -@protocol WebFrameLoadDelegate -@end -@protocol WebPolicyDelegate -@end -#endif - -@interface SUUpdateAlert () - -@property (strong) SUAppcastItem *updateItem; -@property (strong) SUHost *host; -@property (strong) void(^completionBlock)(SUUpdateAlertChoice); - -@property (strong) NSProgressIndicator *releaseNotesSpinner; -@property (assign) BOOL webViewFinishedLoading; - -@property (weak) IBOutlet WebView *releaseNotesView; -@property (weak) IBOutlet NSView *releaseNotesContainerView; -@property (weak) IBOutlet NSTextField *descriptionField; -@property (weak) IBOutlet NSButton *automaticallyInstallUpdatesButton; -@property (weak) IBOutlet NSButton *installButton; -@property (weak) IBOutlet NSButton *skipButton; -@property (weak) IBOutlet NSButton *laterButton; - -@end - -@implementation SUUpdateAlert - -@synthesize completionBlock; -@synthesize versionDisplayer; - -@synthesize updateItem; -@synthesize host; - -@synthesize releaseNotesSpinner; -@synthesize webViewFinishedLoading; - -@synthesize releaseNotesView; -@synthesize releaseNotesContainerView; -@synthesize descriptionField; -@synthesize automaticallyInstallUpdatesButton; -@synthesize installButton; -@synthesize skipButton; -@synthesize laterButton; - -- (instancetype)initWithAppcastItem:(SUAppcastItem *)item host:(SUHost *)aHost completionBlock:(void (^)(SUUpdateAlertChoice))block -{ - self = [super initWithWindowNibName:@"SUUpdateAlert"]; - if (self) - { - self.completionBlock = block; - host = aHost; - updateItem = item; - [self setShouldCascadeWindows:NO]; - - // Alex: This dummy line makes sure that the binary is linked against WebKit. - // The SUUpdateAlert.xib file contains a WebView and if we don't link against WebKit, - // we will get a runtime crash when decoding the NIB. It is better to get a link error. - [WebView MIMETypesShownAsHTML]; - } - return self; -} - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; } - - -- (void)endWithSelection:(SUUpdateAlertChoice)choice -{ - [self.releaseNotesView stopLoading:self]; - [self.releaseNotesView setFrameLoadDelegate:nil]; - [self.releaseNotesView setPolicyDelegate:nil]; - [self.releaseNotesView removeFromSuperview]; // Otherwise it gets sent Esc presses (why?!) and gets very confused. - [self close]; - self.completionBlock(choice); - self.completionBlock = nil; -} - -- (IBAction)installUpdate:(id)__unused sender -{ - [self endWithSelection:SUInstallUpdateChoice]; -} - -- (IBAction)openInfoURL:(id)__unused sender -{ - [self endWithSelection:SUOpenInfoURLChoice]; -} - -- (IBAction)skipThisVersion:(id)__unused sender -{ - [self endWithSelection:SUSkipThisVersionChoice]; -} - -- (IBAction)remindMeLater:(id)__unused sender -{ - [self endWithSelection:SURemindMeLaterChoice]; -} - -- (void)displayReleaseNotes -{ - self.releaseNotesView.preferencesIdentifier = SUBundleIdentifier; - WebPreferences *prefs = [self.releaseNotesView preferences]; - prefs.plugInsEnabled = NO; - prefs.javaEnabled = NO; - prefs.javaScriptEnabled = [self.host boolForInfoDictionaryKey:SUEnableJavaScriptKey]; - self.releaseNotesView.frameLoadDelegate = self; - self.releaseNotesView.policyDelegate = self; - - // Set the default font - // "-apple-system-font" is a reference to the system UI font. "-apple-system" is the new recommended token, but for backward compatibility we can't use it. - prefs.standardFontFamily = @"-apple-system-font"; - prefs.defaultFontSize = (int)[NSFont systemFontSize]; - - // Stick a nice big spinner in the middle of the web view until the page is loaded. - NSRect frame = [[self.releaseNotesView superview] frame]; - self.releaseNotesSpinner = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(NSMidX(frame) - 16, NSMidY(frame) - 16, 32, 32)]; - [self.releaseNotesSpinner setStyle:NSProgressIndicatorSpinningStyle]; - [self.releaseNotesSpinner startAnimation:self]; - self.webViewFinishedLoading = NO; - [[self.releaseNotesView superview] addSubview:self.releaseNotesSpinner]; - - // If there's a release notes URL, load it; otherwise, just stick the contents of the description into the web view. - if ([self.updateItem releaseNotesURL]) - { - [[self.releaseNotesView mainFrame] loadRequest:[NSURLRequest requestWithURL:[self.updateItem releaseNotesURL] cachePolicy:NSURLRequestReloadIgnoringCacheData timeoutInterval:30]]; - } - else - { - [[self.releaseNotesView mainFrame] loadHTMLString:[self.updateItem itemDescription] baseURL:nil]; - } -} - -- (BOOL)showsReleaseNotes -{ - NSNumber *shouldShowReleaseNotes = [self.host objectForInfoDictionaryKey:SUShowReleaseNotesKey]; - if (shouldShowReleaseNotes == nil) - { - // Don't show release notes if RSS item contains no description and no release notes URL: - return (([self.updateItem itemDescription] != nil - && [[[self.updateItem itemDescription] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length] > 0) - || [self.updateItem releaseNotesURL] != nil); - } - else - return [shouldShowReleaseNotes boolValue]; -} - -- (BOOL)allowsAutomaticUpdates -{ - return self.host.allowsAutomaticUpdates; -} - -- (void)windowDidLoad -{ - BOOL showReleaseNotes = [self showsReleaseNotes]; - - [self.window setFrameAutosaveName: showReleaseNotes ? @"SUUpdateAlert" : @"SUUpdateAlertSmall" ]; - - if ([self.host isBackgroundApplication]) { - [self.window setLevel:NSFloatingWindowLevel]; // This means the window will float over all other apps, if our app is switched out ?! - } - - if (self.updateItem.isInformationOnlyUpdate) { - [self.installButton setTitle:SULocalizedString(@"Learn More...", @"Alternate title for 'Install Update' button when there's no download in RSS feed.")]; - [self.installButton setAction:@selector(openInfoURL:)]; - } - - if (showReleaseNotes) { - [self displayReleaseNotes]; - } else { - NSLayoutConstraint *automaticallyInstallUpdatesButtonToDescriptionFieldConstraint = [NSLayoutConstraint constraintWithItem:self.automaticallyInstallUpdatesButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.descriptionField attribute:NSLayoutAttributeBottom multiplier:1.0 constant:8.0]; - - [self.window.contentView addConstraint:automaticallyInstallUpdatesButtonToDescriptionFieldConstraint]; - - [self.releaseNotesContainerView removeFromSuperview]; - } - - // When we show release notes, it looks ugly if the install buttons are not closer to the release notes view - // However when we don't show release notes, it looks ugly if the install buttons are too close to the description field. Shrugs. - if (showReleaseNotes && ![self allowsAutomaticUpdates]) { - NSLayoutConstraint *skipButtonToReleaseNotesContainerConstraint = [NSLayoutConstraint constraintWithItem:self.skipButton attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.releaseNotesContainerView attribute:NSLayoutAttributeBottom multiplier:1.0 constant:12.0]; - - [self.window.contentView addConstraint:skipButtonToReleaseNotesContainerConstraint]; - - [self.automaticallyInstallUpdatesButton removeFromSuperview]; - } - - [self.window center]; -} - -- (BOOL)windowShouldClose:(NSNotification *) __unused note -{ - [self endWithSelection:SURemindMeLaterChoice]; - return YES; -} - -- (NSImage *)applicationIcon -{ - return [self.host icon]; -} - -- (NSString *)titleText -{ - return [NSString stringWithFormat:SULocalizedString(@"A new version of %@ is available!", nil), [self.host name]]; -} - -- (NSString *)descriptionText -{ - NSString *updateItemVersion = [self.updateItem displayVersionString]; - NSString *hostVersion = [self.host displayVersion]; - // Display more info if the version strings are the same; useful for betas. - if (!self.versionDisplayer && [updateItemVersion isEqualToString:hostVersion] ) { - updateItemVersion = [updateItemVersion stringByAppendingFormat:@" (%@)", [self.updateItem versionString]]; - hostVersion = [hostVersion stringByAppendingFormat:@" (%@)", self.host.version]; - } else { - [self.versionDisplayer formatVersion:&updateItemVersion andVersion:&hostVersion]; - } - - // We display a slightly different summary depending on if it's an "info-only" item or not - NSString *finalString = nil; - - if (self.updateItem.isInformationOnlyUpdate) { - finalString = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?", @"Description text for SUUpdateAlert when the update informational with no download."), self.host.name, updateItemVersion, hostVersion]; - } else { - finalString = [NSString stringWithFormat:SULocalizedString(@"%@ %@ is now available--you have %@. Would you like to download it now?", @"Description text for SUUpdateAlert when the update is downloadable."), self.host.name, updateItemVersion, hostVersion]; - } - return finalString; -} - -- (void)webView:(WebView *)sender didFinishLoadForFrame:frame -{ - if ([frame parentFrame] == nil) { - self.webViewFinishedLoading = YES; - [self.releaseNotesSpinner setHidden:YES]; - [sender display]; // necessary to prevent weird scroll bar artifacting - } -} - -- (void)webView:(WebView *)__unused sender decidePolicyForNavigationAction:(NSDictionary *)__unused actionInformation request:(NSURLRequest *)request frame:(WebFrame *)__unused frame decisionListener:(id)listener -{ - NSURL *requestURL = request.URL; - NSString *scheme = requestURL.scheme; - BOOL whitelistedSafe = [scheme isEqualToString:@"http"] || [scheme isEqualToString:@"https"] || [requestURL.absoluteString isEqualToString:@"about:blank"]; - - // Do not allow redirects to dangerous protocols such as file:// - if (!whitelistedSafe) { - SULog(@"Blocked display of %@ URL which may be dangerous", scheme); - [listener ignore]; - return; - } - - if (self.webViewFinishedLoading) { - if (requestURL) { - [[NSWorkspace sharedWorkspace] openURL:requestURL]; - } - - [listener ignore]; - } - else { - [listener use]; - } -} - -// Clean up the contextual menu. -- (NSArray *)webView:(WebView *)__unused sender contextMenuItemsForElement:(NSDictionary *)__unused element defaultMenuItems:(NSArray *)defaultMenuItems -{ - NSMutableArray *webViewMenuItems = [defaultMenuItems mutableCopy]; - - if (webViewMenuItems) - { - for (NSMenuItem *menuItem in defaultMenuItems) - { - NSInteger tag = [menuItem tag]; - - switch (tag) - { - case WebMenuItemTagOpenLinkInNewWindow: - case WebMenuItemTagDownloadLinkToDisk: - case WebMenuItemTagOpenImageInNewWindow: - case WebMenuItemTagDownloadImageToDisk: - case WebMenuItemTagOpenFrameInNewWindow: - case WebMenuItemTagGoBack: - case WebMenuItemTagGoForward: - case WebMenuItemTagStop: - case WebMenuItemTagReload: - [webViewMenuItems removeObjectIdenticalTo:menuItem]; - } - } - } - - return webViewMenuItems; -} - -@end diff --git a/Sparkle/Sparkle/SUUpdateDriver.h b/Sparkle/Sparkle/SUUpdateDriver.h deleted file mode 100755 index b490c6d9..00000000 --- a/Sparkle/Sparkle/SUUpdateDriver.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// SUUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATEDRIVER_H -#define SUUPDATEDRIVER_H - -#import - -extern NSString *const SUUpdateDriverFinishedNotification; - -@class SUHost, SUUpdater; -@interface SUUpdateDriver : NSObject - -@property (readonly, weak) SUUpdater *updater; -@property (strong) SUHost *host; - -- (instancetype)initWithUpdater:(SUUpdater *)updater; -- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)host; -- (void)abortUpdate; - -- (void)showAlert:(NSAlert *)alert; - -@property (getter=isInterruptible, readonly) BOOL interruptible; -@property (readonly) BOOL finished; -@property BOOL automaticallyInstallUpdates; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUUpdateDriver.m b/Sparkle/Sparkle/SUUpdateDriver.m deleted file mode 100755 index 1b9d5249..00000000 --- a/Sparkle/Sparkle/SUUpdateDriver.m +++ /dev/null @@ -1,60 +0,0 @@ -// -// SUUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 5/7/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUUpdateDriver.h" -#import "SUHost.h" -#import "SULog.h" - -NSString *const SUUpdateDriverFinishedNotification = @"SUUpdateDriverFinished"; - -@interface SUUpdateDriver () - -@property (weak) SUUpdater *updater; -@property (copy) NSURL *appcastURL; -@property (getter=isInterruptible) BOOL interruptible; - -@end - -@implementation SUUpdateDriver - -@synthesize updater; -@synthesize host; -@synthesize interruptible; -@synthesize finished; -@synthesize appcastURL; -@synthesize automaticallyInstallUpdates; - -- (instancetype)initWithUpdater:(SUUpdater *)anUpdater -{ - if ((self = [super init])) { - self.updater = anUpdater; - } - return self; -} - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; } - -- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)h -{ - self.appcastURL = URL; - self.host = h; -} - -- (void)abortUpdate -{ - [self setValue:@YES forKey:@"finished"]; - [[NSNotificationCenter defaultCenter] postNotificationName:SUUpdateDriverFinishedNotification object:self]; -} - - -- (void)showAlert:(NSAlert *)alert { - // Only UI-based subclass shows the actual alert - SULog(@"ALERT: %@\n%@", alert.messageText, alert.informativeText); -} - -@end diff --git a/Sparkle/Sparkle/SUUpdatePermissionPrompt.h b/Sparkle/Sparkle/SUUpdatePermissionPrompt.h deleted file mode 100755 index 2320df88..00000000 --- a/Sparkle/Sparkle/SUUpdatePermissionPrompt.h +++ /dev/null @@ -1,33 +0,0 @@ -// -// SUUpdatePermissionPrompt.h -// Sparkle -// -// Created by Andy Matuschak on 1/24/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATEPERMISSIONPROMPT_H -#define SUUPDATEPERMISSIONPROMPT_H - -#import "SUWindowController.h" - -typedef NS_ENUM(NSInteger, SUPermissionPromptResult) { - SUAutomaticallyCheck, - SUDoNotAutomaticallyCheck -}; - -@protocol SUUpdatePermissionPromptDelegate; - -@class SUHost; -@interface SUUpdatePermissionPrompt : SUWindowController - -+ (void)promptWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile delegate:(id)d; -- (IBAction)toggleMoreInfo:(id)sender; -- (IBAction)finishPrompt:(id)sender; -@end - -@protocol SUUpdatePermissionPromptDelegate -- (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result; -@end - -#endif diff --git a/Sparkle/Sparkle/SUUpdatePermissionPrompt.m b/Sparkle/Sparkle/SUUpdatePermissionPrompt.m deleted file mode 100755 index 4a338dba..00000000 --- a/Sparkle/Sparkle/SUUpdatePermissionPrompt.m +++ /dev/null @@ -1,161 +0,0 @@ -// -// SUUpdatePermissionPrompt.m -// Sparkle -// -// Created by Andy Matuschak on 1/24/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUUpdatePermissionPrompt.h" - -#import "SUHost.h" -#import "SUConstants.h" - -@interface SUUpdatePermissionPrompt () - -@property (assign) BOOL isShowingMoreInfo; -@property (assign) BOOL shouldSendProfile; - -@property (strong) SUHost *host; -@property (strong) NSArray *systemProfileInformationArray; -@property (weak) id delegate; -@property (weak) IBOutlet NSTextField *descriptionTextField; -@property (weak) IBOutlet NSView *moreInfoView; -@property (weak) IBOutlet NSButton *moreInfoButton; -@property (weak) IBOutlet NSTableView *profileTableView; - -@end - -@implementation SUUpdatePermissionPrompt - -@synthesize isShowingMoreInfo = _isShowingMoreInfo; -@synthesize shouldSendProfile = _shouldSendProfile; -@synthesize host; -@synthesize systemProfileInformationArray; -@synthesize delegate; -@synthesize descriptionTextField; -@synthesize moreInfoView; -@synthesize moreInfoButton; -@synthesize profileTableView; - -- (BOOL)shouldAskAboutProfile -{ - return [[self.host objectForInfoDictionaryKey:SUEnableSystemProfilingKey] boolValue]; -} - -- (instancetype)initWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile delegate:(id)d -{ - self = [super initWithWindowNibName:@"SUUpdatePermissionPrompt"]; - if (self) - { - host = aHost; - delegate = d; - self.isShowingMoreInfo = NO; - self.shouldSendProfile = [self shouldAskAboutProfile]; - systemProfileInformationArray = profile; - [self setShouldCascadeWindows:NO]; - } - return self; -} - -+ (void)promptWithHost:(SUHost *)aHost systemProfile:(NSArray *)profile delegate:(id)d -{ - // If this is a background application we need to focus it in order to bring the prompt - // to the user's attention. Otherwise the prompt would be hidden behind other applications and - // the user would not know why the application was paused. - if ([aHost isBackgroundApplication]) { - [[NSApplication sharedApplication] activateIgnoringOtherApps:YES]; - } - - if (![NSApp modalWindow]) { // do not prompt if there is is another modal window on screen - SUUpdatePermissionPrompt *prompt = [[[self class] alloc] initWithHost:aHost systemProfile:profile delegate:d]; - NSWindow *window = [prompt window]; - if (window) { - [NSApp runModalForWindow:window]; - } - } -} - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@>", [self class], [self.host bundlePath]]; } - -- (void)windowDidLoad -{ - if (![self shouldAskAboutProfile]) - { - NSRect frame = [[self window] frame]; - frame.size.height -= [self.moreInfoButton frame].size.height; - [[self window] setFrame:frame display:YES]; - } else { - // Set the table view's delegate so we can disable row selection. - [self.profileTableView setDelegate:(id)self]; - } -} - -- (BOOL)tableView:(NSTableView *) __unused tableView shouldSelectRow:(NSInteger) __unused row { return NO; } - - -- (NSImage *)icon -{ - return [self.host icon]; -} - -- (NSString *)promptDescription -{ - return [NSString stringWithFormat:SULocalizedString(@"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu.", nil), [self.host name]]; -} - -- (IBAction)toggleMoreInfo:(id)__unused sender -{ - self.isShowingMoreInfo = !self.isShowingMoreInfo; - - NSView *contentView = [[self window] contentView]; - NSRect contentViewFrame = [contentView frame]; - NSRect windowFrame = [[self window] frame]; - - NSRect profileMoreInfoViewFrame = [self.moreInfoView frame]; - NSRect profileMoreInfoButtonFrame = [self.moreInfoButton frame]; - NSRect descriptionFrame = [self.descriptionTextField frame]; - - if (self.isShowingMoreInfo) - { - // Add the subview - contentViewFrame.size.height += profileMoreInfoViewFrame.size.height; - profileMoreInfoViewFrame.origin.y = profileMoreInfoButtonFrame.origin.y - profileMoreInfoViewFrame.size.height; - profileMoreInfoViewFrame.origin.x = descriptionFrame.origin.x; - profileMoreInfoViewFrame.size.width = descriptionFrame.size.width; - - windowFrame.size.height += profileMoreInfoViewFrame.size.height; - windowFrame.origin.y -= profileMoreInfoViewFrame.size.height; - - [self.moreInfoView setFrame:profileMoreInfoViewFrame]; - [self.moreInfoView setHidden:YES]; - [contentView addSubview:self.moreInfoView - positioned:NSWindowBelow - relativeTo:self.moreInfoButton]; - } else { - // Remove the subview - [self.moreInfoView setHidden:NO]; - [self.moreInfoView removeFromSuperview]; - contentViewFrame.size.height -= profileMoreInfoViewFrame.size.height; - - windowFrame.size.height -= profileMoreInfoViewFrame.size.height; - windowFrame.origin.y += profileMoreInfoViewFrame.size.height; - } - [[self window] setFrame:windowFrame display:YES animate:YES]; - [contentView setFrame:contentViewFrame]; - [contentView setNeedsDisplay:YES]; - [self.moreInfoView setHidden:!self.isShowingMoreInfo]; -} - -- (IBAction)finishPrompt:(id)sender -{ - if (![self.delegate respondsToSelector:@selector(updatePermissionPromptFinishedWithResult:)]) { - [NSException raise:@"SUInvalidDelegate" format:@"SUUpdatePermissionPrompt's delegate (%@) doesn't respond to updatePermissionPromptFinishedWithResult:!", self.delegate]; - } - [self.host setBool:self.shouldSendProfile forUserDefaultsKey:SUSendProfileInfoKey]; - [self.delegate updatePermissionPromptFinishedWithResult:([sender tag] == 1 ? SUAutomaticallyCheck : SUDoNotAutomaticallyCheck)]; - [[self window] close]; - [NSApp stopModal]; -} - -@end diff --git a/Sparkle/Sparkle/SUUpdateValidator.h b/Sparkle/Sparkle/SUUpdateValidator.h deleted file mode 100755 index 0a5f14c6..00000000 --- a/Sparkle/Sparkle/SUUpdateValidator.h +++ /dev/null @@ -1,25 +0,0 @@ -// -// SUUpdateValidator.h -// Sparkle -// -// Created by Mayur Pawashe on 12/3/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -#import - -@class SUHost; - -@interface SUUpdateValidator : NSObject - -// Pass YES to performingPrevalidation if archive validation must be done immediately, before extraction -- (instancetype)initWithDownloadPath:(NSString *)downloadPath dsaSignature:(NSString *)dsaSignature host:(SUHost *)host performingPrevalidation:(BOOL)performingPrevalidation; - -// Indicates whether we can perform (post) validation later -@property (nonatomic, readonly) BOOL canValidate; - -// precondition: validation must be possible (see -canValidate) -// This is "post" validation, after an archive has been extracted -- (BOOL)validateWithUpdateDirectory:(NSString *)updateDirectory; - -@end diff --git a/Sparkle/Sparkle/SUUpdateValidator.m b/Sparkle/Sparkle/SUUpdateValidator.m deleted file mode 100755 index 71727e89..00000000 --- a/Sparkle/Sparkle/SUUpdateValidator.m +++ /dev/null @@ -1,192 +0,0 @@ -// -// SUUpdateValidator.m -// Sparkle -// -// Created by Mayur Pawashe on 12/3/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -#import "SUUpdateValidator.h" -#import "SUDSAVerifier.h" -#import "SUCodeSigningVerifier.h" -#import "SUInstaller.h" -#import "SUHost.h" -#import "SULog.h" - -@interface SUUpdateValidator () - -@property (nonatomic, readonly) SUHost *host; -@property (nonatomic, readonly) BOOL prevalidatedDsaSignature; -@property (nonatomic, readonly) NSString *dsaSignature; -@property (nonatomic, readonly) NSString *downloadPath; - -@end - -@implementation SUUpdateValidator - -@synthesize host = _host; -@synthesize canValidate = _canValidate; -@synthesize prevalidatedDsaSignature = _prevalidatedDsaSignature; -@synthesize dsaSignature = _dsaSignature; -@synthesize downloadPath = _downloadPath; - -- (instancetype)initWithDownloadPath:(NSString *)downloadPath dsaSignature:(NSString *)dsaSignature host:(SUHost *)host performingPrevalidation:(BOOL)performingPrevalidation -{ - self = [super init]; - if (self != nil) { - BOOL canValidate; - BOOL prevalidatedDsaSignature; - if (performingPrevalidation) { - NSString *publicDSAKey = host.publicDSAKey; - - if (publicDSAKey == nil) { - prevalidatedDsaSignature = NO; - SULog(@"Failed to validate update before unarchiving because no DSA key was found"); - } else if (dsaSignature == nil) { - prevalidatedDsaSignature = NO; - SULog(@"Failed to validate update before unarchiving because no DSA signature was found"); - } else { - prevalidatedDsaSignature = [SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:dsaSignature withPublicDSAKey:publicDSAKey]; - if (!prevalidatedDsaSignature) { - SULog(@"DSA signature validation before unarchiving failed for update %@", downloadPath); - } - } - - canValidate = prevalidatedDsaSignature; - } else { - prevalidatedDsaSignature = NO; - canValidate = YES; - } - - _canValidate = canValidate; - _prevalidatedDsaSignature = prevalidatedDsaSignature; - _downloadPath = [downloadPath copy]; - _dsaSignature = [dsaSignature copy]; - _host = host; - } - return self; -} - -- (BOOL)validateWithUpdateDirectory:(NSString *)updateDirectory -{ - assert(self.canValidate); - - NSString *DSASignature = self.dsaSignature; - NSString *publicDSAKey = self.host.publicDSAKey; - NSString *downloadPath = self.downloadPath; - SUHost *host = self.host; - - BOOL prevalidatedDsaSignature = self.prevalidatedDsaSignature; - - BOOL validationCheckSuccess; - BOOL isPackage = NO; - - // install source could point to a new bundle or a package - NSString *installSource = [SUInstaller installSourcePathInUpdateFolder:updateDirectory forHost:host isPackage:&isPackage isGuided:NULL]; - if (installSource == nil) { - SULog(@"No suitable install is found in the update. The update will be rejected."); - validationCheckSuccess = NO; - } else { - NSURL *installSourceURL = [NSURL fileURLWithPath:installSource]; - - if (!prevalidatedDsaSignature) { - // Check to see if we have a package or bundle to validate - if (isPackage) { - // For package type updates, all we do is check if the DSA signature is valid - validationCheckSuccess = [SUDSAVerifier validatePath:downloadPath withEncodedDSASignature:DSASignature withPublicDSAKey:publicDSAKey]; - if (!validationCheckSuccess) { - SULog(@"DSA signature validation of the package failed. The update contains an installer package, and valid DSA signatures are mandatory for all installer packages. The update will be rejected. Sign the installer with a valid DSA key or use an .app bundle update instead."); - } - } else { - // For application bundle updates, we check both the DSA and Apple code signing signatures - validationCheckSuccess = [self validateUpdateForHost:host downloadedToPath:downloadPath newBundleURL:installSourceURL DSASignature:DSASignature]; - } - } else if (isPackage) { - // We shouldn't get here because we don't validate packages before extracting them currently - SULog(@"Error: not expecting to find package after being required to validate update before extraction"); - validationCheckSuccess = NO; - } else { - // Because we already validated the DSA signature, this is just a consistency check to see - // if the developer signed their application properly with their Apple ID - // Currently, this case only gets hit for binary delta updates - NSError *error = nil; - if ([SUCodeSigningVerifier bundleAtURLIsCodeSigned:installSourceURL] && ![SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:installSourceURL error:&error]) { - SULog(@"Failed to validate apple code sign signature on bundle after archive validation with error: %@", error); - validationCheckSuccess = NO; - } else { - validationCheckSuccess = YES; - } - } - } - - return validationCheckSuccess; -} - -/** - * If the update is a bundle, then it must meet any one of: - * - * * old and new DSA public keys are the same and valid (it allows change of Code Signing identity), or - * - * * old and new Code Signing identity are the same and valid - * - */ -- (BOOL)validateUpdateForHost:(SUHost *)host downloadedToPath:(NSString *)downloadedPath newBundleURL:(NSURL *)newBundleURL DSASignature:(NSString *)DSASignature -{ - NSBundle *newBundle = [NSBundle bundleWithURL:newBundleURL]; - if (newBundle == nil) { - SULog(@"No suitable bundle is found in the update. The update will be rejected."); - return NO; - } - - NSString *publicDSAKey = host.publicDSAKey; - - SUHost *newHost = [[SUHost alloc] initWithBundle:newBundle]; - NSString *newPublicDSAKey = newHost.publicDSAKey; - - // Downgrade in DSA security should not be possible - if (publicDSAKey != nil && newPublicDSAKey == nil) { - SULog(@"A public DSA key is found in the old bundle but no public DSA key is found in the new update. For security reasons, the update will be rejected."); - return NO; - } - - BOOL dsaKeysMatch = (publicDSAKey == nil || newPublicDSAKey == nil) ? NO : [publicDSAKey isEqualToString:newPublicDSAKey]; - - // If the new DSA key differs from the old, then this check is not a security measure, because the new key is not trusted. - // In that case, the check ensures that the app author has correctly used DSA keys, so that the app will be updateable in the next version. - // However if the new and old DSA keys are the same, then this is a security measure. - if (newPublicDSAKey != nil) { - if (![SUDSAVerifier validatePath:downloadedPath withEncodedDSASignature:DSASignature withPublicDSAKey:newPublicDSAKey]) { - SULog(@"DSA signature validation failed. The update has a public DSA key and is signed with a DSA key, but the %@ doesn't match the signature. The update will be rejected.", - dsaKeysMatch ? @"public key" : @"new public key shipped with the update"); - return NO; - } - } - BOOL updateIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:newHost.bundle.bundleURL]; - - if (dsaKeysMatch) { - NSError *error = nil; - if (updateIsCodeSigned && ![SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:newHost.bundle.bundleURL error:&error]) { - SULog(@"The update archive has a valid DSA signature, but the app is also signed with Code Signing, which is corrupted: %@. The update will be rejected.", error); - return NO; - } - } else { - BOOL hostIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:host.bundle.bundleURL]; - - NSString *dsaStatus = newPublicDSAKey ? @"has a new DSA key that doesn't match the previous one" : (publicDSAKey ? @"removes the DSA key" : @"isn't signed with a DSA key"); - if (!hostIsCodeSigned || !updateIsCodeSigned) { - NSString *acsStatus = !hostIsCodeSigned ? @"old app hasn't been signed with app Code Signing" : @"new app isn't signed with app Code Signing"; - SULog(@"The update archive %@, and the %@. At least one method of signature verification must be valid. The update will be rejected.", dsaStatus, acsStatus); - return NO; - } - - NSError *error = nil; - if (![SUCodeSigningVerifier codeSignatureAtBundleURL:host.bundle.bundleURL matchesSignatureAtBundleURL:newHost.bundle.bundleURL error:&error]) { - SULog(@"The update archive %@, and the app is signed with a new Code Signing identity that doesn't match code signing of the original app: %@. At least one method of signature verification must be valid. The update will be rejected.", dsaStatus, error); - return NO; - } - } - - return YES; -} - -@end diff --git a/Sparkle/Sparkle/SUUpdater.h b/Sparkle/Sparkle/SUUpdater.h deleted file mode 100755 index ac7600eb..00000000 --- a/Sparkle/Sparkle/SUUpdater.h +++ /dev/null @@ -1,464 +0,0 @@ -// -// SUUpdater.h -// Sparkle -// -// Created by Andy Matuschak on 1/4/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SUUPDATER_H -#define SUUPDATER_H - -#if __has_feature(modules) -@import Foundation; -#else -#import -#endif -#import "SUExport.h" -#import "SUVersionComparisonProtocol.h" -#import "SUVersionDisplayProtocol.h" - -@class SUAppcastItem, SUAppcast; - -@protocol SUUpdaterDelegate; - -/*! - The main API in Sparkle for controlling the update mechanism. - - This class is used to configure the update paramters as well as manually - and automatically schedule and control checks for updates. - */ -SU_EXPORT @interface SUUpdater : NSObject - -@property (unsafe_unretained) IBOutlet id delegate; - -/*! - The shared updater for the main bundle. - - This is equivalent to passing [NSBundle mainBundle] to SUUpdater::updaterForBundle: - */ -+ (SUUpdater *)sharedUpdater; - -/*! - The shared updater for a specified bundle. - - If an updater has already been initialized for the provided bundle, that shared instance will be returned. - */ -+ (SUUpdater *)updaterForBundle:(NSBundle *)bundle; - -/*! - Designated initializer for SUUpdater. - - If an updater has already been initialized for the provided bundle, that shared instance will be returned. - */ -- (instancetype)initForBundle:(NSBundle *)bundle; - -/*! - Explicitly checks for updates and displays a progress dialog while doing so. - - This method is meant for a main menu item. - Connect any menu item to this action in Interface Builder, - and Sparkle will check for updates and report back its findings verbosely - when it is invoked. - - This will find updates that the user has opted into skipping. - */ -- (IBAction)checkForUpdates:(id)sender; - -/*! - The menu item validation used for the -checkForUpdates: action - */ -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem; - -/*! - Checks for updates, but does not display any UI unless an update is found. - - This is meant for programmatically initating a check for updates. That is, - it will display no UI unless it actually finds an update, in which case it - proceeds as usual. - - If automatic downloading of updates it turned on and allowed, however, - this will invoke that behavior, and if an update is found, it will be downloaded - in the background silently and will be prepped for installation. - - This will not find updates that the user has opted into skipping. - */ -- (void)checkForUpdatesInBackground; - -/*! - A property indicating whether or not to check for updates automatically. - - Setting this property will persist in the host bundle's user defaults. - The update schedule cycle will be reset in a short delay after the property's new value is set. - This is to allow reverting this property without kicking off a schedule change immediately - */ -@property BOOL automaticallyChecksForUpdates; - -/*! - A property indicating whether or not updates can be automatically downloaded in the background. - - Note that automatic downloading of updates can be disallowed by the developer - or by the user's system if silent updates cannot be done (eg: if they require authentication). - In this case, -automaticallyDownloadsUpdates will return NO regardless of how this property is set. - - Setting this property will persist in the host bundle's user defaults. - */ -@property BOOL automaticallyDownloadsUpdates; - -/*! - A property indicating the current automatic update check interval. - - Setting this property will persist in the host bundle's user defaults. - The update schedule cycle will be reset in a short delay after the property's new value is set. - This is to allow reverting this property without kicking off a schedule change immediately - */ -@property NSTimeInterval updateCheckInterval; - -/*! - Begins a "probing" check for updates which will not actually offer to - update to that version. - - However, the delegate methods - SUUpdaterDelegate::updater:didFindValidUpdate: and - SUUpdaterDelegate::updaterDidNotFindUpdate: will be called, - so you can use that information in your UI. - - Updates that have been skipped by the user will not be found. - */ -- (void)checkForUpdateInformation; - -/*! - The URL of the appcast used to download update information. - - Setting this property will persist in the host bundle's user defaults. - If you don't want persistence, you may want to consider instead implementing - SUUpdaterDelegate::feedURLStringForUpdater: or SUUpdaterDelegate::feedParametersForUpdater:sendingSystemProfile: - - This property must be called on the main thread. - */ -@property (copy) NSURL *feedURL; - -/*! - The host bundle that is being updated. - */ -@property (readonly, strong) NSBundle *hostBundle; - -/*! - The bundle this class (SUUpdater) is loaded into. - */ -@property (strong, readonly) NSBundle *sparkleBundle; - -/*! - The user agent used when checking for updates. - - The default implementation can be overrided. - */ -@property (nonatomic, copy) NSString *userAgentString; - -/*! - The HTTP headers used when checking for updates. - - The keys of this dictionary are HTTP header fields (NSString) and values are corresponding values (NSString) - */ -@property (copy) NSDictionary *httpHeaders; - -/*! - A property indicating whether or not the user's system profile information is sent when checking for updates. - - Setting this property will persist in the host bundle's user defaults. - */ -@property BOOL sendsSystemProfile; - -/*! - A property indicating the decryption password used for extracting updates shipped as Apple Disk Images (dmg) - */ -@property (nonatomic, copy) NSString *decryptionPassword; - -/*! - Checks for updates and, if available, immediately downloads and installs them. - A progress dialog is shown but the user will never be prompted to read the - release notes. - - You may want to respond to the userDidCancelDownload delegate method in case - the user clicks the "Cancel" button while the update is downloading. - - If you are writing a UI-less background application, you probably want to instead use - SUUpdaterDelegate::updater:willInstallUpdateOnQuit:immediateInstallationInvocation: - */ -- (void)installUpdatesIfAvailable; - -/*! - Returns the date of last update check. - - \returns \c nil if no check has been performed. - */ -@property (readonly, copy) NSDate *lastUpdateCheckDate; - -/*! - Appropriately schedules or cancels the update checking timer according to - the preferences for time interval and automatic checks. - - This call does not change the date of the next check, - but only the internal NSTimer. - */ -- (void)resetUpdateCycle; - -/*! - A property indicating whether or not an update is in progress. - - Note this property is not indicative of whether or not user initiated updates can be performed. - Use SUUpdater::validateMenuItem: for that instead. - */ -@property (readonly) BOOL updateInProgress; - -@end - -// ----------------------------------------------------------------------------- -// SUUpdater Notifications for events that might be interesting to more than just the delegate -// The updater will be the notification object -// ----------------------------------------------------------------------------- -SU_EXPORT extern NSString *const SUUpdaterDidFinishLoadingAppCastNotification; -SU_EXPORT extern NSString *const SUUpdaterDidFindValidUpdateNotification; -SU_EXPORT extern NSString *const SUUpdaterDidNotFindUpdateNotification; -SU_EXPORT extern NSString *const SUUpdaterWillRestartNotification; -#define SUUpdaterWillRelaunchApplicationNotification SUUpdaterWillRestartNotification; -#define SUUpdaterWillInstallUpdateNotification SUUpdaterWillRestartNotification; - -// Key for the SUAppcastItem object in the SUUpdaterDidFindValidUpdateNotification userInfo -SU_EXPORT extern NSString *const SUUpdaterAppcastItemNotificationKey; -// Key for the SUAppcast object in the SUUpdaterDidFinishLoadingAppCastNotification userInfo -SU_EXPORT extern NSString *const SUUpdaterAppcastNotificationKey; - -// ----------------------------------------------------------------------------- -// SUUpdater Delegate: -// ----------------------------------------------------------------------------- - -/*! - Provides methods to control the behavior of an SUUpdater object. - */ -@protocol SUUpdaterDelegate -@optional - -/*! - Returns whether to allow Sparkle to pop up. - - For example, this may be used to prevent Sparkle from interrupting a setup assistant. - - \param updater The SUUpdater instance. - */ -- (BOOL)updaterMayCheckForUpdates:(SUUpdater *)updater; - -/*! - Returns additional parameters to append to the appcast URL's query string. - - This is potentially based on whether or not Sparkle will also be sending along the system profile. - - \param updater The SUUpdater instance. - \param sendingProfile Whether the system profile will also be sent. - - \return An array of dictionaries with keys: "key", "value", "displayKey", "displayValue", the latter two being specifically for display to the user. - */ -- (NSArray *)feedParametersForUpdater:(SUUpdater *)updater sendingSystemProfile:(BOOL)sendingProfile; - -/*! - Returns a custom appcast URL. - - Override this to dynamically specify the entire URL. - - An alternative may be to use SUUpdaterDelegate::feedParametersForUpdater:sendingSystemProfile: - and let the server handle what kind of feed to provide. - - \param updater The SUUpdater instance. - */ -- (NSString *)feedURLStringForUpdater:(SUUpdater *)updater; - -/*! - Returns whether Sparkle should prompt the user about automatic update checks. - - Use this to override the default behavior. - - \param updater The SUUpdater instance. - */ -- (BOOL)updaterShouldPromptForPermissionToCheckForUpdates:(SUUpdater *)updater; - -/*! - Called after Sparkle has downloaded the appcast from the remote server. - - Implement this if you want to do some special handling with the appcast once it finishes loading. - - \param updater The SUUpdater instance. - \param appcast The appcast that was downloaded from the remote server. - */ -- (void)updater:(SUUpdater *)updater didFinishLoadingAppcast:(SUAppcast *)appcast; - -/*! - Returns the item in the appcast corresponding to the update that should be installed. - - If you're using special logic or extensions in your appcast, - implement this to use your own logic for finding a valid update, if any, - in the given appcast. - - \param appcast The appcast that was downloaded from the remote server. - \param updater The SUUpdater instance. - */ -- (SUAppcastItem *)bestValidUpdateInAppcast:(SUAppcast *)appcast forUpdater:(SUUpdater *)updater; - -/*! - Called when a valid update is found by the update driver. - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that is proposed to be installed. - */ -- (void)updater:(SUUpdater *)updater didFindValidUpdate:(SUAppcastItem *)item; - -/*! - Called when a valid update is not found. - - \param updater The SUUpdater instance. - */ -- (void)updaterDidNotFindUpdate:(SUUpdater *)updater; - -/*! - Called immediately before downloading the specified update. - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that is proposed to be downloaded. - \param request The mutable URL request that will be used to download the update. - */ -- (void)updater:(SUUpdater *)updater willDownloadUpdate:(SUAppcastItem *)item withRequest:(NSMutableURLRequest *)request; - -/*! - Called after the specified update failed to download. - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that failed to download. - \param error The error generated by the failed download. - */ -- (void)updater:(SUUpdater *)updater failedToDownloadUpdate:(SUAppcastItem *)item error:(NSError *)error; - -/*! - Called when the user clicks the cancel button while and update is being downloaded. - - \param updater The SUUpdater instance. - */ -- (void)userDidCancelDownload:(SUUpdater *)updater; - -/*! - Called immediately before installing the specified update. - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that is proposed to be installed. - */ -- (void)updater:(SUUpdater *)updater willInstallUpdate:(SUAppcastItem *)item; - -/*! - Returns whether the relaunch should be delayed in order to perform other tasks. - - This is not called if the user didn't relaunch on the previous update, - in that case it will immediately restart. - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that is proposed to be installed. - \param invocation The invocation that must be completed with `[invocation invoke]` before continuing with the relaunch. - - \return \c YES to delay the relaunch until \p invocation is invoked. - */ -- (BOOL)updater:(SUUpdater *)updater shouldPostponeRelaunchForUpdate:(SUAppcastItem *)item untilInvoking:(NSInvocation *)invocation; - -/*! - Returns whether the application should be relaunched at all. - - Some apps \b cannot be relaunched under certain circumstances. - This method can be used to explicitly prevent a relaunch. - - \param updater The SUUpdater instance. - */ -- (BOOL)updaterShouldRelaunchApplication:(SUUpdater *)updater; - -/*! - Called immediately before relaunching. - - \param updater The SUUpdater instance. - */ -- (void)updaterWillRelaunchApplication:(SUUpdater *)updater; - -/*! - Returns an object that compares version numbers to determine their arithmetic relation to each other. - - This method allows you to provide a custom version comparator. - If you don't implement this method or return \c nil, - the standard version comparator will be used. - - \sa SUStandardVersionComparator - - \param updater The SUUpdater instance. - */ -- (id)versionComparatorForUpdater:(SUUpdater *)updater; - -/*! - Returns an object that formats version numbers for display to the user. - - If you don't implement this method or return \c nil, - the standard version formatter will be used. - - \sa SUUpdateAlert - - \param updater The SUUpdater instance. - */ -- (id)versionDisplayerForUpdater:(SUUpdater *)updater; - -/*! - Returns the path which is used to relaunch the client after the update is installed. - - The default is the path of the host bundle. - - \param updater The SUUpdater instance. - */ -- (NSString *)pathToRelaunchForUpdater:(SUUpdater *)updater; - -/*! - Called before an updater shows a modal alert window, - to give the host the opportunity to hide attached windows that may get in the way. - - \param updater The SUUpdater instance. - */ -- (void)updaterWillShowModalAlert:(SUUpdater *)updater; - -/*! - Called after an updater shows a modal alert window, - to give the host the opportunity to hide attached windows that may get in the way. - - \param updater The SUUpdater instance. - */ -- (void)updaterDidShowModalAlert:(SUUpdater *)updater; - -/*! - Called when an update is scheduled to be silently installed on quit. - This is after an update has been automatically downloaded in the background. - (i.e. SUUpdater::automaticallyDownloadsUpdates is YES) - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that is proposed to be installed. - \param invocation Can be used to trigger an immediate silent install and relaunch. - */ -- (void)updater:(SUUpdater *)updater willInstallUpdateOnQuit:(SUAppcastItem *)item immediateInstallationInvocation:(NSInvocation *)invocation; - -/*! - Calls after an update that was scheduled to be silently installed on quit has been canceled. - - \param updater The SUUpdater instance. - \param item The appcast item corresponding to the update that was proposed to be installed. - */ -- (void)updater:(SUUpdater *)updater didCancelInstallUpdateOnQuit:(SUAppcastItem *)item; - -/*! - Called after an update is aborted due to an error. - - \param updater The SUUpdater instance. - \param error The error that caused the abort - */ -- (void)updater:(SUUpdater *)updater didAbortWithError:(NSError *)error; - -@end - -#endif diff --git a/Sparkle/Sparkle/SUUpdater.m b/Sparkle/Sparkle/SUUpdater.m deleted file mode 100755 index 9a0a0d5a..00000000 --- a/Sparkle/Sparkle/SUUpdater.m +++ /dev/null @@ -1,557 +0,0 @@ -// -// SUUpdater.m -// Sparkle -// -// Created by Andy Matuschak on 1/4/06. -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -#import "SUHost.h" -#import "SUUpdatePermissionPrompt.h" - -#import "SUAutomaticUpdateDriver.h" -#import "SUProbingUpdateDriver.h" -#import "SUUserInitiatedUpdateDriver.h" -#import "SUScheduledUpdateDriver.h" -#import "SUConstants.h" -#import "SULog.h" -#import "SUCodeSigningVerifier.h" -#include - -NSString *const SUUpdaterDidFinishLoadingAppCastNotification = @"SUUpdaterDidFinishLoadingAppCastNotification"; -NSString *const SUUpdaterDidFindValidUpdateNotification = @"SUUpdaterDidFindValidUpdateNotification"; -NSString *const SUUpdaterDidNotFindUpdateNotification = @"SUUpdaterDidNotFindUpdateNotification"; -NSString *const SUUpdaterWillRestartNotification = @"SUUpdaterWillRestartNotificationName"; -NSString *const SUUpdaterAppcastItemNotificationKey = @"SUUpdaterAppcastItemNotificationKey"; -NSString *const SUUpdaterAppcastNotificationKey = @"SUUpdaterAppCastNotificationKey"; - -@interface SUUpdater () -@property (strong) NSTimer *checkTimer; -@property (strong) NSBundle *sparkleBundle; - -- (instancetype)initForBundle:(NSBundle *)bundle; -- (void)startUpdateCycle; -- (void)checkForUpdatesWithDriver:(SUUpdateDriver *)updateDriver; -- (void)scheduleNextUpdateCheck; -- (void)registerAsObserver; -- (void)unregisterAsObserver; -- (void)updateDriverDidFinish:(NSNotification *)note; -@property (readonly, copy) NSURL *parameterizedFeedURL; - -@property (strong) SUUpdateDriver *driver; -@property (strong) SUHost *host; - -@end - -@implementation SUUpdater - -@synthesize delegate; -@synthesize checkTimer; -@synthesize userAgentString = customUserAgentString; -@synthesize httpHeaders; -@synthesize driver; -@synthesize host; -@synthesize sparkleBundle; -@synthesize decryptionPassword; - -static NSMutableDictionary *sharedUpdaters = nil; -static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObservationContext"; - -#ifdef DEBUG -+ (void)load -{ - // Debug builds have different configurations for update check intervals - // We're using NSLog instead of SULog here because we don't want to start Sparkle's logger here - NSLog(@"WARNING: This is running a Debug build of Sparkle; don't use this in production!"); -} -#endif - -+ (SUUpdater *)sharedUpdater -{ - return [self updaterForBundle:[NSBundle mainBundle]]; -} - -// SUUpdater has a singleton for each bundle. We use the fact that NSBundle instances are also singletons, so we can use them as keys. If you don't trust that you can also use the identifier as key -+ (SUUpdater *)updaterForBundle:(NSBundle *)bundle -{ - if (bundle == nil) bundle = [NSBundle mainBundle]; - id updater = [sharedUpdaters objectForKey:[NSValue valueWithNonretainedObject:bundle]]; - if (updater == nil) { - updater = [[[self class] alloc] initForBundle:bundle]; - } - return updater; -} - -// This is the designated initializer for SUUpdater, important for subclasses -- (instancetype)initForBundle:(NSBundle *)bundle -{ - self = [super init]; - if (bundle == nil) bundle = [NSBundle mainBundle]; - - // Use explicit class to use the correct bundle even when subclassed - self.sparkleBundle = [NSBundle bundleForClass:[SUUpdater class]]; - if (!self.sparkleBundle) { - SULog(@"Error: SUUpdater can't find Sparkle.framework it belongs to"); - return nil; - } - - // Register as observer straight away to avoid exceptions on -dealloc when -unregisterAsObserver is called: - if (self) { - [self registerAsObserver]; - } - - id updater = [sharedUpdaters objectForKey:[NSValue valueWithNonretainedObject:bundle]]; - if (updater) - { - self = updater; - } - else if (self) - { - if (sharedUpdaters == nil) { - sharedUpdaters = [[NSMutableDictionary alloc] init]; - } - [sharedUpdaters setObject:self forKey:[NSValue valueWithNonretainedObject:bundle]]; - host = [[SUHost alloc] initWithBundle:bundle]; - - // This runs the permission prompt if needed, but never before the app has finished launching because the runloop won't run before that - [self performSelector:@selector(startUpdateCycle) withObject:nil afterDelay:0]; - } - return self; -} - --(void)showAlertText:(NSString *)text informativeText:(NSString *)informativeText { - NSAlert *alert = [[NSAlert alloc] init]; - alert.messageText = text; - alert.informativeText = informativeText; - [self.driver showAlert:alert]; -} - --(void)checkIfConfiguredProperly { - BOOL hasPublicDSAKey = [self.host publicDSAKey] != nil; - BOOL isMainBundle = [self.host.bundle isEqualTo:[NSBundle mainBundle]]; - BOOL hostIsCodeSigned = [SUCodeSigningVerifier bundleAtURLIsCodeSigned:self.host.bundle.bundleURL]; - NSURL *feedURL = [self feedURL]; - BOOL servingOverHttps = [[[feedURL scheme] lowercaseString] isEqualToString:@"https"]; - - if (!hasPublicDSAKey) { - // If we failed to retrieve a DSA key but the bundle specifies a path to one, we should consider this a configuration failure - NSString *publicDSAKeyFileKey = [self.host publicDSAKeyFileKey]; - if (publicDSAKeyFileKey != nil) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:[NSString stringWithFormat:SULocalizedString(@"For security reasons, the file (%@) indicated by the '%@' key needs to exist in the bundle's Resources.", nil), publicDSAKeyFileKey, SUPublicDSAKeyFileKey]]; - } else { - if (!isMainBundle) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:SULocalizedString(@"For security reasons, you need to sign your updates with a DSA key. See Sparkle's documentation for more information.", nil)]; - } else { - if (!hostIsCodeSigned) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:SULocalizedString(@"For security reasons, you need to code sign your application or sign your updates with a DSA key. See https://sparkle-project.org/documentation/ for more information.", nil)]; - } else if (!servingOverHttps) { - [self showAlertText:SULocalizedString(@"Insecure update error!", nil) - informativeText:SULocalizedString(@"For security reasons, you need to serve your updates over HTTPS and/or sign your updates with a DSA key. See https://sparkle-project.org/documentation/ for more information.", nil)]; - } - } - } - } - -#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 - if (!servingOverHttps) { - BOOL atsExceptionsExist = nil != [self.host objectForInfoDictionaryKey:@"NSAppTransportSecurity"]; - if (isMainBundle && !atsExceptionsExist) { - [self showAlertText:SULocalizedString(@"Insecure feed URL is blocked in macOS 10.11", nil) - informativeText:[NSString stringWithFormat:SULocalizedString(@"You must change the feed URL (%@) to use HTTPS or disable App Transport Security.\n\nFor more information:\nhttps://sparkle-project.org/documentation/app-transport-security/", nil), [feedURL absoluteString]]]; - } else if (!isMainBundle) { - SULog(@"WARNING: Serving updates over HTTP may be blocked in macOS 10.11. Please change the feed URL (%@) to use HTTPS. For more information:\nhttps://sparkle-project.org/documentation/app-transport-security/", feedURL); - } - } -#endif -} - - -// This will be used when the updater is instantiated in a nib such as MainMenu -- (instancetype)init -{ - return [self initForBundle:[NSBundle mainBundle]]; -} - -- (NSString *)description { return [NSString stringWithFormat:@"%@ <%@, %@>", [self class], [self.host bundlePath], [self.host installationPath]]; } - -- (void)startUpdateCycle -{ - BOOL shouldPrompt = NO; - BOOL hasLaunchedBefore = [self.host boolForUserDefaultsKey:SUHasLaunchedBeforeKey]; - - // If the user has been asked about automatic checks, don't bother prompting - if ([self.host objectForUserDefaultsKey:SUEnableAutomaticChecksKey]) { - shouldPrompt = NO; - } - // Does the delegate want to take care of the logic for when we should ask permission to update? - else if ([self.delegate respondsToSelector:@selector(updaterShouldPromptForPermissionToCheckForUpdates:)]) { - shouldPrompt = [self.delegate updaterShouldPromptForPermissionToCheckForUpdates:self]; - } - // Has he been asked already? And don't ask if the host has a default value set in its Info.plist. - else if ([self.host objectForKey:SUEnableAutomaticChecksKey] == nil) { - // Now, we don't want to ask the user for permission to do a weird thing on the first launch. - // We wait until the second launch, unless explicitly overridden via SUPromptUserOnFirstLaunchKey. - shouldPrompt = [self.host objectForKey:SUPromptUserOnFirstLaunchKey] || hasLaunchedBefore; - } - - if (!hasLaunchedBefore) { - [self.host setBool:YES forUserDefaultsKey:SUHasLaunchedBeforeKey]; - } - - if (shouldPrompt) { - NSArray *profileInfo = [self.host systemProfile]; - // Always say we're sending the system profile here so that the delegate displays the parameters it would send. - if ([self.delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)]) { - profileInfo = [profileInfo arrayByAddingObjectsFromArray:[self.delegate feedParametersForUpdater:self sendingSystemProfile:YES]]; - } - [SUUpdatePermissionPrompt promptWithHost:self.host systemProfile:profileInfo delegate:self]; - // We start the update checks and register as observer for changes after the prompt finishes - } else { - // We check if the user's said they want updates, or they haven't said anything, and the default is set to checking. - [self scheduleNextUpdateCheck]; - } -} - -- (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result -{ - [self setAutomaticallyChecksForUpdates:(result == SUAutomaticallyCheck)]; - // Schedule checks, but make sure we ignore the delayed call from KVO - [self resetUpdateCycle]; -} - -- (void)updateDriverDidFinish:(NSNotification *)note -{ - if ([note object] == self.driver && [self.driver finished]) - { - self.driver = nil; - [self updateLastUpdateCheckDate]; - [self scheduleNextUpdateCheck]; - } -} - -- (NSDate *)lastUpdateCheckDate -{ - return [self.host objectForUserDefaultsKey:SULastCheckTimeKey]; -} - -- (void)updateLastUpdateCheckDate -{ - [self willChangeValueForKey:@"lastUpdateCheckDate"]; - [self.host setObject:[NSDate date] forUserDefaultsKey:SULastCheckTimeKey]; - [self didChangeValueForKey:@"lastUpdateCheckDate"]; -} - -- (void)scheduleNextUpdateCheck -{ - if (self.checkTimer) - { - [self.checkTimer invalidate]; - self.checkTimer = nil; // Timer is non-repeating, may have invalidated itself, so we had to retain it. - } - if (![self automaticallyChecksForUpdates]) return; - - // How long has it been since last we checked for an update? - NSDate *lastCheckDate = [self lastUpdateCheckDate]; - if (!lastCheckDate) { lastCheckDate = [NSDate distantPast]; } - NSTimeInterval intervalSinceCheck = [[NSDate date] timeIntervalSinceDate:lastCheckDate]; - - // Now we want to figure out how long until we check again. - NSTimeInterval delayUntilCheck, updateCheckInterval = [self updateCheckInterval]; - if (updateCheckInterval < SUMinimumUpdateCheckInterval) - updateCheckInterval = SUMinimumUpdateCheckInterval; - if (intervalSinceCheck < updateCheckInterval) - delayUntilCheck = (updateCheckInterval - intervalSinceCheck); // It hasn't been long enough. - else - delayUntilCheck = 0; // We're overdue! Run one now. - self.checkTimer = [NSTimer scheduledTimerWithTimeInterval:delayUntilCheck target:self selector:@selector(checkForUpdatesInBackground) userInfo:nil repeats:NO]; // Timer is non-repeating, may have invalidated itself, so we had to retain it. -} - -- (void)checkForUpdatesInBackground -{ - // Do not use reachability for a preflight check. This can be deceptive and a bad idea. Apple does not recommend doing it. - SUUpdateDriver *theUpdateDriver = [[([self automaticallyDownloadsUpdates] ? [SUAutomaticUpdateDriver class] : [SUScheduledUpdateDriver class])alloc] initWithUpdater:self]; - - [self checkForUpdatesWithDriver:theUpdateDriver]; -} - -- (BOOL)mayUpdateAndRestart -{ - return (!self.delegate || ![self.delegate respondsToSelector:@selector(updaterShouldRelaunchApplication:)] || [self.delegate updaterShouldRelaunchApplication:self]); -} - -- (IBAction)checkForUpdates:(id)__unused sender -{ - if (self.driver && [self.driver isInterruptible]) { - [self.driver abortUpdate]; - } - - [self checkForUpdatesWithDriver:[[SUUserInitiatedUpdateDriver alloc] initWithUpdater:self]]; -} - -- (void)checkForUpdateInformation -{ - [self checkForUpdatesWithDriver:[[SUProbingUpdateDriver alloc] initWithUpdater:self]]; -} - -- (void)installUpdatesIfAvailable -{ - if (self.driver && [self.driver isInterruptible]) { - [self.driver abortUpdate]; - } - - SUUIBasedUpdateDriver *theUpdateDriver = [[SUUserInitiatedUpdateDriver alloc] initWithUpdater:self]; - theUpdateDriver.automaticallyInstallUpdates = YES; - [self checkForUpdatesWithDriver:theUpdateDriver]; -} - -- (void)checkForUpdatesWithDriver:(SUUpdateDriver *)d -{ - if ([self updateInProgress]) { return; } - if (self.checkTimer) { [self.checkTimer invalidate]; self.checkTimer = nil; } // Timer is non-repeating, may have invalidated itself, so we had to retain it. - - [self updateLastUpdateCheckDate]; - - if( [self.delegate respondsToSelector: @selector(updaterMayCheckForUpdates:)] && ![self.delegate updaterMayCheckForUpdates: self] ) - { - [self scheduleNextUpdateCheck]; - return; - } - - self.driver = d; - - // If we're not given a driver at all, just schedule the next update check and bail. - if (!self.driver) - { - [self scheduleNextUpdateCheck]; - return; - } - - [self checkIfConfiguredProperly]; - - NSURL *theFeedURL = [self parameterizedFeedURL]; - if (theFeedURL) // Use a NIL URL to cancel quietly. - [self.driver checkForUpdatesAtURL:theFeedURL host:self.host]; - else - [self.driver abortUpdate]; -} - -- (void)registerAsObserver -{ - [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateDriverDidFinish:) name:SUUpdateDriverFinishedNotification object:nil]; - [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:[@"values." stringByAppendingString:SUScheduledCheckIntervalKey] options:(NSKeyValueObservingOptions)0 context:(__bridge void *)(SUUpdaterDefaultsObservationContext)]; - [[NSUserDefaultsController sharedUserDefaultsController] addObserver:self forKeyPath:[@"values." stringByAppendingString:SUEnableAutomaticChecksKey] options:(NSKeyValueObservingOptions)0 context:(__bridge void *)(SUUpdaterDefaultsObservationContext)]; -} - -- (void)unregisterAsObserver -{ - @try - { - [[NSNotificationCenter defaultCenter] removeObserver:self]; - [[NSUserDefaultsController sharedUserDefaultsController] removeObserver:self forKeyPath:[@"values." stringByAppendingString:SUScheduledCheckIntervalKey]]; - [[NSUserDefaultsController sharedUserDefaultsController] removeObserver:self forKeyPath:[@"values." stringByAppendingString:SUEnableAutomaticChecksKey]]; - } - @catch (NSException *) - { - SULog(@"Error: [SUUpdater unregisterAsObserver] called, but the updater wasn't registered as an observer."); - } -} - -- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context -{ - if (context == (__bridge void *)(SUUpdaterDefaultsObservationContext)) - { - // Allow a small delay, because perhaps the user or developer wants to change both preferences. This allows the developer to interpret a zero check interval as a sign to disable automatic checking. - // Or we may get this from the developer and from our own KVO observation, this will effectively coalesce them. - [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil]; - [self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:1]; - } - else - { - [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; - } -} - -- (void)resetUpdateCycle -{ - [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil]; - [self scheduleNextUpdateCheck]; -} - -- (void)setAutomaticallyChecksForUpdates:(BOOL)automaticallyCheckForUpdates -{ - [self.host setBool:automaticallyCheckForUpdates forUserDefaultsKey:SUEnableAutomaticChecksKey]; - // Hack to support backwards compatibility with older Sparkle versions, which supported - // disabling updates by setting the check interval to 0. - if (automaticallyCheckForUpdates && (NSInteger)[self updateCheckInterval] == 0) { - [self setUpdateCheckInterval:SUDefaultUpdateCheckInterval]; - } - [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil]; - // Provide a small delay in case multiple preferences are being updated simultaneously. - [self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:1]; -} - -- (BOOL)automaticallyChecksForUpdates -{ - // Don't automatically update when the check interval is 0, to be compatible with 1.1 settings. - if ((NSInteger)[self updateCheckInterval] == 0) { - return NO; - } - return [self.host boolForKey:SUEnableAutomaticChecksKey]; -} - -- (void)setAutomaticallyDownloadsUpdates:(BOOL)automaticallyUpdates -{ - [self.host setBool:automaticallyUpdates forUserDefaultsKey:SUAutomaticallyUpdateKey]; -} - -- (BOOL)automaticallyDownloadsUpdates -{ - // If the host doesn't allow automatic updates, don't ever let them happen - if (!self.host.allowsAutomaticUpdates) { - return NO; - } - - // Otherwise, automatically downloading updates is allowed. Does the user want it? - return [self.host boolForUserDefaultsKey:SUAutomaticallyUpdateKey]; -} - -- (void)setFeedURL:(NSURL *)feedURL -{ - if (![NSThread isMainThread]) - [NSException raise:@"SUThreadException" format:@"This method must be called on the main thread"]; - - [self.host setObject:[feedURL absoluteString] forUserDefaultsKey:SUFeedURLKey]; -} - -- (NSURL *)feedURL -{ - if (![NSThread isMainThread]) - [NSException raise:@"SUThreadException" format:@"This method must be called on the main thread"]; - - // A value in the user defaults overrides one in the Info.plist (so preferences panels can be created wherein users choose between beta / release feeds). - NSString *appcastString = [self.host objectForKey:SUFeedURLKey]; - if ([self.delegate respondsToSelector:@selector(feedURLStringForUpdater:)]) - appcastString = [self.delegate feedURLStringForUpdater:self]; - if (!appcastString) // Can't find an appcast string! - [NSException raise:@"SUNoFeedURL" format:@"You must specify the URL of the appcast as the %@ key in either the Info.plist or the user defaults!", SUFeedURLKey]; - NSCharacterSet *quoteSet = [NSCharacterSet characterSetWithCharactersInString:@"\"\'"]; // Some feed publishers add quotes; strip 'em. - NSString *castUrlStr = [appcastString stringByTrimmingCharactersInSet:quoteSet]; - if (!castUrlStr || [castUrlStr length] == 0) - return nil; - else - return [NSURL URLWithString:castUrlStr]; -} - -- (NSString *)userAgentString -{ - if (customUserAgentString) { - return customUserAgentString; - } - - NSString *version = [self.sparkleBundle objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey]; - NSString *userAgent = [NSString stringWithFormat:@"%@/%@ Sparkle/%@", [self.host name], [self.host displayVersion], version ? version : @"?"]; - NSData *cleanedAgent = [userAgent dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; - return [[NSString alloc] initWithData:cleanedAgent encoding:NSASCIIStringEncoding]; -} - -- (void)setSendsSystemProfile:(BOOL)sendsSystemProfile -{ - [self.host setBool:sendsSystemProfile forUserDefaultsKey:SUSendProfileInfoKey]; -} - -- (BOOL)sendsSystemProfile -{ - return [self.host boolForKey:SUSendProfileInfoKey]; -} - -- (NSURL *)parameterizedFeedURL -{ - NSURL *baseFeedURL = [self feedURL]; - - // Determine all the parameters we're attaching to the base feed URL. - BOOL sendingSystemProfile = [self sendsSystemProfile]; - - // Let's only send the system profiling information once per week at most, so we normalize daily-checkers vs. biweekly-checkers and the such. - NSDate *lastSubmitDate = [self.host objectForUserDefaultsKey:SULastProfileSubmitDateKey]; - if (!lastSubmitDate) { - lastSubmitDate = [NSDate distantPast]; - } - const NSTimeInterval oneWeek = 60 * 60 * 24 * 7; - sendingSystemProfile &= (-[lastSubmitDate timeIntervalSinceNow] >= oneWeek); - - NSArray *parameters = @[]; - if ([self.delegate respondsToSelector:@selector(feedParametersForUpdater:sendingSystemProfile:)]) { - parameters = [parameters arrayByAddingObjectsFromArray:[self.delegate feedParametersForUpdater:self sendingSystemProfile:sendingSystemProfile]]; - } - if (sendingSystemProfile) - { - parameters = [parameters arrayByAddingObjectsFromArray:[self.host systemProfile]]; - [self.host setObject:[NSDate date] forUserDefaultsKey:SULastProfileSubmitDateKey]; - } - if ([parameters count] == 0) { return baseFeedURL; } - - // Build up the parameterized URL. - NSMutableArray *parameterStrings = [NSMutableArray array]; - for (NSDictionary *currentProfileInfo in parameters) { - [parameterStrings addObject:[NSString stringWithFormat:@"%@=%@", [[[currentProfileInfo objectForKey:@"key"] description] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding], [[[currentProfileInfo objectForKey:@"value"] description] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]]; - } - - NSString *separatorCharacter = @"?"; - if ([baseFeedURL query]) { - separatorCharacter = @"&"; // In case the URL is already http://foo.org/baz.xml?bat=4 - } - NSString *appcastStringWithProfile = [NSString stringWithFormat:@"%@%@%@", [baseFeedURL absoluteString], separatorCharacter, [parameterStrings componentsJoinedByString:@"&"]]; - - // Clean it up so it's a valid URL - return [NSURL URLWithString:appcastStringWithProfile]; -} - -- (void)setUpdateCheckInterval:(NSTimeInterval)updateCheckInterval -{ - [self.host setObject:@(updateCheckInterval) forUserDefaultsKey:SUScheduledCheckIntervalKey]; - if ((NSInteger)updateCheckInterval == 0) { // For compatibility with 1.1's settings. - [self setAutomaticallyChecksForUpdates:NO]; - } - [[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(resetUpdateCycle) object:nil]; - - // Provide a small delay in case multiple preferences are being updated simultaneously. - [self performSelector:@selector(resetUpdateCycle) withObject:nil afterDelay:1]; -} - -- (NSTimeInterval)updateCheckInterval -{ - // Find the stored check interval. User defaults override Info.plist. - NSNumber *intervalValue = [self.host objectForKey:SUScheduledCheckIntervalKey]; - if (intervalValue) - return [intervalValue doubleValue]; - else - return SUDefaultUpdateCheckInterval; -} - -- (void)dealloc -{ - [self unregisterAsObserver]; - if (checkTimer) { [checkTimer invalidate]; } // Timer is non-repeating, may have invalidated itself, so we had to retain it. -} - -- (BOOL)validateMenuItem:(NSMenuItem *)item -{ - if ([item action] == @selector(checkForUpdates:)) { - return ![self updateInProgress] || [self.driver isInterruptible]; - } - return YES; -} - -- (BOOL)updateInProgress -{ - return self.driver && ([self.driver finished] == NO); -} - -- (NSBundle *)hostBundle { return [self.host bundle]; } - -@end diff --git a/Sparkle/Sparkle/SUUpdater_Private.h b/Sparkle/Sparkle/SUUpdater_Private.h deleted file mode 100755 index 40091549..00000000 --- a/Sparkle/Sparkle/SUUpdater_Private.h +++ /dev/null @@ -1,15 +0,0 @@ -// -// SUUpdater_Private.h -// Sparkle -// -// Created by Andy Matuschak on 5/9/11. -// Copyright 2011 Andy Matuschak. All rights reserved. -// - -#import "SUUpdater.h" - -@interface SUUpdater (Private) - -@property (readonly) BOOL mayUpdateAndRestart; - -@end diff --git a/Sparkle/Sparkle/SUUserInitiatedUpdateDriver.h b/Sparkle/Sparkle/SUUserInitiatedUpdateDriver.h deleted file mode 100755 index 079d2fea..00000000 --- a/Sparkle/Sparkle/SUUserInitiatedUpdateDriver.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SUUserInitiatedUpdateDriver.h -// Sparkle -// -// Created by Andy Matuschak on 5/30/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUUSERINITIATEDUPDATEDRIVER_H -#define SUUSERINITIATEDUPDATEDRIVER_H - -#import -#import "SUUIBasedUpdateDriver.h" - -@interface SUUserInitiatedUpdateDriver : SUUIBasedUpdateDriver - -@end - -#endif diff --git a/Sparkle/Sparkle/SUUserInitiatedUpdateDriver.m b/Sparkle/Sparkle/SUUserInitiatedUpdateDriver.m deleted file mode 100755 index 04e96b23..00000000 --- a/Sparkle/Sparkle/SUUserInitiatedUpdateDriver.m +++ /dev/null @@ -1,87 +0,0 @@ -// -// SUUserInitiatedUpdateDriver.m -// Sparkle -// -// Created by Andy Matuschak on 5/30/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUUserInitiatedUpdateDriver.h" - -#import "SUStatusController.h" -#import "SUHost.h" - -@interface SUUserInitiatedUpdateDriver () - -@property (strong) SUStatusController *checkingController; -@property (assign, getter=isCanceled) BOOL canceled; - -@end - -@implementation SUUserInitiatedUpdateDriver - -@synthesize checkingController; -@synthesize canceled; - -- (void)closeCheckingWindow -{ - if (self.checkingController) - { - [[self.checkingController window] close]; - self.checkingController = nil; - } -} - -- (void)cancelCheckForUpdates:(id)__unused sender -{ - [self closeCheckingWindow]; - self.canceled = YES; -} - -- (void)checkForUpdatesAtURL:(NSURL *)URL host:(SUHost *)aHost -{ - self.checkingController = [[SUStatusController alloc] initWithHost:aHost]; - [[self.checkingController window] center]; // Force the checking controller to load its window. - [self.checkingController beginActionWithTitle:SULocalizedString(@"Checking for updates...", nil) maxProgressValue:0.0 statusText:nil]; - [self.checkingController setButtonTitle:SULocalizedString(@"Cancel", nil) target:self action:@selector(cancelCheckForUpdates:) isDefault:NO]; - [self.checkingController showWindow:self]; - [super checkForUpdatesAtURL:URL host:aHost]; - - // For background applications, obtain focus. - // Useful if the update check is requested from another app like System Preferences. - if ([aHost isBackgroundApplication]) - { - [NSApp activateIgnoringOtherApps:YES]; - } -} - -- (void)appcastDidFinishLoading:(SUAppcast *)ac -{ - if (self.isCanceled) - { - [self abortUpdate]; - return; - } - [self closeCheckingWindow]; - [super appcastDidFinishLoading:ac]; -} - -- (void)abortUpdateWithError:(NSError *)error -{ - [self closeCheckingWindow]; - [super abortUpdateWithError:error]; -} - -- (void)abortUpdate -{ - [self closeCheckingWindow]; - [super abortUpdate]; -} - -- (BOOL)itemContainsValidUpdate:(SUAppcastItem *)ui -{ - // We don't check to see if this update's been skipped, because the user explicitly *asked* if he had the latest version. - return [[self class] hostSupportsItem:ui] && [self isItemNewer:ui]; -} - -@end diff --git a/Sparkle/Sparkle/SUVersionComparisonProtocol.h b/Sparkle/Sparkle/SUVersionComparisonProtocol.h deleted file mode 100755 index c099ad57..00000000 --- a/Sparkle/Sparkle/SUVersionComparisonProtocol.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// SUVersionComparisonProtocol.h -// Sparkle -// -// Created by Andy Matuschak on 12/21/07. -// Copyright 2007 Andy Matuschak. All rights reserved. -// - -#ifndef SUVERSIONCOMPARISONPROTOCOL_H -#define SUVERSIONCOMPARISONPROTOCOL_H - -#if __has_feature(modules) -@import Cocoa; -#else -#import -#endif -#import "SUExport.h" - -/*! - Provides version comparison facilities for Sparkle. -*/ -@protocol SUVersionComparison - -/*! - An abstract method to compare two version strings. - - Should return NSOrderedAscending if b > a, NSOrderedDescending if b < a, - and NSOrderedSame if they are equivalent. -*/ -- (NSComparisonResult)compareVersion:(NSString *)versionA toVersion:(NSString *)versionB; // *** MAY BE CALLED ON NON-MAIN THREAD! - -@end - -#endif diff --git a/Sparkle/Sparkle/SUVersionDisplayProtocol.h b/Sparkle/Sparkle/SUVersionDisplayProtocol.h deleted file mode 100755 index 16e444ff..00000000 --- a/Sparkle/Sparkle/SUVersionDisplayProtocol.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// SUVersionDisplayProtocol.h -// EyeTV -// -// Created by Uli Kusterer on 08.12.09. -// Copyright 2009 Elgato Systems GmbH. All rights reserved. -// - -#if __has_feature(modules) -@import Cocoa; -#else -#import -#endif -#import "SUExport.h" - -/*! - Applies special display formatting to version numbers. -*/ -@protocol SUVersionDisplay - -/*! - Formats two version strings. - - Both versions are provided so that important distinguishing information - can be displayed while also leaving out unnecessary/confusing parts. -*/ -- (void)formatVersion:(NSString **)inOutVersionA andVersion:(NSString **)inOutVersionB; - -@end diff --git a/Sparkle/Sparkle/SUWindowController.h b/Sparkle/Sparkle/SUWindowController.h deleted file mode 100755 index f6af6fae..00000000 --- a/Sparkle/Sparkle/SUWindowController.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// SUWindowController.h -// Sparkle -// -// Created by Andy Matuschak on 2/13/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifndef SUWINDOWCONTROLLER_H -#define SUWINDOWCONTROLLER_H - -#import - -@class SUHost; -@interface SUWindowController : NSWindowController -// We use this instead of plain old NSWindowController initWithWindowNibName so that we'll be able to find the right path when running in a bundle loaded from another app. -- (instancetype)initWithWindowNibName:(NSString *)nibName; -@end - -#endif diff --git a/Sparkle/Sparkle/SUWindowController.m b/Sparkle/Sparkle/SUWindowController.m deleted file mode 100755 index 55323113..00000000 --- a/Sparkle/Sparkle/SUWindowController.m +++ /dev/null @@ -1,20 +0,0 @@ -// -// SUWindowController.m -// Sparkle -// -// Created by Andy Matuschak on 2/13/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUWindowController.h" -#import "SUHost.h" - -@implementation SUWindowController - -- (instancetype)initWithWindowNibName:(NSString *)nibName -{ - self = [super initWithWindowNibName:nibName owner:self]; - return self; -} - -@end diff --git a/Sparkle/Sparkle/Sparkle-Info.plist b/Sparkle/Sparkle/Sparkle-Info.plist deleted file mode 100755 index 0caff79f..00000000 --- a/Sparkle/Sparkle/Sparkle-Info.plist +++ /dev/null @@ -1,28 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - ${PRODUCT_NAME} - CFBundlePackageType - FMWK - CFBundleShortVersionString - ${CURRENT_PROJECT_VERSION} - CFBundleSignature - ???? - CFBundleVersion - ${CURRENT_PROJECT_VERSION} - NSPrincipalClass - - - diff --git a/Sparkle/Sparkle/Sparkle.h b/Sparkle/Sparkle/Sparkle.h deleted file mode 100755 index ab828c29..00000000 --- a/Sparkle/Sparkle/Sparkle.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// Sparkle.h -// Sparkle -// -// Created by Andy Matuschak on 3/16/06. (Modified by CDHW on 23/12/07) -// Copyright 2006 Andy Matuschak. All rights reserved. -// - -#ifndef SPARKLE_H -#define SPARKLE_H - -#if __has_feature(modules) -@import Cocoa; -#else -#import -#endif - -// This list should include the shared headers. It doesn't matter if some of them aren't shared (unless -// there are name-space collisions) so we can list all of them to start with: - -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUStandardVersionComparator.h" -#import "SUUpdater.h" -#import "SUVersionComparisonProtocol.h" -#import "SUVersionDisplayProtocol.h" -#import "SUErrors.h" - -#endif diff --git a/Sparkle/Sparkle/Sparkle.pch b/Sparkle/Sparkle/Sparkle.pch deleted file mode 100755 index 7a53b80a..00000000 --- a/Sparkle/Sparkle/Sparkle.pch +++ /dev/null @@ -1,27 +0,0 @@ -// -// Sparkle.pch -// Sparkle -// -// Created by Andy Matuschak on 7/23/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#ifdef __OBJC__ - -#if !defined(__clang_major__) || __clang_major__ < 7 -#define __nonnull -#define __nullable -#endif - -#import -#import "SUConstants.h" -#import "SUErrors.h" - -#define SULocalizedString(key, comment) NSLocalizedStringFromTableInBundle(key, @"Sparkle", (NSBundle *__nonnull)([NSBundle bundleWithIdentifier:SUBundleIdentifier] ? [NSBundle bundleWithIdentifier:SUBundleIdentifier] : [NSBundle mainBundle]), comment) - -// Work around a warning generated by some versions of Xcode that we still support, -// when using NSParameterAssert -#define SUParameterAssert(condition) \ - NSAssert((condition), @"Invalid parameter not satisfying: %@", @(#condition)) - -#endif diff --git a/Sparkle/Sparkle/ar.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/ar.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 8b770b6f..00000000 --- a/Sparkle/Sparkle/ar.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ar.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/ar.lproj/SUUpdateAlert.xib deleted file mode 100755 index c4309fe9..00000000 --- a/Sparkle/Sparkle/ar.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,260 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index bfc811f3..00000000 --- a/Sparkle/Sparkle/ar.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. - -This is the information that would be sent: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/ar.lproj/Sparkle.strings b/Sparkle/Sparkle/ar.lproj/Sparkle.strings deleted file mode 100755 index c8f6d535..00000000 --- a/Sparkle/Sparkle/ar.lproj/Sparkle.strings +++ /dev/null @@ -1,83 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "تم تنزيل %1$@ %2$@ وهو جاهز للاستخدام، هل ترغب بتثبيت التحديث وإعادة تشغيل %1$@ الآن؟"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "لا يمكن تحديث %1$@ إذا شُغّل من وحدة تخزين للقراءة فقط كصورة قرص أو قارئ الأقراص الضوئية. انقل %1$@ إلى مجلد التطبيقات وأعد تشغيله من هناك ثم حاول مجددًا."; - -"%@ %@ is currently the newest version available." = "الإصدار %2$@ هو أحدث إصدار متوفر حاليًا لتطبيق %1$@"; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "لديك الإصدار %3$@ من تطبيق %1$@، هل ترغب بتزيل الإصدار %2$@ الآن"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "تم تنزيل %@"; - -"%@ of %@" = "%1$@ من %2$@"; - -"A new version of %@ is available!" = "يتوفر إصدار جديد من تطبيق %@"; - -"A new version of %@ is ready to install!" = "الإصدار الجديد من تطبيق %@ جاهز للتثبيت"; - -"An error occurred in retrieving update information. Please try again later." = "حال خطأ دون الحصول على معلومات حول التحديث، الرجاء المحاولة لاحقًا."; - -"An error occurred while downloading the update. Please try again later." = "حدث خطأ أثناء تنزيل التحديث، الرجاء المحاولة لاحقًا."; - -"An error occurred while extracting the archive. Please try again later." = "حدث خطأ أثناء استخراج الأرشيف، الرجاء المحاولة لاحقًا."; - -"An error occurred while installing the update. Please try again later." = "حدث خطأ أثناء تثبيت التحديث، الرجاء المحاولة لاحقًا."; - -"An error occurred while parsing the update feed." = "حدث خطأ أثناء تحليل المعلومات المزوّدَة حول التحديث."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "حدث خطأ أثناء إعادة تشغيل %1$@، إلا أن الإصدار الجديد سيكون متوفرًا في المرة القادمة التي تشغل فيها %1$@"; - -/* the unit for bytes */ -"B" = "بايت"; - -"Cancel" = "إلغاء"; - -"Cancel Update" = "إلغاء التحديث"; - -"Checking for updates..." = "يجري التحقق من وجود تحديثات..."; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "يجري تنزيل التحديث..."; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "يجري استخراج التحديث..."; - -/* the unit for gigabytes */ -"GB" = "غيغا بايت"; - -"Install and Relaunch" = "تثبيت وإعادة تشغيل التطبيق"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "يجري تثبيت التحديث..."; - -/* the unit for kilobytes */ -"KB" = "كيلو بايت"; - -/* the unit for megabytes */ -"MB" = "ميغا بايت"; - -/* OK button. */ -"OK" = "موافق"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "جاهز للتثبيت"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "هل ترغب في أن يتحقق %1$@ من وجود تحديثات تلقائيًا؟ يمكنك التحقق من وجود تحديثات يدويًا في أي وقت من قائمة %1$@."; - -"Update Error!" = "حدث خطأ أثناء التحديث"; - -"Updating %@" = "تحديث %@"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." ="لديك أحدث إصدار من تطبيق %@"; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "لديك أحدث إصدار"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "مزيد من التفاصيل..."; diff --git a/Sparkle/Sparkle/ca.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/Sparkle/ca.lproj/SUAutomaticUpdateAlert.strings deleted file mode 100755 index 8d3ab4ee..00000000 --- a/Sparkle/Sparkle/ca.lproj/SUAutomaticUpdateAlert.strings +++ /dev/null @@ -1,12 +0,0 @@ -/* NSWindow () : (oid:5) */ -"" = ""; - -/* NSButton (Automatically download and install updates in the future) : (oid:17) */ -"Automatically download and install updates in the future" = "Baixa i instal·la les actualitzacions automàticament en el futur"; - -/* NSButton (Relaunch Later) : (oid:16) */ -"Relaunch Later" = "Reinicia el programa més tard"; - -/* NSButton (Relaunch Now) : (oid:15) */ -"Relaunch Now" = "Reinicia el programa ara"; - diff --git a/Sparkle/Sparkle/ca.lproj/SUUpdateAlert.strings b/Sparkle/Sparkle/ca.lproj/SUUpdateAlert.strings deleted file mode 100755 index d02d071e..00000000 --- a/Sparkle/Sparkle/ca.lproj/SUUpdateAlert.strings +++ /dev/null @@ -1,18 +0,0 @@ -/* NSButton (Automatically download and install updates in the future) : (oid:92) */ -"Automatically download and install updates in the future" = "Descarrega i instal·la les actualitzacions automàticament en el futur"; - -/* NSButton (Install Update) : (oid:76) */ -"Install Update" = "Instal·la l'actualització"; - -/* NSTextField (Release Notes:) : (oid:17) */ -"Release Notes:" = "Notes d'aquesta versió:"; - -/* NSButton (Remind Me Later) : (oid:22) */ -"Remind Me Later" = "Recorda-m'ho més tard"; - -/* NSButton (Skip This Version) : (oid:23) */ -"Skip This Version" = "Omet aquesta versió"; - -/* NSWindow (Software Update) : (oid:5) */ -"Software Update" = "Actualització del programari"; - diff --git a/Sparkle/Sparkle/ca.lproj/Sparkle.strings b/Sparkle/Sparkle/ca.lproj/Sparkle.strings deleted file mode 100755 index 23c3306b..00000000 --- a/Sparkle/Sparkle/ca.lproj/Sparkle.strings +++ /dev/null @@ -1,58 +0,0 @@ -"%@ of %@" = "%1$@ de %2$@"; - -"%1$@ can't be updated when it's running from a disk image. Move %1$@ to your Applications folder, relaunch it, and try again." = "%1$@ no es pot actualitzar quan funciona des d'un disc d'imatge. Moveu %1$@ al vostre directori Aplicacions, reinicieu-lo, i torneu a provar-ho."; - -"%@ %@ has been installed and will be ready to use next time %@ starts! Would you like to relaunch now?" = "%@ %@ ha estat instal·lat i estarà llest per a ser utilitzat la propera vegada que s'iniciï %@! Voleu reiniciar ara?"; - -"%@ %@ is currently the newest version available." = "%@ %@ és la versió disponible més actual."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%@ %@ està disponible (ara teniu %@). Voleu actualitzar?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help." = "%@ no té permís per escriure al directori d'aplicacions! Esteu executant el programa des d'un disc d'imatge? Si no és així, demaneu ajuda al vostre administrador."; - -"A new version of %@ has been installed!" = "S'ha instal·lat una nova versió de %@!"; - -"A new version of %@ is available!" = "Hi ha una nova versió de %@ disponible!"; - -"An error occurred during installation. Please try again later." = "Hi ha hagut un error durant la instal·lació. Torneu-ho a provar més tard."; - -"An error occurred in retrieving update information. Please try again later." = "Hi ha hagut un error obtenint la informació d'actualització. Torneu a provar-ho més tard."; - -"An error occurred while extracting the archive. Please try again later." = "Hi ha hagut un error al extreure l'arxiu? Torneu a provar-ho més tard."; - -"An error occurred while trying to download the file. Please try again later." = "Hi ha hagut un error al intentar descarregar el fitxer. Torneu a provar-ho més tard."; - -"An update is already in progress!" = "Ja hi ha una actualització en progrés!"; - -"Cancel" = "Cancel·la"; - -"Check for updates on startup?" = "Comprovar si hi ha actualitzacions a l'inici?"; - -"Downloading update..." = "Descarregant l'actualització…"; - -"Extracting update..." = "Extraient l'actualització…"; - -"Install and Relaunch" = "Instal·la i reinicia"; - -"Installing update..." = "Instal·lant l'actualització…"; - -"No" = "No"; - -"OK" = "D'acord"; - -"Ready to Install" = "A punt per instal·lar"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Voleu que %1$@ comprovi si hi ha noves actualitzacions al iniciar? Si no, podeu inciar la comprovació manualment des del menú %1$@."; - -"Update Error!" = "Error d'actualització!"; - -"Updating %@" = "Actualitzant %@"; - -"Yes" = "Sí"; - -"You're up-to-date!" = "Ja esteu al dia!"; - diff --git a/Sparkle/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 0c30faaa..00000000 --- a/Sparkle/Sparkle/cs.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/cs.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/cs.lproj/SUUpdateAlert.xib deleted file mode 100755 index 7ef103de..00000000 --- a/Sparkle/Sparkle/cs.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index f43a8078..00000000 --- a/Sparkle/Sparkle/cs.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,225 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - Informace z anonymního systémového profilu pomáhají vývojářům lépe plánovat budoucí vývoj aplikace. -Budete-li mít nějaký dotaz, obraťte se na nás. - -Tyto informace by měly být odeslány: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/cs.lproj/Sparkle.strings b/Sparkle/Sparkle/cs.lproj/Sparkle.strings deleted file mode 100755 index 251d007f..00000000 --- a/Sparkle/Sparkle/cs.lproj/Sparkle.strings +++ /dev/null @@ -1,75 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ byl instalován a je připraven k použití po příštím spuštění. Přejete si aplikaci %1$@ nyní nainstalovat a znovu spustit?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Aplikace %1$@ nemůže být aktualizována, protože je spuštěna z média na které nelze zapisovat. Může to být CD/DVD-ROM, obraz disku nebo jen nemáte právo zápisu na disk. Přesuňte aplikaci %1$@ do vaší složky Aplikace, spusťte ji z tohoto umístěni znovu."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ je nejnovější dostupná verze"; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "Je k dispozici %1$@ %2$@ - máte %3$@. Přejete si nyní zkopírovat aktualizaci?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ je nyní k dispozici – vy máte %3$@. Přejete si zobrazit o této aktualizaci další informace?"; - -"%@ downloaded" = "zkopírováno %@"; - -"%@ of %@" = "%1$@ z %2$@"; - -"A new version of %@ is available!" = "Je dostupná nová verze aplikace %@!"; - -"A new version of %@ is ready to install!" = "Nová verze %@ je připravena k instalaci!"; - -"An error occurred in retrieving update information. Please try again later." = "Při získávání údajů o aktualizaci se vyskytla chyba. Zkuste to prosím později."; - -"An error occurred while downloading the update. Please try again later." = "Při kopírování souboru se vyskytla chyba. Zkuste to prosím později."; - -"An error occurred while extracting the archive. Please try again later." = "Při rozbalování archivu se vyskytla chyba. Zkuste to prosím později."; - -"An error occurred while installing the update. Please try again later." = "Při instalaci aktualizace se vyskytla chyba. Zkuste to prosím později."; - -"An error occurred while parsing the update feed." = "Při zpracovávání údajů o aktualizaci se vyskytla chyba. Zkuste to prosím později."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Vyskytla se chyba při novém spouštění aplikace %1$@, ale nová verze bude dostupná při dalším spuštění %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Zrušit"; - -"Cancel Update" = "Zrušit aktualizaci"; - -"Checking for updates..." = "Ověřuje se dostupnost aktualizací…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Kopíruje se aktualizace…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Rozbaluje se aktualizace…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Instalovat a znovu spustit"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Instaluje se aktualizace…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "Budiž"; - -"Ready to Install" = "Připraveno k instalaci"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Přejete si, aby aplikace %1$@ automaticky ověřovala dostupnost aktualizací? Tuto volbu můžete kdykoliv změnit v nabídce %1$@."; - -"Update Error!" = "Chyba při aktualizaci!"; - -"Updating %@" = "Aktualizuje se %@"; - -"You already have the newest version of %@." = "Máte nainstalovanou nejnovější verzi aplikace @."; - -"You're up-to-date!" = "Vaše verze je aktuální!"; - diff --git a/Sparkle/Sparkle/da.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/da.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 382eba72..00000000 --- a/Sparkle/Sparkle/da.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/da.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/da.lproj/SUUpdateAlert.xib deleted file mode 100755 index 77fcdd65..00000000 --- a/Sparkle/Sparkle/da.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/da.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/da.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 2f5404e8..00000000 --- a/Sparkle/Sparkle/da.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. - -This is the information that would be sent: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/da.lproj/Sparkle.strings b/Sparkle/Sparkle/da.lproj/Sparkle.strings deleted file mode 100755 index 0e18c057..00000000 --- a/Sparkle/Sparkle/da.lproj/Sparkle.strings +++ /dev/null @@ -1,84 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ er hentet og klar til brug! Vil du installere og genstarte %1$@ nu?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ kan ikke opdateres når det køres fra en kun læsbar enhed. Flyt %1$@ til mappen Programmer, genstart derfra og prøv igen."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ er den aktuelle version."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ er tilgængelig! Du har %3$@. Skal den hentes nu?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ hentet"; - -"%@ of %@" = "%1$@ af %2$@"; - -"A new version of %@ is available!" = "En ny version af %@ er tilgængelig!"; - -"A new version of %@ is ready to install!" = "En ny version af %@ er klar til installering!"; - -"An error occurred in retrieving update information. Please try again later." = "Kunne ikke modtage informationer om opdateringer. Kontroller at du har forbindelse til internettet eller prøv igen senere."; - -"An error occurred while downloading the update. Please try again later." = "Opdateringen kunne ikke hentes. Prøv igen senere."; - -"An error occurred while extracting the archive. Please try again later." = "Arkivet kunne ikke udpakkes. Prøv igen senere."; - -"An error occurred while installing the update. Please try again later." = "Opdateringen kunne ikke installeres. Prøv igen senere."; - -"An error occurred while parsing the update feed." = "An error occurred while parsing the update feed."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "%1$@ kunne ikke genstartes. Den nye version vil være tilgængelig, næste gang %1$@ startes."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Annuller"; - -"Cancel Update" = "Annuller opdatering"; - -"Checking for updates..." = "Søger efter opdateringer…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Henter opdatering…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Udpakker arkiver…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Installer og genstart"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Installerer opdatering…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "OK"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "Klar til installering"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Skal %1$@ søge efter opdateringer automatisk? Du kan altid søge efter opdateringer manuelt fra programmets menu."; - -"Update Error!" = "Der opstod en fejl!"; - -"Updating %@" = "Opdaterer %@"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "Du har den seneste version af %@."; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "Der er ingen opdateringer"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "Læs mere…"; - diff --git a/Sparkle/Sparkle/de.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/de.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 2672e10c..00000000 --- a/Sparkle/Sparkle/de.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/de.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/de.lproj/SUUpdateAlert.xib deleted file mode 100755 index 615bbaf7..00000000 --- a/Sparkle/Sparkle/de.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/de.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/de.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 01450e3a..00000000 --- a/Sparkle/Sparkle/de.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Das anonymisierte Systemprofil unterstützt uns bei der zukünftigen Entwicklung. Bitte kontaktieren Sie uns, wenn Sie Fragen hierzu haben. - -Diese Informationen würden an uns gesendet: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/de.lproj/Sparkle.strings b/Sparkle/Sparkle/de.lproj/Sparkle.strings deleted file mode 100755 index 1fc6a3d7..00000000 --- a/Sparkle/Sparkle/de.lproj/Sparkle.strings +++ /dev/null @@ -1,85 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ wurde heruntergeladen und steht zur Verwendung bereit! Dies ist eine wichtige Aktualisierung. Möchten Sie %1$@ jetzt durch die neue Version ersetzen und neu starten?"; - -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ wurde heruntergeladen und steht zur Verwendung bereit! Möchten Sie %1$@ jetzt durch die neue Version ersetzen und neu starten?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ kann nicht aktualisiert werden, wenn es von einem Volumen ohne Schreibzugriff (z.B. Disk Image oder CD/DVD) gestartet wurde. Kopieren Sie %1$@ in den Programme Ordner, aktualisieren Sie es von dort."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ ist zur Zeit die neueste verfügbare Version."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ ist verfügbar (Sie verwenden Version %3$@). Möchten Sie die neue Version jetzt herunterladen?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ ist verfügbar (Sie verwenden Version %3$@). Möchten Sie mehr über diese Aktualisierung erfahren?"; - -"%@ downloaded" = "%@ heruntergeladen"; - -"%@ of %@" = "%1$@ von %2$@"; - -"A new version of %@ is available!" = "Eine neue Version von %@ ist verfügbar!"; - -"A new version of %@ is ready to install!" = "Eine neue Version von %@ ist zur Installation bereit!"; - -"An error occurred in retrieving update information. Please try again later." = "Bei der Aktualisierung trat ein Fehler auf. Bitte versuchen Sie es später erneut."; - -"An error occurred while downloading the update. Please try again later." = "Beim Herunterladen ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."; - -"An error occurred while extracting the archive. Please try again later." = "Beim Entpacken der Daten ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."; - -"An error occurred while installing the update. Please try again later." = "Bei der Installation der Aktualisierung ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut."; - -"An error occurred while parsing the update feed." = "Beim Lesen der Aktualisierungsinformationen ist ein Fehler aufgetreten."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Beim erneuten Starten von %1$@ ist ein Fehler aufgetreten. Die neue Version von %1$@ steht beim nächsten Programmstart zur Verfügung."; - -"An important update to %@ is ready to install" = "Eine wichtige Aktualisierung von %@ steht zur Installation bereit"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Abbrechen"; - -"Cancel Update" = "Aktualisierung abbrechen"; - -"Checking for updates..." = "Suche nach Aktualisierungen …"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Aktualisierung wird heruntergeladen …"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Aktualisierung entpacken …"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Installieren und erneut starten"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Aktualisierung installieren …"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Bereit zum Installieren"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Soll %1$@ automatisch nach Aktualisierungen suchen? Sie können im %1$@-Menü auch manuell nach Aktualisierungen suchen."; - -"The update is improperly signed." = "Die Aktualisierung ist nicht ordnungsgemäß signiert."; - -"Update Error!" = "Fehler beim Aktualisieren!"; - -"Updating %@" = "Aktualisierung von %@"; - -"You already have the newest version of %@." = "Sie haben bereits die neueste Version von %@."; - -"You're up-to-date!" = "Sie sind auf dem neuesten Stand!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Mehr über …"; diff --git a/Sparkle/Sparkle/el.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/el.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 93cbb6cd..00000000 --- a/Sparkle/Sparkle/el.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/el.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/el.lproj/SUUpdateAlert.xib deleted file mode 100755 index 01cc4651..00000000 --- a/Sparkle/Sparkle/el.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/el.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/el.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 4049a836..00000000 --- a/Sparkle/Sparkle/el.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Το ανώνυμο προφίλ συστήματος χρησιμοποιείται για να μας βοηθήσει σε μελλοντική ανάπτυξη του προγράμματος. Παρακαλώ επικοινωνήστε μαζί μας άν έχετε ερωτήσεις. - -Αυτές είναι οι πληροφορίες που θα σταλούν: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/el.lproj/Sparkle.strings b/Sparkle/Sparkle/el.lproj/Sparkle.strings deleted file mode 100755 index 150f3e8e..00000000 --- a/Sparkle/Sparkle/el.lproj/Sparkle.strings +++ /dev/null @@ -1,75 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "Το %1$@ %2$@ έχει ληφθεί και είναι έτοιμο προς χρήση! Θα θέλατε να το εγκαταστήσετε και να επανεκκινήσετε το %1$@ τώρα;"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Το %1$@ δεν μπορεί να ενημερωθεί όσο τρέχει από έναν δίσκο ανάγνωσης-μόνο ή έναν οπτικό δίσκο. Μεταφέρετε το %1$@ στον φάκελο εφαρμογών σας, επανεκκινήστε το από εκεί, και ξαναδοκιμάστε."; - -"%@ %@ is currently the newest version available." = "Το %1$@ %2$@ είναι η τελευταία διαθέσιμη έκδοση."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "Το %1$@ %2$@ είναι πλέον διαθέσιμο--έχετε το %3$@. Θέλετε να το κατεβάσετε τώρα;"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ λήφθησαν"; - -"%@ of %@" = "%1$@ από %2$@"; - -"A new version of %@ is available!" = "Μία νέα έκδοση του %@ είναι διαθέσιμη!"; - -"A new version of %@ is ready to install!" = "Μία νέα έκδοση του %@ είναι έτοιμη για εγκατάσταση!"; - -"An error occurred in retrieving update information. Please try again later." = "Υπήρξε ένα σφάλμα κατά την ανάκτηση των πληροφοριών ενημέρωσης. Παρακαλώ δοκιμάστε αργότερα."; - -"An error occurred while downloading the update. Please try again later." = "Υπήρξε ένα σφάλμα κατά την λήψη της ενημέρωσης. Παρακαλώ δοκιμάστε αργότερα."; - -"An error occurred while extracting the archive. Please try again later." = "Υπήρξε ένα σφάλμα κατά την εξαγωγή του αρχείου. Παρακαλώ δοκιμάστε αργότερα."; - -"An error occurred while installing the update. Please try again later." = "Υπήρξε ένα σφάλμα κατά την εγκατάσταση της ενημέρωσης. Παρακαλώ δοκιμάστε αργότερα."; - -"An error occurred while parsing the update feed." = "Υπήρξε ένα σφάλμα κατά την ανάλυση του feed ενημερώσεων."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Υπήρξε ένα σφάλμα κατά την επανεκκίνηση του %1$@, αλλά η νέα έκδοση θα είναι διαθέσιμη την επόμενη φορά που θα τρέξετε το %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Ακύρωση"; - -"Cancel Update" = "Ακύρωση Ενημέρωσης"; - -"Checking for updates..." = "Έλεγχος για ενημερώσεις..."; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Λήψη ενημέρωσης..."; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Εξαγωγή ενημέρωσης..."; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Εγκατάσταση και Επανεκκίνηση"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Εγκατάσταση ενημέρωσης..."; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Έτοιμο προς Εγκατάσταση"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Θέλετε το %1$@ να ελέγχει αυτόματα για ενημερώσεις; Μπορείτε πάντα να ελέγχετε για ενημερώσεις χειροκίνητα από το μενού %1$@."; - -"Update Error!" = "Σφάλμα Ενημέρωσης!"; - -"Updating %@" = "Ενημέρωση %@"; - -"You already have the newest version of %@." = "Έχετε ήδη την τελευταία έκδοση του %@."; - -"You're up-to-date!" = "Είστε ενημερωμένοι!"; - diff --git a/Sparkle/Sparkle/en.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/en.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 072a1346..00000000 --- a/Sparkle/Sparkle/en.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/en.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/en.lproj/SUUpdateAlert.xib deleted file mode 100755 index dbf344ac..00000000 --- a/Sparkle/Sparkle/en.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/en.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/en.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 4ad9171f..00000000 --- a/Sparkle/Sparkle/en.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. - -This is the information that would be sent: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/en.lproj/Sparkle.strings b/Sparkle/Sparkle/en.lproj/Sparkle.strings deleted file mode 100755 index 35d29205..00000000 --- a/Sparkle/Sparkle/en.lproj/Sparkle.strings +++ /dev/null @@ -1,89 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?"; - -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ can’t be updated when it’s running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ is currently the newest version available."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ is now available—you have %3$@. Would you like to download it now?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available—you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ downloaded"; - -"%@ of %@" = "%1$@ of %2$@"; - -"A new version of %@ is available!" = "A new version of %@ is available!"; - -"A new version of %@ is ready to install!" = "A new version of %@ is ready to install!"; - -"An error occurred in retrieving update information. Please try again later." = "An error occurred in retrieving update information. Please try again later."; - -"An error occurred while downloading the update. Please try again later." = "An error occurred while downloading the update. Please try again later."; - -"An error occurred while extracting the archive. Please try again later." = "An error occurred while extracting the archive. Please try again later."; - -"An error occurred while installing the update. Please try again later." = "An error occurred while installing the update. Please try again later."; - -"An error occurred while parsing the update feed." = "An error occurred while parsing the update feed."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@."; - -"An important update to %@ is ready to install" = "An important update to %@ is ready to install"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Cancel"; - -"Cancel Update" = "Cancel Update"; - -"Checking for updates..." = "Checking for updates…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Downloading update…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Extracting update…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Install and Relaunch"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Installing update…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "Learn More…"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "OK"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "Ready to Install"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu."; - -"The update is improperly signed." = "The update is improperly signed."; - -"Update Error!" = "Update Error!"; - -"Updating %@" = "Updating %@"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "You already have the newest version of %@."; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "You’re up-to-date!"; diff --git a/Sparkle/Sparkle/es.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/es.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index e1b843f3..00000000 --- a/Sparkle/Sparkle/es.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/es.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/es.lproj/SUUpdateAlert.xib deleted file mode 100755 index bb491ac2..00000000 --- a/Sparkle/Sparkle/es.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 214daf58..00000000 --- a/Sparkle/Sparkle/es.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - La información de perfil de sistema anónimo se usa para ayudarnos a planear el trabajo de desarrollo futuro. Por favor, póngase en cantacto con nosotros si tiene preguntas sobre esto. - -Esta es la información que se nos enviaría: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/es.lproj/Sparkle.strings b/Sparkle/Sparkle/es.lproj/Sparkle.strings deleted file mode 100755 index 490517d7..00000000 --- a/Sparkle/Sparkle/es.lproj/Sparkle.strings +++ /dev/null @@ -1,79 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ se han descargado y están listos para utilizar. ¿Le gustaría instalar e iniciar %1$@ ahora?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ no se puede actualizar cuando se ejecuta desde un volumen de sólo lectura como imagen de disco o medio óptico. Mueva %1$@ a su carpeta de Aplicaciones y trate de iniciarlo desde allí."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ es la última versión disponible."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ está disponible (usted tiene la %3$@). ¿Desea descargarla ahora?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ descargado"; - -"%@ of %@" = "%1$@ de %2$@"; - -"A new version of %@ is available!" = "¡Hay una nueva versión de %@ !"; - -"A new version of %@ is ready to install!" = "¡Una versión nueva de %@ está lista para instalar!"; - -"An error occurred in retrieving update information. Please try again later." = "Ocurrió un error al recopilar información sobre la actualización. Por favor, inténtelo de nuevo más tarde."; - -"An error occurred while downloading the update. Please try again later." = "Ocurrió un error mientras se descargaba la actualización. Por favor intente de nuevo más tarde."; - -"An error occurred while extracting the archive. Please try again later." = "Ocurrió un error al extraer el archivo. Por favor, inténtelo de nuevo más tarde."; - -"An error occurred while installing the update. Please try again later." = "Ocurrió un error mientras se instalaba la actualización. Por favor intente de nuevo más tarde."; - -"An error occurred while parsing the update feed." = "Ocurrió un error mientras se analizaba la entrada de la actualización."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocurrió un error mientras se re-iniciaba %1$@, pero la nueva versión estará disponible la próxima vez que ejecute %1$@."; - -/* the unit for bytes */ -"B" = "O"; - -"Cancel" = "Cancelar"; - -"Cancel Update" = "Cancelar actualización"; - -"Checking for updates..." = "Buscando actualizaciones …"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Descargando actualización…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Extrayendo actualización…"; - -/* the unit for gigabytes */ -"GB" = "GO"; - -"Install and Relaunch" = "Instalar y volver a arrancar"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Instalando actualización…"; - -/* the unit for kilobytes */ -"KB" = "KO"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Preparado para instalar"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "¿Debería automáticamente %1$@ buscar las actualizaciones? Puede hacerlo también manualmente desde el menú %1$@."; - -"Update Error!" = "¡Error de actualización!"; - -"Updating %@" = "Actualizando %@"; - -"You already have the newest version of %@." = "Ya tiene la versión más reciente de %@."; - -"You're up-to-date!" = "Ya tiene la versión más reciente"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Más información…"; diff --git a/Sparkle/Sparkle/fi.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/Sparkle/fi.lproj/SUAutomaticUpdateAlert.strings deleted file mode 100755 index 76e07e10..00000000 --- a/Sparkle/Sparkle/fi.lproj/SUAutomaticUpdateAlert.strings +++ /dev/null @@ -1,12 +0,0 @@ -/* NSWindow () : (oid:5) */ -"" = ""; - -/* NSButton (Automatically download and install updates in the future) : (oid:17) */ -"Automatically download and install updates in the future" = "Hae ja asenna päivitykset jatkossa automaattisesti"; - -/* NSButton (Relaunch Later) : (oid:16) */ -"Relaunch Later" = "Käynnistä uudelleen myöhemmin"; - -/* NSButton (Relaunch Now) : (oid:15) */ -"Relaunch Now" = "Käynnistä uudelleen nyt"; - diff --git a/Sparkle/Sparkle/fi.lproj/SUUpdateAlert.strings b/Sparkle/Sparkle/fi.lproj/SUUpdateAlert.strings deleted file mode 100755 index 471de4aa..00000000 --- a/Sparkle/Sparkle/fi.lproj/SUUpdateAlert.strings +++ /dev/null @@ -1,18 +0,0 @@ -/* NSButton (Automatically download and install updates in the future) : (oid:92) */ -"Automatically download and install updates in the future" = "Hae ja asenna päivitykset jatkossa automaattisesti"; - -/* NSButton (Install Update) : (oid:76) */ -"Install Update" = "Asenna päivitys"; - -/* NSTextField (Release Notes:) : (oid:17) */ -"Release Notes:" = "Tietoa päivityksestä:"; - -/* NSButton (Remind Me Later) : (oid:22) */ -"Remind Me Later" = "Muistuta myöhemmin"; - -/* NSButton (Skip This Version) : (oid:23) */ -"Skip This Version" = "Ohita tämä versio"; - -/* NSWindow (Software Update) : (oid:5) */ -"Software Update" = "Ohjelmiston pävitys"; - diff --git a/Sparkle/Sparkle/fi.lproj/Sparkle.strings b/Sparkle/Sparkle/fi.lproj/Sparkle.strings deleted file mode 100755 index 8c412406..00000000 --- a/Sparkle/Sparkle/fi.lproj/Sparkle.strings +++ /dev/null @@ -1,56 +0,0 @@ -"%@ of %@" = "%1$@ / %2$@"; - -"%@ %@ has been installed and will be ready to use next time %@ starts! Would you like to relaunch now?" = "%1$@ %2$@ on asennettu ja on valmiina käyttöön seuraavan kerran kun %3$@ käynnistetään! Haluatko käynnistää ohjelman uudelleen?"; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ on uusin saatavilla oleva versio."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ on nyt saatavilla (sinulla on %3$@). Haluatko ladata sen nyt?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help." = "Käyttäjällä %@ ei ole oikeuksia ohjelman kansioon! Ajatko ohjelmaa levytiedostosta? Jos et, kysy apua järjestelmän ylläpitäjältä."; - -"A new version of %@ has been installed!" = "Uusi versio ohjelmasta %@ on asennettu!"; - -"A new version of %@ is available!" = "Uusi versio ohjelmasta %@ on saatavilla!"; - -"An error occurred during installation. Please try again later." = "Asennuksen yhteydessä tapahtui virhe. Yritä myöhemmin uudelleen."; - -"An error occurred in retrieving update information. Please try again later." = "Päivitystietojen haussa tapahtui virhe. Yritä myöhemmin uudelleen."; - -"An error occurred while extracting the archive. Please try again later." = "Pakkauksen purkamisen yhteydessä tapahtui virhe. Yritä myöhemmin uudelleen."; - -"An error occurred while trying to download the file. Please try again later." = "Tiedoston haussa tapahtui virhe. Yritä myöhemmin uudelleen."; - -"An update is already in progress!" = "Päivitys on jo menossa!"; - -"Cancel" = "Kumoa"; - -"Check for updates on startup?" = "Tarkista päivityksiä käynnistyksen yhteydessä?"; - -"Downloading update..." = "Haen päivitystä…"; - -"Extracting update..." = "Puran päivitystä…"; - -"Install and Relaunch" = "Asenna ja käynnistä ohjelma uudelleen"; - -"Installing update..." = "Asennan päivityksen…"; - -"No" = "Ei"; - -"OK" = "OK"; - -"Ready to Install" = "Valmiina asentamaan"; - -"Update Error!" = "Virhe päivityksessä!"; - -"Updating %@" = "Päivitän %@"; - -"Would you like %@ to check for updates on startup? If not, you can initiate the check manually from the application menu." = "Haluatko tarkistaa päivitykset ohjelmaan %@ käynnistyksen yhteydessä? Jos et, voit käynnnistää tarkistuksen käsin ohjelmavalikosta."; - -"Yes" = "Kyllä"; - -"You're up-to-date!" = "Sinulla on viimeisin versio!"; - diff --git a/Sparkle/Sparkle/fr.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/fr.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 972e7aab..00000000 --- a/Sparkle/Sparkle/fr.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/fr.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/fr.lproj/SUUpdateAlert.xib deleted file mode 100755 index 9caa8a80..00000000 --- a/Sparkle/Sparkle/fr.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 0a5efa67..00000000 --- a/Sparkle/Sparkle/fr.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Les informations anonymes de profil système nous aident à planifier les futurs développements. Contactez-nous pour toute question à ce sujet. - -Ci-dessous figurent les informations qui seront transmises : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/fr.lproj/Sparkle.strings b/Sparkle/Sparkle/fr.lproj/Sparkle.strings deleted file mode 100755 index 229afe0b..00000000 --- a/Sparkle/Sparkle/fr.lproj/Sparkle.strings +++ /dev/null @@ -1,81 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ a été téléchargé. Voulez-vous l’installer et relancer %1$@ maintenant ?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ ne peut pas être mis à jour quand il fonctionne à partir d’un volume en lecture seule, comme une image disque ou un lecteur optique. Déplacez %1$@ dans votre dossier Applications, relancez-le à partir de là et réessayez."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ est la version la plus récente disponible."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ est disponible ; vous utilisez la version %3$@. Voulez-vous le télécharger maintenant ?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ téléchargé"; - -"%@ of %@" = "%1$@ sur %2$@"; - -"A new version of %@ is available!" = "Une nouvelle version de %@ est disponible !"; - -"A new version of %@ is ready to install!" = "Une nouvelle version de %@ est prête à être installée !"; - -"An error occurred in retrieving update information. Please try again later." = "Une erreur est survenue en récupérant les informations de mise à jour. Veuillez réessayer plus tard."; - -"An error occurred while downloading the update. Please try again later." = "Une erreur est survenue pendant le téléchargement de la mise à jour. Veuillez réessayer plus tard."; - -"An error occurred while extracting the archive. Please try again later." = "Une erreur est survenue pendant l’extraction des données de l’archive. Veuillez réessayer plus tard."; - -"An error occurred while installing the update. Please try again later." = "Une erreur est survenue pendant l’installation de la mise à jour. Veuillez réessayer plus tard."; - -"An error occurred while parsing the update feed." = "Une erreur est survenue pendant l’analyse de la mise à jour."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Une erreur est survenue en relançant %1$@, mais la nouvelle version sera disponible à la prochaine ouverture de %1$@."; - -/* the unit for bytes */ -"B" = "octets"; - -"Cancel" = "Annuler"; - -"Cancel Update" = "Annuler la mise à jour"; - -"Checking for updates..." = "Recherche de mises à jour…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Téléchargement de la mise à jour…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Extraction de la mise à jour…"; - -/* the unit for gigabytes */ -"GB" = "Go"; - -"Install and Relaunch" = "Installer et relancer"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Installation de la mise à jour…"; - -/* the unit for kilobytes */ -"KB" = "ko"; - -/* the unit for megabytes */ -"MB" = "Mo"; - -"OK" = "OK"; - -"Ready to Install" = "Prêt pour l’installation"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "%1$@ doit-il rechercher automatiquement les mises à jour ? La mise à jour est toujours possible manuellement depuis le menu %1$@."; - -"Update Error!" = "Erreur pendant la mise à jour !"; - -"Updating %@" = "Mise à jour de %@"; - -"You already have the newest version of %@." = "Vous possédez déjà la version la plus récente de %@."; - -"You're up-to-date!" = "Votre logiciel est à jour !"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "En savoir plus…"; - -"The update is improperly signed." = "La signature numérique de la mise à jour est incorrecte"; diff --git a/Sparkle/Sparkle/he.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/Sparkle/he.lproj/SUAutomaticUpdateAlert.strings deleted file mode 100755 index 5b3391b2..00000000 --- a/Sparkle/Sparkle/he.lproj/SUAutomaticUpdateAlert.strings +++ /dev/null @@ -1,12 +0,0 @@ -/* NSWindow () : (oid:5) */ -"" = ""; - -/* NSButton (Automatically download and install updates in the future) : (oid:17) */ -"Automatically download and install updates in the future" = "הורד והתקן עדכונים אוטומטית גם בעתיד"; - -/* NSButton (Relaunch Later) : (oid:16) */ -"Relaunch Later" = "אתחל מאוחר יותר"; - -/* NSButton (Relaunch Now) : (oid:15) */ -"Relaunch Now" = "אתחל עכשיו"; - diff --git a/Sparkle/Sparkle/he.lproj/SUUpdateAlert.strings b/Sparkle/Sparkle/he.lproj/SUUpdateAlert.strings deleted file mode 100755 index f6debba9..00000000 --- a/Sparkle/Sparkle/he.lproj/SUUpdateAlert.strings +++ /dev/null @@ -1,18 +0,0 @@ -/* NSButton (Automatically download and install updates in the future) : (oid:92) */ -"Automatically download and install updates in the future" = "הורד והתקן עדכונים אוטומטית גם בעתיד"; - -/* NSButton (Install Update) : (oid:76) */ -"Install Update" = "התקן עדכון"; - -/* NSTextField (Release Notes:) : (oid:17) */ -"Release Notes:" = "פרטי גרסה:"; - -/* NSButton (Remind Me Later) : (oid:22) */ -"Remind Me Later" = "הזכר לי מאוחר יותר"; - -/* NSButton (Skip This Version) : (oid:23) */ -"Skip This Version" = "דלג על גרסה זו"; - -/* NSWindow (Software Update) : (oid:5) */ -"Software Update" = "עדכון תכנה"; - diff --git a/Sparkle/Sparkle/he.lproj/Sparkle.strings b/Sparkle/Sparkle/he.lproj/Sparkle.strings deleted file mode 100755 index 5387d941..00000000 --- a/Sparkle/Sparkle/he.lproj/Sparkle.strings +++ /dev/null @@ -1,56 +0,0 @@ -"%@ of %@" = "%1$@ of %2$@"; - -"%@ %@ has been installed and will be ready to use next time %@ starts! Would you like to relaunch now?" = "%1$@ %2$@ הותקנה ותהיה מוכנה לפעולה בפעם הבאה שתריץ את %3$@ ! ברצונך לאתחל?"; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ היא הגרסה האחונה הזמינה."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ זמין כעת (לך יש %3$@). ברצונך להוריד כעת?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help." = "ל %@ אין הרשאה לכתוב לתקיית התוכניות! האם אתה פועל מ- disc image? אם לא, בקש עזרה ממנהל הרשת."; - -"A new version of %@ has been installed!" = "גרסה חדשה של %@ הותקנה!"; - -"A new version of %@ is available!" = "גרסה חדשה של %@ זמינה!"; - -"An error occurred during installation. Please try again later." = "שגיאה בהתקנה. אנא נסה שנית במועד מרוחר יותר."; - -"An error occurred in retrieving update information. Please try again later." = "שגיאה בקבלת מידע על עדכונים. אנא נסה שנית במועד מרוחר יותר."; - -"An error occurred while extracting the archive. Please try again later." = "שגיאה בפתיחת הקובת המקווץ. אנא נסה שנית במועד מרוחר יותר."; - -"An error occurred while trying to download the file. Please try again later." = "שגיאה בהורדת הקובץ. אנא נסה שנית במועד מאוחר יותר."; - -"An update is already in progress!" = "עדכון כבר מתבצע"; - -"Cancel" = "ביטול"; - -"Check for updates on startup?" = "לבדוק עדכונים באתחול?"; - -"Downloading update..." = "מוריד עדכון…"; - -"Extracting update..." = "פותח עדכון…"; - -"Install and Relaunch" = "התקן ואתחל"; - -"Installing update..." = "מתקין עידכון…"; - -"No" = "לא"; - -"OK" = "אישור"; - -"Ready to Install" = "מוכן להתקנה!"; - -"Update Error!" = "שגיאה בעדכון!"; - -"Updating %@" = "מעדכן %@"; - -"Would you like %@ to check for updates on startup? If not, you can initiate the check manually from the application menu." = "האם ברצונך ש%@ יבדוק עדכונים באתחול? אם לא, תוכל לבדוק ידנית מתפריט התכנה."; - -"Yes" = "כן"; - -"You're up-to-date!" = "התכנה עדכנית!"; - diff --git a/Sparkle/Sparkle/is.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/is.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index d2a2b418..00000000 --- a/Sparkle/Sparkle/is.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/is.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/is.lproj/SUUpdateAlert.xib deleted file mode 100755 index 19c7a86e..00000000 --- a/Sparkle/Sparkle/is.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/is.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/is.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 926a28cc..00000000 --- a/Sparkle/Sparkle/is.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Upplýsingar úr nafnlausum kerfisskýrslum eru notaðar til að hjálpa okkur við framtíðarþróun hugbúnaðarins. Ekki hika við að hafa samband ef spurningar vakna um þetta. - -Þetta eru upplýsingarnar sem yrðu sendar: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/is.lproj/Sparkle.strings b/Sparkle/Sparkle/is.lproj/Sparkle.strings deleted file mode 100755 index ccd94d63..00000000 --- a/Sparkle/Sparkle/is.lproj/Sparkle.strings +++ /dev/null @@ -1,56 +0,0 @@ -"%@ of %@" = "%@ af %@"; - -"%@ %@ has been installed and will be ready to use next time %@ starts! Would you like to relaunch now?" = "%@ %@ hefur verið sett inn og verður tiltækt við næstu ræsingu %@. Viltu endurræsa núna?"; - -"%@ %@ is currently the newest version available." = "%@ %@ er nýjasta útgáfan sem er fáanleg þessa stundina."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "Útgafa %2$@ af %1$@ er nú fáanlegt en þú ert með %3$@. Viltu sækja hana núna?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help." = "%@ hefur ekki heimild til að skrifa í möppu forritsins! Ertu að keyra forritið af diskmynd? Ef ekki skaltu ráðfæra þig við kerfisstjórann."; - -"A new version of %@ has been installed!" = "Ný útgáfa af %@ hefur verið sett inn!"; - -"A new version of %@ is available!" = "Ný útgáfa af %@ er fáanleg!"; - -"An error occurred during installation. Please try again later." = "Villa kom upp við innsetningu. Vinsamlegast reynið síðar."; - -"An error occurred in retrieving update information. Please try again later." = "Villa kom upp við að sækja uppfærsluupplýsingar. Vinsamlegast reynið síðar."; - -"An error occurred while extracting the archive. Please try again later." = "Villa kom upp við afþjöppun skráarsafns. Vinsamlegast reynið síðar."; - -"An error occurred while trying to download the file. Please try again later." = "Villa kom upp þegar reynt var að sækja skrána. Vinsamlegast reynið síðar"; - -"An update is already in progress!" = "Uppfærsla er þegar í gangi!"; - -"Cancel" = "Hætta við"; - -"Check for updates on startup?" = "Athuga með uppfærslur í ræsingu?"; - -"Downloading update..." = "Sækja nýja útgáfu…"; - -"Extracting update..." = "Afþjappa uppfærslu…"; - -"Install and Relaunch" = "Setja upp og ræsa aftur"; - -"Installing update..." = "Set inn uppfærslu…"; - -"Ready to Install" = "Innsetning reiðubúin"; - -"No" = "Nei"; - -"OK" = "Í lagi"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Viltu að forritið %1$@ athugi með uppfærslur þegar það er ræst? Ef ekki getur þú athugað handvirkt af %1$@-valblaðinu."; - -"Update Error!" = "Villa við uppfærslu!"; - -"Updating %@" = "Uppfæri %@"; - -"Yes" = "Já"; - -"You're up-to-date!" = "Það er allt uppfært hjá þér!"; - diff --git a/Sparkle/Sparkle/it.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/it.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index b19c65cf..00000000 --- a/Sparkle/Sparkle/it.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/it.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/it.lproj/SUUpdateAlert.xib deleted file mode 100755 index 87fe5288..00000000 --- a/Sparkle/Sparkle/it.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/it.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/it.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 2501334c..00000000 --- a/Sparkle/Sparkle/it.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Le informazioni del profilo di sistema anomino sono utilizzate per aiutarci in futuri lavori di sviluppo. Contattaci se hai dei quesiti sull’argomento. - -Queste sono le informazioni che verrebbero inviate: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/it.lproj/Sparkle.strings b/Sparkle/Sparkle/it.lproj/Sparkle.strings deleted file mode 100755 index 19fe027f..00000000 --- a/Sparkle/Sparkle/it.lproj/Sparkle.strings +++ /dev/null @@ -1,79 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ è stato scaricato ed è pronto per essere utilizzato! Desideri installare e riavviare %1$@ ora?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Impossibile aggiornare %1$@ quando viene eseguito da un volume di sola lettura come un’immagine disco o un’unità ottica. Spostare %1$@ nella Cartella Applicazioni, riavviarlo e riprovare."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ è la versione più recente attualmente disponibile."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ è disponbile; disponi della versione %3$@. Desideri eseguire l’aggiornamento ora?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ scaricato"; - -"%@ of %@" = "%1$@ di %2$@"; - -"A new version of %@ is available!" = "E’ disponibile una nuova versione di %@!"; - -"A new version of %@ is ready to install!" = "Una nuova versione di %@ è pronta per essere installata!"; - -"An error occurred in retrieving update information. Please try again later." = "Si è verificato un errore durante il recupero delle informazioni sull’aggiornamento. Riprova in seguito."; - -"An error occurred while downloading the update. Please try again later." = "Si è verificato un errore durante lo scaricamento dell’aggiornamento. Riprova in seguito."; - -"An error occurred while extracting the archive. Please try again later." = "Si è verificato un errore durante l’estrazione dell’archivio. Riprova in seguito."; - -"An error occurred while installing the update. Please try again later." = "Si è verificato un errore durante l’installazione dell’aggiornamento. Riprova in seguito."; - -"An error occurred while parsing the update feed." = "Si è verificato un errore durante la lettura del feed di aggiornamento."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Si è verificato un errore al riavvio di %1$@. La nuova versione sarà comunque disponibile alla prossima esecuzione di %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Annulla"; - -"Cancel Update" = "Annulla Aggiornamento"; - -"Checking for updates..." = "Controllo aggiornamenti in corso…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Scaricamento dell’aggiornamento…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Estrazione dell’aggiornamento…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Installa e Riavvia"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Installazione aggiornamento in corso…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Pronto per l’installazione"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Desideri che %1$@ verifichi gli aggiornamenti automaticamente? Puoi effettuare la verifica manualmente dal menu di %1$@."; - -"Update Error!" = "Errore di Aggiornamento!"; - -"Updating %@" = "Aggiornamento di %@"; - -"You already have the newest version of %@." = "Disponi della versione più recente di %@."; - -"You're up-to-date!" = "La tua applicazione è aggiornata!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Ulteriori informazioni…"; diff --git a/Sparkle/Sparkle/ja.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/ja.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 362296cf..00000000 --- a/Sparkle/Sparkle/ja.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ja.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/ja.lproj/SUUpdateAlert.xib deleted file mode 100755 index 67f62ec6..00000000 --- a/Sparkle/Sparkle/ja.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index afd45ef0..00000000 --- a/Sparkle/Sparkle/ja.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - 匿名のシステムプロファイル情報は、今後我が社の企画開発を計画する上で参考にさせていただきます。この件に関してご質問があれば、ご連絡下さい。 - -以下の情報を送信してください: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/ja.lproj/Sparkle.strings b/Sparkle/Sparkle/ja.lproj/Sparkle.strings deleted file mode 100755 index f0a558cf..00000000 --- a/Sparkle/Sparkle/ja.lproj/Sparkle.strings +++ /dev/null @@ -1,89 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ がダウンロードされました! これは重要なアップデートです。今すぐ %1$@ をインストールして再起動しますか?"; - -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ がダウンロードされました! 今すぐ %1$@ をインストールして再起動しますか?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ は、ディスクイメージや光学式ドライブなどの読み出し専用ボリュームから起動している場合アップデートできません。%1$@ をアプリケーションフォルダに移動し、そこから再起動したあとやり直してください。"; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ は現在入手できる最新バージョンです。"; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ が入手できます(使用中のバージョンは %3$@ です)。今すぐダウンロードしますか?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ が入手できます(使用中のバージョンは %3$@ です)。このアップデートの詳しい情報を Web で確認しますか?"; - -"%@ downloaded" = "%@ ダウンロード済み"; - -"%@ of %@" = "%1$@ / %2$@"; - -"A new version of %@ is available!" = "新しいバージョンの %@ が入手できます!"; - -"A new version of %@ is ready to install!" = "新しいバージョンの %@ が今すぐインストールできます!"; - -"An error occurred in retrieving update information. Please try again later." = "アップデート情報の取得中にエラーが発生しました。あとでやり直してください。"; - -"An error occurred while downloading the update. Please try again later." = "アップデートをダウンロード中にエラーが発生しました。あとでやり直してください。"; - -"An error occurred while extracting the archive. Please try again later." = "アーカイブの展開中にエラーが発生しました。あとでやり直してください。"; - -"An error occurred while installing the update. Please try again later." = "アップデートをインストール中にエラーが発生しました。あとでやり直してください。"; - -"An error occurred while parsing the update feed." = "アップデートフィードを解析中にエラーが発生しました。"; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "%1$@ を再起動中にエラーが発生しましたが、次回 %1$@ の実行時に新しいバージョンが利用できます。"; - -"An important update to %@ is ready to install" = "%@ の重要なアップデートがインストールできます。"; - -/* the unit for bytes */ -"B" = "バイト"; - -"Cancel" = "キャンセル"; - -"Cancel Update" = "アップデートを中止"; - -"Checking for updates..." = "アップデートを確認しています…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "アップデートをダウンロードしています…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "アップデートを展開しています…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "インストールして再起動"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "アップデートをインストールしています…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "詳しい情報…"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "OK"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "インストールできます"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = " %1$@ のアップデートを自動で確認しますか? アップデートは %1$@ メニューから手動でいつでも確認することができます。"; - -"The update is improperly signed." = "このアップデートは無効な署名が含まれています。"; - -"Update Error!" = "アップデートエラー!"; - -"Updating %@" = "%@ をアップデート中"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "すでに最新バージョンの %@ を使用しています。"; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "最新版を使用しています!"; diff --git a/Sparkle/Sparkle/ko.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/ko.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 9532db6b..00000000 --- a/Sparkle/Sparkle/ko.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ko.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/ko.lproj/SUUpdateAlert.xib deleted file mode 100755 index bc001093..00000000 --- a/Sparkle/Sparkle/ko.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 43399cb2..00000000 --- a/Sparkle/Sparkle/ko.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - 익명으로 보내지는 시스템 정보로 차후 프로그램 개발에 도움이 될 수 있습니다. 질문이 있으시면 연락 주십시오. - -아래 정보가 전송될 것입니다. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/ko.lproj/Sparkle.strings b/Sparkle/Sparkle/ko.lproj/Sparkle.strings deleted file mode 100755 index 2a816bac..00000000 --- a/Sparkle/Sparkle/ko.lproj/Sparkle.strings +++ /dev/null @@ -1,75 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@이(가) 다운로드 되었습니다. 프로그램을 업데이트하고 재실행 하시겠습니까?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@이(가) 디스크 이미지나 CD 드라이브 같은 읽기 전용 볼륨에서 실행되고 있으므로 업데이트 할 수 없습니다. %1$@을(를) 응용프로그램 폴더로 이동하여 다시 실행해 주십시오."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@이(가) 현재 최신 버전입니다."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@이(가) 업데이트 되었습니다. (현재 버전 : %3$@) 다운로드 하시겠습니까?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ 다운로드 완료"; - -"%@ of %@" = "%1$@ / %2$@"; - -"A new version of %@ is available!" = "%@ 새 버전이 있습니다."; - -"A new version of %@ is ready to install!" = "%@ 새 버전을 설치할 준비가 되었습니다."; - -"An error occurred in retrieving update information. Please try again later." = "업데이트 정보를 수집하는 중 오류가 발생하였습니다. 나중에 다시 시도해 주십시오."; - -"An error occurred while downloading the update. Please try again later." = "업데이트를 다운로드 하는 중 오류가 발생하였습니다. 나중에 다시 시도해 주십시오."; - -"An error occurred while extracting the archive. Please try again later." = "압축 파일을 푸는 중 오류가 발생하였습니다. 나중에 다시 시도해 주십시오."; - -"An error occurred while installing the update. Please try again later." = "업데이트를 설치하는 중 오류가 발생하였습니다. 나중에 다시 시도해 주십시오."; - -"An error occurred while parsing the update feed." = "업데이트 피드를 분석하는 중 오류가 발생하였습니다."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "%1$@을(를) 재실행하는 중 오류가 발생하였습니다. 업데이트는 완료되었으므로 다음 실행시에는 새 버전으로 실행됩니다."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "취소"; - -"Cancel Update" = "업데이트 취소"; - -"Checking for updates..." = "업데이트 확인 중…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "다운로드 중…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "압축 푸는 중…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "설치 & 재실행"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "설치 중…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "확인"; - -"Ready to Install" = "설치 준비 완료"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "%1$@ 업데이트 확인을 자동으로 할까요? %1$@ 메뉴에서 수동 설정을 할 수 있습니다."; - -"Update Error!" = "업데이트 오류!"; - -"Updating %@" = "%@ 업데이트 중"; - -"You already have the newest version of %@." = "이미 %@ 최신 버전입니다."; - -"You're up-to-date!" = "최신 버전입니다."; - diff --git a/Sparkle/Sparkle/nb.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/nb.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index a13e0796..00000000 --- a/Sparkle/Sparkle/nb.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/nb.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/nb.lproj/SUUpdateAlert.xib deleted file mode 100755 index 5faca233..00000000 --- a/Sparkle/Sparkle/nb.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 40ca4e59..00000000 --- a/Sparkle/Sparkle/nb.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Den anonyme systemprofilen hjelper oss med å planlegge fremtidig utviklingsarbeid. Ta gjerne kontakt med oss hvis du har spørsmål om dette.
 -Følgende innhold vil bli sendt: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/nb.lproj/Sparkle.strings b/Sparkle/Sparkle/nb.lproj/Sparkle.strings deleted file mode 100755 index 6e954ee3..00000000 --- a/Sparkle/Sparkle/nb.lproj/Sparkle.strings +++ /dev/null @@ -1,88 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ er lastet ned og er klar til bruk! Dette er en viktig oppdatering; ønsker du å installere og restarte %1$@ nå?"; - -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ er lastet ned og er klar til bruk! Ønsker du å installere og restarte %1$@ nå?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ kan ikke oppdateres fra en 'bare lesbar' enhet som f.eks. en cd. Flytt %1$@ til Programmer-katalogen, start på ny og prøv igjen."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ er nyeste versjon."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ er nå tilgjengelig—du har %3$@. Ønsker du å laste ned og installere nå?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ lastet ned"; - -"%@ of %@" = "%1$@ av %2$@"; - -"A new version of %@ is available!" = "En ny versjon av %@ er tilgjengelig!"; - -"A new version of %@ is ready to install!" = "En ny versjon av %@ er klar for installering!"; - -"An error occurred in retrieving update information. Please try again later." = "En feil oppstod ved henting av oppdateringsinformasjon. Vennligst prøv igjen senere."; - -"An error occurred while downloading the update. Please try again later." = "En feil oppstod under nedlasting av oppdateringen. Vennligst prøv igjen senere."; - -"An error occurred while extracting the archive. Please try again later." = "En feil oppstod under utpakking av oppdateringen. Vennligst prøv igjen senere."; - -"An error occurred while installing the update. Please try again later." = "En feil oppstod under installering av opddateringen. Vennligst prøv igjen senere."; - -"An error occurred while parsing the update feed." = "En feil oppstod under lesing av oppdateringsstrømmen."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "En feil oppstod under omstart av %1$@, men den nyeste versjonen vil være tilgjengelig neste gang du starter %1$@."; - -"An important update to %@ is ready to install" = "En viktig oppdatering for %@ er klar til å installeres"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Avbryt"; - -"Cancel Update" = "Avbryt oppdateringen"; - -"Checking for updates..." = "Søker etter oppdateringer…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Laster ned oppdateringen…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Pakker ut oppdateringen…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Installer og start på ny"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Installerer oppdateringen…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "OK"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "Klar til å installere"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Skal %1$@ søke automatisk etter oppdateringer? Du kan når som helst søke manuelt fra %1$@-menyen."; - -"Update Error!" = "Feil ved oppdateringen!"; - -"Updating %@" = "Oppdaterer %@"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "Du har allerede nyeste versjon av %@."; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "Ingen nye oppdateringer"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "Mer info…"; - diff --git a/Sparkle/Sparkle/nl.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/nl.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index b49c3b88..00000000 --- a/Sparkle/Sparkle/nl.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/nl.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/nl.lproj/SUUpdateAlert.xib deleted file mode 100755 index d5f082de..00000000 --- a/Sparkle/Sparkle/nl.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 1c796ca9..00000000 --- a/Sparkle/Sparkle/nl.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Aan de hand van anonieme informatie over het systeemprofiel kunnen wij toekomstige ontwikkelingswerkzaamheden beter plannen. Neem contact met ons op als u hierover vragen hebt. - -Dit is de informatie die wordt verzonden: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/nl.lproj/Sparkle.strings b/Sparkle/Sparkle/nl.lproj/Sparkle.strings deleted file mode 100755 index e8d710dc..00000000 --- a/Sparkle/Sparkle/nl.lproj/Sparkle.strings +++ /dev/null @@ -1,84 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ is gedownload en is klaar voor gebruik! Wilt u %1$@ nu installeren en herstarten?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ kan niet worden geupdate als het van een alleen-lezen volume, zoals een schijfkopie of CD, geopend is. Verplaats %1$@ naar de Map ’Programma’s’, herstart van daar, en probeer opnieuw."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ is momenteel de recentste versie."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ is nu beschikbaar—u heeft %3$@. Wilt u het nu downloaden?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ gedownload"; - -"%@ of %@" = "%1$@ van %2$@"; - -"A new version of %@ is available!" = "Een nieuwe versie van %@ is beschikbaar!"; - -"A new version of %@ is ready to install!" = "Een nieuwe versie van %@ is klaar om te installeren!"; - -"An error occurred in retrieving update information. Please try again later." = "Bij het ophalen van update-informatie deed zich een fout voor. Probeer alstublieft later opnieuw."; - -"An error occurred while downloading the update. Please try again later." = "Bij het downloaden deed zich een fout voor. Probeer alstublieft later opnieuw."; - -"An error occurred while extracting the archive. Please try again later." = "Bij het uitpakken van het archief deed zich een fout voor. Probeer alstublieft later opnieuw."; - -"An error occurred while installing the update. Please try again later." = "Bij het installeren van de update deed zich een fout voor. Probeer alstublieft later opnieuw."; - -"An error occurred while parsing the update feed." = "Bij het afhandelen van de update feed deed zich een fout voor."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Bij het herstarten van %1$@ deed zich een fout voor. Maar de nieuwe versie is beschikbaar de volgende keer u %1$@ opstart."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Annuleren"; - -"Cancel Update" = "Updaten annuleren"; - -"Checking for updates..." = "Controleren op updates …"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Downloaden update …"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Bezig met uitpakken van de update …"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Installeer en herstart"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Update installeren …"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "OK"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "Klaar om te installeren"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Zou %1$@ automatisch op updates moeten controleren? U kunt altijd nog handmatig controleren op updates via het %1$@ menu."; - -"Update Error!" = "Update-fout!"; - -"Updating %@" = "%@ updaten"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "U heeft al de nieuwste versie van %@."; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "U heeft de nieuwste versie!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Meer informatie …"; diff --git a/Sparkle/Sparkle/no.lproj/SUAutomaticUpdateAlert.strings b/Sparkle/Sparkle/no.lproj/SUAutomaticUpdateAlert.strings deleted file mode 100755 index 56e7c661..00000000 --- a/Sparkle/Sparkle/no.lproj/SUAutomaticUpdateAlert.strings +++ /dev/null @@ -1,12 +0,0 @@ -/* NSWindow () : (oid:5) */ -"" = ""; - -/* NSButton (Automatically download and install updates in the future) : (oid:17) */ -"Automatically download and install updates in the future" = "Last ned og installer oppdateringer automatisk i fremtiden"; - -/* NSButton (Relaunch Later) : (oid:16) */ -"Relaunch Later" = "Omstart senere"; - -/* NSButton (Relaunch Now) : (oid:15) */ -"Relaunch Now" = "Omstart nå"; - diff --git a/Sparkle/Sparkle/no.lproj/SUUpdateAlert.strings b/Sparkle/Sparkle/no.lproj/SUUpdateAlert.strings deleted file mode 100755 index 0b412a5c..00000000 --- a/Sparkle/Sparkle/no.lproj/SUUpdateAlert.strings +++ /dev/null @@ -1,18 +0,0 @@ -/* NSButton (Automatically download and install updates in the future) : (oid:92) */ -"Automatically download and install updates in the future" = "Automatisk nedlastning og installering i fremtiden"; - -/* NSButton (Install Update) : (oid:76) */ -"Install Update" = "Installer oppdatering"; - -/* NSTextField (Release Notes:) : (oid:17) */ -"Release Notes:" = "Vedrørende utgivelsen:"; - -/* NSButton (Remind Me Later) : (oid:22) */ -"Remind Me Later" = "Påminn meg senere"; - -/* NSButton (Skip This Version) : (oid:23) */ -"Skip This Version" = "Hopp over denne versjonen"; - -/* NSWindow (Software Update) : (oid:5) */ -"Software Update" = "Programvareoppdatering"; - diff --git a/Sparkle/Sparkle/no.lproj/Sparkle.strings b/Sparkle/Sparkle/no.lproj/Sparkle.strings deleted file mode 100755 index ff803c7a..00000000 --- a/Sparkle/Sparkle/no.lproj/Sparkle.strings +++ /dev/null @@ -1,52 +0,0 @@ -"%@ of %@" = "%1$@ of %2$@"; - -"%@ %@ has been installed and will be ready to use next time %@ starts! Would you like to relaunch now?" = "%1$@ %2$@ har blitt installert og er klar til bruk neste gang %3$@ starter opp! Vil du starte på nytt nå?"; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ er den nyeste tilgjengelige versjonen."; - -"%@ %@ is now available (you have %@). Would you like to download it now?" = "%1$@ %2$@ er nå tilgjengelig (du har %3$@). Ønsker du å laste den ned nå?"; - -"%@ does not have permission to write to the application's directory! Are you running off a disk image? If not, ask your system administrator for help." = "%@ har ikke tilgangsrettigheter til å skrive til programmets filbane! Starter du fra en diskfil? Hvis ikke, spør din systemadministrator om hjelp."; - -"A new version of %@ has been installed!" = "En ny versjon av %@ har blitt installert!"; - -"A new version of %@ is available!" = "En ny versjon av %@ er tilgjengelig!"; - -"An error occurred during installation. Please try again later." = "Det skjedde en feil under installasjonen. Vennligst prøv igjen senere."; - -"An error occurred in retrieving update information. Please try again later." = "Det skjedde en feil ved henting av oppdateringsinformasjon. Vennligst prøv igjen senere."; - -"An error occurred while extracting the archive. Please try again later." = "Det skjedde en feil ved utpakking av filarkivet. Vennligst prøv igjen senere."; - -"An error occurred while trying to download the file. Please try again later." = "Det skjedde en feil under forsøket på å laste ned filen. Vennligst prøv igjen senere."; - -"An update is already in progress!" = "Oppdateringen er allerede igang!"; - -"Cancel" = "Avbryt"; - -"Check for updates on startup?" = "Vil du se etter oppdateringer ved oppstart?"; - -"Downloading update..." = "Laster ned oppdatering..."; - -"Extracting update..." = "Pakker ut oppdatering..."; - -"Install and Relaunch" = "Installer og start på nytt"; - -"Installing update..." = "Installerer oppdatering..."; - -"No" = "Nei"; - -"OK" = "OK"; - -"Ready to Install" = "Klar til å installere"; - -"Update Error!" = "Oppdateringsfeil!"; - -"Updating %@" = "Oppdaterer %@"; - -"Would you like %@ to check for updates on startup? If not, you can initiate the check manually from the application menu." = "Ønsker du at %@ skal se etter oppdateringer under oppstart? Hvis ikke kan du sette igang sjekkingen manuelt ifra programmenyen."; - -"Yes" = "Ja"; - -"You're up-to-date!" = "Du er oppdatert!"; - diff --git a/Sparkle/Sparkle/pl.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/pl.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 58876692..00000000 --- a/Sparkle/Sparkle/pl.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/pl.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/pl.lproj/SUUpdateAlert.xib deleted file mode 100755 index 881723d1..00000000 --- a/Sparkle/Sparkle/pl.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index f0c8f3d5..00000000 --- a/Sparkle/Sparkle/pl.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. - -This is the information that would be sent: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/pl.lproj/Sparkle.strings b/Sparkle/Sparkle/pl.lproj/Sparkle.strings deleted file mode 100755 index 064047e3..00000000 --- a/Sparkle/Sparkle/pl.lproj/Sparkle.strings +++ /dev/null @@ -1,75 +0,0 @@ -/* "%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?"; */ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ został pobrany i jest gotowy do użycia! Czy chcesz teraz zainstalować i ponownie uruchomić %1$@?"; - -/* "%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again."; */ -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ nie może zostać uaktualniony gdy jest uruchomiony z woluminu tylko do odczytu jak obraz dysku lub napęd optyczny. Przenieś %1$@ do folderu Programy, uruchom z nowej lokacji i spróbuj ponownie."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ jest najnowszą dostępną wersją."; - -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ jest już dostępny (aktualnie posiadasz %3$@). Czy chcesz go teraz pobrać?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ jest już dostępny (aktualnie posiadasz %3$@). Czy chcesz otworzyć stronę z informacjami o tym uaktualnieniu?"; - -"%@ downloaded" = "Pobrano %@"; - -"%@ of %@" = "%1$@ z %2$@"; - -"A new version of %@ is available!" = "Dostępna jest nowa wersja %@!"; - -"A new version of %@ is ready to install!" = "Nowa wersja %@ gotowa do zainstalowania!"; - -"An error occurred in retrieving update information. Please try again later." = "Błąd podczas pobierania informacji o uaktualnieniach. Spróbuj ponownie później."; - -"An error occurred while downloading the update. Please try again later." = "Błąd podczas pobierania uaktualnienia. Spróbuj ponownie później."; - -"An error occurred while extracting the archive. Please try again later." = "Błąd podczas rozpakowywania archiwum. Spróbuj ponownie później"; - -"An error occurred while installing the update. Please try again later." = "Błąd podczas instalowania uaktualnienia. Spróbuj ponownie później"; - -"An error occurred while parsing the update feed." = "Błąd podczas wczytywania danych o uaktualnieniu."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Błąd podczas ponownego uruchomienia %1$@, ale nowa wersja będzie dostępna przy ponownym ręcznym uruchomieniu %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Anuluj"; - -"Cancel Update" = "Anuluj uaktualnianie"; - -"Checking for updates..." = "Sprawdzam uaktualnienia…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Pobieram uaktualnienie…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Rozpakowuję uaktualnienie…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Zainstaluj i uruchom ponownie"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Instalowanie uaktualnienia…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Gotowy do instalacji"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Czy %1$@ ma automatycznie sprawdzać uaktualnienia? Zawsze możesz ręcznie sprawdzać z menu %1$@."; - -"Update Error!" = "Błąd uaktualniania!"; - -"Updating %@" = "Uaktualniam %@"; - -"You already have the newest version of %@." = "Posiadasz najnowszą wersję %@."; - -"You're up-to-date!" = "Jesteś na bieżąco!"; diff --git a/Sparkle/Sparkle/pt_BR.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/pt_BR.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index a977ae12..00000000 --- a/Sparkle/Sparkle/pt_BR.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/pt_BR.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/pt_BR.lproj/SUUpdateAlert.xib deleted file mode 100755 index 12057104..00000000 --- a/Sparkle/Sparkle/pt_BR.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index d216ce21..00000000 --- a/Sparkle/Sparkle/pt_BR.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - As informações anônimas do sistema são usadas para nos ajudar a planejar o desenvolvimento futuro do aplicativo. Contate-nos caso tenha dúvidas sobre este procedimento. - -As seguintes informações seriam enviadas: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/pt_BR.lproj/Sparkle.strings b/Sparkle/Sparkle/pt_BR.lproj/Sparkle.strings deleted file mode 100755 index 0a18525d..00000000 --- a/Sparkle/Sparkle/pt_BR.lproj/Sparkle.strings +++ /dev/null @@ -1,75 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ foi transferido e está pronto para uso! Deseja instalar e reiniciar o %1$@ agora?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ não pode ser atualizado enquanto for executado a partir de um volume somente de leitura, como uma imagem de disco ou CD/DVD. Mova o %1$@ para a pasta Aplicativos, reinicie-o e tente novamente."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ é a versão mais recente disponível."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ está disponível – sua versão é %3$@. Deseja transferi-lo agora?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ está disponível – sua versão é %3$@. Deseja saber mais sobre esta atualização na web?"; - -"%@ downloaded" = "%@ transferidos"; - -"%@ of %@" = "%1$@ de %2$@"; - -"A new version of %@ is available!" = "Uma nova versão do %@ está disponível!"; - -"A new version of %@ is ready to install!" = "Uma nova versão do %@ está pronta para ser instalada!"; - -"An error occurred in retrieving update information. Please try again later." = "Ocorreu um erro ao obter informações da atualização. Tente novamente mais tarde."; - -"An error occurred while downloading the update. Please try again later." = "Ocorreu um erro ao transferir a atualização. Tente novamente mais tarde."; - -"An error occurred while extracting the archive. Please try again later." = "Ocorreu um erro ao extrair o arquivo comprimido. Tente novamente mais tarde."; - -"An error occurred while installing the update. Please try again later." = "Ocorreu um erro ao instalar a atualização. Tente novamente mais tarde."; - -"An error occurred while parsing the update feed." = "Ocorreu um erro ao analisar o feed de atualização."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocorreu um erro ao reabrir o %1$@. A nova versão estará disponível da próxima vez que você abrir o %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Cancelar"; - -"Cancel Update" = "Cancelar Atualização"; - -"Checking for updates..." = "Buscando atualizações…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Transferindo atualização…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Extraindo atualização…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Instalar e Reabrir"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Instalando atualização…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Pronto para Instalar"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Deseja que o %1$@ busque atualizações automaticamente? Você pode buscar atualizações manualmente, através do menu %1$@."; - -"Update Error!" = "Erro de Atualização!"; - -"Updating %@" = "Atualizando %@"; - -"You already have the newest version of %@." = "Você já possui a versão mais recente do %@."; - -"You're up-to-date!" = "Você está atualizado!"; - diff --git a/Sparkle/Sparkle/pt_PT.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/pt_PT.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 8e7ac5ce..00000000 --- a/Sparkle/Sparkle/pt_PT.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/pt_PT.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/pt_PT.lproj/SUUpdateAlert.xib deleted file mode 100755 index 15f20b6e..00000000 --- a/Sparkle/Sparkle/pt_PT.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 930a515d..00000000 --- a/Sparkle/Sparkle/pt_PT.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - A informação anónima do perfil de sistema é usada para no futuro nos ajudar a planear o trabalho de desenvolvimento. Por favor contacte-nos se tiver alguma questão acerca deste assunto. - -Esta é a informação que seria enviada: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/pt_PT.lproj/Sparkle.strings b/Sparkle/Sparkle/pt_PT.lproj/Sparkle.strings deleted file mode 100755 index 251523f6..00000000 --- a/Sparkle/Sparkle/pt_PT.lproj/Sparkle.strings +++ /dev/null @@ -1,75 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "O %1$@ %2$@ foi transferido e está pronto a instalar! Gostaria de o fazer agora e reiniciar o %1$@ posteriormente?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "O %1$@ não pode ser actualizado quando estiver a ser executado a partir de um volume apenas de leitura como uma imagem de disco ou disco óptico. Mova o %1$@ para a sua pasta Aplicações, reinicie-o aí e tente novamente."; - -"%@ %@ is currently the newest version available." = "O %1$@ %2$@ é neste momento a versão mais recente disponível."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "O %1$@ %2$@ está agora disponível e tem a versão %3$@. Gostaria de o transferir agora?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ transferido"; - -"%@ of %@" = "%1$@ de %2$@"; - -"A new version of %@ is available!" = "Uma nova versão do %@ está dísponível!"; - -"A new version of %@ is ready to install!" = "Uma nova versão do %@ está pronta a instalar!"; - -"An error occurred in retrieving update information. Please try again later." = "Ocorreu um erro ao recolher informação sobre as actualizações disponíveis. Por favor tente novamente mais tarde."; - -"An error occurred while downloading the update. Please try again later." = "Ocorreu um erro ao transferir a actualização. Por favor novamente tente mais tarde."; - -"An error occurred while extracting the archive. Please try again later." = "Ocorreu um erro ao extrair o arquivo. Por favor novamente tente mais tarde."; - -"An error occurred while installing the update. Please try again later." = "Ocorreu um erro ao instalar a actualização. Por favor novamente tente mais tarde."; - -"An error occurred while parsing the update feed." = "Ocorrer um erro ao processar o feed de actualização."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ocorreu um erro ao reiniciar o %1$@, mas a nova versão estará disponível na próxima vez que iniciar o %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Cancelar"; - -"Cancel Update" = "Cancelar actualização"; - -"Checking for updates..." = "A procurar actualizações…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "A transferir actualização…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "A extrair actualização…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Instalar e reiniciar"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "A instalar actualização…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Pronto para instalar"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Deverá o %1$@ procurar por actualizações automaticamente? Pode sempre procurar actualizações manualmente a partir do menu do %1$@."; - -"Update Error!" = "Erro na actualização!"; - -"Updating %@" = "A actualizar o %@"; - -"You already have the newest version of %@." = "Já tem a versão mais recente do %@."; - -"You're up-to-date!" = "Está actualizado!"; - diff --git a/Sparkle/Sparkle/ro.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/ro.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index d1d545e6..00000000 --- a/Sparkle/Sparkle/ro.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ro.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/ro.lproj/SUUpdateAlert.xib deleted file mode 100755 index 795641ff..00000000 --- a/Sparkle/Sparkle/ro.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 5318d3d4..00000000 --- a/Sparkle/Sparkle/ro.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonymous system profile information is used to help us plan future development work. Please contact us if you have any questions about this. - -This is the information that would be sent: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/ro.lproj/Sparkle.strings b/Sparkle/Sparkle/ro.lproj/Sparkle.strings deleted file mode 100755 index ff6b8be0..00000000 --- a/Sparkle/Sparkle/ro.lproj/Sparkle.strings +++ /dev/null @@ -1,89 +0,0 @@ - - -"%1$@ %2$@ has been downloaded and is ready to use! This is an important update; would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ a fost descărcată și este gata de utilizare! Aceasta este o actualizare importantă; dorești să o instalezi și să relansați %1$@ acum?"; - -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ a fost descărcată și este gata de utilizare! Dorești să o instalezi și să relansați %1$@ acum?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ nu poate fi actualizată atunci când a fost pornită de pe un volum read-only ca o imagine disc sau o unitate optică. Mută %1$@ în directorul Aplicații, repornește-o de acolo și încearcă din nou."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ este cea ultima versiune disponibilă."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ este disponibilă—tu ai %3$@. Dorești să o descărcarci acum?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ descărcat"; - -"%@ of %@" = "%1$@ din %2$@"; - -"A new version of %@ is available!" = "O nouă versiune pentru %@ este disponibilă!"; - -"A new version of %@ is ready to install!" = "O nouă versiune pentru %@ este gata de instalare!"; - -"An error occurred in retrieving update information. Please try again later." = "A apărut o eroare în timpul preluari informaţiilor pentru actualizare. Te rog încercă din nou mai târziu."; - -"An error occurred while downloading the update. Please try again later." = "A apărut o eroare în timp ce se descărca actualizărea. Te rog încercă din nou mai târziu."; - -"An error occurred while extracting the archive. Please try again later." = "A apărut o eroare în timpul dezarhivării. Te rog încercă din nou mai târziu."; - -"An error occurred while installing the update. Please try again later." = "A apărut o eroare în timpul instalări actualizări. Te rog încercă din nou mai târziu."; - -"An error occurred while parsing the update feed." = "A apărut o eroare în timpul citiri feed-ului de actualizare."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "A apărut o eroare în timpul relansării aplicației %1$@, dar noua versiune va fii disponibilă data viitoare când vei reporni %1$@."; - -"An important update to %@ is ready to install" = "O actualizare importantă pentru %@ este gata pentru a fi instalată"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Anulează"; - -"Cancel Update" = "Anulează actualizarea"; - -"Checking for updates..." = "Verifică de actualizări…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Descarcă actualizarea…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Dezarhivează actualizarea…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Instalează și Redeschide"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Instalează actualizarea…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "OK"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "Pregatit pentru a instala"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "%1$@ ar trebui ca să caute în mod automat pentru actualizări? Puteți verifica mereu pentru actualizări din meniul %1$@."; - -"Update Error!" = "Eroare Actualizare!"; - -"Updating %@" = "Actualizează %@"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "Ai cea mai nouă versiune de %@."; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "Ai ultima versiune!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "Află mai multe…"; diff --git a/Sparkle/Sparkle/ru.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/ru.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 2b364d86..00000000 --- a/Sparkle/Sparkle/ru.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ru.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/ru.lproj/SUUpdateAlert.xib deleted file mode 100755 index d68be810..00000000 --- a/Sparkle/Sparkle/ru.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 71bd9f2e..00000000 --- a/Sparkle/Sparkle/ru.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Использование анонимного профиля системы помогает нам в планировании будущей работы по разработке. Если у вас есть какие-либо вопросы по этой теме, обращайтесь к нам. - -Это информация, предназначенная для отправления: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/ru.lproj/Sparkle.strings b/Sparkle/Sparkle/ru.lproj/Sparkle.strings deleted file mode 100755 index 1261f77c..00000000 --- a/Sparkle/Sparkle/ru.lproj/Sparkle.strings +++ /dev/null @@ -1,79 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ загружен и готов к использованию! Хотите установить и перезапустить %1$@?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Во время работы %1$@ с тома, предназначенного только для чтения, как например, образа диска или накопителя на оптических дисках, его невозможно обновить. Переместите %1$@ в Папку приложений, перезапустите его оттуда и повторите попытку."; - -"%@ %@ is currently the newest version available." = "В настоящий момент %1$@ %2$@ является новейшей версией."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ теперь доступен – вы имеете %3$@. Хотите загрузить его сейчас?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ загружено"; - -"%@ of %@" = "%1$@ из %2$@"; - -"A new version of %@ is available!" = "Имеется новая версия %@!"; - -"A new version of %@ is ready to install!" = "Новая версия %@ готова к установке!"; - -"An error occurred in retrieving update information. Please try again later." = "Произошла ошибка при извлечении информации обновления. Повторите попытку позже."; - -"An error occurred while downloading the update. Please try again later." = "Произошла ошибка при загрузке обновления. Повторите попытку позже."; - -"An error occurred while extracting the archive. Please try again later." = "Произошла ошибка при извлечении архива. Повторите попытку позже."; - -"An error occurred while installing the update. Please try again later." = "Произошла ошибка при установке обновления. Повторите попытку позже."; - -"An error occurred while parsing the update feed." = "Ошибка произошла при извлечении канала обновления."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Произошла ошибка при перезапуске %1$@, но при последующем запуске %1$@ будет доступна новая версия."; - -/* the unit for bytes */ -"B" = "Б"; - -"Cancel" = "Отменить"; - -"Cancel Update" = "Отменить обновление"; - -"Checking for updates..." = "Проверяю наличие обновлений…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Загружаю обновление…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Извлекаю обновление…"; - -/* the unit for gigabytes */ -"GB" = "ГБ"; - -"Install and Relaunch" = "Установить и перезапустить"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Устанавливаю обновление…"; - -/* the unit for kilobytes */ -"KB" = "КБ"; - -/* the unit for megabytes */ -"MB" = "МБ"; - -"OK" = "OK"; - -"Ready to Install" = "Готов к установке"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Должен ли %1$@ выполнять автоматическую проверку обновлений? Вы всегда можете выполнять проверку обновлений вручную в меню %1$@."; - -"Update Error!" = "Ошибка при обновлении!"; - -"Updating %@" = "Обновляю %@"; - -"You already have the newest version of %@." = "Вы уже имеете самую новую версию %@."; - -"You're up-to-date!" = "У вас все обновлено!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Узнать больше…"; diff --git a/Sparkle/Sparkle/sk.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/sk.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 9ed2a6c7..00000000 --- a/Sparkle/Sparkle/sk.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/sk.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/sk.lproj/SUUpdateAlert.xib deleted file mode 100755 index d0db891b..00000000 --- a/Sparkle/Sparkle/sk.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 6aa62dde..00000000 --- a/Sparkle/Sparkle/sk.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonymný profil systému nám umožní zlepšiť plánovanie budúceho vývoja aplikácie. Ak máte ohľadom tohto akékoľvek otázky, neváhajte a kontaktujte nás. - -Odosielané budú nasledujúce informácie: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/sk.lproj/Sparkle.strings b/Sparkle/Sparkle/sk.lproj/Sparkle.strings deleted file mode 100755 index ef017bae..00000000 --- a/Sparkle/Sparkle/sk.lproj/Sparkle.strings +++ /dev/null @@ -1,74 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "Aplikácia %1$@ %2$@ bola prevzatá a je pripravená na použitie! Chcete teraz nainštalovať a následne znovu spustiť %1$@?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Aplikáciu %1$@ nemožno aktualizovať, ak je spustená zo zväzku s právami len na čítanie (napríklad z obrazu disku alebo optického disku). Presuňte aplikáciu %1$@ do priečinka Applications, spustite ju odtiaľ a potom znova skúste aktualizáciu."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@\nje najnovšia dostupná verzia."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "Je dostupná aplikácia %1$@ %2$@ — máte %3$@. Chcete ju prevziať teraz?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ prevzaté"; - -"%@ of %@" = "%1$@ z %2$@"; - -"A new version of %@ is available!" = "Je dostupná nová verzia aplikácie %@!"; - -"A new version of %@ is ready to install!" = "Nová verzia aplikácie %@ je pripravená na inštaláciu!"; - -"An error occurred in retrieving update information. Please try again later." = "Pri získavaní informácie o aktualizácii sa vyskytla chyba. Skúste neskôr."; - -"An error occurred while downloading the update. Please try again later." = "Pri preberaní aktualizácie sa vyskytla chyba. Skúste neskôr."; - -"An error occurred while extracting the archive. Please try again later." = "Pri rozbaľovaní archívu sa vyskytla chyba. Skúste neskôr."; - -"An error occurred while installing the update. Please try again later." = "Pri inštalácii aktualizácie sa vyskytla chyba. Skúste neskôr."; - -"An error occurred while parsing the update feed." = "Pri analyzovaní aktualizácie sa vyskytla chyba."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Pri spustení %1$@ sa vyskytla chyba, avšak nová verzia bude dostupná pri opätovnom štarte %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Zrušiť"; - -"Cancel Update" = "Zrušiť aktualizáciu"; - -"Checking for updates..." = "Kontrolujú sa aktualizácie…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Preberá sa aktualizácia…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Rozbaľuje sa aktualizácia…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Inštalovať a znovu spustiť"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Inštaluje sa aktualizácia…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Pripravené na inštaláciu"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Môže %1$@ automaticky kontrolovať aktualizácie? Kedykoľvek ich môžete z ponuky %1$@ skontrolovať aj manuálne."; - -"Update Error!" = "Chyba aktualizácie!"; - -"Updating %@" = "Aktualizuje sa %@"; - -"You already have the newest version of %@." = "Máte aktuálnu verziu aplikácie %@."; - -"You're up-to-date!" = "Máte aktuálnu verziu!"; diff --git a/Sparkle/Sparkle/sl.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/sl.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index f96a339d..00000000 --- a/Sparkle/Sparkle/sl.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/sl.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/sl.lproj/SUUpdateAlert.xib deleted file mode 100755 index 792b9529..00000000 --- a/Sparkle/Sparkle/sl.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 081bc487..00000000 --- a/Sparkle/Sparkle/sl.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonimni profil sistema se uporablja za načrtovanje nadaljnega razvoja programa. V primeru vprašanj nas lahko kontaktirate. - -Pošljejo se sledeče informacije: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/sl.lproj/Sparkle.strings b/Sparkle/Sparkle/sl.lproj/Sparkle.strings deleted file mode 100755 index 97a627e4..00000000 --- a/Sparkle/Sparkle/sl.lproj/Sparkle.strings +++ /dev/null @@ -1,74 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ je bil uspešno prenešen s spleta in je pripravljen na namestitev. Ga želite namestiti in ponovno zagnati takoj?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Programa %1$@ ni mogoče posodobiti, ker ga poganjate iz lokacije, kamor pisanje ni dovoljeno (pogosto je to slika diska dmg ali optična enota). Poskusite %1$@ premakniti v direktorij z aplikacijami (Applications), ga ponovno zagnati in šele nato posodobiti."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ je najnovejša verzija programa."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "Na voljo je %1$@ %2$@ — vi imate %3$@. Ga želite prenesti s spleta sedaj?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "prenešenih je %@"; - -"%@ of %@" = "%1$@ od %2$@"; - -"A new version of %@ is available!" = "Na voljo je nova verzija programa %@."; - -"A new version of %@ is ready to install!" = "Najnovejša verzija programa %@ je že nameščena."; - -"An error occurred in retrieving update information. Please try again later." = "Med iskanjem posodobitev je prišlo do napake. Prosimo poskusite ponovno čez nekaj časa."; - -"An error occurred while downloading the update. Please try again later." = "Med prenašanje posodobitve s spleta je prišlo do napake. Prosimo poskusite ponovno čez nekaj časa."; - -"An error occurred while extracting the archive. Please try again later." = "Med odpiranjem arhiva je prišlo do napake. Prosimo poskusite ponovno čez nekaj časa."; - -"An error occurred while installing the update. Please try again later." = "Med nameščanjem posodobitve je prišlo do napake. Prosimo poskusite ponovno čez nekaj časa."; - -"An error occurred while parsing the update feed." = "Napaka pri interpretaciji RSS vira s posodobitvami."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Med ponovnim zagonom programa %1$@ je sicer prišlo do napake, vendar bo nova verzija na voljo, ko boste naslednjič pognali program."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Prekliči"; - -"Cancel Update" = "Prekliči posodabljanje"; - -"Checking for updates..." = "Iskanje posodobitev …"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Prenašanje posodobitve …"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Razpakiranje posodobitve …"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Namesti in ponovno zaženi"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Nameščanje posodobitve …"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "V redu"; - -"Ready to Install" = "Pripravljen na namestitev"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Naj %1$@ samodejno preverja, če so na voljo posodobitve? To lahko kadarkoli preverite tudi sami iz menija za %1$@."; - -"Update Error!" = "Napaka pri posodabljanju"; - -"Updating %@" = "Posodabljam %@"; - -"You already have the newest version of %@." = "Najnovejša verzija programa %@ je že nameščena."; - -"You're up-to-date!" = "Uporabljate zadnjo verzijo."; diff --git a/Sparkle/Sparkle/sv.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/sv.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index a9b3a383..00000000 --- a/Sparkle/Sparkle/sv.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/sv.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/sv.lproj/SUUpdateAlert.xib deleted file mode 100755 index f759f3d9..00000000 --- a/Sparkle/Sparkle/sv.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 44ffe6fe..00000000 --- a/Sparkle/Sparkle/sv.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Leta efter uppdateringar automatiskt? - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Anonym systemprofilinformation används för att hjälpa oss att planera framtida utvecklingsarbete. Vänligen kontakta oss ifall du har några frågot om detta. - -Detta är informationen som skulle sändas: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/sv.lproj/Sparkle.strings b/Sparkle/Sparkle/sv.lproj/Sparkle.strings deleted file mode 100755 index 83acaf50..00000000 --- a/Sparkle/Sparkle/sv.lproj/Sparkle.strings +++ /dev/null @@ -1,79 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ har hämtats och är klar att använda! Vill du installera det och starta om %1$@ nu?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ kan inte uppdateras när det körs från en skrivskyddad volym som en skivavbild eller en optisk enhet. Flytta %1$@ till mappen Program, starta om det därifrån, och försök igen."; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ är för närvarande den senaste tillgängliga versionen."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ finns nu tillgänglig—du har %3$@. Vill hämta uppdateringen nu?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ hämtat"; - -"%@ of %@" = "%1$@ av %2$@"; - -"A new version of %@ is available!" = "En ny version av %@ finns tillgänglig!"; - -"A new version of %@ is ready to install!" = "En ny version av %@ är redo att installeras!"; - -"An error occurred in retrieving update information. Please try again later." = "Ett fel uppstod vid hämtning av information om uppdateringar. Försök igen senare."; - -"An error occurred while downloading the update. Please try again later." = "Ett fel uppstod vid hämtning av uppdateringen. Försök igen senare."; - -"An error occurred while extracting the archive. Please try again later." = "Ett fel uppstod vid extrahering av arkivet. Försök igen senare."; - -"An error occurred while installing the update. Please try again later." = "Ett fel uppstod vid installationen av uppdateringen. Försök igen senare."; - -"An error occurred while parsing the update feed." = "Ett fel uppstod vid tolkning av uppdateringslänken."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Ett fel uppstod när %1$@ skulle startas om, men den nya versionen kommer att finnas tillgänglig nästa gång du kör %1$@."; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "Avbryt"; - -"Cancel Update" = "Avbryt uppdatering"; - -"Checking for updates..." = "Letar efter uppdateringar…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Hämtar uppdatering…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Extraherar uppdatering…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "Installera och starta om"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Installerar uppdatering…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "OK"; - -"Ready to Install" = "Redo att installera"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Ska %1$@ leta efter uppdateringar automatiskt? Du kan alltid leta efter uppdateringar manuellt från %1$@-menyn."; - -"Update Error!" = "Uppdateringsfel!"; - -"Updating %@" = "Uppdaterar %@"; - -"You already have the newest version of %@." = "Du har redan den senaste versionen av %@."; - -"You're up-to-date!" = "Du är uppdaterad!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Mer info…"; diff --git a/Sparkle/Sparkle/th.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/th.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 844e4df1..00000000 --- a/Sparkle/Sparkle/th.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/th.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/th.lproj/SUUpdateAlert.xib deleted file mode 100755 index 797ae34e..00000000 --- a/Sparkle/Sparkle/th.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/th.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/th.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index 51ac9da9..00000000 --- a/Sparkle/Sparkle/th.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - ข้อมูลระบบแบบนิรนามช่วยในการวางแผนพัฒนาแอปพลิเคชันของเราในอนาคต กรุณาติดต่อเราถ้าคุณมีข้อสงสัยในเรื่องนี้ - -นี่คือข้อมูลที่จะถูกส่งไป: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/th.lproj/Sparkle.strings b/Sparkle/Sparkle/th.lproj/Sparkle.strings deleted file mode 100755 index 193483f4..00000000 --- a/Sparkle/Sparkle/th.lproj/Sparkle.strings +++ /dev/null @@ -1,84 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ ได้ถูกดาวน์โหลดและพร้อมใช้งานแล้ว คุณต้องการติดตั้งและเริ่ม %1$@ ใหม่เดี๋ยวนี้หรือไม่"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ ไม่สามารถรับการอัพเดทได้เมื่อถูกเรียกจากดิสก์แบบอ่านอย่างเดียวหรือซีดีรอม ย้าย %1$@ ไปยังโฟลเดอร์แอปพลิเคชัน และเรียกใช้งาน จากนั้นลองใหม่อีกครั้ง"; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ เป็นเวอร์ชั่นใหม่ล่าสุดแล้ว"; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ พร้อมให้ดาวน์โหลดแล้ว (คุณมีเวอร์ชั่น %3$@) ต้องการดาวน์โหลดเลยหรือไม่"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "ดาวน์โหลด %@ เสร็จสิ้น"; - -"%@ of %@" = "%1$@ จาก %2$@"; - -"A new version of %@ is available!" = "%@ มีเวอร์ชั่นใหม่!"; - -"A new version of %@ is ready to install!" = "เวอร์ชั่นใหม่ของ %@ พร้อมสำหรับการติดตั้งแล้ว"; - -"An error occurred in retrieving update information. Please try again later." = "เกิดข้อผิดพลาดระหว่างการรับข้อมูลอัพเดท กรุณาลองใหม่ในภายหลัง"; - -"An error occurred while downloading the update. Please try again later." = "เกิดข้อผิดพลาดระหว่างพยายามดาวน์โหลดอัพเดท กรุณาลองใหม่ในภายหลัง"; - -"An error occurred while extracting the archive. Please try again later." = "เกิดข้อผิดพลาดระหว่างการแตกไฟล์ที่ถูกบีบอัด กรุณาลองใหม่ในภายหลัง"; - -"An error occurred while installing the update. Please try again later." = "เกิดข้อผิดพลาดระหว่างการติดตั้งอัพเดท กรุณาลองใหม่ในภายหลัง"; - -"An error occurred while parsing the update feed." = "เกิดข้อผิดพลาดระหว่างการประมวลผลฟีดอัพเดท กรุณาลองใหม่ในภายหลัง"; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "เกิดข้อผิดพลาดระหว่างการเริ่ม %1$@ ใหม่ อย่างไรก็ตามเวอร์ชั่นใหม่จะใช้ได้เมื่อคุณเรียก %1$@ ครั้งถัดไป"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "ยกเลิก"; - -"Cancel Update" = "ยกเลิกอัพเดท"; - -"Checking for updates..." = "ตรวจสอบอัพเดท…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "กำลังดาวน์โหลดอัพเดท…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "กำลังแตกไฟล์อัพเดท…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "ติดตั้งและเริ่มแอปพลิเคชันใหม่"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "กำลังติดตั้งอัพเดท…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -/* OK button. */ -"OK" = "ตกลง"; - -/* Status message on progress window once download has finished. */ -"Ready to Install" = "พร้อมติดตั้ง"; - -/* Message that is optionally shown at startup to allow users to turn on/off update checks. */ -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "คุณต้องการให้ %1$@ ตรวจสอบอัพเดทโดยอัตโนมัติหรือไม่ คุณสามารถเริ่มการตรวจสอบอัพเดทด้วยตนเองได้ทุกเมื่อจากเมนูของ %1$@"; - -"Update Error!" = "อัพเดทผิดพลาด!"; - -"Updating %@" = "กำลังอัพเดท %@"; - -/* 'Error' message when the user checks for updates but is already current or the feed doesn't contain any updates. (not necessarily shown in UI) */ -"You already have the newest version of %@." = "คุณมีเวอร์ชั่นล่าสุดของ %@ แล้ว"; - -/* Status message shown when the user checks for updates but is already current or the feed doesn't contain any updates. */ -"You're up-to-date!" = "คุณมีเวอร์ชั่นล่าสุดแล้ว!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ -"Learn More..." = "เรียนรู้เพิ่มเติม…"; - diff --git a/Sparkle/Sparkle/tr.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/tr.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index cb71c309..00000000 --- a/Sparkle/Sparkle/tr.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/tr.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/tr.lproj/SUUpdateAlert.xib deleted file mode 100755 index 91fd7d32..00000000 --- a/Sparkle/Sparkle/tr.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index b3fc49d4..00000000 --- a/Sparkle/Sparkle/tr.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,238 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Gönderdiğiniz anonim sistem bilgileri bu yazılımın geliştirilmesi için kullanılacaktır. Konu ile ilgili ayrıntılı bilgi için lütfen bizimle bağlantıya geçiniz. Göndereceğiniz Bilgiler: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/tr.lproj/Sparkle.strings b/Sparkle/Sparkle/tr.lproj/Sparkle.strings deleted file mode 100755 index fda03413..00000000 --- a/Sparkle/Sparkle/tr.lproj/Sparkle.strings +++ /dev/null @@ -1,126 +0,0 @@ -/* de_DE v0.1 - No comment provided by engineer. */ - -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ indirildi ve kullanıma hazır! Şimdi yüklemek istiyor musunuz? Uygulama yeniden başlatılacaktır."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "%1$@ uygulaması disk kalıbı içerisindeyken güncellenemez. Lütfen %1$@ uygulamasını Uygulamalar dizinine kopyalayıp yeniden başlatınız."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ mevcut en yeni sürümdür."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ çıktı (Kullandığınız Sürüm: %3$@). Şimdi yeni sürümü indirmek ister misiniz?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ indirildi"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"%@ of %@" = "%1$@ / %2$@"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"A new version of %@ is available!" = "%@ uygulaması için yeni bir sürüm var!"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"A new version of %@ is ready to install!" = "%@ uygulamasının yeni bir sürümü yüklemeye hazır!"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred in retrieving update information. Please try again later." = "Güncelleme bilgilerini alırken bir hata oluştu. Lütfen daha sonra tekrar deneyiniz."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred while downloading the update. Please try again later." = "Güncelleme indirilirken bir hata oluştu. Lütfen sonra tekrar deneyiniz."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred while extracting the archive. Please try again later." = "İndirilen arşivi açarken bir hata oluştu. Lütfen daha sonra tekrar deneyiniz."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred while installing the update. Please try again later." = "Güncellemeyi yüklerken bir hata oluştu. Lütfen daha sonra tekrar deneyiniz."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred while parsing the update feed." = "Güncelleme kaynağını incelerken bir hata oluştu."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred while parsing the update feed: %@" = "Güncelleme kaynağını incelerken bir hata oluştu: %@"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "%1$@ uygulamasını açarken bir hata oluştu; ancak güncelleme %1$@ uygulamasını yeniden başlattığınızda hazır olacaktır."; - -/* de_DE v0.1 - the unit for bytes */ - -"B" = "B"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"Cancel" = "Vazgeç"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"Cancel Update" = "Güncellemeyi iptal et"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"Checking for updates..." = "Güncellemelere bakılıyor..."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"Downloading update..." = "Güncelleme indiriliyor..."; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"Extracting update..." = "Güncelleme ayıklanıyor..."; - -/* de_DE v0.1 - the unit for gigabytes */ - -"GB" = "GB"; - -/* de_DE v0.1 - No comment provided by engineer. */ - -"Install and Relaunch" = "Kur ve yeniden başlat"; - - -"Installing update..." = "Güncelleme kuruluyor..."; - -/* the unit for kilobytes */ - -"KB" = "KB"; - -/* the unit for megabytes */ - -"MB" = "MB"; - - -"OK" = "Tamam"; - - -"Ready to Install" = "Kuruluma hazır"; - - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "%1$@ uygulaması için güncellemeler otomatik olarak aransın mı? Güncelleme işlemini el ile uygulama menüsünden de başlatabilirsiniz."; - - -"Update Error!" = "Güncelleme hatası."; - - -"Updating %@" = "%@ güncelleniyor"; - - -"You already have the newest version of %@." = "%@ uygulamasının en güncel sürümü sizde mevcut."; - - -"You're up-to-date!" = "Uygulama güncel!"; - diff --git a/Sparkle/Sparkle/uk.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/uk.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index e639ea2c..00000000 --- a/Sparkle/Sparkle/uk.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/uk.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/uk.lproj/SUUpdateAlert.xib deleted file mode 100755 index c3cbcd3b..00000000 --- a/Sparkle/Sparkle/uk.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index ad98e67d..00000000 --- a/Sparkle/Sparkle/uk.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - Використання анонімного профілю системи допомагає нам у планування майбутньої розробки. Якщо у вас виникли питання щодо цього, звертайтесь до нас. - -Інформація, що буде надіслано: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/uk.lproj/Sparkle.strings b/Sparkle/Sparkle/uk.lproj/Sparkle.strings deleted file mode 100755 index 9a3a7d15..00000000 --- a/Sparkle/Sparkle/uk.lproj/Sparkle.strings +++ /dev/null @@ -1,79 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ завантажений і готовий до використання! Бажаєте встановити і перезавантажити %1$@?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "Під час роботи з %1$@ з тому, що призначений лише для читання, наприклад, образу диска чи оптичного диску, його неможливо оновити. Перемістіть %1$@ у папку з програмами, перезавантажте його звідти і спробуйте ще раз."; - -"%@ %@ is currently the newest version available." = "У данний момент %1$@ %2$@ є останньою версією."; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ доступна – ви маєте %3$@. Бажаєте завантажити її зараз?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ завантажено"; - -"%@ of %@" = "%1$@ із %2$@"; - -"A new version of %@ is available!" = "Доступна нова версія %@!"; - -"A new version of %@ is ready to install!" = "Нова версія %@ готова до встановлення!"; - -"An error occurred in retrieving update information. Please try again later." = "Виникла помилка при отриманні інформації про оновлення. Спробуйте ще раз пізніше."; - -"An error occurred while downloading the update. Please try again later." = "Виникла помилка при завантаження оновлення. Спробуйте ще раз пізніше."; - -"An error occurred while extracting the archive. Please try again later." = "Виникла помилка при розпаковуванні архіву. Спробуйте ще раз пізніше."; - -"An error occurred while installing the update. Please try again later." = "Виникла помилка при встановленні оновлення. Спробуйте ще раз пізніше."; - -"An error occurred while parsing the update feed." = "Виникла помилка розбору каналу оновлень."; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "Виникла помилка при перезавантаженні %1$@, але наступного разу при завантаження %1$@ буде доступна нова версія."; - -/* the unit for bytes */ -"B" = "Б"; - -"Cancel" = "Відмінити"; - -"Cancel Update" = "Відмінити оновлення"; - -"Checking for updates..." = "Перевіряю наявність оновлень…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "Завантажую оновлення…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "Розпаковую оновлення…"; - -/* the unit for gigabytes */ -"GB" = "ГБ"; - -"Install and Relaunch" = "Встановити та перезавантажити"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "Встановлюю оновлення…"; - -/* the unit for kilobytes */ -"KB" = "КБ"; - -/* the unit for megabytes */ -"MB" = "МБ"; - -"OK" = "OK"; - -"Ready to Install" = "Готовий до встановлення"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "Чи повинен %1$@ автоматично виконувати перевірку на оновлення? Ви завжди можете самостійно перевірити оновлення у меню %1$@."; - -"Update Error!" = "Помилка оновлення!"; - -"Updating %@" = "Оновлюю %@"; - -"You already have the newest version of %@." = "Ви вже користуєтесь останньою версією програми %@."; - -"You're up-to-date!" = "У вас остання версія!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "Дізнатись більше…"; diff --git a/Sparkle/Sparkle/zh_CN.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/zh_CN.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index 290a428e..00000000 --- a/Sparkle/Sparkle/zh_CN.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/zh_CN.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/zh_CN.lproj/SUUpdateAlert.xib deleted file mode 100755 index 60a343b5..00000000 --- a/Sparkle/Sparkle/zh_CN.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,249 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index f51d7fc7..00000000 --- a/Sparkle/Sparkle/zh_CN.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - 无记名系统概况信息被用于帮助我们安排将来的开发工作。如果对此存在疑问请联系我们。 - -这是将要被发送的信息:: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/zh_CN.lproj/Sparkle.strings b/Sparkle/Sparkle/zh_CN.lproj/Sparkle.strings deleted file mode 100755 index e9158627..00000000 --- a/Sparkle/Sparkle/zh_CN.lproj/Sparkle.strings +++ /dev/null @@ -1,78 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ 已下载完毕并可以使用!您想要现在安装 %1$@ 吗?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "无法更新 %1$@,因为它运行于一个只读宗卷如磁盘映像或光盘。移动 %1$@ 到应用程序文件夹并再试一次。"; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ 是当前的最新版本。"; - -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ 可供下载,您现在的版本是 %3$@。要现在下载吗?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ 已下载"; - -"%@ of %@" = "%1$@ / %2$@"; - -"A new version of %@ is available!" = "新版本的 %@ 已经发布"; - -"A new version of %@ is ready to install!" = "新版本的 %@ 可以安装了"; - -"An error occurred in retrieving update information. Please try again later." = "获取升级信息时出现错误,请稍后再试。"; - -"An error occurred while downloading the update. Please try again later." = "下载过程中出现错误,请稍后再试。"; - -"An error occurred while extracting the archive. Please try again later." = "解压过程中出现错误,请稍后再试。"; - -"An error occurred while installing the update. Please try again later." = "安装更新的过程中出现错误,请稍后再试。"; - -"An error occurred while parsing the update feed." = "解析更新信息时出现错误,请稍后再试。"; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "重新启动 %1$@ 时出现错误,但在下次运行 %1$@ 时新版本将可使用。"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "取消"; - -"Cancel Update" = "取消更新"; - -"Checking for updates..." = "正在检查更新…"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "正在下载更新…"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "正在解压更新…"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "安装并重启应用"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "正在安装更新…"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "好"; - -"Ready to Install" = "可以开始安装了"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "您想让 %1$@ 在启动时自动检查更新么?您也可以在程序菜单 %1$@ 中手动检查。"; - -"Update Error!" = "更新错误!"; - -"Updating %@" = "正在更新 %@"; - -"You already have the newest version of %@." = "您已经在使用最新版本的 %@。"; - -"You're up-to-date!" = "您使用的就是最新版!"; - -/* Alternative name for "Install" button if we have a paid update or other update - without a download but with a URL. */ - -"Learn More..." = "下载更新包"; diff --git a/Sparkle/Sparkle/zh_TW.lproj/SUAutomaticUpdateAlert.xib b/Sparkle/Sparkle/zh_TW.lproj/SUAutomaticUpdateAlert.xib deleted file mode 100755 index bc6307da..00000000 --- a/Sparkle/Sparkle/zh_TW.lproj/SUAutomaticUpdateAlert.xib +++ /dev/null @@ -1,122 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/zh_TW.lproj/SUUpdateAlert.xib b/Sparkle/Sparkle/zh_TW.lproj/SUUpdateAlert.xib deleted file mode 100755 index b4171c4c..00000000 --- a/Sparkle/Sparkle/zh_TW.lproj/SUUpdateAlert.xib +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - NSNegateBoolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib b/Sparkle/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib deleted file mode 100755 index ad2ec755..00000000 --- a/Sparkle/Sparkle/zh_TW.lproj/SUUpdatePermissionPrompt.xib +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - visibleKey - visibleValue - displayValue - displayKey - - - - - - - - - - - - - - - - 匿名系統描述資訊可用來協助我們計畫未來的開發工作。若您有任何相關問題,請與我們聯繫。 - -以下是會傳送的資訊: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SUIncludeProfile - SUSendProfileInfo - - - - - - - diff --git a/Sparkle/Sparkle/zh_TW.lproj/Sparkle.strings b/Sparkle/Sparkle/zh_TW.lproj/Sparkle.strings deleted file mode 100755 index 459ef76b..00000000 --- a/Sparkle/Sparkle/zh_TW.lproj/Sparkle.strings +++ /dev/null @@ -1,74 +0,0 @@ -"%1$@ %2$@ has been downloaded and is ready to use! Would you like to install it and relaunch %1$@ now?" = "%1$@ %2$@ 已下載且可供使用!您是否要現在安裝並重新啟動%1$@?"; - -"%1$@ can't be updated when it's running from a read-only volume like a disk image or an optical drive. Move %1$@ to your Applications folder, relaunch it from there, and try again." = "當 %1$@ 正從唯讀卷宗(如磁碟映像檔或光碟機)執行時,無法進行更新。請將 %1$@ 移至您的“應用程式”檔案夾,從該處重新啟動,然後再試一次。 "; - -"%@ %@ is currently the newest version available." = "%1$@ %2$@ 已是目前最新的版本。"; - -/* Description text for SUUpdateAlert when the update is downloadable. */ -"%@ %@ is now available--you have %@. Would you like to download it now?" = "%1$@ %2$@ 現在已可取得,您的版本則是 %3$@。您要現在下載嗎?"; - -/* Description text for SUUpdateAlert when the update informational with no download. */ -"%@ %@ is now available--you have %@. Would you like to learn more about this update on the web?" = "%1$@ %2$@ is now available--you have %3$@. Would you like to learn more about this update on the web?"; - -"%@ downloaded" = "%@ 已下載"; - -"%@ of %@" = "%1$@ / %2$@"; - -"A new version of %@ is available!" = "已有新版本的 %@ 可供下載!"; - -"A new version of %@ is ready to install!" = "新版本的 %@ 已準備安裝!"; - -"An error occurred in retrieving update information. Please try again later." = "擷取更新資訊時發生錯誤。請稍後再試一次。"; - -"An error occurred while downloading the update. Please try again later." = "下載更新項目時發生錯誤。請稍後再試一次。"; - -"An error occurred while extracting the archive. Please try again later." = "解壓縮封存檔時發生錯誤。請稍後再試一次。"; - -"An error occurred while installing the update. Please try again later." = "安裝更新項目時發生錯誤。請稍後再試一次。"; - -"An error occurred while parsing the update feed." = "解析更新 feed 時發生錯誤。"; - -"An error occurred while relaunching %1$@, but the new version will be available next time you run %1$@." = "重新啟動 %1$@ 時發生錯誤,但下次您執行 %1$@ 時將可使用新版本。"; - -/* the unit for bytes */ -"B" = "B"; - -"Cancel" = "取消"; - -"Cancel Update" = "取消更新"; - -"Checking for updates..." = "正在檢查更新項目⋯"; - -/* Take care not to overflow the status window. */ -"Downloading update..." = "正在下載更新項目⋯"; - -/* Take care not to overflow the status window. */ -"Extracting update..." = "正在解壓縮更新項目⋯"; - -/* the unit for gigabytes */ -"GB" = "GB"; - -"Install and Relaunch" = "安裝與重新啟動"; - -/* Take care not to overflow the status window. */ -"Installing update..." = "正在安裝更新項目⋯"; - -/* the unit for kilobytes */ -"KB" = "KB"; - -/* the unit for megabytes */ -"MB" = "MB"; - -"OK" = "好"; - -"Ready to Install" = "準備安裝"; - -"Should %1$@ automatically check for updates? You can always check for updates manually from the %1$@ menu." = "%1$@ 是否應自動檢查更新項目?您可隨時從 %1$@ 選單手動檢查更新項目。"; - -"Update Error!" = "更新發生錯誤!"; - -"Updating %@" = "正在更新 %@"; - -"You already have the newest version of %@." = "您已有最新版本的 %@。"; - -"You're up-to-date!" = "你已有最新版本!"; diff --git a/Sparkle/TestApplication/English.lproj/InfoPlist.strings b/Sparkle/TestApplication/English.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/English.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/English.lproj/MainMenu.xib b/Sparkle/TestApplication/English.lproj/MainMenu.xib deleted file mode 100755 index ccd4e02a..00000000 --- a/Sparkle/TestApplication/English.lproj/MainMenu.xib +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/TestApplication/SUTestApplicationDelegate.h b/Sparkle/TestApplication/SUTestApplicationDelegate.h deleted file mode 100755 index cbe0710c..00000000 --- a/Sparkle/TestApplication/SUTestApplicationDelegate.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// SUTestApplicationDelegate.h -// Sparkle -// -// Created by Mayur Pawashe on 7/25/15. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import - -@interface SUTestApplicationDelegate : NSObject - -@end diff --git a/Sparkle/TestApplication/SUTestApplicationDelegate.m b/Sparkle/TestApplication/SUTestApplicationDelegate.m deleted file mode 100755 index 10929a4b..00000000 --- a/Sparkle/TestApplication/SUTestApplicationDelegate.m +++ /dev/null @@ -1,203 +0,0 @@ -// -// SUTestApplicationDelegate.m -// Sparkle -// -// Created by Mayur Pawashe on 7/25/15. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import "SUTestApplicationDelegate.h" -#import "SUUpdateSettingsWindowController.h" -#import "SUFileManager.h" -#import "SUTestWebServer.h" - -@interface SUTestApplicationDelegate () - -@property (nonatomic) SUUpdateSettingsWindowController *updateSettingsWindowController; -@property (nonatomic) SUTestWebServer *webServer; - -@end - -@implementation SUTestApplicationDelegate - -@synthesize updateSettingsWindowController = _updateSettingsWindowController; -@synthesize webServer = _webServer; - -static NSString * const UPDATED_VERSION = @"2.0"; - -- (void)applicationDidFinishLaunching:(NSNotification * __unused)notification -{ - NSBundle *mainBundle = [NSBundle mainBundle]; - - // Check if we are already up to date - if ([[mainBundle objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleVersionKey] isEqualToString:UPDATED_VERSION]) { - NSAlert *alreadyUpdatedAlert = [[NSAlert alloc] init]; - alreadyUpdatedAlert.messageText = @"Update succeeded!"; - alreadyUpdatedAlert.informativeText = @"This is the updated version of Sparkle Test App.\n\nDelete and rebuild the app to test updates again."; - [alreadyUpdatedAlert runModal]; - - [[NSApplication sharedApplication] terminate:nil]; - } - - SUFileManager *fileManager = [SUFileManager defaultManager]; - - // Locate user's cache directory - NSError *cacheError = nil; - NSURL *cacheDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSCachesDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:&cacheError]; - - if (cacheDirectoryURL == nil) { - NSLog(@"Failed to locate cache directory with error: %@", cacheError); - assert(NO); - } - - NSString *bundleIdentifier = mainBundle.bundleIdentifier; - assert(bundleIdentifier != nil); - - // Create a directory that'll be used for our web server listing - NSURL *serverDirectoryURL = [[cacheDirectoryURL URLByAppendingPathComponent:bundleIdentifier] URLByAppendingPathComponent:@"ServerData"]; - if ([serverDirectoryURL checkResourceIsReachableAndReturnError:nil]) { - NSError *removeServerDirectoryError = nil; - - if (![fileManager removeItemAtURL:serverDirectoryURL error:&removeServerDirectoryError]) { - assert(NO); - } - } - - NSError *createDirectoryError = nil; - if (![[NSFileManager defaultManager] createDirectoryAtURL:serverDirectoryURL withIntermediateDirectories:YES attributes:nil error:&createDirectoryError]) { - NSLog(@"Failed creating directory at %@ with error %@", serverDirectoryURL.path, createDirectoryError); - assert(NO); - } - - NSURL *bundleURL = mainBundle.bundleURL; - assert(bundleURL != nil); - - // Copy main bundle into server directory - NSString *bundleURLLastComponent = bundleURL.lastPathComponent; - assert(bundleURLLastComponent != nil); - - NSURL *destinationBundleURL = [serverDirectoryURL URLByAppendingPathComponent:bundleURLLastComponent]; - NSError *copyBundleError = nil; - if (![fileManager copyItemAtURL:bundleURL toURL:destinationBundleURL error:©BundleError]) { - NSLog(@"Failed to copy main bundle into server directory with error %@", copyBundleError); - assert(NO); - } - - // Update bundle's version keys to latest version - NSURL *infoURL = [[destinationBundleURL URLByAppendingPathComponent:@"Contents"] URLByAppendingPathComponent:@"Info.plist"]; - - BOOL infoFileExists = [infoURL checkResourceIsReachableAndReturnError:nil]; - assert(infoFileExists); - - NSMutableDictionary *infoDictionary = [[NSMutableDictionary alloc] initWithContentsOfURL:infoURL]; - [infoDictionary setObject:UPDATED_VERSION forKey:(__bridge NSString *)kCFBundleVersionKey]; - [infoDictionary setObject:UPDATED_VERSION forKey:@"CFBundleShortVersionString"]; - - BOOL wroteInfoFile = [infoDictionary writeToURL:infoURL atomically:NO]; - assert(wroteInfoFile); - - // Change current working directory so web server knows where to list files - NSString *serverDirectoryPath = serverDirectoryURL.path; - assert(serverDirectoryPath != nil); - - // Create the archive for our update - NSString *zipName = @"Sparkle_Test_App.zip"; - NSTask *dittoTask = [[NSTask alloc] init]; - dittoTask.launchPath = @"/usr/bin/ditto"; - dittoTask.arguments = @[@"-c", @"-k", @"--sequesterRsrc", @"--keepParent", destinationBundleURL.lastPathComponent, zipName]; - dittoTask.currentDirectoryPath = serverDirectoryPath; - [dittoTask launch]; - [dittoTask waitUntilExit]; - - assert(dittoTask.terminationStatus == 0); - - [fileManager removeItemAtURL:destinationBundleURL error:NULL]; - - // Don't ever do this at home, kids (seriously) - // (that is, including the private key inside of your application) - NSString *privateKeyPath = [mainBundle pathForResource:@"test_app_only_dsa_priv_dont_ever_do_this_for_real" ofType:@"pem"]; - assert(privateKeyPath != nil); - - // Sign our update - NSTask *signUpdateTask = [[NSTask alloc] init]; - NSString *signUpdatePath = [mainBundle pathForResource:@"sign_update" ofType:@""]; - assert(signUpdatePath != nil); - signUpdateTask.launchPath = signUpdatePath; - - NSURL *archiveURL = [serverDirectoryURL URLByAppendingPathComponent:zipName]; - signUpdateTask.arguments = @[archiveURL.path, privateKeyPath]; - - NSPipe *outputPipe = [NSPipe pipe]; - signUpdateTask.standardOutput = outputPipe; - - [signUpdateTask launch]; - [signUpdateTask waitUntilExit]; - - assert(signUpdateTask.terminationStatus == 0); - - NSData *signatureData = [outputPipe.fileHandleForReading readDataToEndOfFile]; - NSString *signature = [[[NSString alloc] initWithData:signatureData encoding:NSUTF8StringEncoding] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; - - assert(signature != nil); - - // Obtain the file attributes to get the file size of our update later - NSError *fileAttributesError = nil; - NSString *archivePath = archiveURL.path; - assert(archivePath != nil); - NSDictionary *archiveFileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:archivePath error:&fileAttributesError]; - if (archiveFileAttributes == nil) { - NSLog(@"Failed to retrieve file attributes from archive with error %@", fileAttributesError); - assert(NO); - } - - NSString * const appcastName = @"sparkletestcast"; - NSString * const appcastExtension = @"xml"; - - // Copy our appcast over to the server directory - NSURL *appcastDestinationURL = [[serverDirectoryURL URLByAppendingPathComponent:appcastName] URLByAppendingPathExtension:appcastExtension]; - NSError *copyAppcastError = nil; - if (![fileManager copyItemAtURL:[mainBundle URLForResource:appcastName withExtension:appcastExtension] toURL:appcastDestinationURL error:©AppcastError]) { - NSLog(@"Failed to copy appcast into cache directory with error %@", copyAppcastError); - assert(NO); - } - - // Update the appcast with the file size and signature of the update archive - // We could be using some sort of XML parser instead of doing string substitutions, but for now, this is easier - NSError *appcastError = nil; - NSMutableString *appcastContents = [[NSMutableString alloc] initWithContentsOfURL:appcastDestinationURL encoding:NSUTF8StringEncoding error:&appcastError]; - if (appcastContents == nil) { - NSLog(@"Failed to load appcast contents with error %@", appcastError); - assert(NO); - } - - NSUInteger numberOfLengthReplacements = [appcastContents replaceOccurrencesOfString:@"$INSERT_ARCHIVE_LENGTH" withString:[NSString stringWithFormat:@"%llu", archiveFileAttributes.fileSize] options:NSLiteralSearch range:NSMakeRange(0, appcastContents.length)]; - assert(numberOfLengthReplacements == 1); - - NSUInteger numberOfSignatureReplacements = [appcastContents replaceOccurrencesOfString:@"$INSERT_DSA_SIGNATURE" withString:signature options:NSLiteralSearch range:NSMakeRange(0, appcastContents.length)]; - assert(numberOfSignatureReplacements == 1); - - NSError *writeAppcastError = nil; - if (![appcastContents writeToURL:appcastDestinationURL atomically:NO encoding:NSUTF8StringEncoding error:&writeAppcastError]) { - NSLog(@"Failed to write updated appcast with error %@", writeAppcastError); - assert(NO); - } - - // Finally start the server - SUTestWebServer *webServer = [[SUTestWebServer alloc] initWithPort:1337 workingDirectory:serverDirectoryPath]; - if (!webServer) { - NSLog(@"Failed to create the web server"); - assert(NO); - } - self.webServer = webServer; - - // Show the Settings window - self.updateSettingsWindowController = [[SUUpdateSettingsWindowController alloc] init]; - [self.updateSettingsWindowController showWindow:nil]; -} - -- (void)applicationWillTerminate:(NSNotification * __unused)notification -{ - [self.webServer close]; -} - -@end diff --git a/Sparkle/TestApplication/SUTestWebServer.h b/Sparkle/TestApplication/SUTestWebServer.h deleted file mode 100755 index 2c61c565..00000000 --- a/Sparkle/TestApplication/SUTestWebServer.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SUTestWebServer.h -// Sparkle -// -// Created by Kevin Wojniak on 10/8/15. -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -#import - -@interface SUTestWebServer : NSObject - -- (instancetype)initWithPort:(int)port workingDirectory:(NSString*)workingDirectory; - -- (void)close; - -@end diff --git a/Sparkle/TestApplication/SUTestWebServer.m b/Sparkle/TestApplication/SUTestWebServer.m deleted file mode 100755 index 2ca31e8e..00000000 --- a/Sparkle/TestApplication/SUTestWebServer.m +++ /dev/null @@ -1,263 +0,0 @@ -// -// SUTestWebServer.m -// Sparkle -// -// Created by Kevin Wojniak on 10/8/15. -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -#import "SUTestWebServer.h" -#import -#import - -@class SUTestWebServerConnection; - -@protocol SUTestWebServerConnectionDelegate -@required -- (void)connectionDidClose:(SUTestWebServerConnection*)sender; -@end - -@interface SUTestWebServerConnection : NSObject - -@property (nonatomic) NSString* workingDirectory; -@property (nonatomic, weak) id delegate; -@property (nonatomic) NSInputStream *inputStream; -@property (nonatomic) NSOutputStream *outputStream; -@property (nonatomic) NSData *dataToWrite; -@property (nonatomic) NSInteger numBytesToWrite; - -@end - -@implementation SUTestWebServerConnection - -@synthesize workingDirectory = _workingDirectory; -@synthesize delegate = _delegate; -@synthesize inputStream = _inputStream; -@synthesize outputStream = _outputStream; -@synthesize dataToWrite = _dataToWrite; -@synthesize numBytesToWrite = _numBytesToWrite; - -- (instancetype)initWithNativeHandle:(CFSocketNativeHandle)handle workingDirectory:(NSString*)workingDirectory delegate:(id)delegate { - self = [super init]; - assert(self != nil); - - _workingDirectory = workingDirectory; - _delegate = delegate; - - CFReadStreamRef readStream = NULL; - CFWriteStreamRef writeStream = NULL; - CFStreamCreatePairWithSocket(NULL, handle, &readStream, &writeStream); - assert(readStream != NULL); - assert(writeStream != NULL); - - _inputStream = (__bridge NSInputStream*)readStream; - assert(_inputStream != nil); - _inputStream.delegate = self; - - _outputStream = (__bridge NSOutputStream*)writeStream; - assert(_outputStream != nil); - _outputStream.delegate = self; - - [_inputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - [_outputStream scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - [_inputStream open]; - [_outputStream open]; - - return self; -} - -- (void)close { - NSInputStream *inputStream = self.inputStream; - NSOutputStream *outputStream = self.outputStream; - if (inputStream == nil) { - assert(outputStream == nil); - return; - } - [inputStream close]; - [outputStream close]; - [inputStream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - [outputStream removeFromRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode]; - self.inputStream = nil; - self.outputStream = nil; - [self.delegate connectionDidClose:self]; -} - -- (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode { - if (eventCode == NSStreamEventEndEncountered) { - [self close]; - return; - } - if (aStream == self.inputStream && eventCode == NSStreamEventHasBytesAvailable) { - uint8_t buffer[8096]; - const NSInteger numBytes = [self.inputStream read:buffer maxLength:sizeof(buffer)]; - if (numBytes > 0) { - NSString *request = [[NSString alloc] initWithBytes:buffer length:(NSUInteger)numBytes encoding:NSUTF8StringEncoding]; - NSArray *lines = [request componentsSeparatedByString:@"\r\n"]; - NSString *requestLine = lines.count >= 3 ? [lines objectAtIndex:0] : nil; - NSArray *parts = requestLine ? [requestLine componentsSeparatedByString:@" "] : nil; - // Only process GET requests for existing files - if ([[parts objectAtIndex:0] isEqualToString:@"GET"]) { - // Use NSURL to strip out query parameters - NSString *path = [NSURL URLWithString:[parts objectAtIndex:1] relativeToURL:nil].path; - NSString *filePath = [self.workingDirectory stringByAppendingString:path]; - BOOL isDir = NO; - if (![[NSFileManager defaultManager] fileExistsAtPath:filePath isDirectory:&isDir] || isDir) { - NSLog(@"%@ - 404", requestLine); - [self write404]; - } else { - NSLog(@"%@ - 200", requestLine); - [self write:[NSData dataWithContentsOfFile:filePath] status:YES]; - } - } else { - NSLog(@"%@ - 404", requestLine); - [self write404]; - } - } - } else if (aStream == self.outputStream && eventCode == NSStreamEventHasSpaceAvailable && self.dataToWrite != nil) { - [self checkIfCanWriteNow]; - } -} - -- (void)write404 { - NSString *body = @"404 Not Found

    Not Found

    "; - [self write:[body dataUsingEncoding:NSUTF8StringEncoding] status:NO]; -} - -- (void)write:(NSData*)body status:(BOOL)status { - NSString *state = status ? @"200 OK" : @"404 Not Found"; - NSString *header = [NSString stringWithFormat:@"HTTP/1.0 %@\r\nContent-Length: %lu\r\n\r\n", state, body.length]; - NSMutableData *response = [[header dataUsingEncoding:NSUTF8StringEncoding] mutableCopy]; - [response appendData:body]; - [self queueWrite:response]; -} - -- (void)queueWrite:(NSData*)data { - assert(self.dataToWrite == nil); - assert(data != nil); - assert(data.length > 0); - self.dataToWrite = data; - self.numBytesToWrite = (NSInteger)data.length; - [self checkIfCanWriteNow]; -} - -- (void)checkIfCanWriteNow { - assert(self.dataToWrite != nil); - if (self.numBytesToWrite == 0) { - // nothing more to write, we're done. - self.dataToWrite = nil; - self.numBytesToWrite = -1; - } else if (self.outputStream.hasSpaceAvailable) { - [self writeNow]; - } - // otherwise wait for space available event -} - -- (void)writeNow { - assert(self.outputStream != nil); - assert(self.outputStream.hasSpaceAvailable); - assert(self.dataToWrite != nil); - NSData *dataToWrite = self.dataToWrite; - const uint8_t *bytesOffset = (const uint8_t*)dataToWrite.bytes + ((NSInteger)dataToWrite.length - self.numBytesToWrite); - const NSInteger bytesWritten = [self.outputStream write:bytesOffset maxLength:(NSUInteger)self.numBytesToWrite]; - if (bytesWritten > 0) { - self.numBytesToWrite = self.numBytesToWrite - bytesWritten; - assert(self.numBytesToWrite >= 0); - // wait for next space available event to write more - } else { - NSLog(@"Error: bytes written = %ld (%@)", bytesWritten, [NSString stringWithUTF8String:strerror(errno)]); - } -} - -@end - -@interface SUTestWebServer () { - CFSocketRef _socket; -} - -@property (nonatomic) NSMutableArray *connections; -@property (nonatomic) NSString *workingDirectory; - -- (void)accept:(CFSocketNativeHandle)address; - -@end - -static void connectCallback(CFSocketRef __unused s, CFSocketCallBackType type, CFDataRef __unused address, const void *data, void *info) { - if (type == kCFSocketAcceptCallBack) { - assert(data != NULL); - assert(info != NULL); - SUTestWebServer *server = (__bridge SUTestWebServer*)info; - assert(server != nil); - [server accept:*(const CFSocketNativeHandle*)data]; - } -} - -@implementation SUTestWebServer - -@synthesize connections = _connections; -@synthesize workingDirectory = _workingDirectory; - -- (instancetype)initWithPort:(int)port workingDirectory:(NSString*)workingDirectory { - self = [super init]; - assert(self != nil); - - CFSocketContext ctx; - memset(&ctx, 0, sizeof(ctx)); - ctx.info = (__bridge void*)self; - _socket = CFSocketCreate(NULL, 0, 0, 0, kCFSocketAcceptCallBack, connectCallback, &ctx); - assert(_socket != NULL); - - struct sockaddr_in address; - memset(&address, 0, sizeof(address)); - address.sin_len = sizeof(address); - address.sin_family = AF_INET; - address.sin_port = htons(port); - address.sin_addr.s_addr = INADDR_ANY; - - // will fail if port is in use. - CFSocketError socketErr = CFSocketSetAddress(_socket, (CFDataRef)[NSData dataWithBytes:&address length:sizeof(address)]); - if (socketErr != kCFSocketSuccess) { - NSLog(@"Socket error: %@", [NSString stringWithUTF8String:strerror(errno)]); - return nil; - } - - _connections = [[NSMutableArray alloc] init]; - _workingDirectory = workingDirectory; - - CFRunLoopSourceRef source = CFSocketCreateRunLoopSource(NULL, _socket, 0); - assert(source != NULL); - CFRunLoopAddSource(CFRunLoopGetCurrent(), source, kCFRunLoopDefaultMode); - CFRelease(source); - - return self; -} - -- (void)connectionDidClose:(SUTestWebServerConnection *)sender { - assert(self.connections != nil); - assert([self.connections containsObject:sender]); - [self.connections removeObject:sender]; -} - -- (void)accept:(CFSocketNativeHandle)address { - SUTestWebServerConnection *conn = [[SUTestWebServerConnection alloc] initWithNativeHandle:address workingDirectory:self.workingDirectory delegate:self]; - assert(conn != nil); - if (conn) { - assert(self.connections != nil); - [self.connections addObject:conn]; - } -} - -- (void)close { - for (SUTestWebServerConnection *conn in self.connections) { - [conn close]; - } -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wdirect-ivar-access" - if (_socket) { - CFSocketInvalidate(_socket); - CFRelease(_socket); - _socket = NULL; - } -#pragma clang diagnostic pop -} - -@end diff --git a/Sparkle/TestApplication/SUUpdateSettingsWindowController.h b/Sparkle/TestApplication/SUUpdateSettingsWindowController.h deleted file mode 100755 index f209eadc..00000000 --- a/Sparkle/TestApplication/SUUpdateSettingsWindowController.h +++ /dev/null @@ -1,13 +0,0 @@ -// -// SUUpdateSettingsWindowController.h -// Sparkle -// -// Created by Mayur Pawashe on 7/25/15. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import - -@interface SUUpdateSettingsWindowController : NSWindowController - -@end diff --git a/Sparkle/TestApplication/SUUpdateSettingsWindowController.m b/Sparkle/TestApplication/SUUpdateSettingsWindowController.m deleted file mode 100755 index 24516509..00000000 --- a/Sparkle/TestApplication/SUUpdateSettingsWindowController.m +++ /dev/null @@ -1,40 +0,0 @@ -// -// SUUpdateSettingsWindowController.m -// Sparkle -// -// Created by Mayur Pawashe on 7/25/15. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import "SUUpdateSettingsWindowController.h" -#import - -@interface SUUpdateSettingsWindowController () - -@property (nonatomic) IBOutlet SUUpdater *updater; - -@end - -@implementation SUUpdateSettingsWindowController - -@synthesize updater = _updater; - -- (NSString *)windowNibName -{ - return NSStringFromClass([self class]); -} - -- (IBAction)checkForUpdates:(id __unused)sender -{ - [self.updater checkForUpdates:nil]; -} - -- (BOOL)validateMenuItem:(NSMenuItem *)menuItem -{ - if (menuItem.action == @selector(checkForUpdates:)) { - return [self.updater validateMenuItem:menuItem]; - } - return YES; -} - -@end diff --git a/Sparkle/TestApplication/SUUpdateSettingsWindowController.xib b/Sparkle/TestApplication/SUUpdateSettingsWindowController.xib deleted file mode 100755 index 99d04aef..00000000 --- a/Sparkle/TestApplication/SUUpdateSettingsWindowController.xib +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Sparkle/TestApplication/TestApplication-Info.plist b/Sparkle/TestApplication/TestApplication-Info.plist deleted file mode 100755 index 45b0254b..00000000 --- a/Sparkle/TestApplication/TestApplication-Info.plist +++ /dev/null @@ -1,39 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - Sparkle Test App - CFBundlePackageType - APPL - CFBundleSignature - ???? - CFBundleVersion - 1.5 - CFBundleShortVersionString - 1.5 - NSMainNibFile - MainMenu - NSPrincipalClass - NSApplication - SUEnableSystemProfiling - - SUFeedURL - http://0.0.0.0:1337/sparkletestcast.xml - SUPublicDSAKeyFile - test_app_only_dsa_pub.pem - NSAppTransportSecurity - - NSAllowsArbitraryLoads - - - - diff --git a/Sparkle/TestApplication/ar.lproj/InfoPlist.strings b/Sparkle/TestApplication/ar.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/ar.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/ca.lproj/InfoPlist.strings b/Sparkle/TestApplication/ca.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/ca.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/cs.lproj/InfoPlist.strings b/Sparkle/TestApplication/cs.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/cs.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/cy.lproj/InfoPlist.strings b/Sparkle/TestApplication/cy.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/cy.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/da.lproj/InfoPlist.strings b/Sparkle/TestApplication/da.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/da.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/de.lproj/InfoPlist.strings b/Sparkle/TestApplication/de.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/de.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/el.lproj/InfoPlist.strings b/Sparkle/TestApplication/el.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/el.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/es.lproj/InfoPlist.strings b/Sparkle/TestApplication/es.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/es.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/fi.lproj/InfoPlist.strings b/Sparkle/TestApplication/fi.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/fi.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/fr-CA.lproj/InfoPlist.strings b/Sparkle/TestApplication/fr-CA.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/fr-CA.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/fr.lproj/InfoPlist.strings b/Sparkle/TestApplication/fr.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/fr.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/he.lproj/InfoPlist.strings b/Sparkle/TestApplication/he.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/he.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/hu.lproj/InfoPlist.strings b/Sparkle/TestApplication/hu.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/hu.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/id.lproj/InfoPlist.strings b/Sparkle/TestApplication/id.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/id.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/is.lproj/InfoPlist.strings b/Sparkle/TestApplication/is.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/is.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/it.lproj/InfoPlist.strings b/Sparkle/TestApplication/it.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/it.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/ja.lproj/InfoPlist.strings b/Sparkle/TestApplication/ja.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/ja.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/ko.lproj/InfoPlist.strings b/Sparkle/TestApplication/ko.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/ko.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/main.m b/Sparkle/TestApplication/main.m deleted file mode 100755 index 28e50644..00000000 --- a/Sparkle/TestApplication/main.m +++ /dev/null @@ -1,14 +0,0 @@ -// -// main.m -// Sparkle -// -// Created by Andy Matuschak on 3/12/06. -// Copyright Andy Matuschak 2006. All rights reserved. -// - -#import - -int main(int argc, const char *argv[]) -{ - return NSApplicationMain(argc, argv); -} diff --git a/Sparkle/TestApplication/nb.lproj/InfoPlist.strings b/Sparkle/TestApplication/nb.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/nb.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/nl.lproj/InfoPlist.strings b/Sparkle/TestApplication/nl.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/nl.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/pl.lproj/InfoPlist.strings b/Sparkle/TestApplication/pl.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/pl.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/pt-BR.lproj/InfoPlist.strings b/Sparkle/TestApplication/pt-BR.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/pt-BR.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/pt-PT.lproj/InfoPlist.strings b/Sparkle/TestApplication/pt-PT.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/pt-PT.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/pt.lproj/InfoPlist.strings b/Sparkle/TestApplication/pt.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/pt.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/ro.lproj/InfoPlist.strings b/Sparkle/TestApplication/ro.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/ro.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/ru.lproj/InfoPlist.strings b/Sparkle/TestApplication/ru.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/ru.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/sk.lproj/InfoPlist.strings b/Sparkle/TestApplication/sk.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/sk.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/sl.lproj/InfoPlist.strings b/Sparkle/TestApplication/sl.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/sl.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/sparkletestcast.xml b/Sparkle/TestApplication/sparkletestcast.xml deleted file mode 100755 index 670d606c..00000000 --- a/Sparkle/TestApplication/sparkletestcast.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - Sparkle Test App Changelog - Most recent changes with links to updates. - en - - Version 2.0 - - -
  • Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  • -
  • Suspendisse sed felis ac ante ultrices rhoncus. Etiam quis elit vel nibh placerat facilisis in id leo.
  • -
  • Vestibulum nec tortor odio, nec malesuada libero. Cras vel convallis nunc.
  • -
  • Suspendisse tristique massa eget velit consequat tincidunt. Praesent sodales hendrerit pretium.
  • - - ]]> -
    - Sat, 26 Jul 2014 15:20:11 +0000 - -
    -
    -
    diff --git a/Sparkle/TestApplication/sv.lproj/InfoPlist.strings b/Sparkle/TestApplication/sv.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/sv.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/test_app_only_dsa_priv_dont_ever_do_this_for_real.pem b/Sparkle/TestApplication/test_app_only_dsa_priv_dont_ever_do_this_for_real.pem deleted file mode 100755 index 42efc795..00000000 --- a/Sparkle/TestApplication/test_app_only_dsa_priv_dont_ever_do_this_for_real.pem +++ /dev/null @@ -1,36 +0,0 @@ ------BEGIN DSA PRIVATE KEY----- -MIIGPgIBAAKCAgEAvvs5v/Vbc6gYls5WnHUmWy9rhUsuAvf+HAuz9Tzp63fb8Cni -8aqe+qkiL3RKuabl92BAK7Vwv4EMOXozDlNPWZS5EZUBZuiQ7vtQC9Eg3C68KWwb -lrhSwzyVnXz8twD75CiR+oPSZEIiOQ81Ok///i1+TV17ierbLxYJ2Sd1wTRQdLeS -7rmnL6aLka0PNtsFvFlvW9GbrlNP9PZaGmrJYadsTV5+F9XZRFnwZc6crmrIo+DA -VNucgqBdZUNN0CWz9OJfKr/GKMw+blTF2WixDnGH2FKtNh7QSuRwlvioXBjYJbX4 -UV6jJqxZdLUMSm9iZteC8Q34cFVwrPizwRBO/8Yx/htFPrvyIkD0uvfMO55dbkld -0nWfbHcUJRHjSEOPahOlHHGejmLWEsBtp9vD453czFXi19GhR98gEaXmcbwOr4gH -A1WHTqOwUx6Ll+AFWG5nyZIKB9SxMUBWu0znVg9d9wqYAL0/aBWhXEFe86xYdReK -z0RvnTRyVDbIGhMrRMviyaiTGHBbJVC62Appp/fl8o0HFSKJfTwhRSfmLupqt0XE -C1GTbSZ9l04fsryY/dyyuO+E3e/+Q1jxyqrdJI9mhkUY2w4FWmaovScWNbekwhXb -qy6+bsY2ZyuNGjR/S0xFyHw95l5VGiHeyXD+bWg9lYQzIULjX3zTAU6FFYMCFQCu -tNIHrUBezHQxUxsQDgGubSZ90wKCAgAKHL/AbnSnGcoDNw2tDTrfYvQQH1CN8/yx -0X1ryUwzn9BJYCzl6NTaHZx/LSwhSasNRmiSlp95YqhLa31xJDPaHVZH8SDLyCSn -rBWCrKaKT8U3PKl71WUnxttYIyMTyNYh6ef+OP1uxDnOn0asWYinbDEM5E6CrRmW -AoKx0yDgchiyOMGiwCuTN1Z7fx0AL8Y+JZ1ulOJjwd+qBaPIT/tduz5fKzEvfpHy -6seOaRAuj/CNx1svSiCi16nlHZjlFlbzE5+IlX5iOvSEroacGbj7FHmHlRTpdgBo -Ez6uzSV3drPDmsH9jb0nvhy/MAkBrHVOm4jj77613nD/QlO3Ilrox5+O1LuYrU6c -gy5ZEek093QUsazHonjZc+btYIshs4FTWG9gBbZRQbJy0cOlNei0XcwIHOWqJXOJ -LWpV1ZXu2IxLhfbg4Nt02z1CNHTm+VKD8UPyUCk8Mf9SuPUzRXeWMiLE57+8hsUs -BcMvvURRgHZqVaNdO5ktb+i/g0zhEIFaOyfCAwZKNzLyz/JuwosbOruLMW0YCnaO -mj9YvO0MQ+zHcd806n/9t8sig69zU/4wg9lxJrgWvf3LbjwBii143nDcSu3DGaZj -Ti9ZAj19AbUX3PB44m9TDxFwTDTFI+xp8HSVtlWx1Pt2KXbsxD5mP1LEpHpq1GOB -7zLcRL1F1wKCAgEAlikrAItC1I6mHKst1GQLDr9c07OuIJA+GJIJB6Iq/K/CjdUA -Rjv/3L6l4pP33VAZySh6jqMe3Qm9W0ZZ687YSuVWRCsl2yKWAWuqXm8zaEijaHZR -Sa6tygj9EUMZ2zbJEOPihIdWB+fHcwd01KAqUzYZEWZvw7fLZNE2QM0emQai3U1V -3SXYney1qXW9lJ38EjB4LrYzcDFZaNKXidvXo3nI66M1MgI9lAltmRLGAOJmV6bL -KvJEFVpSux5cubXISPQBlAw9Zb15UPc3IAe82jX7ccsI8RHe5xeIepZ0c7xnk+J8 -sFrgBrlN1swki2WfGavQOsV9kZg79rYCB3fOtxRsCBcQOasL295YWtQh5g/dCQWA -JMx+6SVMWwr//0YSu361zJakdFz/vssVVGkaun0bM2YTOYP1ZZp6LyHwIrWEqh9m -d2v2NAX1h4LktrJ8OHgBV/z6/YzFOlsa424Dvl1jnUozK1RDX5/z2FnX1J22hNSY -fx2M8wTD09+xwJyFOzT8g/pjkKvYMgvnWVjvONwvM5nc2OFzuHl9JVvdF5LbSYPO -M/KkRrtg+denjT4/fwp16gGcCsIf+RbEDN1F9rWg5hNPKteVkrMl6suuZZOu7H7E -uZIiEcW3bxXYiN8LLXwS4G6VH+9fsUmSusJZKxhBuRThzehy0n6lfgSRRGICFBi3 -z3tWjm2F6noctsjrVH5d0jRZ ------END DSA PRIVATE KEY----- diff --git a/Sparkle/TestApplication/test_app_only_dsa_pub.pem b/Sparkle/TestApplication/test_app_only_dsa_pub.pem deleted file mode 100755 index 8e54f1b3..00000000 --- a/Sparkle/TestApplication/test_app_only_dsa_pub.pem +++ /dev/null @@ -1,36 +0,0 @@ ------BEGIN PUBLIC KEY----- -MIIGOzCCBC0GByqGSM44BAEwggQgAoICAQC++zm/9VtzqBiWzlacdSZbL2uFSy4C -9/4cC7P1POnrd9vwKeLxqp76qSIvdEq5puX3YEArtXC/gQw5ejMOU09ZlLkRlQFm -6JDu+1AL0SDcLrwpbBuWuFLDPJWdfPy3APvkKJH6g9JkQiI5DzU6T//+LX5NXXuJ -6tsvFgnZJ3XBNFB0t5LuuacvpouRrQ822wW8WW9b0ZuuU0/09loaaslhp2xNXn4X -1dlEWfBlzpyuasij4MBU25yCoF1lQ03QJbP04l8qv8YozD5uVMXZaLEOcYfYUq02 -HtBK5HCW+KhcGNgltfhRXqMmrFl0tQxKb2Jm14LxDfhwVXCs+LPBEE7/xjH+G0U+ -u/IiQPS698w7nl1uSV3SdZ9sdxQlEeNIQ49qE6UccZ6OYtYSwG2n28PjndzMVeLX -0aFH3yARpeZxvA6viAcDVYdOo7BTHouX4AVYbmfJkgoH1LExQFa7TOdWD133CpgA -vT9oFaFcQV7zrFh1F4rPRG+dNHJUNsgaEytEy+LJqJMYcFslULrYCmmn9+XyjQcV -Iol9PCFFJ+Yu6mq3RcQLUZNtJn2XTh+yvJj93LK474Td7/5DWPHKqt0kj2aGRRjb -DgVaZqi9JxY1t6TCFdurLr5uxjZnK40aNH9LTEXIfD3mXlUaId7JcP5taD2VhDMh -QuNffNMBToUVgwIVAK600getQF7MdDFTGxAOAa5tJn3TAoICAAocv8BudKcZygM3 -Da0NOt9i9BAfUI3z/LHRfWvJTDOf0ElgLOXo1NodnH8tLCFJqw1GaJKWn3liqEtr -fXEkM9odVkfxIMvIJKesFYKspopPxTc8qXvVZSfG21gjIxPI1iHp5/44/W7EOc6f -RqxZiKdsMQzkToKtGZYCgrHTIOByGLI4waLAK5M3Vnt/HQAvxj4lnW6U4mPB36oF -o8hP+127Pl8rMS9+kfLqx45pEC6P8I3HWy9KIKLXqeUdmOUWVvMTn4iVfmI69ISu -hpwZuPsUeYeVFOl2AGgTPq7NJXd2s8Oawf2NvSe+HL8wCQGsdU6biOPvvrXecP9C -U7ciWujHn47Uu5itTpyDLlkR6TT3dBSxrMeieNlz5u1giyGzgVNYb2AFtlFBsnLR -w6U16LRdzAgc5aolc4ktalXVle7YjEuF9uDg23TbPUI0dOb5UoPxQ/JQKTwx/1K4 -9TNFd5YyIsTnv7yGxSwFwy+9RFGAdmpVo107mS1v6L+DTOEQgVo7J8IDBko3MvLP -8m7Cixs6u4sxbRgKdo6aP1i87QxD7Mdx3zTqf/23yyKDr3NT/jCD2XEmuBa9/ctu -PAGKLXjecNxK7cMZpmNOL1kCPX0BtRfc8Hjib1MPEXBMNMUj7GnwdJW2VbHU+3Yp -duzEPmY/UsSkemrUY4HvMtxEvUXXA4ICBgACggIBAJYpKwCLQtSOphyrLdRkCw6/ -XNOzriCQPhiSCQeiKvyvwo3VAEY7/9y+peKT991QGckoeo6jHt0JvVtGWevO2Erl -VkQrJdsilgFrql5vM2hIo2h2UUmurcoI/RFDGds2yRDj4oSHVgfnx3MHdNSgKlM2 -GRFmb8O3y2TRNkDNHpkGot1NVd0l2J3stal1vZSd/BIweC62M3AxWWjSl4nb16N5 -yOujNTICPZQJbZkSxgDiZlemyyryRBVaUrseXLm1yEj0AZQMPWW9eVD3NyAHvNo1 -+3HLCPER3ucXiHqWdHO8Z5PifLBa4Aa5TdbMJItlnxmr0DrFfZGYO/a2Agd3zrcU -bAgXEDmrC9veWFrUIeYP3QkFgCTMfuklTFsK//9GErt+tcyWpHRc/77LFVRpGrp9 -GzNmEzmD9WWaei8h8CK1hKofZndr9jQF9YeC5LayfDh4AVf8+v2MxTpbGuNuA75d -Y51KMytUQ1+f89hZ19SdtoTUmH8djPMEw9PfscCchTs0/IP6Y5Cr2DIL51lY7zjc -LzOZ3Njhc7h5fSVb3ReS20mDzjPypEa7YPnXp40+P38KdeoBnArCH/kWxAzdRfa1 -oOYTTyrXlZKzJerLrmWTrux+xLmSIhHFt28V2IjfCy18EuBulR/vX7FJkrrCWSsY -QbkU4c3octJ+pX4EkURi ------END PUBLIC KEY----- diff --git a/Sparkle/TestApplication/th.lproj/InfoPlist.strings b/Sparkle/TestApplication/th.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/th.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/tr.lproj/InfoPlist.strings b/Sparkle/TestApplication/tr.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/tr.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/uk.lproj/InfoPlist.strings b/Sparkle/TestApplication/uk.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/uk.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/zh-Hans.lproj/InfoPlist.strings b/Sparkle/TestApplication/zh-Hans.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/zh-Hans.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/TestApplication/zh-Hant.lproj/InfoPlist.strings b/Sparkle/TestApplication/zh-Hant.lproj/InfoPlist.strings deleted file mode 100755 index e62659a8..00000000 --- a/Sparkle/TestApplication/zh-Hant.lproj/InfoPlist.strings +++ /dev/null @@ -1,3 +0,0 @@ -/* Localized versions of Info.plist keys */ - -NSHumanReadableCopyright = "© Andy Matuschak, 2006"; diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.dmg b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.dmg deleted file mode 100755 index 4b3b011e..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.dmg and /dev/null differ diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.enc.dmg b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.enc.dmg deleted file mode 100755 index c30b4e6a..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.enc.dmg and /dev/null differ diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar deleted file mode 100755 index 5d8bd11d..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar and /dev/null differ diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.bz2 b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.bz2 deleted file mode 100755 index 79ffd4e0..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.bz2 and /dev/null differ diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.gz b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.gz deleted file mode 100755 index 87f12f48..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.gz and /dev/null differ diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.xz b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.xz deleted file mode 100755 index ee145d5a..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.tar.xz and /dev/null differ diff --git a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.zip b/Sparkle/Tests/Resources/SparkleTestCodeSignApp.zip deleted file mode 100755 index 1d3ccb8a..00000000 Binary files a/Sparkle/Tests/Resources/SparkleTestCodeSignApp.zip and /dev/null differ diff --git a/Sparkle/Tests/Resources/signed-test-file.txt b/Sparkle/Tests/Resources/signed-test-file.txt deleted file mode 100755 index 980a0d5f..00000000 --- a/Sparkle/Tests/Resources/signed-test-file.txt +++ /dev/null @@ -1 +0,0 @@ -Hello World! diff --git a/Sparkle/Tests/Resources/test-pubkey.pem b/Sparkle/Tests/Resources/test-pubkey.pem deleted file mode 100755 index cea8b668..00000000 --- a/Sparkle/Tests/Resources/test-pubkey.pem +++ /dev/null @@ -1,36 +0,0 @@ ------BEGIN PUBLIC KEY----- -MIIGOjCCBC0GByqGSM44BAEwggQgAoICAQCHyAu13F9I72JZzN9KgVhrprKnRH7n -dJJP5ZVHaSqm5PbRmHbnT06DGMxloZc8Nd5QWwG6N+5O1I9ZZjnIrc9Qzodho8hM -KNInrfCEy/lTHjydvQvYG2LitbknapgGTf57BWEIYSiAQyP8Gs6lTVZmGrqSJdRC -Kdt29OmFKLhWVn5hm2nx7PCbRT7FzrRyX8jkjCUKSeI/s1j3jpjFT5nGutAsSYNS -Y/ifH1/IRejv9kRUEWM7qEU/ue3C18qCoDsmTSQVh+E1MIBWqeaWWAGrw7JO4cxR -cgR6eeDYp8plTw//e9dSn1u/6ArnQ4QAoZP8Q6MfJMABgg07lltRIQYiXnUNPE4c -xzMQ6kxbKLBi2VyeKm/mQ5oO6PH+59Lw0Q1YhchAXCO171fx2s4W2UGcIjdNbyhs -My5iSEICwXQQgAvTEC08An8aYi5waEpQ1fnnkQcawTgRoBL2gMNsQOkZdERbJr2X -zNJfLwGoDnNJTD8V4FCAeHieOAqmlGsqRc7mKPq2EVW7GH6vzWBJbZc71rmk7EwY -2zvpR9aFam71ivmFgLYwLrRef3vd+AGbIc2WOcIADJ9JIa6HF1gK8LSym/t+/2ws -fQ1FHpjHmYZICJqac1SQ6KZhMz9q35yKqBSaNmiv+mXBg7W6Jfckjg8mGgxvTdL+ -VDRDlK9K6bxClwIVAPd9bTMe17hl3ipR0X6O2UOmt799AoICABPfIvExHzdmJK+G -kx+o28PNNw9ZAte2RxZWm8b0m9MW+jdeWDrhGbbk7nVJn6i6xaaRgJDWuZnKUQbC -0WwjOm9fXnjBmnQhacJu0RGyr/b+akzZ4Y/7N+SBxRjasLVTFd+msQ2NE1PkXps5 -rhJWVMu9R9xp0qR/e+rh/Cax7nSq5UNAqSy9gzHkOhjS7s6UJ1yfCEO5Xfcvb7ND -RpLIeBYbLT3OSkSd6kkFvMtb0Sl/WZ7z88flkdNGbutAcJVQzBcfQIwCuXyOYzUr -8TcIB5j4c19MN9yfkykgemieC0uz/xzgtZt6g6bFfQNONmJ0YGoEPkz1GftI6dx/ -324vh4KhLfBjKDKFB8Pt9JKI9nQA7P10GlwWeA+IpSTzjlJq3x35u220K7tc/5xr -TDMEftBemn/dvb/bJ9h+iSciZ7EcnN2RXB7SfykUAohE9DdEUlmjip6DYLP+hSN2 -oHiVmDVjv3XEGYQfATuxQmwcveHTYZmPId8XF2wkGiy6w0BY0NN+4oEuZga4YvEK -3MVF2VEzM0onFzNgszwb+KaUfcA+eycthidca+sJzmOGAMWCx/vydNryMcWVXABF -IRxbZVaXHCWf1RhAf0jcsiz9+JIuScAB2J26Oy2shPGOmesvuUHeUTqzvEJ2G77j -k9Mps+1fbzySKX3PQEwA/qQ11qT6A4ICBQACggIAbDXVjXtIxAM4TSt9FSep+H1j -yRoEXgisf5Q6eU6I7Wf6kAoW6bHw76S/OHgcMBYX7Z42kbVbna/rIAVfHnfrAaZY -ygYVqbxTKdhi0c8IxR2qyF9Z5UK68C/EP0SHjHJrFRAnYgwkqvJXbemHFB4c0Ds1 -iIL47Kas8o/WvLpT1VzlHXFyFKvRxNMdeJsy8/LBSrQpRUiKcJFM2lg+O8cNWsRd -kHTeWnjLrZT2rpPUIkSQZdbR16VBI8nS4pYpzdZ/N2zy+2S5dup7jMNtnLbXVT3X -AjSjiYHRZPQUnX0pG3qA0BzDuA0U3MdBs8Wf7YhGd8XLbAfdo5zPSM9GimJrGH0s -q4XKLHAEXUPfSuDGOdG8l990MujcRrewocwX5La1X/Nc4TDClCPUOVbf1aqy7LXY -TB1M+nHvTb5HhtIrZYSHmsdpWlcLj5mYde/nvFXmNu3RNVCLhMzQDV9S/U1hqNcH -m/BX2VTJ0xqhFIlA5UVrKZpnAEISKcFjwmZo7GuA1ENw2vhuvswjfYQ3OMfEr258 -0b1tKNMWrkbCgHdALjT/VdRUtte7RyGvsMccUHu6MHPowFRxbT3lWUqj1LKdZYnT -uERL4E1J2VIP1/x2upPPWl/wbQjxplsRQrSY+cQCfWM22Wtilouh+CdEc+1DNKs/ -bKZWFUcty/GYmXtxTTk= ------END PUBLIC KEY----- diff --git a/Sparkle/Tests/Resources/test.sparkle_guided.pkg b/Sparkle/Tests/Resources/test.sparkle_guided.pkg deleted file mode 100755 index f4933a80..00000000 Binary files a/Sparkle/Tests/Resources/test.sparkle_guided.pkg and /dev/null differ diff --git a/Sparkle/Tests/Resources/testappcast.xml b/Sparkle/Tests/Resources/testappcast.xml deleted file mode 100755 index e3894b41..00000000 --- a/Sparkle/Tests/Resources/testappcast.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - For unit test only - - Version 2.0 - desc - Sat, 26 Jul 2014 15:20:11 +0000 - - - - - Version 3.0 - - - - - - - - - - Version 4.0 - Sat, 26 Jul 2014 15:20:13 +0000 - - 17.0.0 - - - - Version 5.0 - - 2.0.0 - - - diff --git a/Sparkle/Tests/Resources/testnamespaces.xml b/Sparkle/Tests/Resources/testnamespaces.xml deleted file mode 100755 index 94f5f1de..00000000 --- a/Sparkle/Tests/Resources/testnamespaces.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - For unit test only - - Version 3.0 - Sat, 26 Jul 2014 15:20:12 +0000 - https://sparkle-project.org/#works - - - - Version 2.0 - desc - Sat, 26 Jul 2014 15:20:11 +0000 - - - - diff --git a/Sparkle/Tests/SUAppcastTest.swift b/Sparkle/Tests/SUAppcastTest.swift deleted file mode 100755 index c5250a60..00000000 --- a/Sparkle/Tests/SUAppcastTest.swift +++ /dev/null @@ -1,87 +0,0 @@ -// -// SUAppcastTest.swift -// Sparkle -// -// Created by Kornel on 17/02/2016. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -import XCTest -import Sparkle; - -class SUAppcastTest: XCTestCase { - - func testParseAppcast() { - let appcast = SUAppcast(); - let testFile = Bundle(for: SUAppcastTest.self).path(forResource: "testappcast", ofType: "xml")!; - let testFileUrl = URL(fileURLWithPath: testFile); - XCTAssertNotNil(testFileUrl); - - do { - let items = try appcast.parseAppcastItems(fromXMLFile: testFileUrl) as! [SUAppcastItem]; - - XCTAssertEqual(4, items.count); - - XCTAssertEqual("Version 2.0", items[0].title); - XCTAssertEqual("desc", items[0].itemDescription); - XCTAssertEqual("Sat, 26 Jul 2014 15:20:11 +0000", items[0].dateString) - - // This is the best release matching our system version - XCTAssertEqual("Version 3.0", items[1].title); - XCTAssertNil(items[1].itemDescription); - XCTAssertNil(items[1].dateString) - - XCTAssertEqual("Version 4.0", items[2].title); - XCTAssertNil(items[2].itemDescription); - XCTAssertEqual("Sat, 26 Jul 2014 15:20:13 +0000", items[2].dateString) - - XCTAssertEqual("Version 5.0", items[3].title); - XCTAssertNil(items[3].itemDescription); - XCTAssertNil(items[3].dateString) - - // Test best appcast item & a delta update item - var deltaItem: SUAppcastItem? = nil - let bestAppcastItem = SUBasicUpdateDriver.bestItem(fromAppcastItems: items, getDeltaItem: &deltaItem, withHostVersion: "1.0", comparator: SUStandardVersionComparator.default()) - - XCTAssertEqual(bestAppcastItem, items[1]) - XCTAssertEqual(deltaItem!.fileURL.lastPathComponent, "3.0_from_1.0.patch") - - // Test latest delta update item available - var latestDeltaItem: SUAppcastItem? = nil - SUBasicUpdateDriver.bestItem(fromAppcastItems: items, getDeltaItem: &latestDeltaItem, withHostVersion: "2.0", comparator: SUStandardVersionComparator.default()) - - XCTAssertEqual(latestDeltaItem!.fileURL.lastPathComponent, "3.0_from_2.0.patch") - - // Test a delta item that does not exist - var nonexistantDeltaItem: SUAppcastItem? = nil - SUBasicUpdateDriver.bestItem(fromAppcastItems: items, getDeltaItem: &nonexistantDeltaItem, withHostVersion: "2.1", comparator: SUStandardVersionComparator.default()) - - XCTAssertNil(nonexistantDeltaItem) - } catch let err as NSError { - NSLog("%@", err); - XCTFail(err.localizedDescription); - } - } - - func testNamespaces() { - let appcast = SUAppcast(); - let testFile = Bundle(for: SUAppcastTest.self).path(forResource: "testnamespaces", ofType: "xml")!; - let testFileUrl = URL(fileURLWithPath: testFile); - XCTAssertNotNil(testFileUrl); - - do { - let items = try appcast.parseAppcastItems(fromXMLFile: testFileUrl) as! [SUAppcastItem]; - - XCTAssertEqual(2, items.count); - - XCTAssertEqual("Version 2.0", items[1].title); - XCTAssertEqual("desc", items[1].itemDescription); - XCTAssertNotNil(items[0].releaseNotesURL); - XCTAssertEqual("https://sparkle-project.org/#works", items[0].releaseNotesURL!.absoluteString); - } catch let err as NSError { - NSLog("%@", err); - XCTFail(err.localizedDescription); - } - } - -} diff --git a/Sparkle/Tests/SUBinaryDeltaTest.m b/Sparkle/Tests/SUBinaryDeltaTest.m deleted file mode 100755 index 550f55e3..00000000 --- a/Sparkle/Tests/SUBinaryDeltaTest.m +++ /dev/null @@ -1,967 +0,0 @@ -// -// SUBinaryDeltaTest.m -// Sparkle -// -// Created by Jake Petroules on 2014-08-22. -// Copyright (c) 2014 Sparkle Project. All rights reserved. -// - -#import -#import -#import "SUBinaryDeltaCommon.h" -#import "SUBinaryDeltaCreate.h" -#import "SUBinaryDeltaApply.h" -#import -#include - -@interface SUBinaryDeltaTest : XCTestCase - -@end - -typedef void (^SUDeltaHandler)(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory); - -@implementation SUBinaryDeltaTest - -- (void)testTemporaryDirectory -{ - NSString *tmp1 = temporaryDirectory(@"Sparkle"); - NSString *tmp2 = temporaryDirectory(@"Sparkle"); - NSLog(@"Temporary directories: %@, %@", tmp1, tmp2); - XCTAssertNotEqualObjects(tmp1, tmp2); - XCTAssert(YES, @"Pass"); -} - -- (void)testTemporaryFile -{ - NSString *tmp1 = temporaryFilename(@"Sparkle"); - NSString *tmp2 = temporaryFilename(@"Sparkle"); - NSLog(@"Temporary files: %@, %@", tmp1, tmp2); - XCTAssertNotEqualObjects(tmp1, tmp2); - XCTAssert(YES, @"Pass"); -} - -- (BOOL)createAndApplyPatchUsingVersion:(SUBinaryDeltaMajorVersion)majorVersion beforeDiffHandler:(SUDeltaHandler)beforeDiffHandler afterDiffHandler:(SUDeltaHandler)afterDiffHandler -{ - NSString *sourceDirectory = temporaryDirectory(@"Sparkle_temp1"); - NSString *destinationDirectory = temporaryDirectory(@"Sparkle_temp2"); - - NSString *diffFile = temporaryFilename(@"Sparkle_diff"); - NSString *patchDirectory = temporaryDirectory(@"Sparkle_patch"); - - XCTAssertNotNil(sourceDirectory); - XCTAssertNotNil(destinationDirectory); - XCTAssertNotNil(diffFile); - - NSFileManager *fileManager = [[NSFileManager alloc] init]; - - if (beforeDiffHandler != nil) { - beforeDiffHandler(fileManager, sourceDirectory, destinationDirectory); - } - - NSError *createDiffError = nil; - BOOL createdDiff = createBinaryDelta(sourceDirectory, destinationDirectory, diffFile, majorVersion, NO, &createDiffError); - if (!createdDiff) { - NSLog(@"Creating binary diff failed with error: %@", createDiffError); - } else if (afterDiffHandler != nil) { - afterDiffHandler(fileManager, sourceDirectory, destinationDirectory); - } - - NSError *applyDiffError = nil; - BOOL appliedDiff = NO; - if (createdDiff) { - if (applyBinaryDelta(sourceDirectory, patchDirectory, diffFile, NO, &applyDiffError)) { - appliedDiff = YES; - } else { - NSLog(@"Applying binary diff failed with error: %@", applyDiffError); - } - } - - XCTAssertTrue([fileManager removeItemAtPath:sourceDirectory error:nil]); - XCTAssertTrue([fileManager removeItemAtPath:destinationDirectory error:nil]); - XCTAssertTrue([fileManager removeItemAtPath:patchDirectory error:nil]); - XCTAssertTrue([fileManager removeItemAtPath:diffFile error:nil]); - - return appliedDiff; -} - -- (BOOL)createAndApplyPatchWithBeforeDiffHandler:(SUDeltaHandler)beforeDiffHandler afterDiffHandler:(SUDeltaHandler)afterDiffHandler -{ - return [self createAndApplyPatchUsingVersion:LATEST_DELTA_DIFF_MAJOR_VERSION beforeDiffHandler:beforeDiffHandler afterDiffHandler:afterDiffHandler]; -} - -- (void)createAndApplyPatchWithHandler:(SUDeltaHandler)handler -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:handler afterDiffHandler:nil]; - XCTAssertTrue(success); -} - -- (BOOL)testDirectoryHashEqualityWithSource:(NSString *)source destination:(NSString *)destination -{ - XCTAssertNotNil(source); - XCTAssertNotNil(destination); - - NSString *beforeHash = hashOfTree(source); - NSString *afterHash = hashOfTree(destination); - - XCTAssertNotNil(beforeHash); - XCTAssertNotNil(afterHash); - - return [beforeHash isEqualToString:afterHash]; -} - -- (void)testNoFilesDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - XCTAssertTrue([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testEmptyDataDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSData *emptyData = [NSData data]; - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([emptyData writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([emptyData writeToFile:destinationFile atomically:YES]); - - XCTAssertTrue([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testDifferentlyNamedEmptyDataDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSData *emptyData = [NSData data]; - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - XCTAssertTrue([emptyData writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([emptyData writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testEmptyDirectoryDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - if (![fileManager createDirectoryAtPath:destinationFile withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - XCTAssertTrue([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testDifferentlyNamedEmptyDirectoryDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - if (![fileManager createDirectoryAtPath:destinationFile withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testSameNonexistantSymlinkDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:sourceFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Failed creating empty symlink with error: %@", error); - XCTFail("Failed to create empty symlink"); - } - - if (![fileManager createSymbolicLinkAtPath:destinationFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Failed creating empty symlink with error: %@", error); - XCTFail("Failed to create empty symlink"); - } - - XCTAssertTrue([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testDifferentNonexistantSymlinkDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:sourceFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Failed creating empty symlink with error: %@", error); - XCTFail("Failed to create empty symlink"); - } - - if (![fileManager createSymbolicLinkAtPath:destinationFile withDestinationPath:@"C" error:&error]) { - NSLog(@"Failed creating empty symlink with error: %@", error); - XCTFail("Failed to create empty symlink"); - } - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testNonexistantSymlinkPermissionDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:sourceFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Failed creating empty symlink to source with error: %@", error); - XCTFail("Failed to create empty symlink"); - } - - if (![fileManager createSymbolicLinkAtPath:destinationFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Failed creating empty symlink to destination with error: %@", error); - XCTFail("Failed to create empty symlink"); - } - - if (lchmod([sourceFile fileSystemRepresentation], 0777) != 0) { - NSLog(@"Change Permission Error.."); - XCTFail(@"Failed setting file permissions"); - } - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testSmallDataDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testInvalidSource -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - } afterDiffHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *__unused destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData dataWithBytes:"testt" length:5] writeToFile:sourceFile atomically:YES]); - }]; - XCTAssertFalse(success); -} - -- (NSData *)bigData1 -{ - const size_t bufferSize = 4096*10; - uint8_t *buffer = calloc(1, bufferSize); - XCTAssertTrue(buffer != NULL); - - return [NSData dataWithBytesNoCopy:buffer length:bufferSize]; -} - -- (NSData *)bigData2 -{ - const size_t bufferSize = 4096*10; - uint8_t *buffer = calloc(1, bufferSize); - XCTAssertTrue(buffer != NULL); - - for (size_t bufferIndex = 0; bufferIndex < bufferSize; ++bufferIndex) { - buffer[bufferIndex] = 1; - } - - return [NSData dataWithBytesNoCopy:buffer length:bufferSize]; -} - -- (void)testBigDataSameDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[self bigData1] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[self bigData1] writeToFile:destinationFile atomically:YES]); - - XCTAssertTrue([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testBigDataDifferentDiff -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[self bigData1] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[self bigData2] writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testRegularFileAdded -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"lol" length:3] writeToFile:destinationFile2 atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -// Make sure old version patches still work for simple cases -- (void)testRegularFileAddedWithAzureVersion -{ - XCTAssertTrue([self createAndApplyPatchUsingVersion:SUAzureMajorVersion beforeDiffHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"lol" length:3] writeToFile:destinationFile2 atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - } afterDiffHandler:nil]); -} - -- (void)testDirectoryAdded -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - NSString *destinationFile3 = [destinationFile2 stringByAppendingPathComponent:@"C"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile1 atomically:YES]); - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:destinationFile2 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - XCTAssertTrue([[self bigData2] writeToFile:destinationFile3 atomically:YES]); - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testRegularFileRemoved -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"lol" length:3] writeToFile:sourceFile2 atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testDirectoryRemoved -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceDirectory stringByAppendingPathComponent:@"B"]; - NSString *sourceFile3 = [sourceFile2 stringByAppendingPathComponent:@"C"]; - - XCTAssertTrue([[NSData data] writeToFile:destinationFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:sourceFile1 atomically:YES]); - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile2 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - XCTAssertTrue([[self bigData2] writeToFile:sourceFile3 atomically:YES]); - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testRegularFileMove -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - XCTAssertTrue([data writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testCaseSensitiveRegularFileMove -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceDirectory stringByAppendingPathComponent:@"b"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"a"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - - XCTAssertTrue([data writeToFile:sourceFile1 atomically:YES]); - XCTAssertTrue([data writeToFile:sourceFile2 atomically:YES]); - - XCTAssertTrue([data writeToFile:destinationFile1 atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile2 atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testRemovingSymlink -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:sourceFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Error in creating symlink: %@", error); - XCTFail(@"Failed to create symlink"); - } - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testAddingSymlink -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:destinationFile withDestinationPath:@"B" error:&error]) { - NSLog(@"Error in creating symlink: %@", error); - XCTFail(@"Failed to create symlink"); - } - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testSmallFilePermissionChangeWithNoContentChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - XCTAssertTrue([data writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile atomically:YES]); - - NSError *error = nil; - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0755} ofItemAtPath:destinationFile error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testBigFilePermissionChangeWithNoContentChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSData *data = [self bigData1]; - XCTAssertTrue([data writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile atomically:YES]); - - NSError *error = nil; - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0755} ofItemAtPath:destinationFile error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testSmallFilePermissionChangeWithContentChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:@"lawl" length:4] writeToFile:destinationFile atomically:YES]); - - NSError *error = nil; - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0755} ofItemAtPath:destinationFile error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testBigFilePermissionChangeWithContentChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[self bigData1] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[self bigData2] writeToFile:destinationFile atomically:YES]); - - NSError *error = nil; - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0755} ofItemAtPath:destinationFile error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testDirectoryPermissionChangeWithContentChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceFile1 stringByAppendingPathComponent:@"B"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationFile1 stringByAppendingPathComponent:@"B"]; - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile1 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - if (![fileManager createDirectoryAtPath:destinationFile1 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - XCTAssertTrue([[self bigData1] writeToFile:sourceFile2 atomically:YES]); - XCTAssertTrue([[self bigData1] writeToFile:destinationFile2 atomically:YES]); - - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0766} ofItemAtPath:sourceFile1 error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0755} ofItemAtPath:destinationFile1 error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testInvalidPermissionsInAfterTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - XCTAssertTrue([data writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile atomically:YES]); - - NSError *error = nil; - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0777} ofItemAtPath:destinationFile error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - } afterDiffHandler:nil]; - XCTAssertFalse(success); -} - -- (void)testBadPermissionsInBeforeTree -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - XCTAssertTrue([data writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile atomically:YES]); - - NSError *error = nil; - if (![fileManager setAttributes:@{NSFilePosixPermissions : @0777} ofItemAtPath:sourceFile error:&error]) { - NSLog(@"Change Permission Error: %@", error); - XCTFail(@"Failed setting file permissions"); - } - - // This would fail for version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testInvalidRegularFileWithACLInBeforeTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString * __unused destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:sourceFile atomically:YES]); - - acl_t acl = acl_init(1); - - acl_entry_t entry; - XCTAssertEqual(0, acl_create_entry(&acl, &entry)); - - acl_permset_t permset; - XCTAssertEqual(0, acl_get_permset(entry, &permset)); - - XCTAssertEqual(0, acl_add_perm(permset, ACL_SEARCH)); - - XCTAssertEqual(0, acl_set_link_np([sourceFile fileSystemRepresentation], ACL_TYPE_EXTENDED, acl)); - - XCTAssertEqual(0, acl_free(acl)); - } afterDiffHandler:nil]; - - XCTAssertFalse(success); -} - -- (void)testInvalidRegularFileWithACLInAfterTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *__unused fileManager, NSString *__unused sourceDirectory, NSString *destinationDirectory) { - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - - acl_t acl = acl_init(1); - - acl_entry_t entry; - XCTAssertEqual(0, acl_create_entry(&acl, &entry)); - - acl_permset_t permset; - XCTAssertEqual(0, acl_get_permset(entry, &permset)); - - XCTAssertEqual(0, acl_add_perm(permset, ACL_SEARCH)); - - XCTAssertEqual(0, acl_set_link_np([destinationFile fileSystemRepresentation], ACL_TYPE_EXTENDED, acl)); - - XCTAssertEqual(0, acl_free(acl)); - - } afterDiffHandler:nil]; - - XCTAssertFalse(success); -} - -- (void)testInvalidDirectoryWithACLInBeforeTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString * __unused destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([fileManager createDirectoryAtPath:sourceFile withIntermediateDirectories:NO attributes:nil error:nil]); - - acl_t acl = acl_init(1); - - acl_entry_t entry; - XCTAssertEqual(0, acl_create_entry(&acl, &entry)); - - acl_permset_t permset; - XCTAssertEqual(0, acl_get_permset(entry, &permset)); - - XCTAssertEqual(0, acl_add_perm(permset, ACL_SEARCH)); - - XCTAssertEqual(0, acl_set_link_np([sourceFile fileSystemRepresentation], ACL_TYPE_EXTENDED, acl)); - - XCTAssertEqual(0, acl_free(acl)); - } afterDiffHandler:nil]; - - XCTAssertFalse(success); -} - -- (void)testInvalidDirectoryWithACLInAfterTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *fileManager, NSString * __unused sourceDirectory, NSString *destinationDirectory) { - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([fileManager createDirectoryAtPath:destinationFile withIntermediateDirectories:NO attributes:nil error:nil]); - - acl_t acl = acl_init(1); - - acl_entry_t entry; - XCTAssertEqual(0, acl_create_entry(&acl, &entry)); - - acl_permset_t permset; - XCTAssertEqual(0, acl_get_permset(entry, &permset)); - - XCTAssertEqual(0, acl_add_perm(permset, ACL_SEARCH)); - - XCTAssertEqual(0, acl_set_link_np([destinationFile fileSystemRepresentation], ACL_TYPE_EXTENDED, acl)); - - XCTAssertEqual(0, acl_free(acl)); - } afterDiffHandler:nil]; - - XCTAssertFalse(success); -} - -- (void)testRegularFileToSymlinkChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceDirectory stringByAppendingPathComponent:@"B"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - NSData *data = [NSData dataWithBytes:"A" length:1]; - - XCTAssertTrue([data writeToFile:sourceFile1 atomically:YES]); - XCTAssertTrue([data writeToFile:sourceFile2 atomically:YES]); - - XCTAssertTrue([data writeToFile:destinationFile1 atomically:YES]); - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:destinationFile2 withDestinationPath:@"A" error:&error]) { - NSLog(@"Error in creating symlink: %@", error); - XCTFail(@"Failed to create symlink"); - } - - // This would fail with version 1.0 - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testSymlinkToRegularFileChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceDirectory stringByAppendingPathComponent:@"B"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"B"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - - XCTAssertTrue([data writeToFile:sourceFile1 atomically:YES]); - - XCTAssertTrue([data writeToFile:destinationFile1 atomically:YES]); - XCTAssertTrue([data writeToFile:destinationFile2 atomically:YES]); - - NSError *error = nil; - if (![fileManager createSymbolicLinkAtPath:sourceFile2 withDestinationPath:@"A" error:&error]) { - NSLog(@"Error in creating symlink: %@", error); - XCTFail(@"Failed to create symlink"); - } - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testRegularFileToDirectoryChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - XCTAssertTrue([data writeToFile:sourceFile atomically:YES]); - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:destinationFile withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testDirectoryToRegularFileChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory"); - } - - NSData *data = [NSData dataWithBytes:"loltest" length:7]; - XCTAssertTrue([data writeToFile:destinationFile atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -// See issue #514 for more info -- (void)testDirectoryToSymlinkChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceDirectory stringByAppendingPathComponent:@"Current"]; - NSString *sourceFile3 = [sourceFile2 stringByAppendingPathComponent:@"B"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationFile1 stringByAppendingPathComponent:@"B"]; - NSString *destinationFile3 = [destinationDirectory stringByAppendingPathComponent:@"Current"]; - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile1 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory A in source"); - } - - if (![fileManager createDirectoryAtPath:sourceFile2 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory Current in source"); - } - - if (![fileManager createDirectoryAtPath:destinationFile1 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory A in destination"); - } - - if (![fileManager createSymbolicLinkAtPath:destinationFile3 withDestinationPath:@"A/" error:&error]) { - NSLog(@"Error in creating symlink: %@", error); - XCTFail(@"Failed to create symlink"); - } - - XCTAssertTrue([[self bigData1] writeToFile:sourceFile3 atomically:YES]); - XCTAssertTrue([[self bigData1] writeToFile:destinationFile2 atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -// Opposite of the test method testDirectoryToSymlinkChange -- (void)testSymlinkToDirectoryChange -{ - [self createAndApplyPatchWithHandler:^(NSFileManager *fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile1 = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *sourceFile2 = [sourceFile1 stringByAppendingPathComponent:@"B"]; - NSString *sourceFile3 = [sourceDirectory stringByAppendingPathComponent:@"Current"]; - - NSString *destinationFile1 = [destinationDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile2 = [destinationDirectory stringByAppendingPathComponent:@"Current"]; - NSString *destinationFile3 = [destinationFile2 stringByAppendingPathComponent:@"B"]; - - NSError *error = nil; - if (![fileManager createDirectoryAtPath:sourceFile1 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory A in source"); - } - - if (![fileManager createDirectoryAtPath:destinationFile1 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory A in destination"); - } - - if (![fileManager createDirectoryAtPath:destinationFile2 withIntermediateDirectories:NO attributes:nil error:&error]) { - NSLog(@"Failed creating directory with error: %@", error); - XCTFail("Failed to create directory Current in destination"); - } - - if (![fileManager createSymbolicLinkAtPath:sourceFile3 withDestinationPath:@"A/" error:&error]) { - NSLog(@"Error in creating symlink: %@", error); - XCTFail(@"Failed to create symlink"); - } - - XCTAssertTrue([[self bigData1] writeToFile:sourceFile2 atomically:YES]); - XCTAssertTrue([[self bigData1] writeToFile:destinationFile3 atomically:YES]); - - XCTAssertFalse([self testDirectoryHashEqualityWithSource:sourceDirectory destination:destinationDirectory]); - }]; -} - -- (void)testInvalidCodeSignatureExtendedAttributeInBeforeTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - - // the actual data doesn't matter for testing purposes - const char xattrValue[] = "hello"; - - XCTAssertEqual(0, setxattr([sourceFile fileSystemRepresentation], APPLE_CODE_SIGN_XATTR_CODE_DIRECTORY_KEY, xattrValue, sizeof(xattrValue), 0, XATTR_CREATE)); - XCTAssertEqual(0, setxattr([sourceFile fileSystemRepresentation], APPLE_CODE_SIGN_XATTR_CODE_REQUIREMENTS_KEY, xattrValue, sizeof(xattrValue), 0, XATTR_CREATE)); - XCTAssertEqual(0, setxattr([sourceFile fileSystemRepresentation], APPLE_CODE_SIGN_XATTR_CODE_SIGNATURE_KEY, xattrValue, sizeof(xattrValue), 0, XATTR_CREATE)); - } afterDiffHandler:nil]; - XCTAssertFalse(success); -} - -- (void)testInvalidCodeSignatureExtendedAttributeInAfterTree -{ - BOOL success = [self createAndApplyPatchWithBeforeDiffHandler:^(NSFileManager *__unused fileManager, NSString *sourceDirectory, NSString *destinationDirectory) { - NSString *sourceFile = [sourceDirectory stringByAppendingPathComponent:@"A"]; - NSString *destinationFile = [destinationDirectory stringByAppendingPathComponent:@"A"]; - - XCTAssertTrue([[NSData data] writeToFile:sourceFile atomically:YES]); - XCTAssertTrue([[NSData dataWithBytes:"loltest" length:7] writeToFile:destinationFile atomically:YES]); - - // the actual data doesn't matter for testing purposes - const char xattrValue[] = "hello"; - - XCTAssertEqual(0, setxattr([destinationFile fileSystemRepresentation], APPLE_CODE_SIGN_XATTR_CODE_DIRECTORY_KEY, xattrValue, sizeof(xattrValue), 0, XATTR_CREATE)); - XCTAssertEqual(0, setxattr([destinationFile fileSystemRepresentation], APPLE_CODE_SIGN_XATTR_CODE_REQUIREMENTS_KEY, xattrValue, sizeof(xattrValue), 0, XATTR_CREATE)); - XCTAssertEqual(0, setxattr([destinationFile fileSystemRepresentation], APPLE_CODE_SIGN_XATTR_CODE_SIGNATURE_KEY, xattrValue, sizeof(xattrValue), 0, XATTR_CREATE)); - } afterDiffHandler:nil]; - XCTAssertFalse(success); -} - -@end diff --git a/Sparkle/Tests/SUCodeSigningVerifierTest.m b/Sparkle/Tests/SUCodeSigningVerifierTest.m deleted file mode 100755 index 918b0550..00000000 --- a/Sparkle/Tests/SUCodeSigningVerifierTest.m +++ /dev/null @@ -1,248 +0,0 @@ -// -// SUCodeSigningVerifierTest.m -// Sparkle -// -// Created by Isaac Wankerl on 04/13/2015. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import -#import -#import "SUCodeSigningVerifier.h" -#import "SUFileManager.h" - -#define CALCULATOR_PATH @"/Applications/Calculator.app" - -@interface SUCodeSigningVerifierTest : XCTestCase - -@property (copy) NSURL *notSignedAppURL; -@property (copy) NSURL *validSignedAppURL; -@property (copy) NSURL *invalidSignedAppURL; -@property (copy) NSURL *calculatorCopyURL; - -@end - -@implementation SUCodeSigningVerifierTest - -@synthesize notSignedAppURL = _notSignedAppURL; -@synthesize validSignedAppURL = _validSignedAppURL; -@synthesize invalidSignedAppURL = _invalidSignedAppURL; -@synthesize calculatorCopyURL = _calculatorCopyURL; - -- (void)setUp -{ - [super setUp]; - - NSBundle *unitTestBundle = [NSBundle bundleForClass:[self class]]; - NSString *unitTestBundleIdentifier = unitTestBundle.bundleIdentifier; - NSString *zippedAppURL = [unitTestBundle pathForResource:@"SparkleTestCodeSignApp" ofType:@"zip"]; - - SUFileManager *fileManager = [SUFileManager defaultManager]; - - NSError *tempError = nil; - NSURL *tempDir = [fileManager makeTemporaryDirectoryWithPreferredName:unitTestBundleIdentifier appropriateForDirectoryURL:[NSURL fileURLWithPath:zippedAppURL] error:&tempError]; - - if (tempDir == nil) { - XCTFail(@"Failed to create temporary directory with error: %@", tempError); - return; - } - - NSError *error = nil; - if ([[NSFileManager defaultManager] createDirectoryAtURL:tempDir withIntermediateDirectories:YES attributes:nil error:&error]) { - if ([self unzip:zippedAppURL toPath:tempDir.path]) { - self.notSignedAppURL = [tempDir URLByAppendingPathComponent:@"SparkleTestCodeSignApp.app"]; - [self setupValidSignedApp]; - [self setupCalculatorCopy]; - [self setupInvalidSignedApp]; - } - else { - NSLog(@"Failed to unzip %@", zippedAppURL); - } - } - else { - NSLog(@"Failed to created dir %@ with error %@", tempDir, error); - } -} - -- (void)tearDown -{ - [super tearDown]; - - if (self.notSignedAppURL) { - NSURL *tempDir = [self.notSignedAppURL URLByDeletingLastPathComponent]; - [[NSFileManager defaultManager] removeItemAtURL:tempDir error:nil]; - } -} - -- (void)setupValidSignedApp -{ - NSError *error = nil; - NSURL *tempDir = [self.notSignedAppURL URLByDeletingLastPathComponent]; - NSURL *signedAndValid = [tempDir URLByAppendingPathComponent:@"valid-signed.app"]; - - [[NSFileManager defaultManager] removeItemAtURL:signedAndValid error:NULL]; - if (![[NSFileManager defaultManager] copyItemAtURL:self.notSignedAppURL toURL:signedAndValid error:&error]) { - XCTFail("Failed to copy %@ to %@ with error: %@", self.notSignedAppURL, signedAndValid, error); - } - - self.validSignedAppURL = signedAndValid; - - if (![self codesignAppURL:self.validSignedAppURL]) { - XCTFail(@"Failed to codesign %@", self.validSignedAppURL); - } -} - -- (void)setupCalculatorCopy -{ - NSURL *tempDir = [self.notSignedAppURL URLByDeletingLastPathComponent]; - NSURL *calculatorCopy = [tempDir URLByAppendingPathComponent:@"calc.app"]; - - [[NSFileManager defaultManager] removeItemAtURL:calculatorCopy error:NULL]; - - // Make a copy of the signed calculator app so we can match signatures later - // Matching signatures on ad-hoc signed apps does *not* work - NSError *copyError = nil; - // Don't check the return value of this operation - seems like on 10.11 the API can say it fails even though the operation really succeeds, - // which sounds like some kind of (SIP / attribute?) bug - [[NSFileManager defaultManager] copyItemAtURL:[NSURL fileURLWithPath:CALCULATOR_PATH] toURL:calculatorCopy error:©Error]; - - if (![calculatorCopy checkResourceIsReachableAndReturnError:nil]) { - XCTFail(@"Copied calculator application does not exist"); - } - - // Alter the signed copy slightly, this won't invalidate signature matching (although it will invalidate the integrity part of the signature) - // Which is what we want. If a user alters an app bundle, we should still be able to update as long as its identity is still valid - NSError *removeError = nil; - NSURL *calculatorPkgInfo = [[calculatorCopy URLByAppendingPathComponent:@"Contents"] URLByAppendingPathComponent:@"PkgInfo"]; - XCTAssertNotNil(calculatorPkgInfo); - if (![[NSFileManager defaultManager] removeItemAtURL:calculatorPkgInfo error:&removeError]) { - XCTFail(@"Failed to remove file in calculator copy with error: %@", removeError); - } - - self.calculatorCopyURL = calculatorCopy; -} - -- (void)setupInvalidSignedApp -{ - NSError *error = nil; - NSURL *tempDir = [self.notSignedAppURL URLByDeletingLastPathComponent]; - NSURL *signedAndInvalid = [tempDir URLByAppendingPathComponent:@"invalid-signed.app"]; - - [[NSFileManager defaultManager] removeItemAtURL:signedAndInvalid error:NULL]; - if ([[NSFileManager defaultManager] copyItemAtURL:self.notSignedAppURL toURL:signedAndInvalid error:&error]) { - self.invalidSignedAppURL = signedAndInvalid; - if ([self codesignAppURL:self.invalidSignedAppURL]) { - NSURL *fileInAppBundleToRemove = [self.invalidSignedAppURL URLByAppendingPathComponent:@"Contents/Resources/test_app_only_dsa_pub.pem"]; - if (![[NSFileManager defaultManager] removeItemAtURL:fileInAppBundleToRemove error:&error]) { - NSLog(@"Failed to remove %@ with error %@", fileInAppBundleToRemove, error); - } - } - else { - NSLog(@"Failed to codesign %@", self.invalidSignedAppURL); - } - } - else { - NSLog(@"Failed to copy %@ to %@ with error %@", self.notSignedAppURL, signedAndInvalid, error); - } -} - -- (BOOL)unzip:(NSString *)zipPath toPath:(NSString *)destPath -{ - BOOL success = NO; - @try - { - NSTask *task = [[NSTask alloc] init]; - task.launchPath = @"/usr/bin/unzip"; - task.currentDirectoryPath = destPath; - task.arguments = @[zipPath]; - - [task launch]; - [task waitUntilExit]; - success = (task.terminationStatus == 0); - } - @catch (NSException *exception) - { - NSLog(@"exception: %@", exception); - } - return success; -} - -- (BOOL)codesignAppURL:(NSURL *)appPath -{ - BOOL success = NO; - @try - { - // ad-hoc signing with the dash - NSArray *arguments = @[ @"--force", @"--deep", @"--sign", @"-", appPath ]; - NSTask *task = [NSTask launchedTaskWithLaunchPath:@"/usr/bin/codesign" arguments:arguments]; - [task waitUntilExit]; - success = (task.terminationStatus == 0); - } - @catch (NSException *exception) - { - NSLog(@"exception: %@", exception); - } - return success; -} - -- (void)testUnsignedApp -{ - XCTAssertFalse([SUCodeSigningVerifier bundleAtURLIsCodeSigned:self.notSignedAppURL], @"App not expected to be code signed"); - - NSError *error = nil; - XCTAssertFalse([SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:self.notSignedAppURL error:&error], @"signature should not be valid as it's not code signed"); - XCTAssertNotNil(error, @"error should not be nil"); -} - -- (void)testValidSignedApp -{ - XCTAssertTrue([SUCodeSigningVerifier bundleAtURLIsCodeSigned:self.validSignedAppURL], @"App expected to be code signed"); - - NSError *error = nil; - XCTAssertTrue([SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:self.validSignedAppURL error:&error], @"signature should be valid"); - XCTAssertNil(error, @"error should be nil"); -} - -- (void)testValidSignedCalculatorApp -{ - NSURL *appPath = [NSURL fileURLWithPath:CALCULATOR_PATH]; - XCTAssertTrue([SUCodeSigningVerifier bundleAtURLIsCodeSigned:appPath], @"App expected to be code signed"); - - NSError *error = nil; - XCTAssertTrue([SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:appPath error:&error], @"signature should be valid"); - XCTAssertNil(error, @"error should be nil"); -} - -- (void)testValidMatchingSelf -{ - NSError *error = nil; - NSURL *appPath = [NSURL fileURLWithPath:CALCULATOR_PATH]; - - XCTAssertTrue([SUCodeSigningVerifier codeSignatureAtBundleURL:appPath matchesSignatureAtBundleURL:appPath error:&error], @"Our valid signed app expected to having matching signature to itself"); -} - -- (void)testValidMatching -{ - // We can't test our own app because matching with ad-hoc signed apps understandably does not succeed - NSError *error = nil; - NSURL *appPath = [NSURL fileURLWithPath:CALCULATOR_PATH]; - XCTAssertTrue([SUCodeSigningVerifier codeSignatureAtBundleURL:appPath matchesSignatureAtBundleURL:self.calculatorCopyURL error:&error], @"The calculator app is expected to have matching identity signature to its altered copy"); -} - -- (void)testInvalidMatching -{ - NSURL *appPath = [NSURL fileURLWithPath:CALCULATOR_PATH]; - NSError *error = nil; - XCTAssertFalse([SUCodeSigningVerifier codeSignatureAtBundleURL:appPath matchesSignatureAtBundleURL:self.validSignedAppURL error:&error], @"Calculator app bundle expected to have different signature than our valid signed app"); -} - -- (void)testInvalidSignedApp -{ - XCTAssertTrue([SUCodeSigningVerifier bundleAtURLIsCodeSigned:self.invalidSignedAppURL], @"App expected to be code signed, but signature is invalid"); - - NSError *error = nil; - XCTAssertFalse([SUCodeSigningVerifier codeSignatureIsValidAtBundleURL:self.invalidSignedAppURL error:&error], @"signature should not be valid"); - XCTAssertNotNil(error, @"error should not be nil"); -} - -@end diff --git a/Sparkle/Tests/SUDSAVerifierTest.m b/Sparkle/Tests/SUDSAVerifierTest.m deleted file mode 100755 index 83f76e38..00000000 --- a/Sparkle/Tests/SUDSAVerifierTest.m +++ /dev/null @@ -1,85 +0,0 @@ -// -// SUDSAVerifierTest.m -// Sparkle -// -// Created by Kornel on 25/07/2014. -// Copyright (c) 2014 Sparkle Project. All rights reserved. -// - -#import -#import -#import "SUDSAVerifier.h" - -@interface SUDSAVerifierTest : XCTestCase -@property NSString *testFile, *pubKeyFile; -@end - -@implementation SUDSAVerifierTest -@synthesize testFile, pubKeyFile; - -- (void)setUp -{ - [super setUp]; - - self.testFile = [[NSBundle bundleForClass:[self class]] pathForResource:@"signed-test-file" ofType:@"txt"]; - self.pubKeyFile = [[NSBundle bundleForClass:[self class]] pathForResource:@"test-pubkey" ofType:@"pem"]; -} - -- (void)testVerifyFileAtPath -{ - NSData *pubKey = [NSData dataWithContentsOfFile:self.pubKeyFile]; - XCTAssertNotNil(pubKey, @"Public key must be readable"); - - NSString *validSig = @"MCwCFCIHCIYYkfZavNzTitTW5tlRp/k5AhQ40poFytqcVhIYdCxQznaXeJPJDQ=="; - - XCTAssertTrue([self checkFile:self.testFile - withPubKey:pubKey - signature:validSig], - @"Expected valid signature"); - - XCTAssertFalse([self checkFile:self.testFile - withPubKey:[NSData dataWithBytes:"lol" length:3] - signature:validSig], - @"Invalid pubkey"); - - XCTAssertFalse([self checkFile:self.pubKeyFile - withPubKey:pubKey - signature:validSig], - @"Wrong file checked"); - - XCTAssertFalse([self checkFile:self.testFile - withPubKey:pubKey - signature:@"MCwCFCIHCiYYkfZavNzTitTW5tlRp/k5AhQ40poFytqcVhIYdCxQznaXeJPJDQ=="], - @"Expected invalid signature"); - - XCTAssertTrue([self checkFile:self.testFile - withPubKey:pubKey - signature:@"MC0CFAsKO7cq2q7L5/FWe6ybVIQkwAwSAhUA2Q8GKsE309eugi/v3Kh1W3w3N8c="], - @"Expected valid signature"); - - XCTAssertFalse([self checkFile:self.testFile - withPubKey:pubKey - signature:@"MC0CFAsKO7cq2q7L5/FWe6ybVIQkwAwSAhUA2Q8GKsE309eugi/v3Kh1W3w3N8"], - @"Expected invalid signature"); -} - -- (BOOL)checkFile:(NSString *)aFile withPubKey:(NSData *)pubKey signature:(NSString *)sigString -{ - SUDSAVerifier *v = [[SUDSAVerifier alloc] initWithPublicKeyData:pubKey]; - - NSData *sig = [[NSData alloc] initWithBase64EncodedString:sigString options:(NSDataBase64DecodingOptions)0]; - - return [v verifyFileAtPath:aFile signature:sig]; -} - -- (void)testValidatePath -{ - NSString *pubkey = [NSString stringWithContentsOfFile:self.pubKeyFile encoding:NSASCIIStringEncoding error:nil]; - - XCTAssertTrue([SUDSAVerifier validatePath:self.testFile - withEncodedDSASignature:@"MC0CFFMF3ha5kjvrJ9JTpTR8BenPN9QUAhUAzY06JRdtP17MJewxhK0twhvbKIE=" - withPublicDSAKey:pubkey], - @"Expected valid signature"); -} - -@end diff --git a/Sparkle/Tests/SUFileManagerTest.swift b/Sparkle/Tests/SUFileManagerTest.swift deleted file mode 100755 index fe5cd6d7..00000000 --- a/Sparkle/Tests/SUFileManagerTest.swift +++ /dev/null @@ -1,316 +0,0 @@ -// -// SUFileManagerTest.swift -// Sparkle -// -// Created by Mayur Pawashe on 9/26/15. -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -import XCTest - -class SUFileManagerTest: XCTestCase -{ - func makeTempFiles(_ testBlock: (SUFileManager, URL, URL, URL, URL, URL, URL) -> Void) - { - let fileManager = SUFileManager.default() - - let tempDirectoryURL = try! fileManager?.makeTemporaryDirectory(withPreferredName: "Sparkle Unit Test Data", appropriateForDirectoryURL: URL(fileURLWithPath: NSHomeDirectory())) - - defer { - try! fileManager?.removeItem(at: tempDirectoryURL) - } - - let ordinaryFileURL = tempDirectoryURL?.appendingPathComponent("a file written by sparkles unit tests") - try! "foo".data(using: String.Encoding.utf8)!.write(to: ordinaryFileURL!, options: .atomic) - - let directoryURL = tempDirectoryURL?.appendingPathComponent("a directory written by sparkles unit tests") - try! FileManager.default.createDirectory(at: directoryURL!, withIntermediateDirectories: false, attributes: nil) - - let fileInDirectoryURL = directoryURL?.appendingPathComponent("a file inside a directory written by sparkles unit tests") - try! "bar baz".data(using: String.Encoding.utf8)!.write(to: fileInDirectoryURL!, options: .atomic) - - let validSymlinkURL = tempDirectoryURL?.appendingPathComponent("symlink test") - try! FileManager.default.createSymbolicLink(at: validSymlinkURL!, withDestinationURL: directoryURL!) - - let invalidSymlinkURL = tempDirectoryURL?.appendingPathComponent("symlink test 2") - try! FileManager.default.createSymbolicLink(at: invalidSymlinkURL!, withDestinationURL: (tempDirectoryURL?.appendingPathComponent("does not exist"))!) - - testBlock(fileManager!, tempDirectoryURL!, ordinaryFileURL!, directoryURL!, fileInDirectoryURL!, validSymlinkURL!, invalidSymlinkURL!) - } - - func testMoveFiles() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.moveItem(at: ordinaryFileURL, to: directoryURL)) - XCTAssertNil(try? fileManager.moveItem(at: ordinaryFileURL, to: directoryURL.appendingPathComponent("foo").appendingPathComponent("bar"))) - XCTAssertNil(try? fileManager.moveItem(at: rootURL.appendingPathComponent("does not exist"), to: directoryURL)) - - let newFileURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new file")) - try! fileManager.moveItem(at: ordinaryFileURL, to: newFileURL) - XCTAssertFalse(fileManager._itemExists(at: ordinaryFileURL)) - XCTAssertTrue(fileManager._itemExists(at: newFileURL)) - - let newValidSymlinkURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new symlink")) - try! fileManager.moveItem(at: validSymlinkURL, to: newValidSymlinkURL) - XCTAssertFalse(fileManager._itemExists(at: validSymlinkURL)) - XCTAssertTrue(fileManager._itemExists(at: newValidSymlinkURL)) - XCTAssertTrue(fileManager._itemExists(at: directoryURL)) - - let newInvalidSymlinkURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new invalid symlink")) - try! fileManager.moveItem(at: invalidSymlinkURL, to: newInvalidSymlinkURL) - XCTAssertFalse(fileManager._itemExists(at: invalidSymlinkURL)) - XCTAssertTrue(fileManager._itemExists(at: newValidSymlinkURL)) - - let newDirectoryURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new directory")) - try! fileManager.moveItem(at: directoryURL, to: newDirectoryURL) - XCTAssertFalse(fileManager._itemExists(at: directoryURL)) - XCTAssertTrue(fileManager._itemExists(at: newDirectoryURL)) - XCTAssertFalse(fileManager._itemExists(at: fileInDirectoryURL)) - XCTAssertTrue(fileManager._itemExists(at: newDirectoryURL.appendingPathComponent(fileInDirectoryURL.lastPathComponent))) - } - } - - func testMoveFilesToTrash() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.moveItemAtURL(toTrash: rootURL.appendingPathComponent("does not exist"))) - - let trashURL = try! FileManager.default.url(for: .trashDirectory, in: .userDomainMask, appropriateFor: nil, create: false) - - try! fileManager.moveItemAtURL(toTrash: ordinaryFileURL) - XCTAssertFalse(fileManager._itemExists(at: ordinaryFileURL)) - - let ordinaryFileTrashURL = trashURL.appendingPathComponent(ordinaryFileURL.lastPathComponent) - XCTAssertTrue(fileManager._itemExists(at: ordinaryFileTrashURL)) - try! fileManager.removeItem(at: ordinaryFileTrashURL) - - let validSymlinkTrashURL = trashURL.appendingPathComponent(validSymlinkURL.lastPathComponent) - try! fileManager.moveItemAtURL(toTrash: validSymlinkURL) - XCTAssertTrue(fileManager._itemExists(at: validSymlinkTrashURL)) - XCTAssertTrue(fileManager._itemExists(at: directoryURL)) - try! fileManager.removeItem(at: validSymlinkTrashURL) - - try! fileManager.moveItemAtURL(toTrash: directoryURL) - XCTAssertFalse(fileManager._itemExists(at: directoryURL)) - XCTAssertFalse(fileManager._itemExists(at: fileInDirectoryURL)) - - let directoryTrashURL = trashURL.appendingPathComponent(directoryURL.lastPathComponent) - XCTAssertTrue(fileManager._itemExists(at: directoryTrashURL)) - XCTAssertTrue(fileManager._itemExists(at: directoryTrashURL.appendingPathComponent(fileInDirectoryURL.lastPathComponent))) - - try! fileManager.removeItem(at: directoryTrashURL) - } - } - - func testCopyFiles() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.copyItem(at: ordinaryFileURL, to: directoryURL)) - XCTAssertNil(try? fileManager.copyItem(at: ordinaryFileURL, to: directoryURL.appendingPathComponent("foo").appendingPathComponent("bar"))) - XCTAssertNil(try? fileManager.copyItem(at: rootURL.appendingPathComponent("does not exist"), to: directoryURL)) - - let newFileURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new file")) - try! fileManager.copyItem(at: ordinaryFileURL, to: newFileURL) - XCTAssertTrue(fileManager._itemExists(at: ordinaryFileURL)) - XCTAssertTrue(fileManager._itemExists(at: newFileURL)) - - let newSymlinkURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new symlink file")) - try! fileManager.copyItem(at: invalidSymlinkURL, to: newSymlinkURL) - XCTAssertTrue(fileManager._itemExists(at: newSymlinkURL)) - - let newDirectoryURL = (ordinaryFileURL.deletingLastPathComponent().appendingPathComponent("new directory")) - try! fileManager.copyItem(at: directoryURL, to: newDirectoryURL) - XCTAssertTrue(fileManager._itemExists(at: directoryURL)) - XCTAssertTrue(fileManager._itemExists(at: newDirectoryURL)) - XCTAssertTrue(fileManager._itemExists(at: fileInDirectoryURL)) - XCTAssertTrue(fileManager._itemExists(at: newDirectoryURL.appendingPathComponent(fileInDirectoryURL.lastPathComponent))) - } - } - - func testRemoveFiles() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.removeItem(at: rootURL.appendingPathComponent("does not exist"))) - - try! fileManager.removeItem(at: ordinaryFileURL) - XCTAssertFalse(fileManager._itemExists(at: ordinaryFileURL)) - - try! fileManager.removeItem(at: validSymlinkURL) - XCTAssertFalse(fileManager._itemExists(at: validSymlinkURL)) - XCTAssertTrue(fileManager._itemExists(at: directoryURL)) - - try! fileManager.removeItem(at: directoryURL) - XCTAssertFalse(fileManager._itemExists(at: directoryURL)) - XCTAssertFalse(fileManager._itemExists(at: fileInDirectoryURL)) - } - } - - func testReleaseFilesFromQuarantine() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - try! fileManager.releaseItemFromQuarantine(atRootURL: ordinaryFileURL) - try! fileManager.releaseItemFromQuarantine(atRootURL: directoryURL) - try! fileManager.releaseItemFromQuarantine(atRootURL: validSymlinkURL) - - let quarantineData = "does not really matter what is here".cString(using: String.Encoding.utf8)! - let quarantineDataLength = Int(strlen(quarantineData)) - - XCTAssertEqual(0, setxattr(ordinaryFileURL.path, SUAppleQuarantineIdentifier, quarantineData, quarantineDataLength, 0, XATTR_CREATE)) - XCTAssertGreaterThan(getxattr(ordinaryFileURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW), 0) - - try! fileManager.releaseItemFromQuarantine(atRootURL: ordinaryFileURL) - XCTAssertEqual(-1, getxattr(ordinaryFileURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW)) - - XCTAssertEqual(0, setxattr(directoryURL.path, SUAppleQuarantineIdentifier, quarantineData, quarantineDataLength, 0, XATTR_CREATE)) - XCTAssertGreaterThan(getxattr(directoryURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW), 0) - - XCTAssertEqual(0, setxattr(fileInDirectoryURL.path, SUAppleQuarantineIdentifier, quarantineData, quarantineDataLength, 0, XATTR_CREATE)) - XCTAssertGreaterThan(getxattr(fileInDirectoryURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW), 0) - - // Extended attributes can't be set on symbolic links currently - try! fileManager.releaseItemFromQuarantine(atRootURL: validSymlinkURL) - XCTAssertGreaterThan(getxattr(directoryURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW), 0) - XCTAssertEqual(-1, getxattr(validSymlinkURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW)) - - try! fileManager.releaseItemFromQuarantine(atRootURL: directoryURL) - - XCTAssertEqual(-1, getxattr(directoryURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW)) - XCTAssertEqual(-1, getxattr(fileInDirectoryURL.path, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW)) - } - } - - func groupIDAtPath(_ path: String) -> gid_t - { - let attributes = try! FileManager.default.attributesOfItem(atPath: path) - let groupID = attributes[FileAttributeKey.groupOwnerAccountID] as! NSNumber - return groupID.uint32Value - } - - // Only the super user can alter user IDs, so changing user IDs is not tested here - // Instead we try to change the group ID - we just have to be a member of that group - func testAlterFilesGroupID() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.changeOwnerAndGroupOfItem(atRootURL: ordinaryFileURL, toMatch: rootURL.appendingPathComponent("does not exist"))) - - XCTAssertNil(try? fileManager.changeOwnerAndGroupOfItem(atRootURL: rootURL.appendingPathComponent("does not exist"), toMatch: ordinaryFileURL)) - - let everyoneGroup = getgrnam("everyone") - let everyoneGroupID = everyoneGroup?.pointee.gr_gid - - let staffGroup = getgrnam("staff") - let staffGroupID = staffGroup?.pointee.gr_gid - - XCTAssertNotEqual(staffGroupID, everyoneGroupID) - - XCTAssertEqual(staffGroupID, self.groupIDAtPath(ordinaryFileURL.path)) - XCTAssertEqual(staffGroupID, self.groupIDAtPath(directoryURL.path)) - XCTAssertEqual(staffGroupID, self.groupIDAtPath(fileInDirectoryURL.path)) - XCTAssertEqual(staffGroupID, self.groupIDAtPath(validSymlinkURL.path)) - - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: fileInDirectoryURL, toMatch: ordinaryFileURL) - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: ordinaryFileURL, toMatch: ordinaryFileURL) - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: validSymlinkURL, toMatch: ordinaryFileURL) - - XCTAssertEqual(staffGroupID, self.groupIDAtPath(ordinaryFileURL.path)) - XCTAssertEqual(staffGroupID, self.groupIDAtPath(directoryURL.path)) - XCTAssertEqual(staffGroupID, self.groupIDAtPath(validSymlinkURL.path)) - - XCTAssertEqual(0, chown(ordinaryFileURL.path, getuid(), everyoneGroupID!)) - XCTAssertEqual(everyoneGroupID, self.groupIDAtPath(ordinaryFileURL.path)) - - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: fileInDirectoryURL, toMatch: ordinaryFileURL) - XCTAssertEqual(everyoneGroupID, self.groupIDAtPath(fileInDirectoryURL.path)) - - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: fileInDirectoryURL, toMatch: directoryURL) - XCTAssertEqual(staffGroupID, self.groupIDAtPath(fileInDirectoryURL.path)) - - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: validSymlinkURL, toMatch: ordinaryFileURL) - XCTAssertEqual(everyoneGroupID, self.groupIDAtPath(validSymlinkURL.path)) - - try! fileManager.changeOwnerAndGroupOfItem(atRootURL: directoryURL, toMatch: ordinaryFileURL) - XCTAssertEqual(everyoneGroupID, self.groupIDAtPath(directoryURL.path)) - XCTAssertEqual(everyoneGroupID, self.groupIDAtPath(fileInDirectoryURL.path)) - } - } - - func testUpdateFileModificationTime() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.updateModificationAndAccessTimeOfItem(at: rootURL.appendingPathComponent("does not exist"))) - - let oldOrdinaryFileAttributes = try! FileManager.default.attributesOfItem(atPath: ordinaryFileURL.path) - let oldDirectoryAttributes = try! FileManager.default.attributesOfItem(atPath: directoryURL.path) - let oldValidSymlinkAttributes = try! FileManager.default.attributesOfItem(atPath: validSymlinkURL.path) - - sleep(1); // wait for clock to advance - - try! fileManager.updateModificationAndAccessTimeOfItem(at: ordinaryFileURL) - try! fileManager.updateModificationAndAccessTimeOfItem(at: directoryURL) - try! fileManager.updateModificationAndAccessTimeOfItem(at: validSymlinkURL) - - let newOrdinaryFileAttributes = try! FileManager.default.attributesOfItem(atPath: ordinaryFileURL.path) - XCTAssertGreaterThan((newOrdinaryFileAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldOrdinaryFileAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - let newDirectoryAttributes = try! FileManager.default.attributesOfItem(atPath: directoryURL.path) - XCTAssertGreaterThan((newDirectoryAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldDirectoryAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - let newSymlinkAttributes = try! FileManager.default.attributesOfItem(atPath: validSymlinkURL.path) - XCTAssertGreaterThan((newSymlinkAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldValidSymlinkAttributes[FileAttributeKey.modificationDate] as! Date), 0) - } - } - - func testFileExists() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertTrue(fileManager._itemExists(at: ordinaryFileURL)) - XCTAssertTrue(fileManager._itemExists(at: directoryURL)) - XCTAssertFalse(fileManager._itemExists(at: rootURL.appendingPathComponent("does not exist"))) - - var isOrdinaryFileDirectory: ObjCBool = false - XCTAssertTrue(fileManager._itemExists(at: ordinaryFileURL, isDirectory: &isOrdinaryFileDirectory) && !isOrdinaryFileDirectory.boolValue) - - var isDirectoryADirectory: ObjCBool = false - XCTAssertTrue(fileManager._itemExists(at: directoryURL, isDirectory: &isDirectoryADirectory) && isDirectoryADirectory.boolValue) - - XCTAssertFalse(fileManager._itemExists(at: rootURL.appendingPathComponent("does not exist"), isDirectory: nil)) - - XCTAssertTrue(fileManager._itemExists(at: validSymlinkURL)) - - var validSymlinkIsADirectory: ObjCBool = false - XCTAssertTrue(fileManager._itemExists(at: validSymlinkURL, isDirectory: &validSymlinkIsADirectory) && !validSymlinkIsADirectory.boolValue) - - // Symlink should still exist even if it doesn't point to a file that exists - XCTAssertTrue(fileManager._itemExists(at: invalidSymlinkURL)) - - var invalidSymlinkIsADirectory: ObjCBool = false - XCTAssertTrue(fileManager._itemExists(at: invalidSymlinkURL, isDirectory: &invalidSymlinkIsADirectory) && !invalidSymlinkIsADirectory.boolValue) - } - } - - func testMakeDirectory() - { - makeTempFiles() { fileManager, rootURL, ordinaryFileURL, directoryURL, fileInDirectoryURL, validSymlinkURL, invalidSymlinkURL in - XCTAssertNil(try? fileManager.makeDirectory(at: ordinaryFileURL)) - XCTAssertNil(try? fileManager.makeDirectory(at: directoryURL)) - - XCTAssertNil(try? fileManager.makeDirectory(at: rootURL.appendingPathComponent("this should").appendingPathComponent("be a failure"))) - - let newDirectoryURL = rootURL.appendingPathComponent("new test directory") - XCTAssertFalse(fileManager._itemExists(at: newDirectoryURL)) - try! fileManager.makeDirectory(at: newDirectoryURL) - - var isDirectory: ObjCBool = false - XCTAssertTrue(fileManager._itemExists(at: newDirectoryURL, isDirectory: &isDirectory)) - - try! fileManager.removeItem(at: directoryURL) - XCTAssertNil(try? fileManager.makeDirectory(at: validSymlinkURL)) - } - } - - func testAcquireBadAuthorization() - { - let fileManager = SUFileManager.default() - XCTAssertNil(try? fileManager?._acquireAuthorization()) - } -} diff --git a/Sparkle/Tests/SUInstallerTest.m b/Sparkle/Tests/SUInstallerTest.m deleted file mode 100755 index 278060b0..00000000 --- a/Sparkle/Tests/SUInstallerTest.m +++ /dev/null @@ -1,73 +0,0 @@ -// -// SUInstallerTest.m -// Sparkle -// -// Created by Kornel on 24/04/2015. -// Copyright (c) 2015 Sparkle Project. All rights reserved. -// - -#import -#import -#import "SUHost.h" -#import "SUInstaller.h" -#import - -@interface SUInstallerTest : XCTestCase - -@end - -@implementation SUInstallerTest - -- (void)setUp -{ - [super setUp]; - // Put setup code here. This method is called before the invocation of each test method in the class. -} - -- (void)tearDown -{ - // Put teardown code here. This method is called after the invocation of each test method in the class. - [super tearDown]; -} - -#if __clang_major__ >= 6 -- (void)testInstallIfRoot -{ - uid_t uid = getuid(); - - if (uid) { - NSLog(@"Test must be run as root: sudo xctest -XCTest SUInstallerTest 'Sparkle Unit Tests.xctest'"); - return; - } - - NSString *expectedDestination = @"/tmp/sparklepkgtest.app"; - NSFileManager *fm = [NSFileManager defaultManager]; - [fm removeItemAtPath:expectedDestination error:nil]; - XCTAssertFalse([fm fileExistsAtPath:expectedDestination isDirectory:nil]); - - XCTestExpectation *done = [self expectationWithDescription:@"install finished"]; - - NSBundle *bundle = [NSBundle bundleForClass:[self class]]; - NSString *path = [bundle pathForResource:@"test.sparkle_guided" ofType:@"pkg"]; - XCTAssertNotNil(path); - - SUHost *host = [[SUHost alloc] initWithBundle:bundle]; - - NSString *fileOperationToolPath = [bundle pathForResource:@""SPARKLE_FILEOP_TOOL_NAME ofType:@""]; - XCTAssertNotNil(fileOperationToolPath); - - [SUInstaller installFromUpdateFolder:[path stringByDeletingLastPathComponent] overHost:host installationPath:@"/tmp" fileOperationToolPath:fileOperationToolPath versionComparator:nil completionHandler:^(NSError *error) { - if (error != nil) { - NSLog(@"Underlying error: %@", [error.userInfo objectForKey:NSUnderlyingErrorKey]); - } - XCTAssertNil(error); - XCTAssertTrue([fm fileExistsAtPath:expectedDestination isDirectory:nil]); - [done fulfill]; - }]; - - [self waitForExpectationsWithTimeout:40 handler:nil]; - [fm removeItemAtPath:expectedDestination error:nil]; -} -#endif - -@end diff --git a/Sparkle/Tests/SUSpotlightImporterTest.swift b/Sparkle/Tests/SUSpotlightImporterTest.swift deleted file mode 100755 index 3c086e0a..00000000 --- a/Sparkle/Tests/SUSpotlightImporterTest.swift +++ /dev/null @@ -1,60 +0,0 @@ -// -// SUSpotlightImporterTest.swift -// Sparkle -// -// Created by Mayur Pawashe on 8/27/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -import XCTest - -class SUSpotlightImporterTest: XCTestCase -{ - func testUpdatingSpotlightBundles() - { - let fileManager = SUFileManager.default() - let tempDirectoryURL = try! fileManager?.makeTemporaryDirectory(withPreferredName: "Sparkle Unit Test Data", appropriateForDirectoryURL: URL(fileURLWithPath: NSHomeDirectory())) - - let bundleDirectory = tempDirectoryURL?.appendingPathComponent("bundle.app") - try! fileManager?.makeDirectory(at: bundleDirectory) - - let innerDirectory = bundleDirectory?.appendingPathComponent("foo") - try! fileManager?.makeDirectory(at: innerDirectory) - try! Data().write(to: (bundleDirectory?.appendingPathComponent("bar"))!, options: .atomicWrite) - - let importerDirectory = innerDirectory?.appendingPathComponent("baz.mdimporter") - - try! fileManager?.makeDirectory(at: importerDirectory) - try! fileManager?.makeDirectory(at: innerDirectory?.appendingPathComponent("flag")) - - try! Data().write(to: (importerDirectory?.appendingPathComponent("file"))!, options: .atomicWrite) - - let oldFooDirectoryAttributes = try! FileManager.default.attributesOfItem(atPath: innerDirectory!.path) - let oldBarFileAttributes = try! FileManager.default.attributesOfItem(atPath: bundleDirectory!.appendingPathComponent("bar").path) - let oldImporterAttributes = try! FileManager.default.attributesOfItem(atPath: importerDirectory!.path) - let oldFlagAttributes = try! FileManager.default.attributesOfItem(atPath: innerDirectory!.appendingPathComponent("flag").path) - let oldFileInImporterAttributes = try! FileManager.default.attributesOfItem(atPath: importerDirectory!.appendingPathComponent("file").path) - - sleep(1) // wait for clock to advance - - // Update spotlight bundles - SUBinaryDeltaUnarchiver.updateSpotlightImporters(atBundlePath: bundleDirectory!.path) - - let newFooDirectoryAttributes = try! FileManager.default.attributesOfItem(atPath: innerDirectory!.path) - XCTAssertEqual((newFooDirectoryAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldFooDirectoryAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - let newBarFileAttributes = try! FileManager.default.attributesOfItem(atPath: bundleDirectory!.appendingPathComponent("bar").path) - XCTAssertEqual((newBarFileAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldBarFileAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - let newImporterAttributes = try! FileManager.default.attributesOfItem(atPath: importerDirectory!.path) - XCTAssertGreaterThan((newImporterAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldImporterAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - let newFlagAttributes = try! FileManager.default.attributesOfItem(atPath: innerDirectory!.appendingPathComponent("flag").path) - XCTAssertEqual((newFlagAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldFlagAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - let newFileInImporterAttributes = try! FileManager.default.attributesOfItem(atPath: importerDirectory!.appendingPathComponent("file").path) - XCTAssertEqual((newFileInImporterAttributes[FileAttributeKey.modificationDate] as! Date).timeIntervalSince(oldFileInImporterAttributes[FileAttributeKey.modificationDate] as! Date), 0) - - try! fileManager?.removeItem(at: tempDirectoryURL) - } -} diff --git a/Sparkle/Tests/SUUnarchiverTest.swift b/Sparkle/Tests/SUUnarchiverTest.swift deleted file mode 100755 index 4e70bba8..00000000 --- a/Sparkle/Tests/SUUnarchiverTest.swift +++ /dev/null @@ -1,100 +0,0 @@ -// -// SUUnarchiverTest.swift -// Sparkle -// -// Created by Mayur Pawashe on 9/4/15. -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -import XCTest - -class SUUnarchiverTest: XCTestCase, SUUnarchiverDelegate -{ - var password: String? = nil - var unarchivedExpectation: XCTestExpectation? = nil - var unarchivedResult: Bool = false - - func unarchiver(_ unarchiver: SUUnarchiver!, extractedProgress progress: Double) - { - } - - func unarchiverDidFail(_ unarchiver: SUUnarchiver!) - { - self.unarchivedResult = false - self.unarchivedExpectation!.fulfill() - } - - func unarchiverDidFinish(_ unarchiver: SUUnarchiver!) - { - self.unarchivedResult = true - self.unarchivedExpectation!.fulfill() - } - - func unarchiveTestAppWithExtension(_ archiveExtension: String) - { - let appName = "SparkleTestCodeSignApp" - let archiveResourceURL = Bundle(for: type(of: self)).url(forResource: appName, withExtension: archiveExtension)! - - let fileManager = FileManager.default - - let tempDirectoryURL = try! fileManager.url(for: .itemReplacementDirectory, in: .userDomainMask, appropriateFor: URL(fileURLWithPath: NSHomeDirectory()), create: true) - defer { - try! fileManager.removeItem(at: tempDirectoryURL) - } - - let tempArchiveURL = tempDirectoryURL.appendingPathComponent(archiveResourceURL.lastPathComponent) - let extractedAppURL = tempDirectoryURL.appendingPathComponent(appName).appendingPathExtension("app") - - try! fileManager.copyItem(at: archiveResourceURL, to: tempArchiveURL) - - self.unarchivedExpectation = super.expectation(description: "Unarchived Application (format: \(archiveExtension))") - - let unarchiver = SUUnarchiver(forPath: tempArchiveURL.path, updatingHostBundlePath: nil, withPassword: self.password) - - unarchiver?.delegate = self - unarchiver?.start() - - super.waitForExpectations(timeout: 7.0, handler: nil) - - XCTAssertTrue(self.unarchivedResult) - XCTAssertTrue(fileManager.fileExists(atPath: extractedAppURL.path)) - - XCTAssertEqual("6a60ab31430cfca8fb499a884f4a29f73e59b472", hashOfTree(extractedAppURL.path)) - } - - func testUnarchivingZip() - { - self.unarchiveTestAppWithExtension("zip") - } - - func testUnarchivingTarDotGz() - { - self.unarchiveTestAppWithExtension("tar.gz") - } - - func testUnarchivingTar() - { - self.unarchiveTestAppWithExtension("tar") - } - - func testUnarchivingTarDotBz2() - { - self.unarchiveTestAppWithExtension("tar.bz2") - } - - func testUnarchivingTarDotXz() - { - self.unarchiveTestAppWithExtension("tar.xz") - } - - func testUnarchivingDmg() - { - self.unarchiveTestAppWithExtension("dmg") - } - - func testUnarchivingEncryptedDmg() - { - self.password = "testpass"; - self.unarchiveTestAppWithExtension("enc.dmg") - } -} diff --git a/Sparkle/Tests/SUUpdaterTest.m b/Sparkle/Tests/SUUpdaterTest.m deleted file mode 100755 index 0ff7e930..00000000 --- a/Sparkle/Tests/SUUpdaterTest.m +++ /dev/null @@ -1,77 +0,0 @@ -// -// SUUpdaterTest.m -// Sparkle -// -// Created by Jake Petroules on 2014-06-29. -// Copyright (c) 2014 Sparkle Project. All rights reserved. -// - -#import -#import "SUConstants.h" -#import "SUUpdater.h" - -@interface SUUpdaterTest : XCTestCase -@property (strong) NSOperationQueue *queue; -@property (strong) SUUpdater *updater; -@end - -@implementation SUUpdaterTest - -@synthesize queue; -@synthesize updater; - -- (void)setUp -{ - [super setUp]; - self.queue = [[NSOperationQueue alloc] init]; - self.updater = [[SUUpdater alloc] initForBundle:[NSBundle bundleForClass:[self class]]]; - self.updater.delegate = self; -} - -- (void)tearDown -{ - self.updater = nil; - self.queue = nil; - [super tearDown]; -} - -- (NSString *)feedURLStringForUpdater:(SUUpdater *) __unused updater -{ - return @"https://test.example.com"; -} - -- (void)testFeedURL -{ - [self.updater feedURL]; // this WON'T throw - - [self.queue addOperationWithBlock:^{ - XCTAssertTrue(![NSThread isMainThread]); - @try { - [self.updater feedURL]; - XCTFail(@"feedURL did not throw an exception when called on a secondary thread"); - } - @catch (NSException *exception) { - NSLog(@"%@", exception); - } - }]; - [self.queue waitUntilAllOperationsAreFinished]; -} - -- (void)testSetTestFeedURL -{ - [self.updater setFeedURL:[NSURL URLWithString:@""]]; // this WON'T throw - - [self.queue addOperationWithBlock:^{ - XCTAssertTrue(![NSThread isMainThread]); - @try { - [self.updater setFeedURL:[NSURL URLWithString:@""]]; - XCTFail(@"setFeedURL: did not throw an exception when called on a secondary thread"); - } - @catch (NSException *exception) { - NSLog(@"%@", exception); - } - }]; - [self.queue waitUntilAllOperationsAreFinished]; -} - -@end diff --git a/Sparkle/Tests/SUVersionComparisonTest.m b/Sparkle/Tests/SUVersionComparisonTest.m deleted file mode 100755 index d830c3f9..00000000 --- a/Sparkle/Tests/SUVersionComparisonTest.m +++ /dev/null @@ -1,78 +0,0 @@ -// -// SUVersionComparisonTest.m -// Sparkle -// -// Created by Andy Matuschak on 4/15/08. -// Copyright 2008 Andy Matuschak. All rights reserved. -// - -#import "SUStandardVersionComparator.h" - -#import - -@interface SUVersionComparisonTestCase : XCTestCase { -} -@end - -@implementation SUVersionComparisonTestCase - -#define SUAssertOrder(a, b, c) XCTAssertTrue([[SUStandardVersionComparator defaultComparator] compareVersion:a toVersion:b] == c, @"b should be newer than a!") -#define SUAssertAscending(a, b) SUAssertOrder(a, b, NSOrderedAscending) -#define SUAssertDescending(a, b) SUAssertOrder(a, b, NSOrderedDescending) -#define SUAssertEqual(a, b) SUAssertOrder(a, b, NSOrderedSame) - -- (void)testNumbers -{ - SUAssertAscending(@"1.0", @"1.1"); - SUAssertEqual(@"1.0", @"1.0"); - SUAssertDescending(@"2.0", @"1.1"); - SUAssertDescending(@"0.1", @"0.0.1"); - //SUAssertDescending(@".1", @"0.0.1"); Known bug, but I'm not sure I care. - SUAssertAscending(@"0.1", @"0.1.2"); -} - -- (void)testPrereleases -{ - SUAssertAscending(@"1.5.5", @"1.5.6a1"); - SUAssertAscending(@"1.1.0b1", @"1.1.0b2"); - SUAssertAscending(@"1.1.1b2", @"1.1.2b1"); - SUAssertAscending(@"1.1.1b2", @"1.1.2a1"); - SUAssertAscending(@"1.0a1", @"1.0b1"); - SUAssertAscending(@"1.0b1", @"1.0"); - SUAssertAscending(@"0.9", @"1.0a1"); - SUAssertAscending(@"1.0b", @"1.0b2"); - SUAssertAscending(@"1.0b10", @"1.0b11"); - SUAssertAscending(@"1.0b9", @"1.0b10"); - SUAssertAscending(@"1.0rc", @"1.0"); - SUAssertAscending(@"1.0b", @"1.0"); - SUAssertAscending(@"1.0pre1", @"1.0"); -} - -- (void)testVersionsWithBuildNumbers -{ - SUAssertAscending(@"1.0 (1234)", @"1.0 (1235)"); - SUAssertAscending(@"1.0b1 (1234)", @"1.0 (1234)"); - SUAssertAscending(@"1.0b5 (1234)", @"1.0b5 (1235)"); - SUAssertAscending(@"1.0b5 (1234)", @"1.0.1b5 (1234)"); - SUAssertAscending(@"1.0.1b5 (1234)", @"1.0.1b6 (1234)"); - SUAssertAscending(@"2.0.0.2429", @"2.0.0.2430"); - SUAssertAscending(@"1.1.1.1818", @"2.0.0.2430"); - - SUAssertAscending(@"3.3 (5847)", @"3.3.1b1 (5902)"); -} - -- (void)testWordsWithSpaceInFront -{ -// SUAssertAscending(@"1.0 beta", @"1.0"); -// SUAssertAscending(@"1.0 - beta", @"1.0"); -// SUAssertAscending(@"1.0 alpha", @"1.0 beta"); -// SUAssertEqual(@"1.0 - beta", @"1.0beta"); -// SUAssertEqual(@"1.0 - beta", @"1.0 beta"); -} - -- (void)testVersionsWithReverseDateBasedNumbers -{ - SUAssertAscending(@"201210251627", @"201211051041"); -} - -@end diff --git a/Sparkle/Tests/Sparkle Unit Tests-Bridging-Header.h b/Sparkle/Tests/Sparkle Unit Tests-Bridging-Header.h deleted file mode 100755 index c38a9f78..00000000 --- a/Sparkle/Tests/Sparkle Unit Tests-Bridging-Header.h +++ /dev/null @@ -1,43 +0,0 @@ -// -// Use this file to import your target's public headers that you would like to expose to Swift. -// - -#import "SUUnarchiver.h" -#import "SUBinaryDeltaUnarchiver.h" -#import "SUPipedUnarchiver.h" -#import "SUBinaryDeltaCommon.h" -#import "SUFileManager.h" -#import "SUAppcast.h" -#import "SUAppcastItem.h" -#import "SUBasicUpdateDriver.h" -#import "SUVersionComparisonProtocol.h" -#import "SUStandardVersionComparator.h" - -// Duplicated to avoid exporting a private symbol from SUFileManager -static const char *SUAppleQuarantineIdentifier = "com.apple.quarantine"; - -@interface SUFileManager (Private) - -- (BOOL)_acquireAuthorizationWithError:(NSError *__autoreleasing *)error; - -- (BOOL)_itemExistsAtURL:(NSURL *)fileURL; -- (BOOL)_itemExistsAtURL:(NSURL *)fileURL isDirectory:(BOOL *)isDirectory; - -@end - -@interface SUBasicUpdateDriver (Private) - -+ (SUAppcastItem *)bestItemFromAppcastItems:(NSArray *)appcastItems getDeltaItem:(SUAppcastItem * __autoreleasing *)deltaItem withHostVersion:(NSString *)hostVersion comparator:(id)comparator; - -@end - - -@interface SUAppcast (Private) -- (NSArray *)parseAppcastItemsFromXMLFile:(NSURL *)appcastFile error:(NSError *__autoreleasing*)errorp; -@end - -@interface SUBinaryDeltaUnarchiver (Private) - -+ (void)updateSpotlightImportersAtBundlePath:(NSString *)targetPath; - -@end diff --git a/Sparkle/Tests/SparkleTests-Info.plist b/Sparkle/Tests/SparkleTests-Info.plist deleted file mode 100755 index e7e83b9d..00000000 --- a/Sparkle/Tests/SparkleTests-Info.plist +++ /dev/null @@ -1,26 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleSignature - ???? - CFBundleVersion - 1.0 - SUEnableAutomaticChecks - - SUEnableSystemProfiling - - SUPublicDSAKeyFile - test-pubkey.pem - - diff --git a/Sparkle/UITests/SUTestApplicationTest.swift b/Sparkle/UITests/SUTestApplicationTest.swift deleted file mode 100755 index 72cd02fb..00000000 --- a/Sparkle/UITests/SUTestApplicationTest.swift +++ /dev/null @@ -1,106 +0,0 @@ -// -// SUTestApplicationTest.swift -// Sparkle -// -// Created by Mayur Pawashe on 8/27/15. -// Copyright © 2015 Sparkle Project. All rights reserved. -// - -import XCTest - -class SUTestApplicationTest: XCTestCase -{ - var testApplicationURL: URL? = nil - var testApplicationBackupURL: URL? = nil - var tempDirectoryURL: URL? = nil - - func runningTestApplication() -> NSRunningApplication - { - // TODO: don't hardcode bundle ID? - let runningApplications = NSRunningApplication.runningApplications(withBundleIdentifier: "org.sparkle-project.SparkleTestApp") - XCTAssertEqual(runningApplications.count, 1, "More than one or zero running instances of the Test Application are found") - return runningApplications[0] - } - - override func setUp() - { - super.setUp() - - let app = XCUIApplication() - app.launch() - - XCTAssertFalse(app.dialogs["alert"].staticTexts["Update succeeded!"].exists, "Update is already installed; please do a clean build") - - // We need to grab the app URL so we can back up the app - // When a successful test is over we'll revert the update - let testApplicationURL = self.runningTestApplication().bundleURL! - - let tempDirectoryURL = try! FileManager.default.url(for: .itemReplacementDirectory, in: FileManager.SearchPathDomainMask.userDomainMask, appropriateFor: testApplicationURL, create: true) - - let testApplicationBackupURL = tempDirectoryURL.appendingPathComponent(testApplicationURL.lastPathComponent) - - try! FileManager.default.copyItem(at: testApplicationURL, to: testApplicationBackupURL) - - self.testApplicationURL = testApplicationURL - self.testApplicationBackupURL = testApplicationBackupURL - self.tempDirectoryURL = tempDirectoryURL - - // when we add more tests we don't want to continue after a failure - // since a test can fail after the new app has been placed in - self.continueAfterFailure = false - } - - override func tearDown() - { - // Terminate just in case the app hasn't already quit - XCUIApplication().terminate() - - // Revert our update with the original test application - - var resultingURL: NSURL? = nil - try! FileManager.default.replaceItem(at: self.testApplicationURL!, withItemAt: self.testApplicationBackupURL!, backupItemName: nil, options: .usingNewMetadataOnly, resultingItemURL: &resultingURL) - - do { - try FileManager.default.removeItem(at: self.tempDirectoryURL!) - } catch let error as NSError { - NSLog("Failed to remove temporary directory \(self.tempDirectoryURL) with error: \(error)") - } - - // The URL we get back from NSFileManager should be the same.. - XCTAssertEqual(self.testApplicationURL, resultingURL as URL?, "Test application was replaced, but at a different location") - - super.tearDown() - } - - func testRegularUpdate() - { - let app = XCUIApplication() - let menuBarsQuery = app.menuBars - - menuBarsQuery.menuBarItems["Sparkle Test App"].click() - - // If the update window already showed up automatically, this option will be disabled. - // Even if it's disabled, attempting to click it will do no harm and continue on - menuBarsQuery.menuItems["Check for Updates…"].click() - - app.dialogs["SUUpdateAlert"].buttons["Install Update"].click() - app.buttons["Install and Relaunch"].click() - - // Wait for the new updated app to finish launching so we can test if it's the frontmost app - sleep(3) - - // Our new updated app should be launched now. Test if it's the active app - // We used to run into timing issues where the updated app sometimes may not show up as the frontmost one - XCTAssertTrue(self.runningTestApplication().isActive) - - // Grab another XCUIApplication instance rather than using the old one, just in case - let updatedApp = XCUIApplication() - - // Check if we can click the "Update succeeded!" label rather than using the exists property - // Checking the exists property doesn't reload the "cache" and as such the UI tests still would think we are - // referring to the older app. Clicking does force the UI tests to find the new app however - updatedApp.dialogs["alert"].staticTexts["Update succeeded!"].click() - - updatedApp.dialogs["alert"].buttons["OK"].click() - } -} diff --git a/Sparkle/UITests/UITests-Info.plist b/Sparkle/UITests/UITests-Info.plist deleted file mode 100755 index ba72822e..00000000 --- a/Sparkle/UITests/UITests-Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/Sparkle/Vendor/bsdiff/bscommon.c b/Sparkle/Vendor/bsdiff/bscommon.c deleted file mode 100755 index f492a1d6..00000000 --- a/Sparkle/Vendor/bsdiff/bscommon.c +++ /dev/null @@ -1,62 +0,0 @@ -/* - * bscommon.c - * Sparkle - * - * Created by Mayur Pawashe on 5/16/16. - */ - -#include "bscommon.h" -#include - -u_char *readfile(const char *filename, off_t *outSize) -{ - int success = -1; - u_char *buffer = NULL; - - FILE *file = fopen(filename, "r"); - if (file == NULL) { - goto cleanup; - } - - if (fseek(file, 0L, SEEK_END) != 0) { - goto cleanup; - } - - long offset = ftell(file); - if (offset == -1) { - goto cleanup; - } - - size_t size = (size_t)offset; - - if (outSize != NULL) { - *outSize = (off_t)size; - } - - /* Allocate size + 1 bytes instead of newsize bytes to ensure - that we never try to malloc(0) and get a NULL pointer */ - buffer = malloc(size + 1); - if (buffer == NULL) { - goto cleanup; - } - - if (fseek(file, 0L, SEEK_SET) != 0) { - goto cleanup; - } - - if (fread(buffer, 1, size, file) < size) { - goto cleanup; - } - - success = 0; -cleanup: - if (success == -1) { - free(buffer); - buffer = NULL; - } - if (file != NULL) { - fclose(file); - } - - return buffer; -} diff --git a/Sparkle/Vendor/bsdiff/bscommon.h b/Sparkle/Vendor/bsdiff/bscommon.h deleted file mode 100755 index d90273fc..00000000 --- a/Sparkle/Vendor/bsdiff/bscommon.h +++ /dev/null @@ -1,16 +0,0 @@ -/* - * bscommon.h - * Sparkle - * - * Created by Mayur Pawashe on 5/16/16. - */ - -#ifndef BS_COMMON_H -#define BS_COMMON_H - -#include -#include - -u_char *readfile(const char *filename, off_t *outSize); - -#endif diff --git a/Sparkle/Vendor/bsdiff/bsdiff.c b/Sparkle/Vendor/bsdiff/bsdiff.c deleted file mode 100755 index 8dfb3c20..00000000 --- a/Sparkle/Vendor/bsdiff/bsdiff.c +++ /dev/null @@ -1,406 +0,0 @@ -/*- - * Copyright 2003 - 2005 Colin Percival - * All rights reserved - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted providing that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#if 0 -__FBSDID("$FreeBSD: src/usr.bin/bsdiff/bsdiff/bsdiff.c, v 1.1 2005/08/06 01:59:05 cperciva Exp $"); -#endif - -#include -#include "sais.h" - -#include -#include -#include -#include -#include -#include - -#include "bscommon.h" - -#define MIN(x, y) (((x)<(y)) ? (x) : (y)) - -/* matchlen(old, oldsize, new, newsize) - * - * Returns the length of the longest common prefix between 'old' and 'new'. */ -static off_t matchlen(u_char *old, off_t oldsize, u_char *new, off_t newsize) -{ - off_t i; - - for (i = 0; (i < oldsize) && (i < newsize); i++) - { - if (old[i] != new[i]) - break; - } - - return i; -} - -/* search(I, old, oldsize, new, newsize, st, en, pos) - * - * Searches for the longest prefix of 'new' that occurs in 'old', stores its - * offset in '*pos', and returns its length. 'I' should be the suffix sort of - * 'old', and 'st' and 'en' are the lowest and highest indices in the suffix - * sort to consider. If you're searching all suffixes, 'st = 0' and 'en = - * oldsize - 1'. */ -static off_t search(off_t *I, u_char *old, off_t oldsize, - u_char *new, off_t newsize, off_t st, off_t en, off_t *pos) -{ - off_t x, y; - - if (en - st < 2) { - x = matchlen(old + I[st], oldsize - I[st], new, newsize); - y = matchlen(old + I[en], oldsize - I[en], new, newsize); - - if (x > y) { - *pos = I[st]; - return x; - } else { - *pos = I[en]; - return y; - } - } - - x = st + (en - st)/2; - if (memcmp(old + I[x], new, (size_t)(MIN(oldsize - I[x], newsize))) < 0) { - return search(I, old, oldsize, new, newsize, x, en, pos); - } else { - return search(I, old, oldsize, new, newsize, st, x, pos); - }; -} - -/* offtout(x, buf) - * - * Writes the off_t 'x' portably to the array 'buf'. */ -static void offtout(off_t x, u_char *buf) -{ - off_t y; - - if (x < 0) - y = -x; - else - y = x; - - buf[0] = (u_char)(y % 256); - y -= buf[0]; - y = y/256; buf[1] = (u_char)(y%256); y -= buf[1]; - y = y/256; buf[2] = (u_char)(y%256); y -= buf[2]; - y = y/256; buf[3] = (u_char)(y%256); y -= buf[3]; - y = y/256; buf[4] = (u_char)(y%256); y -= buf[4]; - y = y/256; buf[5] = (u_char)(y%256); y -= buf[5]; - y = y/256; buf[6] = (u_char)(y%256); y -= buf[6]; - y = y/256; buf[7] = (u_char)(y%256); - - if (x < 0) - buf[7] |= 0x80; -} - -int bsdiff(int argc, char *argv[]); // Added by AMM: suppresses a warning about the following not having a prototype. - -int bsdiff(int argc, char *argv[]) -{ - u_char *old = NULL,*new = NULL; /* contents of old, new files */ - off_t oldsize = 0, newsize = 0; /* length of old, new files */ - off_t *I = NULL,*V = NULL; /* arrays used for suffix sort; I is ordering */ - off_t scan = 0; /* position of current match in old file */ - off_t pos = 0; /* position of current match in new file */ - off_t len = 0; /* length of current match */ - off_t lastscan = 0; /* position of previous match in old file */ - off_t lastpos = 0; /* position of previous match in new file */ - off_t lastoffset = 0; /* lastpos - lastscan */ - off_t oldscore = 0, scsc = 0; /* temp variables in match search */ - off_t s = 0, Sf = 0, lenf = 0, Sb = 0, lenb = 0; /* temp vars in match extension */ - off_t overlap = 0, Ss = 0, lens = 0; - off_t i = 0; - off_t dblen = 0, eblen = 0; /* length of diff, extra sections */ - u_char *db = NULL,*eb = NULL; /* contents of diff, extra sections */ - u_char buf[8] = {0}; - u_char header[32] = {0}; - FILE * pf = NULL; - int exitstatus = -1; - - if (argc != 4) { - warnx("usage: %s oldfile newfile patchfile\n", argv[0]); - goto cleanup; - } - - old = readfile(argv[1], &oldsize); - if (old == NULL) { - warn("old file error: %s", argv[1]); - goto cleanup; - } - - if (((I = malloc(((size_t)oldsize + 1) * sizeof(off_t))) == NULL) || - ((V = malloc(((size_t)oldsize + 1) * sizeof(off_t))) == NULL)) { - warn("Failed to allocate memory for I or V"); - goto cleanup; - } - - /* Do a suffix sort on the old file. */ - I[0] = oldsize; - sais(old, I+1, (int)oldsize); - - free(V); - V = NULL; - - new = readfile(argv[2], &newsize); - if (new == NULL) { - warn("new file error: %s", argv[2]); - goto cleanup; - } - - if (((db = malloc((size_t)newsize + 1)) == NULL) || - ((eb = malloc((size_t)newsize + 1)) == NULL)) { - warn("Failed to allocate memory for db or eb"); - goto cleanup; - } - dblen = 0; - eblen = 0; - - /* Create the patch file */ - if ((pf = fopen(argv[3], "w")) == NULL) { - warn("%s", argv[3]); - goto cleanup; - } - - /* Header is - 0 8 "BSDIFN40" - 8 8 length of ctrl block - 16 8 length of diff block - 24 8 length of new file */ - /* File is - 0 32 Header - 32 ?? ctrl block - ?? ?? diff block - ?? ?? extra block */ - memcpy(header, "BSDIFN40", 8); - offtout(0, header + 8); - offtout(0, header + 16); - offtout(newsize, header + 24); - if (fwrite(header, 32, 1, pf) != 1) { - warn("fwrite(%s)", argv[3]); - goto cleanup; - } - - /* Compute the differences, writing ctrl as we go */ - scan = 0; - len = 0; - lastscan = 0; - lastpos = 0; - lastoffset = 0; - while (scan < newsize) { - oldscore = 0; - - for (scsc = scan += len; scan < newsize; scan++) { - /* 'oldscore' is the number of characters that match between the - * substrings 'old[lastoffset + scan:lastoffset + scsc]' and - * 'new[scan:scsc]'. */ - len = search(I, old, oldsize, new + scan, newsize - scan, - 0, oldsize, &pos); - - /* If this match extends further than the last one, add any new - * matching characters to 'oldscore'. */ - for (; scsc < scan + len; scsc++) { - if ((scsc + lastoffset < oldsize) && - (old[scsc + lastoffset] == new[scsc])) - oldscore++; - } - - /* Choose this as our match if it contains more than eight - * characters that would be wrong if matched with a forward - * extension of the previous match instead. */ - if (((len == oldscore) && (len != 0)) || - (len > oldscore + 8)) - break; - - /* Since we're advancing 'scan' by 1, remove the character under it - * from 'oldscore' if it matches. */ - if ((scan + lastoffset < oldsize) && - (old[scan + lastoffset] == new[scan])) - oldscore--; - } - - /* Skip this section if we found an exact match that would be - * better serviced by a forward extension of the previous match. */ - if ((len != oldscore) || (scan == newsize)) { - /* Figure out how far forward the previous match should be - * extended... */ - s = 0; - Sf = 0; - lenf = 0; - for (i = 0; (lastscan + i < scan) && (lastpos + i < oldsize);) { - if (old[lastpos + i] == new[lastscan + i]) - s++; - i++; - if (s * 2 - i > Sf * 2 - lenf) { - Sf = s; - lenf = i; - } - } - - /* ... and how far backwards the next match should be extended. */ - lenb = 0; - if (scan < newsize) { - s = 0; - Sb = 0; - for (i = 1; (scan >= lastscan + i) && (pos >= i); i++) { - if (old[pos - i] == new[scan - i]) - s++; - if (s * 2 - i > Sb * 2 - lenb) { - Sb = s; - lenb = i; - } - } - } - - /* If there is an overlap between the extensions, find the best - * dividing point in the middle and reset 'lenf' and 'lenb' - * accordingly. */ - if (lastscan + lenf > scan - lenb) { - overlap = (lastscan + lenf) - (scan - lenb); - s = 0; - Ss = 0; - lens = 0; - for (i = 0; i < overlap; i++) { - if (new[lastscan + lenf - overlap + i] == - old[lastpos + lenf - overlap + i]) - s++; - if (new[scan - lenb + i] == old[pos - lenb + i]) - s--; - if (s > Ss) { - Ss = s; - lens = i + 1; - } - } - - lenf += lens - overlap; - lenb -= lens; - } - - /* Write the diff data for the last match to the diff section... */ - for (i = 0; i < lenf; i++) - db[dblen + i] = new[lastscan + i] - old[lastpos + i]; - /* ... and, if there's a gap between the extensions just - * calculated, write the data in that gap to the extra section. */ - for (i = 0; i< (scan - lenb) - (lastscan + lenf); i++) - eb[eblen + i] = new[lastscan + lenf + i]; - - /* Update the diff and extra section lengths accordingly. */ - dblen += lenf; - eblen += (scan - lenb) - (lastscan + lenf); - - /* Write the following triple of integers to the control section: - * - length of the diff - * - length of the extra section - * - offset between the end of the diff and the start of the next - * diff, in the old file - */ - offtout(lenf, buf); - if (fwrite(buf, 8, 1, pf) != 1) { - warnx("fwrite"); - goto cleanup; - } - - offtout((scan - lenb) - (lastscan + lenf), buf); - if (fwrite(buf, 8, 1, pf) != 1) { - warn("fwrite"); - goto cleanup; - } - - offtout((pos - lenb) - (lastpos + lenf), buf); - if (fwrite(buf, 8, 1, pf) != 1) { - warn("fwrite"); - goto cleanup; - } - - /* Update the variables describing the last match. Note that - * 'lastscan' is set to the start of the current match _after_ the - * backwards extension; the data in that extension will be written - * in the next pass. */ - lastscan = scan - lenb; - lastpos = pos - lenb; - lastoffset = pos - scan; - } - } - - /* Compute size of compressed ctrl data */ - if ((len = ftello(pf)) == -1) { - warn("ftello"); - goto cleanup; - } - offtout(len - 32, header + 8); - - /* Write diff data */ - if (dblen && fwrite(db, (size_t)dblen, 1, pf) != 1) { - warn("fwrite"); - goto cleanup; - } - - /* Compute size of compressed diff data */ - if ((newsize = ftello(pf)) == -1) { - warn("ftello"); - goto cleanup; - } - offtout(newsize - len, header + 16); - - /* Write extra data */ - if (eblen && fwrite(eb, (size_t)eblen, 1, pf) != 1) { - warn("fwrite"); - goto cleanup; - } - - /* Seek to the beginning, write the header, and close the file */ - if (fseeko(pf, 0, SEEK_SET)) { - warn("fseeko"); - goto cleanup; - } - if (fwrite(header, 32, 1, pf) != 1) { - warn("fwrite(%s)", argv[3]); - goto cleanup; - } - if (fclose(pf)) { - warn("fclose"); - pf = NULL; - goto cleanup; - } - pf = NULL; - - exitstatus = 0; -cleanup: - - if (pf != NULL) { - fclose(pf); - } - - /* Free the memory we used */ - free(db); - free(eb); - free(I); - free(V); - free(old); - free(new); - - return exitstatus; -} diff --git a/Sparkle/Vendor/bsdiff/bspatch.c b/Sparkle/Vendor/bsdiff/bspatch.c deleted file mode 100755 index 753b78cd..00000000 --- a/Sparkle/Vendor/bsdiff/bspatch.c +++ /dev/null @@ -1,398 +0,0 @@ -/*- - * Copyright 2003-2005 Colin Percival - * All rights reserved - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted providing that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. 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. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. - */ - -#if 0 -__FBSDID("$FreeBSD: src/usr.bin/bsdiff/bspatch/bspatch.c,v 1.1 2005/08/06 01:59:06 cperciva Exp $"); -#endif - -#include "bspatch.h" -#include -#include -#include -#include -#include -#include -#include - -#include "bscommon.h" - -/* Compatibility layer for reading either the old BSDIFF40 or the new BSDIFN40 - patch formats: */ - -typedef void* stream_t; - -typedef struct -{ - stream_t (*open)(FILE*); - void (*close)(stream_t); - off_t (*read)(stream_t, void*, off_t); -} io_funcs_t; - -static stream_t BSDIFF40_open(FILE *f) -{ - int bzerr = 0; - BZFILE *s = NULL; - if ((s = BZ2_bzReadOpen(&bzerr, f, 0, 0, NULL, 0)) == NULL) { - warnx("BZ2_bzReadOpen, bz2err = %d", bzerr); - } - return s; -} - -static void BSDIFF40_close(stream_t s) -{ - int bzerr; - BZ2_bzReadClose(&bzerr, (BZFILE*)s); -} - -static off_t BSDIFF40_read(stream_t s, void *buf, off_t len) -{ - int bzerr = 0, lenread = 0; - lenread = BZ2_bzRead(&bzerr, (BZFILE*)s, buf, (int)len); - if (bzerr != BZ_OK && bzerr != BZ_STREAM_END) { - warnx("Corrupt patch\n"); - lenread = -1; - } - return lenread; -} - -static io_funcs_t BSDIFF40_funcs = { - BSDIFF40_open, - BSDIFF40_close, - BSDIFF40_read -}; - - -static stream_t BSDIFN40_open(FILE *f) -{ - return f; -} - -static void BSDIFN40_close(stream_t __unused s) -{ -} - -static off_t BSDIFN40_read(stream_t s, void *buf, off_t len) -{ - return (off_t)fread(buf, 1, (size_t)len, (FILE*)s); -} - -static io_funcs_t BSDIFN40_funcs = { - BSDIFN40_open, - BSDIFN40_close, - BSDIFN40_read -}; - - -#ifndef u_char -typedef unsigned char u_char; -#endif - -static off_t offtin(u_char *buf) -{ - off_t y; - - y=buf[7]&0x7F; - y=y*256;y+=buf[6]; - y=y*256;y+=buf[5]; - y=y*256;y+=buf[4]; - y=y*256;y+=buf[3]; - y=y*256;y+=buf[2]; - y=y*256;y+=buf[1]; - y=y*256;y+=buf[0]; - - if(buf[7]&0x80) y=-y; - - return y; -} - -int bspatch(int argc,const char * const argv[]) -{ - FILE * f = NULL, * cpf = NULL, * dpf = NULL, * epf = NULL; - stream_t cstream = NULL, dstream = NULL, estream = NULL; - ssize_t oldsize = 0,newsize = 0; - ssize_t bzctrllen = 0,bzdatalen = 0; - u_char header[32] = {0},buf[8] = {0}; - u_char *old = NULL, *new = NULL; - off_t oldpos = 0,newpos = 0; - off_t ctrl[3] = {0}; - off_t lenread = 0; - off_t i = 0; - io_funcs_t * io = NULL; - int exitstatus = -1; - - if(argc!=4) { - warnx("usage: %s oldfile newfile patchfile\n",argv[0]); - goto cleanup; - } - - /* Open patch file */ - if ((f = fopen(argv[3], "r")) == NULL) { - warn("fopen(%s)", argv[3]); - goto cleanup; - } - - /* - File format: - 0 8 "BSDIFF40" (bzip2) or "BSDIFN40" (raw) - 8 8 X - 16 8 Y - 24 8 sizeof(newfile) - 32 X bzip2(control block) - 32+X Y bzip2(diff block) - 32+X+Y ??? bzip2(extra block) - with control block a set of triples (x,y,z) meaning "add x bytes - from oldfile to x bytes from the diff block; copy y bytes from the - extra block; seek forwards in oldfile by z bytes". - */ - - /* Read header */ - if (fread(header, 1, 32, f) < 32) { - if (feof(f)) { - warnx("Corrupt patch\n"); - } else { - warn("fread(%s)", argv[3]); - } - goto cleanup; - } - - /* Check for appropriate magic */ - if (memcmp(header, "BSDIFF40", 8) == 0) - io = &BSDIFF40_funcs; - else if (memcmp(header, "BSDIFN40", 8) == 0) - io = &BSDIFN40_funcs; - else { - warnx("Corrupt patch\n"); - goto cleanup; - } - - /* Read lengths from header */ - bzctrllen=offtin(header+8); - bzdatalen=offtin(header+16); - newsize=offtin(header+24); - if((bzctrllen<0) || (bzdatalen<0) || (newsize<0)) { - warnx("Corrupt patch\n"); - goto cleanup; - } - - /* Close patch file and re-open it via libbzip2 at the right places */ - if (fclose(f)) { - warn("fclose(%s)", argv[3]); - f = NULL; - goto cleanup; - } - f = NULL; - - if ((cpf = fopen(argv[3], "r")) == NULL) { - warn("fopen(%s)", argv[3]); - goto cleanup; - } - if (fseeko(cpf, 32, SEEK_SET)) { - warn("fseeko(%s, %lld)", argv[3], - (long long)32); - goto cleanup; - } - cstream = io->open(cpf); - if (cstream == NULL) { - warn("cstream open"); - goto cleanup; - } - if ((dpf = fopen(argv[3], "r")) == NULL) { - warn("fopen(%s)", argv[3]); - goto cleanup; - } - if (fseeko(dpf, 32 + bzctrllen, SEEK_SET)) { - warn("fseeko(%s, %lld)", argv[3], - (long long)(32 + bzctrllen)); - goto cleanup; - } - dstream = io->open(dpf); - if (dstream == NULL) { - warn("dstream open"); - goto cleanup; - } - if ((epf = fopen(argv[3], "r")) == NULL) { - warn("fopen(%s)", argv[3]); - goto cleanup; - } - if (fseeko(epf, 32 + bzctrllen + bzdatalen, SEEK_SET)) { - warn("fseeko(%s, %lld)", argv[3], - (long long)(32 + bzctrllen + bzdatalen)); - goto cleanup; - } - estream = io->open(epf); - if (estream == NULL) { - warn("estream open"); - goto cleanup; - } - off_t size = 0; - old = readfile(argv[1], &size); - if (old == NULL) { - warn("old file: %s", argv[1]); - goto cleanup; - } - - oldsize = size; - - if((new=malloc((size_t)newsize+1))==NULL) { - warn("Failed to allocate memory for new"); - goto cleanup; - } - - oldpos=0;newpos=0; - while(newposread(cstream, buf, 8); - if (lenread < 8) { - warnx("Corrupt patch\n"); - goto cleanup; - } - ctrl[i]=offtin(buf); - }; - - /* Sanity-check */ - if(newpos+ctrl[0]>newsize) { - warnx("Corrupt patch\n"); - goto cleanup; - } - - /* Read diff string */ - lenread = io->read(dstream, new + newpos, ctrl[0]); - if (lenread < 0 || lenread < ctrl[0]) { - warnx("Corrupt patch\n"); - goto cleanup; - } - - /* Add old data to diff string */ - for(i=0;i=0) && (oldpos+inewsize) { - warnx("Corrupt patch\n"); - goto cleanup; - } - - /* Read extra string */ - lenread = io->read(estream, new + newpos, ctrl[1]); - if (lenread < 0 || lenread < ctrl[1]) { - warnx("Corrupt patch\n"); - goto cleanup; - } - - /* Adjust pointers */ - newpos+=ctrl[1]; - oldpos+=ctrl[2]; - }; - - /* Clean up the bzip2 reads */ - io->close(cstream); - cstream = NULL; - io->close(dstream); - dstream = NULL; - io->close(estream); - estream = NULL; - - if (fclose(cpf) != 0) { - warn("fclose cpf(%s)", argv[3]); - cpf = NULL; - goto cleanup; - } - cpf = NULL; - - if (fclose(dpf) != 0) { - warn("fclose dpf(%s)", argv[3]); - dpf = NULL; - goto cleanup; - } - dpf = NULL; - - if (fclose(epf) != 0) { - warn("fclose epf(%s)", argv[3]); - epf = NULL; - goto cleanup; - } - epf = NULL; - - /* Write the new file */ - f = fopen(argv[2], "w"); - if (f == NULL) { - warn("failed to write new file: %s", argv[2]); - goto cleanup; - } - - if (fwrite(new, 1, (size_t)newsize, f) < (size_t)newsize) { - warn("failed to write to new file: %s", argv[2]); - goto cleanup; - } - - if (fclose(f) != 0) { - warn("failed to close new file: %s", argv[2]); - f = NULL; - goto cleanup; - } - f = NULL; - - exitstatus = 0; -cleanup: - free(new); - free(old); - - if (f != NULL) { - fclose(f); - } - - if (estream != NULL) { - io->close(estream); - } - - if (epf != NULL) { - fclose(epf); - } - - if (dstream != NULL) { - io->close(dstream); - } - - if (dpf != NULL) { - fclose(dpf); - } - - if (cstream != NULL) { - io->close(cstream); - } - - if (cpf != NULL) { - fclose(cpf); - } - - return exitstatus; -} diff --git a/Sparkle/Vendor/bsdiff/bspatch.h b/Sparkle/Vendor/bsdiff/bspatch.h deleted file mode 100755 index fe21db74..00000000 --- a/Sparkle/Vendor/bsdiff/bspatch.h +++ /dev/null @@ -1,12 +0,0 @@ -/* - * bspatch.h - * Sparkle - * - * Created by Andy Matuschak on 1/11/10. - * Copyright 2010 Andy Matuschak. All rights reserved. - * - */ - -// So that we can use this method in SUBinaryDeltaApply.m. -// Silences the GCC warning that the prototype doesn't exist. -int bspatch(int argc, const char * const argv[]); diff --git a/Sparkle/Vendor/bsdiff/sais.c b/Sparkle/Vendor/bsdiff/sais.c deleted file mode 100755 index 1c26760b..00000000 --- a/Sparkle/Vendor/bsdiff/sais.c +++ /dev/null @@ -1,534 +0,0 @@ -/* - * sais.c for sais-lite - * Copyright (c) 2008-2010 Yuta Mori All Rights Reserved. - * - * 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. - */ - -#include -#include -#include "sais.h" - -#ifndef UCHAR_SIZE -# define UCHAR_SIZE 256 -#endif -#ifndef MINBUCKETSIZE -# define MINBUCKETSIZE 256 -#endif - -#define sais_bool_type int -#define SAIS_LMSSORT2_LIMIT 0x3fffffff - -#define SAIS_MYMALLOC(_num, _type) ((_type *)malloc((_num) * sizeof(_type))) -#define SAIS_MYFREE(_ptr, _num, _type) free((_ptr)) -#define chr(_a) (cs == sizeof(sais_index_type) ? ((const sais_index_type *)T)[(_a)] : ((const unsigned char *)T)[(_a)]) - -/* find the start or end of each bucket */ -static -void -getCounts(const void *T, sais_index_type *C, sais_index_type n, sais_index_type k, int cs) { - sais_index_type i; - for(i = 0; i < k; ++i) { C[i] = 0; } - for(i = 0; i < n; ++i) { ++C[chr(i)]; } -} -static -void -getBuckets(const sais_index_type *C, sais_index_type *B, sais_index_type k, sais_bool_type end) { - sais_index_type i, sum = 0; - if(end) { for(i = 0; i < k; ++i) { sum += C[i]; B[i] = sum; } } - else { for(i = 0; i < k; ++i) { sum += C[i]; B[i] = sum - C[i]; } } -} - -/* sort all type LMS suffixes */ -static -void -LMSsort1(const void *T, sais_index_type *SA, - sais_index_type *C, sais_index_type *B, - sais_index_type n, sais_index_type k, int cs) { - sais_index_type *b, i, j; - sais_index_type c0, c1; - - /* compute SAl */ - if(C == B) { getCounts(T, C, n, k, cs); } - getBuckets(C, B, k, 0); /* find starts of buckets */ - j = n - 1; - b = SA + B[c1 = chr(j)]; - --j; - *b++ = (chr(j) < c1) ? ~j : j; - for(i = 0; i < n; ++i) { - if(0 < (j = SA[i])) { - assert(chr(j) >= chr(j + 1)); - if((c0 = chr(j)) != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert(i < (b - SA)); - --j; - *b++ = (chr(j) < c1) ? ~j : j; - SA[i] = 0; - } else if(j < 0) { - SA[i] = ~j; - } - } - /* compute SAs */ - if(C == B) { getCounts(T, C, n, k, cs); } - getBuckets(C, B, k, 1); /* find ends of buckets */ - for(i = n - 1, b = SA + B[c1 = 0]; 0 <= i; --i) { - if(0 < (j = SA[i])) { - assert(chr(j) <= chr(j + 1)); - if((c0 = chr(j)) != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert((b - SA) <= i); - --j; - *--b = (chr(j) > c1) ? ~(j + 1) : j; - SA[i] = 0; - } - } -} -static -sais_index_type -LMSpostproc1(const void *T, sais_index_type *SA, - sais_index_type n, sais_index_type m, int cs) { - sais_index_type i, j, p, q, plen, qlen, name; - sais_index_type c0, c1; - sais_bool_type diff; - - /* compact all the sorted substrings into the first m items of SA - 2*m must be not larger than n (proveable) */ - assert(0 < n); - for(i = 0; (p = SA[i]) < 0; ++i) { SA[i] = ~p; assert((i + 1) < n); } - if(i < m) { - for(j = i, ++i;; ++i) { - assert(i < n); - if((p = SA[i]) < 0) { - SA[j++] = ~p; SA[i] = 0; - if(j == m) { break; } - } - } - } - - /* store the length of all substrings */ - i = n - 1; j = n - 1; c0 = chr(n - 1); - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) >= c1)); - for(; 0 <= i;) { - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) <= c1)); - if(0 <= i) { - SA[m + ((i + 1) >> 1)] = j - i; j = i + 1; - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) >= c1)); - } - } - - /* find the lexicographic names of all substrings */ - for(i = 0, name = 0, q = n, qlen = 0; i < m; ++i) { - p = SA[i], plen = SA[m + (p >> 1)], diff = 1; - if((plen == qlen) && ((q + plen) < n)) { - for(j = 0; (j < plen) && (chr(p + j) == chr(q + j)); ++j) { } - if(j == plen) { diff = 0; } - } - if(diff != 0) { ++name, q = p, qlen = plen; } - SA[m + (p >> 1)] = name; - } - - return name; -} -static -void -LMSsort2(const void *T, sais_index_type *SA, - sais_index_type *C, sais_index_type *B, sais_index_type *D, - sais_index_type n, sais_index_type k, int cs) { - sais_index_type *b, i, j, t, d; - sais_index_type c0, c1; - assert(C != B); - - /* compute SAl */ - getBuckets(C, B, k, 0); /* find starts of buckets */ - j = n - 1; - b = SA + B[c1 = chr(j)]; - --j; - t = (chr(j) < c1); - j += n; - *b++ = (t & 1) ? ~j : j; - for(i = 0, d = 0; i < n; ++i) { - if(0 < (j = SA[i])) { - if(n <= j) { d += 1; j -= n; } - assert(chr(j) >= chr(j + 1)); - if((c0 = chr(j)) != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert(i < (b - SA)); - --j; - t = c0; t = (t << 1) | (chr(j) < c1); - if(D[t] != d) { j += n; D[t] = d; } - *b++ = (t & 1) ? ~j : j; - SA[i] = 0; - } else if(j < 0) { - SA[i] = ~j; - } - } - for(i = n - 1; 0 <= i; --i) { - if(0 < SA[i]) { - if(SA[i] < n) { - SA[i] += n; - for(j = i - 1; SA[j] < n; --j) { } - SA[j] -= n; - i = j; - } - } - } - - /* compute SAs */ - getBuckets(C, B, k, 1); /* find ends of buckets */ - for(i = n - 1, d += 1, b = SA + B[c1 = 0]; 0 <= i; --i) { - if(0 < (j = SA[i])) { - if(n <= j) { d += 1; j -= n; } - assert(chr(j) <= chr(j + 1)); - if((c0 = chr(j)) != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert((b - SA) <= i); - --j; - t = c0; t = (t << 1) | (chr(j) > c1); - if(D[t] != d) { j += n; D[t] = d; } - *--b = (t & 1) ? ~(j + 1) : j; - SA[i] = 0; - } - } -} -static -sais_index_type -LMSpostproc2(sais_index_type *SA, sais_index_type n, sais_index_type m) { - sais_index_type i, j, d, name; - - /* compact all the sorted LMS substrings into the first m items of SA */ - assert(0 < n); - for(i = 0, name = 0; (j = SA[i]) < 0; ++i) { - j = ~j; - if(n <= j) { name += 1; } - SA[i] = j; - assert((i + 1) < n); - } - if(i < m) { - for(d = i, ++i;; ++i) { - assert(i < n); - if((j = SA[i]) < 0) { - j = ~j; - if(n <= j) { name += 1; } - SA[d++] = j; SA[i] = 0; - if(d == m) { break; } - } - } - } - if(name < m) { - /* store the lexicographic names */ - for(i = m - 1, d = name + 1; 0 <= i; --i) { - if(n <= (j = SA[i])) { j -= n; --d; } - SA[m + (j >> 1)] = d; - } - } else { - /* unset flags */ - for(i = 0; i < m; ++i) { - if(n <= (j = SA[i])) { j -= n; SA[i] = j; } - } - } - - return name; -} - -/* compute SA and BWT */ -static -void -induceSA(const void *T, sais_index_type *SA, - sais_index_type *C, sais_index_type *B, - sais_index_type n, sais_index_type k, int cs) { - sais_index_type *b, i, j; - sais_index_type c0, c1; - /* compute SAl */ - if(C == B) { getCounts(T, C, n, k, cs); } - getBuckets(C, B, k, 0); /* find starts of buckets */ - j = n - 1; - b = SA + B[c1 = chr(j)]; - *b++ = ((0 < j) && (chr(j - 1) < c1)) ? ~j : j; - for(i = 0; i < n; ++i) { - j = SA[i], SA[i] = ~j; - if(0 < j) { - --j; - assert(chr(j) >= chr(j + 1)); - if((c0 = chr(j)) != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert(i < (b - SA)); - *b++ = ((0 < j) && (chr(j - 1) < c1)) ? ~j : j; - } - } - /* compute SAs */ - if(C == B) { getCounts(T, C, n, k, cs); } - getBuckets(C, B, k, 1); /* find ends of buckets */ - for(i = n - 1, b = SA + B[c1 = 0]; 0 <= i; --i) { - if(0 < (j = SA[i])) { - --j; - assert(chr(j) <= chr(j + 1)); - if((c0 = chr(j)) != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert((b - SA) <= i); - *--b = ((j == 0) || (chr(j - 1) > c1)) ? ~j : j; - } else { - SA[i] = ~j; - } - } -} -static -sais_index_type -computeBWT(const void *T, sais_index_type *SA, - sais_index_type *C, sais_index_type *B, - sais_index_type n, sais_index_type k, int cs) { - sais_index_type *b, i, j, pidx = -1; - sais_index_type c0, c1; - /* compute SAl */ - if(C == B) { getCounts(T, C, n, k, cs); } - getBuckets(C, B, k, 0); /* find starts of buckets */ - j = n - 1; - b = SA + B[c1 = chr(j)]; - *b++ = ((0 < j) && (chr(j - 1) < c1)) ? ~j : j; - for(i = 0; i < n; ++i) { - if(0 < (j = SA[i])) { - --j; - assert(chr(j) >= chr(j + 1)); - SA[i] = ~((sais_index_type)(c0 = chr(j))); - if(c0 != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert(i < (b - SA)); - *b++ = ((0 < j) && (chr(j - 1) < c1)) ? ~j : j; - } else if(j != 0) { - SA[i] = ~j; - } - } - /* compute SAs */ - if(C == B) { getCounts(T, C, n, k, cs); } - getBuckets(C, B, k, 1); /* find ends of buckets */ - for(i = n - 1, b = SA + B[c1 = 0]; 0 <= i; --i) { - if(0 < (j = SA[i])) { - --j; - assert(chr(j) <= chr(j + 1)); - SA[i] = (c0 = chr(j)); - if(c0 != c1) { B[c1] = b - SA; b = SA + B[c1 = c0]; } - assert((b - SA) <= i); - *--b = ((0 < j) && (chr(j - 1) > c1)) ? ~((sais_index_type)chr(j - 1)) : j; - } else if(j != 0) { - SA[i] = ~j; - } else { - pidx = i; - } - } - return pidx; -} - -/* find the suffix array SA of T[0..n-1] in {0..255}^n */ -static -sais_index_type -sais_main(const void *T, sais_index_type *SA, - sais_index_type fs, sais_index_type n, sais_index_type k, int cs, - sais_bool_type isbwt) { - sais_index_type *C, *B, *D, *RA, *b; - sais_index_type i, j, m, p, q, t, name, pidx = 0, newfs; - sais_index_type c0, c1; - unsigned int flags; - - assert((T != NULL) && (SA != NULL)); - assert((0 <= fs) && (0 < n) && (1 <= k)); - - if(k <= MINBUCKETSIZE) { - if((C = SAIS_MYMALLOC((size_t)k, sais_index_type)) == NULL) { return -2; } - if(k <= fs) { - B = SA + (n + fs - k); - flags = 1; - } else { - if((B = SAIS_MYMALLOC((size_t)k, sais_index_type)) == NULL) { SAIS_MYFREE(C, k, sais_index_type); return -2; } - flags = 3; - } - } else if(k <= fs) { - C = SA + (n + fs - k); - if(k <= (fs - k)) { - B = C - k; - flags = 0; - } else if(k <= (MINBUCKETSIZE * 4)) { - if((B = SAIS_MYMALLOC((size_t)k, sais_index_type)) == NULL) { return -2; } - flags = 2; - } else { - B = C; - flags = 8; - } - } else { - if((C = B = SAIS_MYMALLOC((size_t)k, sais_index_type)) == NULL) { return -2; } - flags = 4 | 8; - } - if((n <= SAIS_LMSSORT2_LIMIT) && (2 <= (n / k))) { - if(flags & 1) { flags |= ((k * 2) <= (fs - k)) ? 32 : 16; } - else if((flags == 0) && ((k * 2) <= (fs - k * 2))) { flags |= 32; } - } - - /* stage 1: reduce the problem by at least 1/2 - sort all the LMS-substrings */ - getCounts(T, C, n, k, cs); getBuckets(C, B, k, 1); /* find ends of buckets */ - for(i = 0; i < n; ++i) { SA[i] = 0; } - b = &t; i = n - 1; j = n; m = 0; c0 = chr(n - 1); - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) >= c1)); - for(; 0 <= i;) { - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) <= c1)); - if(0 <= i) { - *b = j; b = SA + --B[c1]; j = i; ++m; - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) >= c1)); - } - } - - if(1 < m) { - if(flags & (16 | 32)) { - if(flags & 16) { - if((D = SAIS_MYMALLOC((size_t)k * 2, sais_index_type)) == NULL) { - if(flags & (1 | 4)) { SAIS_MYFREE(C, k, sais_index_type); } - if(flags & 2) { SAIS_MYFREE(B, k, sais_index_type); } - return -2; - } - } else { - D = B - k * 2; - } - assert((j + 1) < n); - ++B[chr(j + 1)]; - for(i = 0, j = 0; i < k; ++i) { - j += C[i]; - if(B[i] != j) { assert(SA[B[i]] != 0); SA[B[i]] += n; } - D[i] = D[i + k] = 0; - } - LMSsort2(T, SA, C, B, D, n, k, cs); - name = LMSpostproc2(SA, n, m); - if(flags & 16) { SAIS_MYFREE(D, k * 2, sais_index_type); } - } else { - LMSsort1(T, SA, C, B, n, k, cs); - name = LMSpostproc1(T, SA, n, m, cs); - } - } else if(m == 1) { - *b = j + 1; - name = 1; - } else { - name = 0; - } - - /* stage 2: solve the reduced problem - recurse if names are not yet unique */ - if(name < m) { - if(flags & 4) { SAIS_MYFREE(C, k, sais_index_type); } - if(flags & 2) { SAIS_MYFREE(B, k, sais_index_type); } - newfs = (n + fs) - (m * 2); - if((flags & (1 | 4 | 8)) == 0) { - if((k + name) <= newfs) { newfs -= k; } - else { flags |= 8; } - } - assert((n >> 1) <= (newfs + m)); - RA = SA + m + newfs; - for(i = m + (n >> 1) - 1, j = m - 1; m <= i; --i) { - if(SA[i] != 0) { - RA[j--] = SA[i] - 1; - } - } - if(sais_main(RA, SA, newfs, m, name, sizeof(sais_index_type), 0) != 0) { - if(flags & 1) { SAIS_MYFREE(C, k, sais_index_type); } - return -2; - } - - i = n - 1; j = m - 1; c0 = chr(n - 1); - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) >= c1)); - for(; 0 <= i;) { - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) <= c1)); - if(0 <= i) { - RA[j--] = i + 1; - do { c1 = c0; } while((0 <= --i) && ((c0 = chr(i)) >= c1)); - } - } - for(i = 0; i < m; ++i) { SA[i] = RA[SA[i]]; } - if(flags & 4) { - if((C = B = SAIS_MYMALLOC((size_t)k, sais_index_type)) == NULL) { return -2; } - } - if(flags & 2) { - if((B = SAIS_MYMALLOC((size_t)k, sais_index_type)) == NULL) { - if(flags & 1) { SAIS_MYFREE(C, k, sais_index_type); } - return -2; - } - } - } - - /* stage 3: induce the result for the original problem */ - if(flags & 8) { getCounts(T, C, n, k, cs); } - /* put all left-most S characters into their buckets */ - if(1 < m) { - getBuckets(C, B, k, 1); /* find ends of buckets */ - i = m - 1, j = n, p = SA[m - 1], c1 = chr(p); - do { - q = B[c0 = c1]; - while(q < j) { SA[--j] = 0; } - do { - SA[--j] = p; - if(--i < 0) { break; } - p = SA[i]; - } while((c1 = chr(p)) == c0); - } while(0 <= i); - while(0 < j) { SA[--j] = 0; } - } - if(isbwt == 0) { induceSA(T, SA, C, B, n, k, cs); } - else { pidx = computeBWT(T, SA, C, B, n, k, cs); } - if(flags & (1 | 4)) { SAIS_MYFREE(C, k, sais_index_type); } - if(flags & 2) { SAIS_MYFREE(B, k, sais_index_type); } - - return pidx; -} - -/*---------------------------------------------------------------------------*/ - -sais_index_type -sais(const unsigned char *T, sais_index_type *SA, int n) { - if((T == NULL) || (SA == NULL) || (n < 0)) { return -1; } - if(n <= 1) { if(n == 1) { SA[0] = 0; } return 0; } - return sais_main(T, SA, 0, n, UCHAR_SIZE, sizeof(unsigned char), 0); -} - -sais_index_type -sais_int(const int *T, sais_index_type *SA, int n, int k) { - if((T == NULL) || (SA == NULL) || (n < 0) || (k <= 0)) { return -1; } - if(n <= 1) { if(n == 1) { SA[0] = 0; } return 0; } - return sais_main(T, SA, 0, n, k, sizeof(int), 0); -} - -sais_index_type -sais_bwt(const unsigned char *T, unsigned char *U, sais_index_type *A, int n) { - int i; - sais_index_type pidx; - if((T == NULL) || (U == NULL) || (A == NULL) || (n < 0)) { return -1; } - if(n <= 1) { if(n == 1) { U[0] = T[0]; } return n; } - pidx = sais_main(T, A, 0, n, UCHAR_SIZE, sizeof(unsigned char), 1); - if(pidx < 0) { return pidx; } - U[0] = T[n - 1]; - for(i = 0; i < pidx; ++i) { U[i + 1] = (unsigned char)A[i]; } - for(i += 1; i < n; ++i) { U[i] = (unsigned char)A[i]; } - pidx += 1; - return pidx; -} - -sais_index_type -sais_int_bwt(const sais_index_type *T, sais_index_type *U, sais_index_type *A, int n, int k) { - int i; - sais_index_type pidx; - if((T == NULL) || (U == NULL) || (A == NULL) || (n < 0) || (k <= 0)) { return -1; } - if(n <= 1) { if(n == 1) { U[0] = T[0]; } return n; } - pidx = sais_main(T, A, 0, n, k, sizeof(int), 1); - if(pidx < 0) { return pidx; } - U[0] = T[n - 1]; - for(i = 0; i < pidx; ++i) { U[i + 1] = A[i]; } - for(i += 1; i < n; ++i) { U[i] = A[i]; } - pidx += 1; - return pidx; -} diff --git a/Sparkle/Vendor/bsdiff/sais.h b/Sparkle/Vendor/bsdiff/sais.h deleted file mode 100755 index eec93a99..00000000 --- a/Sparkle/Vendor/bsdiff/sais.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * sais.h for sais-lite - * Copyright (c) 2008-2010 Yuta Mori All Rights Reserved. - * - * 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. - */ - -#ifndef SAIS_H -#define SAIS_H 1 - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -#include - -#define sais_index_type off_t - -/* find the suffix array SA of T[0..n-1] - use a working space (excluding T and SA) of at most 2n+O(lg n) */ -sais_index_type -sais(const unsigned char *T, sais_index_type *SA, int n); - -/* find the suffix array SA of T[0..n-1] in {0..k-1}^n - use a working space (excluding T and SA) of at most MAX(4k,2n) */ -sais_index_type -sais_int(const int *T, sais_index_type *SA, int n, int k); - -/* burrows-wheeler transform */ -sais_index_type -sais_bwt(const unsigned char *T, unsigned char *U, sais_index_type *A, int n); -sais_index_type -sais_int_bwt(const sais_index_type *T, sais_index_type *U, sais_index_type *A, int n, int k); - - -#ifdef __cplusplus -} /* extern "C" */ -#endif /* __cplusplus */ - -#endif /* SAIS_H */ diff --git a/Sparkle/bin/generate_keys b/Sparkle/bin/generate_keys deleted file mode 100755 index d5b49db3..00000000 --- a/Sparkle/bin/generate_keys +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -set -e -for file in "dsaparam.pem" "dsa_priv.pem" "dsa_pub.pem"; do - if [ -e "$file" ]; then - echo "There's already a $file here! Move it aside or be more careful!" - exit 1 - fi -done - -openssl="/usr/bin/openssl" -$openssl gendsa <($openssl dsaparam 4096) -out dsa_priv.pem -chmod 0400 dsa_priv.pem -$openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem - -echo " -Generated two files: -dsa_priv.pem: your private key. Keep it secret and don't share it! -dsa_pub.pem: public counterpart to include in the app bundle. - -BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE! -If you lose it, your users will be unable to upgrade! -" - -open -R dsa_priv.pem diff --git a/Sparkle/bin/sign_update b/Sparkle/bin/sign_update deleted file mode 100755 index 7c439990..00000000 --- a/Sparkle/bin/sign_update +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e -set -o pipefail -if [ "$#" -ne 2 ]; then - echo "Usage: $0 update_archive private_key" - exit 1 -fi -openssl=/usr/bin/openssl -$openssl dgst -sha1 -binary < "$1" | $openssl dgst -dss1 -sign "$2" | $openssl enc -base64 diff --git a/Sparkle/fileop/SUFileOperationConstants.h b/Sparkle/fileop/SUFileOperationConstants.h deleted file mode 100755 index 9f4ba685..00000000 --- a/Sparkle/fileop/SUFileOperationConstants.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// SUFileOperationConstants.h -// Sparkle -// -// Created by Mayur Pawashe on 6/5/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -extern char * const SUFileOpRemoveQuarantineCommand; -extern char * const SUFileOpCopyCommand; -extern char * const SUFileOpMoveCommand; -extern char * const SUFileOpChangeOwnerAndGroupCommand; -extern char * const SUFileOpUpdateModificationAndAccessTimeCommand; -extern char * const SUFileOpMakeDirectoryCommand; -extern char * const SUFileOpRemoveCommand; -extern char * const SUFileOpInstallCommand; diff --git a/Sparkle/fileop/SUFileOperationConstants.m b/Sparkle/fileop/SUFileOperationConstants.m deleted file mode 100755 index 5ece5917..00000000 --- a/Sparkle/fileop/SUFileOperationConstants.m +++ /dev/null @@ -1,18 +0,0 @@ -// -// SUFileOperationConstants.m -// Sparkle -// -// Created by Mayur Pawashe on 6/5/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -#import "SUFileOperationConstants.h" - -char * const SUFileOpRemoveQuarantineCommand = "xattr-d-apple-quarantine"; -char * const SUFileOpCopyCommand = "cp"; -char * const SUFileOpMoveCommand = "mv"; -char * const SUFileOpChangeOwnerAndGroupCommand = "chown"; -char * const SUFileOpUpdateModificationAndAccessTimeCommand = "touch"; -char * const SUFileOpMakeDirectoryCommand = "mkdir"; -char * const SUFileOpRemoveCommand = "rm"; -char * const SUFileOpInstallCommand = "installer"; diff --git a/Sparkle/fileop/fileop.m b/Sparkle/fileop/fileop.m deleted file mode 100755 index 044f2abc..00000000 --- a/Sparkle/fileop/fileop.m +++ /dev/null @@ -1,151 +0,0 @@ -// -// fileop.m -// fileop -// -// Created by Mayur Pawashe on 6/5/16. -// Copyright © 2016 Sparkle Project. All rights reserved. -// - -#import -#import "SUFileManager.h" -#import "SUFileOperationConstants.h" - -// If we fail, we exit with a unique status code -// We don't try to NSLog because the logs can't be seen anywhere, -// and we don't want to log to a file irresponsibly (especially as root), -// nor want to communicate to the parent forcing the parent to read from the stdout pipe -// (allowing us to avoid any sort of potential blocking issues?) -typedef NS_ENUM(uint8_t, SUFileOpError) -{ - SUWritePIDFailure = 0x02, - SUFlushFailure = 0x03, - SUInsufficientNumberOfArguments = 0x04, - SUCommandNameUTF8ParseFailure = 0x05, - SUPathUTF8ParseFailure = 0x06, - SUQuarantineRemovalFailure = 0x07, - SUCopyFailure = 0x08, - SUMoveFailure = 0x09, - SUChangeOwnerAndGroupFailure = 0x0A, - SUTouchFailure = 0x0B, - SUMakeDirectoryFailure = 0x0C, - SURemoveFailure = 0x0D, - SUPackageFailureStatusCode = 0x0E, - SUPackageRaisedExceptionFailure = 0x0F, - SUInvalidCommandFailure = 0x10, - // This code can be OR'd with another one to produce a unique combination - SUInvalidOrNoDestination = 0x80 -}; - -int main(int argc, const char *argv[]) -{ - @autoreleasepool { - // Before we do anything, we should let the parent know our pid so they can wait() on us - // We do this because AuthorizationExecuteWithPrivileges() has no way of reporting back the child pid, - // but it does give us a communication pipe - uint32_t pid = CFSwapInt32HostToLittle((uint32_t)getpid()); - if (fwrite(&pid, sizeof(pid), 1, stdout) < 1) { - exit(SUWritePIDFailure); - } - - if (fflush(stdout) != 0) { - exit(SUFlushFailure); - } - - // At least we need the command name and file path arguments - if (argc < 3) { - exit(SUInsufficientNumberOfArguments); - } - - NSString *command = [[NSString alloc] initWithUTF8String:argv[1]]; - if (command == nil) { - exit(SUCommandNameUTF8ParseFailure); - } - - NSString *filepath = [[NSString alloc] initWithUTF8String:argv[2]]; - if (filepath == nil) { - exit(SUPathUTF8ParseFailure); - } - - NSURL *fileURL = [NSURL fileURLWithPath:filepath]; - if (fileURL == nil) { - exit(SUPathUTF8ParseFailure); - } - - NSURL *destinationURL = nil; - if (argc >= 4) { - NSString *destinationPath = [[NSString alloc] initWithUTF8String:argv[3]]; - if (destinationPath != nil) { - destinationURL = [NSURL fileURLWithPath:destinationPath]; - } - } - - // This tool should be executed as root, so we should not try to authorize - SUFileManager *fileManager = [SUFileManager defaultManager]; - - if ([command isEqualToString:@(SUFileOpRemoveQuarantineCommand)]) { - if (![fileManager releaseItemFromQuarantineAtRootURL:fileURL error:NULL]) { - exit(SUQuarantineRemovalFailure); - } - } else if ([command isEqualToString:@(SUFileOpCopyCommand)]) { - if (destinationURL != nil) { - if (![fileManager copyItemAtURL:fileURL toURL:destinationURL error:NULL]) { - exit(SUCopyFailure); - } - } else { - exit(SUInvalidOrNoDestination | SUCopyFailure); - } - } else if ([command isEqualToString:@(SUFileOpMoveCommand)]) { - if (destinationURL != nil) { - if (![fileManager moveItemAtURL:fileURL toURL:destinationURL error:NULL]) { - exit(SUMoveFailure); - } - } else { - exit(SUInvalidOrNoDestination | SUMoveFailure); - } - } else if ([command isEqualToString:@(SUFileOpChangeOwnerAndGroupCommand)]) { - if (destinationURL != nil) { - if (![fileManager changeOwnerAndGroupOfItemAtRootURL:fileURL toMatchURL:destinationURL error:NULL]) { - exit(SUChangeOwnerAndGroupFailure); - } - } else { - exit(SUInvalidOrNoDestination | SUChangeOwnerAndGroupFailure); - } - } else if ([command isEqualToString:@(SUFileOpUpdateModificationAndAccessTimeCommand)]) { - if (![fileManager updateModificationAndAccessTimeOfItemAtURL:fileURL error:NULL]) { - exit(SUTouchFailure); - } - } else if ([command isEqualToString:@(SUFileOpMakeDirectoryCommand)]) { - if (![fileManager makeDirectoryAtURL:fileURL error:NULL]) { - exit(SUMakeDirectoryFailure); - } - } else if ([command isEqualToString:@(SUFileOpRemoveCommand)]) { - if (![fileManager removeItemAtURL:fileURL error:NULL]) { - exit(SURemoveFailure); - } - } else if ([command isEqualToString:@(SUFileOpInstallCommand)]) { - // The one command that can *only* be run as the root user - NSString *installerPath = @"/usr/sbin/installer"; - - NSTask *task = [[NSTask alloc] init]; - task.launchPath = installerPath; - task.arguments = @[@"-pkg", filepath, @"-target", @"/"]; - // Output won't show up anyway, so we may as well ignore it - task.standardError = [NSPipe pipe]; - task.standardOutput = [NSPipe pipe]; - - @try { - [task launch]; - [task waitUntilExit]; - if (task.terminationStatus != EXIT_SUCCESS) { - exit(SUPackageFailureStatusCode); - } - } @catch (NSException *) { - exit(SUPackageRaisedExceptionFailure); - } - } else { - exit(SUInvalidCommandFailure); - } - - return EXIT_SUCCESS; - } -} diff --git a/Versioning And Distribution.xcodeproj/project.pbxproj b/Versioning And Distribution.xcodeproj/project.pbxproj index ccd8aadd..64856b79 100644 --- a/Versioning And Distribution.xcodeproj/project.pbxproj +++ b/Versioning And Distribution.xcodeproj/project.pbxproj @@ -23,7 +23,6 @@ 7EBA20C517ED59C6008E54C5 /* PreBuild.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = PreBuild.sh; sourceTree = ""; }; 7EBA20C617ED59C6008E54C5 /* SignApp.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = SignApp.sh; sourceTree = ""; }; 7EBA20C717ED59C6008E54C5 /* SignInstaller.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = SignInstaller.sh; sourceTree = ""; }; - 7EBA20D517ED7B41008E54C5 /* GenerateAppcast.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = GenerateAppcast.sh; sourceTree = ""; }; 7EEB2D6E1847F2A2008B6D1C /* preinstall */ = {isa = PBXFileReference; lastKnownFileType = text; path = preinstall; sourceTree = ""; }; /* End PBXFileReference section */ @@ -89,7 +88,6 @@ 7EBA20C617ED59C6008E54C5 /* SignApp.sh */, 7EBA20C717ED59C6008E54C5 /* SignInstaller.sh */, 7EBA20C217ED59C6008E54C5 /* BuildInstaller.sh */, - 7EBA20D517ED7B41008E54C5 /* GenerateAppcast.sh */, ); path = Scripts; sourceTree = ""; @@ -175,20 +173,6 @@ passBuildSettingsInEnvironment = 0; productName = "Sign Application"; }; - 7EBA20D617ED7D1C008E54C5 /* Make Release */ = { - isa = PBXLegacyTarget; - buildArgumentsString = "./Scripts/GenerateAppcast.sh ${ACTION}"; - buildConfigurationList = 7EBA20D717ED7D1C008E54C5 /* Build configuration list for PBXLegacyTarget "Make Release" */; - buildPhases = ( - ); - buildToolPath = /bin/sh; - buildWorkingDirectory = "${SOURCE_ROOT}"; - dependencies = ( - ); - name = "Make Release"; - passBuildSettingsInEnvironment = 0; - productName = "Generate Appcast & Archive"; - }; /* End PBXLegacyTarget section */ /* Begin PBXProject section */ @@ -214,7 +198,6 @@ 7E72E36A181B94F5002165DD /* Sign Kexts */, 7E2ACD911791B54B0061C677 /* Build Installer */, 7E43CE09179742DB001E3636 /* Sign Installer */, - 7EBA20D617ED7D1C008E54C5 /* Make Release */, ); }; /* End PBXProject section */ @@ -612,79 +595,6 @@ }; name = Release; }; - 7EBA20D817ED7D1C008E54C5 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - 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__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUGGING_SYMBOLS = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_GENERATE_DEBUGGING_SYMBOLS = YES; - 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; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.8; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Debug; - }; - 7EBA20D917ED7D1C008E54C5 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - 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__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = YES; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - 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; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.8; - OTHER_CFLAGS = ""; - OTHER_LDFLAGS = ""; - PRODUCT_NAME = "$(TARGET_NAME)"; - }; - name = Release; - }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -742,15 +652,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 7EBA20D717ED7D1C008E54C5 /* Build configuration list for PBXLegacyTarget "Make Release" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 7EBA20D817ED7D1C008E54C5 /* Debug */, - 7EBA20D917ED7D1C008E54C5 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; /* End XCConfigurationList section */ }; rootObject = 7EB7E70A17834A740071B3F0 /* Project object */; diff --git a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Kexts.xcscheme b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Kexts.xcscheme index 863dc4da..46691ca5 100644 --- a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Kexts.xcscheme +++ b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Kexts.xcscheme @@ -7,7 +7,7 @@ buildImplicitDependencies = "YES"> + + + + @@ -130,6 +139,15 @@ savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> + + + + diff --git a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build and Sign Binaries.xcscheme b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build and Sign Binaries.xcscheme index f45637bd..8a6bb89d 100644 --- a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build and Sign Binaries.xcscheme +++ b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build and Sign Binaries.xcscheme @@ -7,7 +7,7 @@ buildImplicitDependencies = "YES"> - - - - - - - - + + + + + + + + @@ -74,6 +97,15 @@ savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> + + + + diff --git a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Generate Release Files.xcscheme b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Generate Release Files.xcscheme deleted file mode 100644 index 6eb909db..00000000 --- a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Generate Release Files.xcscheme +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Apps.xcscheme b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/HWMonitor.xcscheme similarity index 80% rename from Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Apps.xcscheme rename to Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/HWMonitor.xcscheme index 8d790fd0..1254e2e4 100644 --- a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Build Apps.xcscheme +++ b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/HWMonitor.xcscheme @@ -7,7 +7,7 @@ buildImplicitDependencies = "YES"> - - - - - - - - + + + + @@ -60,6 +69,15 @@ savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> + + + + diff --git a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Installer.xcscheme b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Installer.xcscheme deleted file mode 100644 index a1a7ca8a..00000000 --- a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Installer.xcscheme +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Kexts.xcscheme b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Kexts.xcscheme index 26960f7d..65638977 100644 --- a/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Kexts.xcscheme +++ b/Versioning And Distribution.xcodeproj/xcshareddata/xcschemes/Sign Kexts.xcscheme @@ -7,7 +7,7 @@ buildImplicitDependencies = "YES"> + + + + @@ -60,6 +69,15 @@ savedToolIdentifier = "" useCustomWorkingDirectory = "NO" debugDocumentVersioning = "YES"> + + + +