From 2963f788e150698b343408df16719bf09120aa25 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Wed, 15 Jun 2016 13:43:40 -0700 Subject: [PATCH 1/2] Fix version number in Doxyfile. --- Documentation/Doxyfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Doxyfile b/Documentation/Doxyfile index a2d21a3e..e1ef2cd2 100644 --- a/Documentation/Doxyfile +++ b/Documentation/Doxyfile @@ -1,6 +1,6 @@ PROJECT_NAME = Sparkle -PROJECT_NUMBER = 1.7.1 PROJECT_BRIEF = "A software update framework for OS X" +PROJECT_NUMBER = 1.14.0 PROJECT_LOGO = Resources/Images.xcassets/AppIcon.appiconset/icon_32x32@2x.png RECURSIVE = YES From bb624ffa5950966bb738dd83f973d3aad907324b Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Wed, 15 Jun 2016 13:46:19 -0700 Subject: [PATCH 2/2] Replace OS X with macOS or more generic terminology. --- CHANGELOG | 8 ++++---- Documentation/Doxyfile | 2 +- README.markdown | 4 ++-- Sparkle.podspec | 2 +- Sparkle/SUBinaryDeltaCreate.m | 2 +- Sparkle/SUFileManager.h | 4 ++-- Sparkle/SUFileManager.m | 2 +- Sparkle/SUGuidedPackageInstaller.h | 2 +- Sparkle/SUHost.m | 4 ++-- Sparkle/SUUpdateAlert.m | 2 +- Sparkle/SUUpdater.m | 4 ++-- Tests/SUFileManagerTest.swift | 2 +- fileop/fileop.m | 2 +- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 1af8a3e9..ce1aa63f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -56,7 +56,7 @@ Important security fixes: - 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 OS X 10.11 + - 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 @@ -154,12 +154,12 @@ Important security fixes: # 1.8.0 (Jul 26, 2014) -* New SUDSAVerifier based on up-to-date OS X APIs (Zachary Waldowski) +* 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 OS X 10.10 (C.W. Betts) +* Quarantine removal on macOS 10.10 (C.W. Betts) * Updated Japanese localization (1024jp) * Added Greek localization @@ -180,7 +180,7 @@ Important security fixes: # 1.7.0 -* Dropped support for OS X 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). +* 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) diff --git a/Documentation/Doxyfile b/Documentation/Doxyfile index e1ef2cd2..4b6ae1ae 100644 --- a/Documentation/Doxyfile +++ b/Documentation/Doxyfile @@ -1,6 +1,6 @@ PROJECT_NAME = Sparkle -PROJECT_BRIEF = "A software update framework for OS X" 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 diff --git a/README.markdown b/README.markdown index cc5ce8e1..6d2c22a5 100644 --- a/README.markdown +++ b/README.markdown @@ -6,7 +6,7 @@ An easy-to-use software update framework for Cocoa developers. ## Changes since 1.5b -* Up-to-date with 10.11 SDK and Xcode 7. Supports OS X 10.7+. +* Up-to-date with 10.11 SDK and Xcode 7. Supports macOS 10.7+. * Cleaned up and modernized code, using ARC and Autolayout. * Merged bugfixes, security fixes and some features from multiple Sparkle forks. * Truly automatic background updates (no UI at all) when user agreed to "Automatically download and install updates in the future." @@ -33,7 +33,7 @@ An easy-to-use software update framework for Cocoa developers. ## Requirements -* Runtime: OS X 10.7 or greater +* 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/)) diff --git a/Sparkle.podspec b/Sparkle.podspec index e895c250..771dd2de 100644 --- a/Sparkle.podspec +++ b/Sparkle.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "Sparkle" s.version = "1.14.0" - s.summary = "A software update framework for OS X" + 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/" diff --git a/Sparkle/SUBinaryDeltaCreate.m b/Sparkle/SUBinaryDeltaCreate.m index 98a6f08b..0a8fbc52 100644 --- a/Sparkle/SUBinaryDeltaCreate.m +++ b/Sparkle/SUBinaryDeltaCreate.m @@ -87,7 +87,7 @@ static NSDictionary *infoForFile(FTSENT *ent) static bool aclExists(const FTSENT *ent) { - // OS X does not currently support ACLs for symlinks + // macOS does not currently support ACLs for symlinks if (ent->fts_info == FTS_SL) { return NO; } diff --git a/Sparkle/SUFileManager.h b/Sparkle/SUFileManager.h index e914cdc3..6aa0f9af 100644 --- a/Sparkle/SUFileManager.h +++ b/Sparkle/SUFileManager.h @@ -145,8 +145,8 @@ * @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 OS X 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 OS X's behavior when a user opens an application for the first time (i.e, the xattr isn't deleted), + * 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. diff --git a/Sparkle/SUFileManager.m b/Sparkle/SUFileManager.m index 45080920..6488e016 100644 --- a/Sparkle/SUFileManager.m +++ b/Sparkle/SUFileManager.m @@ -360,7 +360,7 @@ static BOOL SUMakeRefFromURL(NSURL *url, FSRef *ref, NSError **error) { } // Removes the directory tree rooted at |root| from the file quarantine. -// The quarantine was introduced on OS X 10.5 and is described at: +// 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 // diff --git a/Sparkle/SUGuidedPackageInstaller.h b/Sparkle/SUGuidedPackageInstaller.h index 100e0198..4a9fc74b 100644 --- a/Sparkle/SUGuidedPackageInstaller.h +++ b/Sparkle/SUGuidedPackageInstaller.h @@ -11,7 +11,7 @@ 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 Mac OS X's built-in command line installer, `/usr/sbin/installer`. No installation interface is shown to the user. +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. diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index 632cd641..5f9cff46 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -128,11 +128,11 @@ { // Cache the application icon. NSString *iconPath = [self.bundle pathForResource:[self.bundle objectForInfoDictionaryKey:@"CFBundleIconFile"] ofType:@"icns"]; - // According to the OS X docs, "CFBundleIconFile - This key identifies the file containing + // 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 OS X 10.3.9) so we'll also try: + // 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]; } diff --git a/Sparkle/SUUpdateAlert.m b/Sparkle/SUUpdateAlert.m index 08ccc755..39698693 100644 --- a/Sparkle/SUUpdateAlert.m +++ b/Sparkle/SUUpdateAlert.m @@ -128,7 +128,7 @@ self.releaseNotesView.policyDelegate = self; // Set the default font - // "-apple-system-font" is a reference to the system UI font on OS X. "-apple-system" is the new recommended token, but for backward compatibility we can't use it. + // "-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]; diff --git a/Sparkle/SUUpdater.m b/Sparkle/SUUpdater.m index 29afa018..83f61422 100644 --- a/Sparkle/SUUpdater.m +++ b/Sparkle/SUUpdater.m @@ -145,10 +145,10 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults if (!servingOverHttps) { BOOL atsExceptionsExist = nil != [self.host objectForInfoDictionaryKey:@"NSAppTransportSecurity"]; if (isMainBundle && !atsExceptionsExist) { - [self showAlertText:@"Insecure feed URL is blocked in OS X 10.11" + [self showAlertText:@"Insecure feed URL is blocked in macOS 10.11" informativeText:[NSString stringWithFormat:@"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/", [feedURL absoluteString]]]; } else if (!isMainBundle) { - SULog(@"WARNING: Serving updates over HTTP may be blocked in OS X 10.11. Please change the feed URL (%@) to use HTTPS. For more information:\nhttps://sparkle-project.org/documentation/app-transport-security/", feedURL); + 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 diff --git a/Tests/SUFileManagerTest.swift b/Tests/SUFileManagerTest.swift index 3287cddf..bfb6a41f 100644 --- a/Tests/SUFileManagerTest.swift +++ b/Tests/SUFileManagerTest.swift @@ -167,7 +167,7 @@ class SUFileManagerTest: XCTestCase 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 in OS X, currently + // Extended attributes can't be set on symbolic links currently try! fileManager.releaseItemFromQuarantineAtRootURL(validSymlinkURL) XCTAssertGreaterThan(getxattr(directoryURL.path!, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW), 0) XCTAssertEqual(-1, getxattr(validSymlinkURL.path!, SUAppleQuarantineIdentifier, nil, 0, 0, XATTR_NOFOLLOW)) diff --git a/fileop/fileop.m b/fileop/fileop.m index 43efac6b..044f2abc 100644 --- a/fileop/fileop.m +++ b/fileop/fileop.m @@ -124,7 +124,7 @@ int main(int argc, const char *argv[]) } } else if ([command isEqualToString:@(SUFileOpInstallCommand)]) { // The one command that can *only* be run as the root user - NSString *installerPath = @"/usr/sbin/installer"; // Mac OS X 10.2+ command line installer tool + NSString *installerPath = @"/usr/sbin/installer"; NSTask *task = [[NSTask alloc] init]; task.launchPath = installerPath;