Files
textmate/Frameworks/SoftwareUpdate/resources
Allan Odgaard e38dc44ab8 Rewrite SoftwareUpdate singleton
Changes:

- Use NSURLSession and OakDownloadManager to download updates (instead of libcurl).
- Use NSFileManager’s replaceItemAtURL:… to update the application bundle (instead of custom code).
- Use NSTask to relaunch the application (instead of fork/exec).
- Use the same window for the initial prompt, and for showing download progress.
- Show estimated time remaining in download window (via NSProgress).
- Allow retrying downloads on various forms of failures.
- Don’t require xib file for download window.

Regressions:

- We no longer support updating the application as root: I tried using an authorized NSFileManager instance, but it did not work for me, and the previous code we used for this was using legacy APIs.
2020-05-24 17:27:16 +07:00
..
2012-08-09 16:25:56 +02:00