Zorg
0cdb0976ef
Don't hide skipping button for major upgrades if update is critical
2021-05-29 07:50:30 -07:00
Zorg
e0a414909c
Re-word skip upgrade title confirmation
2021-05-28 23:56:04 -07:00
Zorg
8e466eecc8
Fix unit tests for skipped updates
2021-05-28 23:28:44 -07:00
Zorg
17eb15e9d3
Simplify skipping major updates
...
We now only track one major version to skip and one minor version to skip, instead of an array of potentially growing minor/major versions.
2021-05-28 23:11:13 -07:00
Zorg
7d3c7ae78a
Add alert confirmation for skipping major upgrades
2021-05-28 17:23:31 -07:00
Zorg
a630614dc4
Use "update" still instead of "upgrade" for major updates
2021-05-27 22:26:23 -07:00
Zorg
e91ae897e7
Add method to compare two minimum autoupdate versions
2021-05-14 18:28:32 -07:00
Zorg
1f9d76bc13
Retitle install button to "Install Upgrade" for major updates
2021-05-09 23:16:01 -07:00
Zorg
59fbd37bb1
Re-title skip button when update is a major one
2021-05-09 23:03:05 -07:00
Zorg
f671b82e50
Test against SPUUserUpdateStageInformational
2021-05-09 22:53:58 -07:00
Zorg
1565db3fec
Add secure coding to SPUUserUpdateState
2021-05-09 22:51:50 -07:00
Zorg
25b3d01efa
Rename majorUpdate to majorUpgrade
2021-05-09 22:45:40 -07:00
Zorg
d193f2e28b
Pass majorUpdate information to user driver
...
We unify the user driver method showing the update to take a generic state object now. The current fields of the state object are its current stage, if it's user initiated, and if the update is a major one.
We also remove deprecated code paths that were complex to support and will otherwise generate in compile errors if people adopt the new API.
2021-05-09 22:42:42 -07:00
Zorg
a79f6b2a85
Add documentation to SPUSkippedUpdate
2021-05-09 20:48:32 -07:00
Zorg
0ee12d881d
Add and fix unit tests for skipping updates
2021-05-09 19:53:19 -07:00
Zorg
6d6cc2d052
Add support for skipping major and minor updates separately
2021-05-09 19:30:44 -07:00
Mayur Pawashe
039adc1ef2
Merge pull request #1850 from sparkle-project/better-appcast-selection
...
Better appcast selection
2021-05-03 19:02:20 -07:00
Zorg
62695379d9
Clarify what versions not to filter for
2021-05-02 23:15:01 -07:00
Zorg
f82f9eb878
Fix typo
2021-05-02 23:13:58 -07:00
Zorg
a1aef4eca0
Fix string localization
2021-05-02 23:12:48 -07:00
Zorg
3d2dc8a7f6
Update documentation for -bestValidUpdateInAppcast:forUpdater:
...
This method will not be invoked for appcast with zero items. Clients must pick best item and cannot pick "no items."
2021-05-02 23:09:45 -07:00
Zorg
5a3b71b96a
Add note about not returning a delta update item in delegate
2021-05-02 22:38:27 -07:00
Zorg
3c9508bd2a
Add tests for testing minimum autoupdate version
2021-05-02 22:32:50 -07:00
Zorg
79c1141155
Refactor finding latest appcast item
2021-05-02 21:44:35 -07:00
Zorg
ebb822af43
Merge branch '2.x' into better-appcast-selection
2021-05-02 16:06:45 -07:00
Zorg
c882da7bc7
Update documentation for -bestValidUpdateInAppcast
2021-05-02 16:06:22 -07:00
Zorg
f1be9f72d5
Remove passing includesSkippedUpdates in favor of background flag
2021-05-02 15:59:43 -07:00
Zorg
e7441351d7
Make improvements to best appcast selection
...
* Prefer using the latest update that passes minimumAutoupdateVersion
When an update is not found:
* Find latest appcast item that may fail min/max OS
* Report that user cannot install an update due to unsupported OS
2021-05-02 15:50:03 -07:00
Mayur Pawashe
3cafb688b7
Merge pull request #1849 from sparkle-project/appcast-item-nullability
...
Add nullability annotations to SUAppcastItem
2021-05-02 13:49:27 -07:00
Zorg
d84a79cfc2
Merge branch '2.x' into appcast-item-nullability
2021-05-02 11:29:39 -07:00
Zorg
c33ccd5921
Merge branch '2.x' into appcast-item-nullability
2021-05-02 11:17:42 -07:00
Zorg
6ad996338d
Add nullability annotations to SUAppcastItem
2021-05-02 10:00:56 -07:00
Mayur Pawashe
46f7898d36
Merge pull request #1844 from sparkle-project/download-driver-appcast
...
Re-use download driver for downloading appcast & release notes
2021-05-02 09:03:20 -07:00
Mayur Pawashe
85ac073e6d
Merge pull request #1846 from sparkle-project/enforce-session-in-progress
...
Enforce the updater session is in progress
2021-05-02 09:03:04 -07:00
Mayur Pawashe
7c46e8db3e
Merge pull request #1848 from sparkle-project/skip-installing-update
...
Allow skipping/canceling of an update that is currently installing
2021-05-02 09:02:08 -07:00
Zorg
fbe48e5738
Allow skipping/canceling of an update that is currently installing
2021-05-01 19:53:01 -07:00
Mayur Pawashe
b140c05bad
Merge pull request #1843 from sparkle-project/nsunavailable
...
Add NS_UNAVAILABLE attributes to user driver classes
2021-05-01 17:26:15 -07:00
Mayur Pawashe
c79785aad4
Merge pull request #1845 from sparkle-project/version-dash-separator
...
Port #1504 (dash separators in version strings) to 2.x
2021-05-01 17:25:53 -07:00
Mayur Pawashe
5da8199818
Merge pull request #1847 from sparkle-project/sandbox-errors
...
Log more sandbox errors
2021-05-01 17:25:35 -07:00
Zorg
79a6bb1318
Disable unused debugging options in test app scheme
2021-05-01 14:48:31 -07:00
Zorg
9b8756d824
Add sandbox log if connection to installer fails
2021-05-01 14:46:34 -07:00
Zorg
712753d812
Add log linking to sandboxed steps if app isn't sandboxed at all
2021-05-01 14:36:45 -07:00
Zorg
e8d5c8024c
Log error if developer sandboxes installer launcher service
2021-05-01 14:30:21 -07:00
Zorg
af245bfe62
Enforce the updater session is in progress
...
We should enforce update session is in progress before checking for new updates. I've tested checking for updates regularly, in background, and informational updates.
An update check could have been made while the permission request was in flight, which we don't want to happen.
2021-05-01 11:08:18 -07:00
Zorg
9a12dbf62a
Port #1504 (dash separators in version strings) to 2.x
...
On second thought I realized we can support this without doing any date comparison because the code just picks the first item if two are equal.
2021-05-01 10:48:53 -07:00
Zorg
477d0a243f
Fix unit tests
2021-04-30 22:21:19 -07:00
Zorg
ab294d607d
Hide private SUAppcast / SUAppcastItem APIs
2021-04-30 21:40:47 -07:00
Zorg
26c63c1a7b
Remove commented out code
2021-04-30 21:28:56 -07:00
Zorg
6adb0c3017
Use download driver for downloading release notes
2021-04-30 21:10:41 -07:00
Zorg
7cb72238fa
Use download driver for downloading appcast
2021-04-30 20:37:00 -07:00