Commit Graph
4099 Commits
Author SHA1 Message Date
Kornel e30d1b9f68 Merge pull request #1161 from ksuther/sign-with-hyphen
Run codesign when signing identity is a hyphen
2017-12-08 17:51:27 +00:00
Kent Sutherland 3ec3d6f2af Run codesign when signing identity is set to "-"
This creates an adhoc signature rather than not signing
2017-12-08 11:42:58 -06:00
Kornel abb6e28a9f Merge pull request #1160 from ksuther/shell-script-fixes
Shell script fixes
2017-12-08 01:09:50 +00:00
Kent Sutherland f42ceec378 Check for a signing identity of "-" when building Sparkle Test App 2017-12-07 19:07:02 -06:00
Kent Sutherland 4565467287 Shell script fixes (warnings flagged by shellcheck)
Don't call codesign in set-agent-signing if the identity is "-"
2017-12-07 17:32:28 -06:00
Kornel 8b47c5db71 Fixed target variable 2017-12-06 17:46:00 +00:00
Kornel c3e546d7f8 Merge pull request #1154 from 1024jp/updateJapanese
Update Japanese localization
2017-11-25 13:50:32 +00:00
1024jp 2477a92b0f Update Japanese localization 2017-11-25 15:34:15 +09:00
Kornel 7f0bc6a244 Merge pull request #1141 from stefanhp/patch-1
Update Sparkle.strings
2017-10-21 22:28:44 +01:00
Stefan Paychère 68f62e5955 Update Sparkle.strings
Translation of "Description text for SUUpdateAlert when the update informational with no download."
2017-10-21 20:29:51 +02:00
Kornel 0cb0b2f2c7 Update for newer OpenSSL 2017-10-10 12:26:01 +01:00
Kornel b590722aad Merge pull request #1135 from jkbullard/fix-frequent-polling
Fix #1061 & #835: Sparkle clients polling too frequently
2017-10-05 15:43:24 +01:00
Jonathan Bullard 10f831fce8 Move [NSDate date] to be after willChangeValueForKey
Per comment by Pornel
2017-10-05 09:36:31 -04:00
Jonathan Bullard a2ecdd2744 Fix #1061 & #835: Sparkle clients polling too frequently
The SULastCheckTimeKey preference (a/k/a "default"), which is stored
in ~/Library/Preferences/….plist, was used to store the date of the
last update check.

