Commit Graph
2481 Commits
Author SHA1 Message Date
Zorg 32d9fd6526 Add flag for custom feed URL to sparkle-cli
This may be useful if user defaults can't be relied on for the feed URL.
For example, if an app is sandboxed, its user defaults may differ from the defaults sparkle-cli looks up.
2016-08-13 20:55:11 -04:00
Zorg 4ec5652a0d Add callbacks for scheduled updates occurring after a delay and being idled
I think I used to have this when the remote XPC callbacks were in the user driver and I removed them at some point.
These callbacks are now part of the SPUUpdaterDelegate and the logic is simpler now than before.
The command line utility makes use of these callbacks.
2016-08-13 20:35:14 -04:00
Zorg eb319ee1b7 Add documentation for prescheduled update actions 2016-08-13 19:37:20 -04:00
Zorg e21d4f1d32 Add sparkle-cli to release build configuration 2016-08-13 19:36:51 -04:00
Zorg d7ddfd2c6b Update installation documentation regarding permission for changing owner/group 2016-08-13 18:24:15 -04:00
Zorg b5ace2d037 Save the NSDate into user defaults for first launch instead of the interval
This is more consistent with how the last update check logic works.
I changed the value of SUTimeIntervalAtFirstLaunchKey for backwards compatibility purposes.
2016-08-13 18:03:16 -04:00
Zorg 3d7f48e03d Merge branch 'master' into ui-separation-and-xpc 2016-08-13 16:56:55 -04:00
Zorg e1397a7098 Copy localizations to installer progress app
Maybe one day only the localizations that are needed can be copied
2016-08-13 16:45:08 -04:00
Zorg ad10096156 Quit all running instances of an application 2016-08-13 15:02:24 -04:00
Zorg af7952b773 Hold down shift instead of command to use popup titlebar user driver 2016-08-13 14:33:09 -04:00
Zorg d9946273a7 Clarify when applicationBundle != hostBundle 2016-08-13 13:08:39 -04:00
Zorg 29d790c63c Pass application bundle into SPUUpdater instead of relying on delegate method 2016-08-13 12:57:26 -04:00
Zorg 26107994f4 Fix typo 2016-08-13 12:14:23 -04:00
Zorg f83d749a39 Not necessarily true, also there's external updaters to worry about 2016-08-13 12:13:27 -04:00
Zorg ad14421b24 Pass relaunch path to standard user driver from SUUpdater 2016-08-13 11:55:50 -04:00
Zorg 5114cd9d83 Distinguish between application and host bundle in user drivers 2016-08-13 11:21:15 -04:00
Zorg cdc329d2c3 Remove SPUUselessUserDriver and just pass nil 2016-08-13 10:57:00 -04:00
Zorg 8eb61afe53 Use SPUUserDriverUIComponent for command line user driver 2016-08-13 10:49:45 -04:00
Zorg b8ccc5d079 Fix compiler error 2016-08-13 10:35:38 -04:00
Zorg fa2e857b4e Add more AppKit prevention guards 2016-08-13 10:35:01 -04:00
Zorg d8ce7cb48b Add external releasenote support to popup titlebar user driver 2016-08-13 10:23:54 -04:00
Zorg 6dddbcc353 Add acknowledgement handler to installation did finish 2016-08-13 09:50:19 -04:00
Zorg f65f4beda8 Fix download progress for popup title user driver 2016-08-13 09:30:40 -04:00
Zorg 3c2875602e Add SPUUserDriverUIComponent and don't export SPUApplicationInfo 2016-08-13 09:19:48 -04:00
Zorg 1a94956f71 Rename userDriver to standardUserDriver for its delegate callbacks 2016-08-13 09:08:32 -04:00
Zorg 92b94343f4 Remove delegate property from SPUStandardUserDriverProtocol
Also remove delegate from user driver core component and popup titlebar user driver.
2016-08-13 09:00:51 -04:00
Zorg b58773cb5e Allow popup titlebar user driver to update other bundles 2016-08-13 08:49:47 -04:00
Zorg 6fb7b4a18b Use popup title user driver when holding down command at launch 2016-08-13 08:39:55 -04:00
Zorg f514861871 Add clarification why SPUStandardUserDriverProtocol doesn't adopt SUUserDriver 2016-08-13 01:37:37 -04:00
Zorg 73c659a2fe Update SPUStandardUpdaterController docs 2016-08-13 01:28:00 -04:00
Zorg a0bc1b19c8 Update some old "SUStandardUserDriver" references 2016-08-13 01:22:34 -04:00
Zorg 8e5554880d Move SUUpdaterDelegate.h to Deprecated group 2016-08-12 23:21:45 -04:00
Zorg d1c2faf7e5 Fixing some old SUUpdater references 2016-08-12 23:18:53 -04:00
Zorg 85914936d7 Add infinite recursion note for -feedURL 2016-08-12 23:06:10 -04:00
Zorg d0d39bc623 For installUpdatesIfAvailable stub, do background update check instead of initiated 2016-08-12 23:04:40 -04:00
Zorg f18d410c6a Add SPUUpdaterDelegate and deprecate SUUpdaterDelegate 2016-08-12 23:02:23 -04:00
Zorg 878c30d17c More SU -> SPU renaming for status completion results 2016-08-12 20:45:24 -04:00
Zorg f5afdc1cd8 Group download data, text encoding name, and MIME type into one class 2016-08-12 20:26:56 -04:00
Zorg bce9c083c1 Remove temporary read-write user preference exception for test app
Note cfprefsd processes may have to be killed or computer may have to be rebooted for user defaults to be read again for the test application.
2016-08-12 19:43:51 -04:00
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