Commit Graph
10 Commits
Author SHA1 Message Date
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 fa2e857b4e Add more AppKit prevention guards 2016-08-13 10:35:01 -04:00
Zorg c9f673cda8 Use SPU prefix in many places 2016-08-05 19:10:21 -04:00
Zorg ea1b04391f Improve cache storage handling of files
We first create a directory with respect to the app's bundle ID being updated, sparkle's bundle ID, and a directory inside for a specific purpose. Then we remove all old directories inside there, and create a new unique temporary directory.

This is to avoid conflicts with eg: multiple updaters running against each other around the same time, or files for one function interfering with files from another purpose, while still having a way to clean up old files.
2016-07-30 01:00:14 -04:00
Zorg e2da47b7c7 Improve handling of storing files in cache
Create distinct subdirectories in our cache directory so files for different purposes won't conflict.

For the installer, move the download archive to the installer's cache location. If the installer is running as root, this moves it to a place only root can access I believe. This is also to prevent other functionality from touching these files.
2016-07-28 22:54:28 -04:00
Zorg 8ab7bd6edb Rename XPC services to use reverse DNS style 2016-07-27 00:40:04 -04:00
Zorg 1aedf2f9ed Remove duplicated Sparkle Cache directory code 2016-06-23 23:31:18 -04:00
Zorg 355d6eddbf Rely more on content length from appcast item than from downloader
The rationale is that the downloader may be giving us an expected length for a block of data rather than the whole
2016-05-29 14:25:21 -04:00
Zorg c5026976ee Rename UpdateDownloader service to PersistentDownloader 2016-05-26 18:10:07 -04:00