Commit Graph
2436 Commits
Author SHA1 Message Date
Zorg 93c23e938f TestAppHelper doesn't do much, so doesn't need RunLoopType as NSRunLoop 2016-08-12 19:03:19 -04:00
Zorg a523621b71 Remove support for remotely using user driver from updater
Although it is interesting to separate the user driver and update scheduler in different processes, this has yet to prove useful. Further, this management should not exist in the user driver protocol since the protocol would be doing double duty. If this separation is useful in the future, it should be separated into another driver altogether. Note that it is also hard to write correct code that separates the user driver and updater. Removing this code should greatly reduce maintenance costs.
2016-08-12 18:48:54 -04:00
Zorg 86668d852b Remove LSBackgroundOnly from Progress Agent app
LSUIElement should only be used if the app can show UI
2016-08-12 16:58:50 -04:00
Zorg 62bbf73ab4 Remove "SUUpdater" reference 2016-08-12 16:52:38 -04:00
Zorg 1a0e169e7f Improve displaying release notes in sparkle-cli (safer & less code) 2016-08-11 20:58:53 -04:00
Zorg a51edf3dad Remove adopted protocol from protocols used for XPC
This is because XPC decoders on older systems may not traverse adopted protocols
2016-08-11 20:58:19 -04:00
Zorg f7d1cab4a0 Make sure we have a valid IANA charset name 2016-08-10 22:44:34 -04:00
Zorg 65d78d5129 Pass text encoding and MIME type to user driver for release notes
This fixes issues where the user driver may not be displaying release notes properly because it doesn't know what kind of data was downloaded (eg: html vs plain text).
2016-08-10 22:11:19 -04:00
Zorg 085724322f Use id type for updater 2016-08-10 21:44:12 -04:00
Zorg 69db74bc36 Resolve symlinks when finding a matching running application path
This fixes issues where Sparkle may think an application has already terminated when placed in a directory that has symlinks (such as /tmp/)
2016-08-10 20:29:10 -04:00
Zorg 11cbecbeaa Test changing ownership/group to determine if authorization is needed
This will work correctly in scenarios where the app to update is in a temporary location for instance.
2016-08-10 20:05:20 -04:00
Zorg 31d6d40112 s/SUStandardUpdaterController/SPUStandardUpdaterController/ 2016-08-10 18:22:41 -04:00
Zorg ba93d9056e Make configuration and valid feed URL checks safer
Instead of potential abort()'ing, we abort the update driver with a supplied error.
2016-08-10 18:16:01 -04:00
Zorg 9dca6fd27b Specifying invalid DSA key in the info.plist is now a config error 2016-08-09 23:35:27 -04:00
Zorg 2b65860293 Fix nullability warning 2016-08-06 21:01:15 -04:00
Zorg 766dd50aeb More SU -> SPU prefix changing 2016-08-06 21:00:14 -04:00
Zorg bdd2b7571b Mark SPUUpdater with nullability annotations 2016-08-06 20:47:30 -04:00
Zorg f2713138b9 s/SUUpdater/SPUUpdater/ 2016-08-06 20:30:58 -04:00
Zorg e53539b19e Don't deprecate +defaultComparator, although discourage it and use alloc/init 2016-08-06 11:18:00 -04:00
Zorg b676e3761a Add comments for the delegator property of SPUUpdater 2016-08-06 11:04:19 -04:00
Zorg a303859f10 Add deprecation notice to interactive package installer 2016-08-06 10:57:53 -04:00
Zorg bf0aa81546 Add deprecation notice from nib instantiated SUUpdater 2016-08-06 10:54:53 -04:00
Zorg eae8ccb2e7 Don't think SPUApplicationInfo should be exported 2016-08-06 10:52:29 -04:00
Zorg fdd6707f5b Add SU_EXPORT to user driver classes that should be public, I think 2016-08-06 10:49:32 -04:00
Zorg e3dd0d5ce5 Use class name rather than hardcoding it 2016-08-06 10:44:12 -04:00
Zorg 42a9a34be4 Add logging notice and some more explanation for not supporting -installUpdatesIfAvailable (yet) 2016-08-06 10:28:52 -04:00
Zorg 1663a822c8 Allow but deprecate serving download without DSA signature
This allows for a better transitioning period. In the future, this should be removed.
2016-08-06 10:20:36 -04:00
Zorg 6bfdd18d9e Ignore deprecation warnings in SUUpdater.m 2016-08-05 22:26:38 -04:00
Zorg b8d51539d7 Make SUUpdater.h a public header in the framework 2016-08-05 22:16:48 -04:00
Zorg e726dd01e4 Add incomplete -installUpdatesIfAvailable stub for now 2016-08-05 21:59:12 -04:00
Zorg 4ed6d40af8 Update deprecation documentation 2016-08-05 21:49:25 -04:00
Zorg 6e35a1b84d Add deprecation notice 2016-08-05 21:24:14 -04:00
Zorg 86e026588b Handle deprecated updater will install on quit callback
I may have to reconsider the design of this API in general.
2016-08-05 21:18:08 -04:00
Zorg ca36d9963e Remove -updaterIsRequestingQuit: delegate callback and use user driver instead
This way we remove delegate responsibility duplication and this should make backwards compatibility easier
2016-08-05 19:39:12 -04:00
Zorg c9f673cda8 Use SPU prefix in many places 2016-08-05 19:10:21 -04:00
Zorg f5444228c5 Re-add +defaultComparator on SUStandardVersionComparator
Have it be deprecated however. Maybe I can change my mind here later.
2016-08-04 00:15:04 -04:00
Zorg 4f285d2245 Rename SUUpdater -> SPUUpdater & add SUUpdater for backwards compatibility
New classes will soon be prefixed with "SPU"
I still need to look into adding a compatibility layer for -updater:willInstallUpdateOnQuit:immediateInstallationInvocation: and possibly deprecating no-DSA instead of outright rejecting it.
2016-08-03 23:30:55 -04:00
Zorg c811db1e67 Remove Release-HTTP build configuration 2016-08-01 22:17:20 -04:00
Zorg 5dfe4ce71b Set up ATS exceptions for Test App in release mode
Now the test app works properly when building it in release.
2016-08-01 22:02:18 -04:00
Zorg 1a3466ba04 Don't use TestAppHelper or code sign update in release 2016-08-01 22:01:30 -04:00
Zorg 52fd21e119 Reload NSBundle cache on its info plist dictionary
We reload the info dictionary before we start off an update driver. This is so that we have the latest up to date information for the bundle.
2016-07-31 20:38:48 -04:00
Zorg 411c0ac8bd Only pass host bundle identifier to probe methods 2016-07-31 20:32:21 -04:00
Zorg 682a47f4fa Update INSTALL file 2016-07-30 22:35:59 -04:00
Zorg b8df5d3023 Merge branch 'master' into ui-separation-and-xpc 2016-07-30 22:18:29 -04:00
Zorg a7e03c7f9b Add note about when installer ignores agent/updater invalidation 2016-07-30 20:46:46 -04:00
Zorg 607399f1e6 Comment on why agent is connecting to installer instead of vise versa 2016-07-30 20:41:03 -04:00
Zorg cc9f4d92af Update validation documentation 2016-07-30 18:05:57 -04:00
Zorg 5ad5598a19 Make sure update directory != nil during cleanup 2016-07-30 17:49:37 -04:00
Zorg 1ca233eadf Validate the update before extraction whenever possible
If we download a package type installation or a delta update, we should validate the update before trying to unarchive it.

We can't do this with ordinary updates because we handle changing of DSA keys for that particular case.
2016-07-30 17:36:22 -04:00
Zorg 2fc57ce288 Move installation validation to separate class 2016-07-30 16:03:52 -04:00