Zorg
e476ca2cf0
Handle both temporary and persistent downloads in our Downloader
...
I will aim to remove the TemporaryDownloader target and rename PersistentDownloader to just Downloader.
2016-08-20 11:26:49 -04:00
Zorg
9ac76d6253
Replace -cleanupWithCompletion: with just a -cleanup
...
SUPersistentDownloader doesn't implement -dealloc anymore so there shouldn't be issues
2016-08-20 09:46:42 -04:00
Zorg
ab44d58d0e
Don't invoke -cleanup in SUTemporaryDownloader's dealloc
...
The file will be cleaned up eventually anyway and I don't want to risk something happening when the connection dies.
2016-08-18 19:47:32 -04:00
Zorg
b11794b518
Add XPC service documentation section to practices
2016-08-16 20:05:28 -04:00
Zorg
4b962725a5
Document installation resumability behavior for -checkForUpdatesInBackground
2016-08-16 19:52:14 -04:00
Zorg
4bbd3d6c29
Re-order methods in SPUUpdater, put more interesting ones up top
2016-08-16 19:48:03 -04:00
Zorg
1d3e5753d3
-automaticallyDownloadsUpdates should take account if developer disables automatic updates
...
This behavior is more consistent with the official branch.
2016-08-16 19:43:56 -04:00
Zorg
35ec3caf55
Add documentation to undocumented properties in SPUUpdater
2016-08-16 19:18:46 -04:00
Zorg
b92b7948f0
More SU -> SPU changes in the comments
2016-08-16 19:07:16 -04:00
Zorg
69eb10edba
Document SPUUserDriver cannot have optional methods
2016-08-16 19:05:05 -04:00
Zorg
a6a2da7a69
Add silent termination method to user driver
...
This is triggered if the update is automatically downloaded and the installer is started in the background, and the updater's delegate decides to handle silent installation and installs the update invoking its immediate installation block. In this scenario, this fixes an issue where the application may not be terminated silently.
2016-08-16 18:59:13 -04:00
Zorg
c9a11a262d
Spell Compatibility properly
2016-08-16 00:45:45 -04:00
Zorg
05e22348ca
Add check to make sure update bundle is signed if no DSA key is provided
...
This is not a security check. This is just to save a developer from shooting themselves in the foot.
The security checks are done in the installer.
2016-08-16 00:28:29 -04:00
Zorg
6f1b13954b
Add authentication before terminating app / launching installer to changes
2016-08-15 21:12:06 -04:00
Zorg
97e769bab0
Update installation docs on handling symlinks
2016-08-15 19:42:56 -04:00
Zorg
4bbce0a25f
Re-add temporary read-write exception for use defaults
...
Switching between a sandboxed and non-sandboxed app with regards to user defaults has some bugs with saving user defaults.
Confirmed by an Apple engineer.
2016-08-15 01:36:48 -04:00
Zorg
5a743ac366
Clarify documentation for applicationBundle in SPUStandardUserDriver
2016-08-15 00:33:29 -04:00
Zorg
1282e42031
Defend against possible symbolic link attack
2016-08-14 23:07:44 -04:00
Zorg
423d288290
Add some defense and comment about relaunching the new app
2016-08-14 21:48:16 -04:00
Zorg
9e183b4e85
Add comment why relaunch path is passed again
2016-08-14 21:17:34 -04:00
Zorg
3132d19afc
Add note about no-DSA deprecation
2016-08-14 20:14:34 -04:00
Zorg
2cc3b4c349
Add security note for JoinExistingSession XPC service key
2016-08-14 19:04:21 -04:00
Zorg
e6c529e0ee
Update README and add documentation, screenshots to reflect this fork.
2016-08-14 18:22:45 -04:00
Zorg
010f642922
Add AppKit prevention guard
2016-08-14 18:14:48 -04:00
Zorg
55e906ba3e
Show or dismiss installation progress after sending termination request
...
Whether we show or dismiss progress depends on whether the current application (from the user driver) is being terminated or not.
2016-08-14 14:32:44 -04:00
Zorg
bbfcd564d2
Detect if shift key is held down ASAP when launching test app
2016-08-14 13:44:10 -04:00
Zorg
57325c7507
Add update permission request and response classes
...
We now pass these to and from the user driver.
2016-08-14 12:51:37 -04:00
Zorg
3f7c3933e7
Fix order of delegation events by dispatching async to main queue
...
This synchronizes more with the user driver handling events.
2016-08-14 00:55:17 -04:00
Zorg
e972e9072c
Remove unnecessary import
2016-08-13 23:20:16 -04:00
Zorg
6321329282
Comment why NSWorkspace launchApplicationAtURL: method isn't used
2016-08-13 21:50:45 -04:00
Zorg
73f49ce573
Remove userDriver and delegate properties from SPUUpdater
...
Until I find a good reason to have them there, they should not be publicly available.
I actually found a couple bugs from code that was accidently referencing them.
2016-08-13 21:32:31 -04:00
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