That causes a problem if the storage is read-only (for example, if the
.plist file is “locked” (has the uchg or schg flag set) or if the
SULastCheckTimeKey key "exists in a domain that precedes the
application domain the search list"). The date would never be modified,
and the old date would cause a new update check to be queued at the end
of an update check. If application or bundle was up-to-date, or the
user had chosen to skip the update that was available, this would cause
update checks to happen as often as the computer and network would
allow, many times each second.

The new code uses an instance variable to store the value. The variable
is initially loaded from the “SULastCheckTimeKey” preference, and each
time the variable is modified its new value is stored to that
preference. However, the variable, not the preference, is used when
calculating whether enough time has passed since the last update check
to warrant another check. The variable will always (after the first
update check) have the "correct" value, and update checks will not be
done more frequently than desired.
2017-10-05 08:57:04 -04:00
Kornel 30ab76da03 Merge pull request #1134 from ProsoftEngineering/NSURLSession
Replace NSURLDownload with NSURLSession
2017-10-04 20:38:23 +01:00
Brian Bergstrand a3cc5f8b5d Replace NSURLDownload with NSURLSessionDownloadTask 2017-10-04 12:52:47 -05:00
Brian Bergstrand 218315ffce Bump min OS version for NSURLSession requirement 2017-10-04 12:49:35 -05:00
Kornel ec7f55d173 Handle SecTransformExecute errors
Fixes #1129
2017-09-27 18:45:52 +02:00
Kornel 648f8c960d Merge pull request #1128 from ksuther/ui-separation-and-xpc
Merged master into ui-separation-and-xpc
2017-09-19 19:36:10 +01:00
Kent Sutherland 4c27d7bf73 Merge branch 'master' into ui-separation-and-xpc 2017-09-18 22:39:17 -05:00
Kornel ddfc4089d2 Merge pull request #1126 from ksuther/touchbar-warnings
Silence Touch Bar availability warnings on Xcode 9
2017-09-18 23:06:08 +01:00
Kornel d41c8b3e60 Merge pull request #1127 from ksuther/xcode9-warning
Silence Xcode 9 warning
2017-09-18 23:05:31 +01:00
Kent Sutherland 5aea901ab6 Silence Xcode 9 warning 2017-09-18 12:21:57 -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 0c3994c571 Merge pull request #1124 from dfuhrmann/xcode-7-macOS-10.11-compatibility
Restore Xcode 7 and macOS 10.11 SDK compatibility
2017-09-11 14:19:31 +01:00
David Fuhrmann fbda90ad64 Sparkle: Convert all xib files to Xcode 7 format
Only this format can be opened with Xcode 7. The previously used
Xcode 8 format only opens and compiles with Xcode 8.
2017-09-11 11:24:10 +02:00
David Fuhrmann 40750b6f24 Sparkle: Add 10.11 SDK compatibility for touch bar declarations
Those annotations are not available in 10.11 SDK yet.
2017-09-11 11:23:48 +02:00
David Fuhrmann a7ba0bea6e Sparkle: Add backwards compatibility with 10.11 SDK for logging
10.11 SDK does not contain the os_log API yet. Code is modified
in such a way that it compiles with older SDKs, and falls back
to the old implementation even if it runs on 10.12.
2017-09-11 11:22:27 +02:00
Kornel 08f19f0330 Merge pull request #1120 from ksuther/fix-scheduled-includesSkippedUpdates
Fix for Skip This Updates button not working in XPC branch
2017-08-16 23:43:00 +01:00
Kent Sutherland 618fd6e85a includesSkippedUpdates was set to YES in SPUScheduledUpdateDriver
This was causing the Skip This Version button to not work when a background update check ran.
This was introduced in 47f08be1a.
2017-08-16 12:17:01 -04: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 1.18.1 2017-08-14 13:19:03 +01:00
Kornel 94074e2bdc Merge pull request #1111 from sparkle-project/swift4
Update to Xcode 9/Swift 4
2017-08-14 13:02:21 +01:00
Kornel 56065fcf95 Merge pull request #1119 from 1024jp/patch-1
Update Xcode version for Travis CI
2017-08-14 12:46:30 +01:00
1024jp f24189e848 Update Xcode version for Travis CI 2017-08-14 18:05:49 +09:00
Kornel 65b12a2be1 Merge pull request #1116 from fujisoft/patch-3
Workaround for timing issue of termination detection.

Not sure if that is correct.
2017-08-11 19:03:05 +01:00
Kornel f27416c97c Merge pull request #1117 from mentalfaculty/studies
Added a timer invalidation in a asynchronous callback.
2017-08-10 13:45:18 +01:00
Drew McCormack ab942fa9b7 Added a timer invalidation in a asynchronous callback.
The scheduleNextUpdateCheckFiringImmediately: method includes an asynchronous callback. It invalidates the timer before invoking the method with the callback (retrieveNextUpdateCheckInterval:), but doesn’t not invalidate again inside the callback block.

The problem with this is that it is possible the timer is started during the delay. In release versions of an app, crashes have been seen due to an assertion that the NSTimer be nil when scheduling.

The proposed fix is to invalidate the timer in the callback, ensuring the NSTimer is nil before scheduling.
2017-08-10 10:19:01 +02:00
fujisoft 900de556a8 Fix for the timing issue of termination detection. 2017-08-08 11:12:47 +09:00
App Tyrant 7c8ff2b969 Add optional updaterDidRelaunchApplication: method on SUUpdaterDelegate (#1115)
* Added updaterDidRelaunchApplication: delegate method.

* Removed isUpdaterRelaunching property.

* Revert SUHost.
2017-08-08 00:21:51 +01:00
Kornel 43b4472d3c Better error message 2017-08-01 15:55:25 +01:00
Kornel 260170f372 Warning 2017-08-01 15:54:52 +01:00
Kornel ea85fc6442 Update to Xcode 9/Swift 4 2017-07-27 16:42:44 +01:00
Kornel a52604a264 Revert "Ensure UI code always runs on the main thread"
This reverts commit 423ee5a9d6.
2017-07-20 13:20:20 +01:00
Kornel 39d6c616b0 Merge pull request #1051 from sparkle-project/mainalert
Ensure UI code always runs on the main thread
2017-07-16 21:03:20 +01:00
Kornel 043ad0464a Merge pull request #1098 from Eitot/dutch
Update Dutch localization for informal style and changed terminology
2017-06-24 22:19:09 +01:00
Kornel d99339cf08 Merge pull request #1097 from Eitot/german
Update German localization for informal style and changed terminology
2017-06-24 22:11:16 +01:00
Eitot c541f95036 Update German localization with some terminology changes
Apple uses the term "Update" instead of "Aktualisierung" and
"laden" instead of "herunterladen".
2017-06-23 10:00:05 +02:00
Eitot e678ffb3ca Update German localization for informal style
This is the style in Apple's localizations in macOS Sierra.
Also makes some slight changes to wording.
2017-06-23 09:59:48 +02:00
Eitot 070ea362a2 Update Dutch localization for informal style
This is the style in Apple's localizations in macOS Sierra.
2017-06-23 09:57:55 +02:00