111 Commits
Author SHA1 Message Date
Kornel Lesiński d2ac8bc61e Bump version
Fixes #1547
2020-02-06 09:53:23 +00:00
Christian Tietze 9980a0f911 replace org.sparkle-project with XPC_SERVICE_BUNDLE_ID_PREFIX 2019-06-26 09:25:15 +02:00
Daniel Jalkut ee64dc7574 Update imports to use framework-style imports to avoid warnings when CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES. Add CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER to xcconfig file to protect against any changes that would introduce such warnings for clients who have the waring enabled. 2019-02-04 13:39:48 -05:00
Kornel 832902cea7 Merge tag '1.20.0' into ui-separation-and-xpc
* tag '1.20.0': (28 commits)
  Bump
  Fix binary delta creation on network drives
  New Spanish localisation
  Fix compilation issues on Xcode 10 with new build system
  Bump
  Updated readme to indicate that the 10.11 SDK is required to compile Xcode 7 was released with 10.11, the reference to the 10.8 SDK is out of date.
  Explicitly specify types to silence "Messaging unqualified id" warning that's new in Xcode 10. Removed __has_feature(objc_generics) check and use generisc to help silence the warnings.
  Updated Finnish language resources
  Remove executable bit on distributed source files.
  Fix potential hang with dispatch_sync to main thread
  Deliver SPUDownloaderSession delegate messages on the main queue
  add tips for user to install doxygen
  add delegate callbacks for fininshed download and extraction related events
  Restored legacy CLI for backward compatibility
  Fixed index out of bounds
  More complex argument parsing to support both inputs
  Function to load the private key directly from the keychain
  Minor naming improvement
  Bump
  Explain why auth is requested
  ...
