Zorg
c5026976ee
Rename UpdateDownloader service to PersistentDownloader
2016-05-26 18:10:07 -04:00
Zorg
c9cb670761
Improve codesign_xpc script by taking files instead of a directory
2016-05-21 19:55:37 -04:00
Zorg
cd135d9b10
Add log to see if remote message service gets interrupted
2016-05-21 00:07:36 -04:00
Zorg
1084071810
Enable automatic termination if creating CFMessagePort fails
2016-05-20 23:58:31 -04:00
Zorg
dd0230e6c2
Use ASL_LEVEL_ERR instead of "3"
2016-05-20 21:57:47 -04:00
Zorg
d463db5742
Protect RemoteMessagePort service terminating prematurely
2016-05-20 18:28:07 -04:00
Zorg
e3795194d6
Set completion handler to nil when download fails
2016-05-20 18:26:53 -04:00
Zorg
cb5cf9aa69
self can't be nil here
2016-05-20 16:35:09 -04:00
Zorg
0a53d51d89
Don't send NSURLResponse objects over XPC or to the user driver
...
This class doesn't support NSSecureCoding in OS X 10.8, so this fixes a crash there.
2016-05-19 21:52:50 -04:00
Zorg
4a0837a500
Add wrapper class over NSURLRequest that implements NSSecureCoding
...
This fixes a crash on OS X 10.8 where NSURLRequest didn't implement secure coding there
2016-05-19 21:21:50 -04:00
Zorg
83fe6adcba
Make sure XPC versions are synced with the framework version
2016-05-19 19:29:47 -04:00
Zorg
7c06ceb7e4
Set version info for XPC services
2016-05-18 22:28:02 -04:00
Zorg
4661fee388
Deal with byte order when sending installation progress
2016-05-18 20:08:01 -04:00
Zorg
1a952227a7
Replace assert(false/NO) with abort()
2016-05-18 19:15:01 -04:00
Zorg
eec2eca0c2
Document SULog and its intended use case
2016-05-18 19:04:41 -04:00
Zorg
a8dd49acad
On second thought, stick to using NSLog for DEBUG warning
2016-05-18 19:03:13 -04:00
Zorg
3826b35bc2
Explain why NSLog is being used here.
2016-05-18 18:53:30 -04:00
Zorg
4ba3673dfd
Use SULog over NSLog in a couple of places now
2016-05-18 18:52:25 -04:00
Zorg
72d63f3992
Print friendly error messages in sparkle-cli
2016-05-18 18:51:47 -04:00
Zorg
346f996942
Re-write logging functionality
...
1. Use Apple's logging system (ASL) - don't invent our own inefficient mechanism.
2. Logging is not dependent on a global file that any process and thread using Sparkle can write to now, which could also be cleared at any point before.
3. Don't write to stderr on non-debug builds. This is ideal for sparkle-cli utility.
2016-05-18 18:48:01 -04:00
Zorg
3b05179ccf
Don't litter status messages with SULog
...
We should just stick to logging errors
2016-05-18 18:01:02 -04:00
Zorg
159c16fc12
Improve error handling on readfile()
2016-05-16 19:25:39 -04:00
Zorg
71330366d8
Don't forget to free the buffer on failure
2016-05-16 19:22:34 -04:00
Zorg
a1b6cbb5e2
Don't exit the program on failure for bsdiff.c
2016-05-16 19:15:57 -04:00
Zorg
e1af0264de
Don't exit the program on failure for bspatch.c
...
We call warn type functions instead of err ones now and do some cleanup
2016-05-16 19:02:00 -04:00
Zorg
7056ccb321
Use FILE* functions in bspatch.c
2016-05-16 18:21:52 -04:00
Zorg
77ad42aab6
Use FILE* (fopen/fread/etc) functions for bsdiff.c
...
This way we don't have to handle EINTR
2016-05-16 10:57:42 -04:00
Zorg
fa36cb300b
Add exception handling to secure coding archivers/unarchivers
2016-05-14 23:27:59 -04:00
Zorg
8b19b0e1b4
Adding todo to implement showing linked release notes from popup user driver
2016-05-14 21:57:41 -04:00
Zorg
fbb9fbf535
Add showing release notes from sparkle-cli
2016-05-14 21:56:35 -04:00
Zorg
1446acf519
Add methods onto user driver show showing linked release notes
...
These release notes are downloaded while showing that the new update is found
2016-05-14 21:45:25 -04:00
Zorg
95416e4f65
Add SUURLDownload specifically for downloading temporary files
2016-05-13 22:11:47 -04:00
Zorg
d21c4c4785
s/appcastData/data/ - this shouldn't be appcast specific
2016-05-08 16:25:56 -04:00
Zorg
70582639ee
Remove completion block from SUUpdateDownloaderProtocol
...
Only use the delegate now for communication via this protocol.
This cleans up some inconsistency.
2016-05-08 16:24:16 -04:00
Zorg
033f59e643
Comment on why these delegate methods are being implemented
2016-05-06 19:36:46 -04:00
Zorg
c9c1de30e4
Don't implement failedToDownloadUpdate delegate
...
It's not necessary and won't be invoked before user driver shows the error.
2016-05-06 19:35:13 -04:00
Zorg
9d1e707577
Add probing for updates to sparkle-cli
2016-05-06 19:22:15 -04:00
Zorg
bc43e9186f
Download cleanup should be before aborting
2016-05-06 19:20:17 -04:00
Zorg
4a2dd657b2
Remove Supporting Files group for sparkle-cli
2016-05-02 02:00:00 -04:00
Zorg
0df9bd6760
Merge branch 'master' into ui-separation-and-xpc
2016-05-02 01:22:58 -04:00
Zorg
c2f4be611b
Add usage description & options to sparkle-cli
2016-05-01 22:14:49 -04:00
Zorg
702a1dffc0
Add the old and a new postpone relaunch hook to the install driver
2016-05-01 18:23:45 -04:00
Zorg
704518278c
Set installer driver's update item when resuming an update
2016-05-01 17:56:42 -04:00
Zorg
738490af07
Fix not showing that updates can be checked before permission request
2016-05-01 17:09:44 -04:00
Zorg
4b75564b5f
Remove has launched before check box from Test App
...
We don't export an API for configuring this in SUUpdater.
Messing with the user defaults is not ideal, and we don't use hasLaunchedBefore anymore
For testing this, the user defaults should just be removed manually, and the test app should be relaunched.
This option never used to work for me that well before anyway.
2016-05-01 16:54:17 -04:00
Zorg
305e33945f
Change update permission prompt to prompt after a few hours
...
The old behavior used to be to prompt on second launch.
However, applications can be re-launched in a short amount of time, and Sparkle can be loaded multiple times during a single app launch.
So prompting after a certain amount of time after first launch works better.
2016-05-01 16:21:22 -04:00
Zorg
350eba452c
s/SUUpdatePermissionPromptResult/SUUpdatePermission/ && s/shouldSendProfile/sendProfile/
2016-05-01 14:54:17 -04:00
Zorg
1356024b25
Add --grant-automatic-checks and --send-profile flags
...
If an update permission request comes up, this alows us to make a decision.
Also I renamed the defer and checknow flags to defer-install and check-immediately
2016-05-01 14:33:13 -04:00
Zorg
235e93f0c1
Dismiss update installation before aborting update
...
This fixes bug where the idle status update is invoked before the install is dismissed.
2016-05-01 13:51:57 -04:00
Zorg
7d8d5d1f46
Adjust error message for automatic updates being disabled
2016-05-01 13:51:39 -04:00