2018-11-11 14:21:37 +00:00
Kornel 2121a7d9f2 Merge tag '1.19.0' into ui-separation-and-xpc
* tag '1.19.0': (44 commits)
  Ensure cocoapods is installed before performing the release “sanity check” (#860)
  Silence ‘This block declaration is not a prototype’ Xcode warning
  Silence ‘decodeObjectOfClass:forKey: is only available on macOS 10.8’ Xcode warnings, similar to commit ea94969188
  10.7 compatibility
  Avoid invalid use of main thread
  Update wording of read-only error
  Improve 'read-only' error message (#1192)
  "all" target
  Hidden verbose flag
  Outdated comment
  Amend to avoid gender issue
  Changelog
  Bump
  move Xcode 9.2 automatic changes from project to xcconfig files
  Bring project up to Xcode 9.2 settings
  silence 10.9 availability and other warnings and use modules when available
  Ensure UI is changed only on the main thread
  nil checks
  Fix typo in expectation description
  Finish tests for persistent download
  ...
2018-11-11 14:18:07 +00:00
Kornel e1d4b19ce7 Bump 2018-07-17 16:37:50 +01:00
Kornel 50c12d1c2b Bump 2018-06-19 22:36:19 +01:00
Kornel a19dfb2be0 Bump 2018-04-29 13:36:22 +01:00
Kornel 874d6bce36 Bump 2018-01-29 22:55:32 +00:00
Kornel 8b47c5db71 Fixed target variable 2017-12-06 17:46:00 +00:00
Brian Bergstrand 218315ffce Bump min OS version for NSURLSession requirement 2017-10-04 12:49:35 -05:00
Kent Sutherland 4c27d7bf73 Merge branch 'master' into ui-separation-and-xpc 2017-09-18 22:39:17 -05:00
Kent Sutherland 80c34526e8 Silence Touch Bar availability warnings on Xcode 9 by using API_AVAILABLE.
Disable gnu-zero-variadic-macro-arguments to prevent warnings from use of API_AVAILABLE.
2017-09-18 12:17:58 -05:00
Kornel 7b3c3b7e58 Merge remote-tracking branch 'origin/master' into ui-separation-and-xpc
* origin/master: (21 commits)
  Bump
  Update Xcode version for Travis CI
  Fix for the timing issue of termination detection.
  Add optional updaterDidRelaunchApplication: method on SUUpdaterDelegate (#1115)
  Better error message
  Warning
  Update to Xcode 9/Swift 4
  Revert "Ensure UI code always runs on the main thread"
  Update German localization with some terminology changes
  Update German localization for informal style
  Update Dutch localization for informal style
  Update Dutch localization with some style changes
  Include bin files in CocoaPods installation
  Simplified check
  Rename OSX macOS
  [BasicUpdateDriver] - extend hostSupportsItem method to also check the sparkle:os attribute from the enclosure element to decide if an update item is valid for the host
  [AppcastItem] - parse and save the sparkle:os attribute of the enclosure element and add isOsxUpdate method to item class
  Updated Japanese translation to reflect change on 55be13c
  Updated translation to reflect change on “Update error message to mention temp folders rather than optical drives”.
  Changelog
  ...
2017-08-14 13:38:16 +01:00
Kornel 558cfd2153 Bump 2017-08-14 13:19:03 +01:00
Kornel 7fc20434b9 Merge remote-tracking branch 'origin/master' into ui-separation-and-xpc
* origin/master:
  Don't assume that the progress block exists (the parameter is nullable)
  Prepend app name to Autoupdate.app name
  Error message tweak
  Update error message to mention temp folders rather than optical drives
  1.18.0
  Log more errors
  Unify handling of aborted updates
2017-06-02 12:07:36 +01:00
Kornel fc48e5e4df 1.18.0 2017-05-18 21:54:56 +01:00
Kornel Lesiński 2d30762570 Merge remote-tracking branch 'origin/master' into ui-separation-and-xpc
* origin/master: (39 commits)
  %s is deliberate in this format string
  Unused
  Make generate_appcast available as a shared scheme
  Shush Xcode
  Link straight to docs from the readme
  ignore .html files when scanning for archives
  Missing strings translation.
  Updated swift
  Warn against abusing installUpdatesIfAvailable
  when generating the appcast, if an .html file exists of the same name as the archive, then it will be linked in as the releaseNotesLink
  Revert "Fix pt_BR translations"
  Revert "Fix pt_BR translations (#1039)"
  Fix Japanse localization
  Add more info to auth tool run failure
  Fix pt_BR translations (#1039)
  Fix pt_BR translations
  Disable the keyboard shortcut for the install button for scheduled updates to avoid accidental installs.
  added `sparkle:shortVersionString` to the enclosure, #1032
  Changelog
  percent encode the filename used in the delta url
  ...
2017-03-24 12:14:05 +00:00
Kornel Lesiński 0cba214f07 1.17.0 2017-01-24 14:07:32 +00:00
Zorg ab64d8d19f Merge branch 'master' into ui-separation-and-xpc 2016-12-27 15:38:13 -05:00
Kornel Lesiński e7ae7d5330 Version bump 2016-12-27 15:32:43 +01:00
Zorg 8aada73941 Merge branch 'master' into ui-separation-and-xpc 2016-12-23 19:14:27 -05:00
Zorg 1a09baf0ed Remove Sparkle.pch and many file #includes
This eliminates many dependencies that don't need to exist.
2016-12-23 16:13:35 -05:00
Zorg 9ea4cf1bf6 Merge branch 'master' into ui-separation-and-xpc 2016-12-04 17:05:01 -05:00
Kornel Lesiński f47115d81f Version bump 2016-12-04 12:14:24 +00:00
Zorg 163158cacf Merge branch 'master' into ui-separation-and-xpc 2016-09-16 15:08:04 -04:00
Kornel Lesiński a3407a2dbf Xcode 8 config 2016-09-04 17:04:54 +01:00
Zorg 7c49f722a8 Merge branch 'master' into ui-separation-and-xpc 2016-08-27 11:34:42 -04:00
Kornel Lesiński 20be93e96b Version bump 2016-08-27 16:13:05 +01:00
Zorg 47cdd37238 Rename PersistentDownload -> Downloader 2016-08-20 12:54:13 -04:00
Zorg eb53b58e2b Remove TemporaryDownloader XPC Service
Temporary downloads now use the Persistent Downloader code
2016-08-20 12:14:31 -04:00
Zorg 8ab7bd6edb Rename XPC services to use reverse DNS style 2016-07-27 00:40:04 -04:00
Zorg 9f4e44f919 Don't move old app to Trash
Several reasons:
* The user may not look at the trash anyway, and it would bloat their HD space
* Other sofware updaters don't move old versions to the trash either. Can confuse the user or not be seemly transparent experience.
* Moving app to trash will not work if user has to authenticate anyway
* Unclear how long and expensive this operation *could* take in all scenarios
* App replacements in Apple's new file system can be atomic-safe, but that may only be the case if the old app is no longer needed

Cons:
* Few tech savvy users may not be able to restore an app without re-downloading it. This would still be rarely done even amongst them.
2016-07-25 19:11:20 -04:00
Zorg 66e3083e0c Initial work on removing AuthorizationExecuteWithPrivileges
I need to at least look at:
* Automatic downloaded / silent updates
* Running updates as root user from beginning
* Status info query service
* Add guided flag in the appcast
2016-07-18 17:40:35 -04:00
Zorg 8563a40cd2 Use XPC for IPC to the installer instead of CFMessagePort
We now use XPC for communication between Sparkle.framework and Autoupdate.
Autoupdate is now ran as a launchd agaent/daemon. (Most of the time, it acts as an agent).

Using XPC can only be done from non-sandboxed processes, so a connection and status service had to be created.

Currently, the GUI progress tool doesn't work properly, but everything else should be behaving like before.
2016-07-12 19:59:24 -04:00
Zorg 7d1c0aa83b Merge branch 'master' into ui-separation-and-xpc 2016-07-04 23:29:09 -04:00
Zorg 23a3ad4b05 Remove pch files, don't use older __nullable/__nonnull attributes 2016-06-25 10:18:12 -04:00
Jerry Krinock 53983d9452 The following changes were made to clear warnings from static analyzer in Xcode 8:
• In ConfigCommon.xcconfig, removed references to CLANG_WARN_OBJC_RECEIVER_WEAK and -Wno-receiver-is-weak, because apparently these had been deprecated and are now no longer recognized.
• In SUAppcast.m, changed to method which can accept nil.
• In SUOperatingSystem.h, added a check for nil which probably never happens.
• In SUUpdateAlert.m, swapped receiver with parameter in -isEqualToString, 3 places, so that nonnull parameter could never be nil.
• In SUUpdater.m, added NSLocalizedString() wrappers around 8 recently-added (in the last few years, I think) user-facing warning strings.
2016-06-17 14:42:44 -07:00
Zorg 061e99995f Add XPC service for local message port
This should work under 10.12 (beta) environment now when sandboxed.
2016-06-15 21:44:24 -04:00
Zorg f70c7429ba Merge branch 'auth-wait-fileop' into ui-separation-and-xpc 2016-06-08 23:44:05 -04:00
Zorg be1e86174a Wait for the appropriate process when authorizing file operations
This changes the way we authorize & execute commands, and how we wait for their completion. In order to obtain the correct child to wait (instead of another one terminating intermediately), we use a wrapper tool (fileop) to output its pid onto the communication pipe that we read from the other end.
2016-06-08 21:49:58 -04:00
Zorg d182b28d09 Rename AppcastDownloader service to TemporaryDownloader 2016-05-26 18:27:15 -04:00
Zorg c5026976ee Rename UpdateDownloader service to PersistentDownloader 2016-05-26 18:10:07 -04:00
Zorg 83fe6adcba Make sure XPC versions are synced with the framework version 2016-05-19 19:29:47 -04:00
Zorg 2a89393853 Take XPC services out of the framework & make them optional
I'm hoping this will ease some of the build configuration issues I've been running into.
Apps (eg: unsigned, not-sandboxed) don't need to (although they still can) use the XPC services.
Sandboxed apps naturally should use the XPC services. Although, you can for example, choose not to use the
downloader services if the host app already entitlements to allow network connections.

If you use the downloader services, you must configure ATS exceptions in them. And if you use those services,
you probably want to sign them with the required entitlements.

If you don't use the services, Sparkle will fall back on almost-identical code executed within the framework instead.

There may be other reasons to use the services or not other than for sandboxing, like fault tolerance.
Lastly, XPC services work within an application namespace. They are discoverable as long as they're in the app.
That's why we can have an app incorporate the services and let the framework use them.
2016-04-17 21:24:11 -04:00
Zorg 31dc457676 Do some Xcode XPC service cleaning
Rename the XPC service products so that they start with 'Sparkle'
Make the bundle IDs of the services a part of the build configuration, so we can pass it to the preprocessor.
2016-04-17 18:44:06 -04:00
Zorg 933504263a Use Autoupdate's icon for installer progress tool 2016-04-09 01:05:11 -04:00
Zorg 233fa268b5 Add tool for showing installer progress
This tool is only launched if a certain amount of time has passed,
and if we're allowed to show UI
2016-04-09 00:36:09 -04:00
Zorg 6c9cbbb389 Set deployment target to 10.8 2016-03-03 20:02:01 -05:00
Kornel Lesiński f90700e830 Version bump 2016-02-04 23:52:55 +00:00