Commit Graph
2162 Commits
Author SHA1 Message Date
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
Zorg 004da55780 Add error message if bundle paths are invalid/inaccessible 2016-05-01 12:03:50 -04:00
Zorg c0a148f5ff Post relaunch notification only if we are relaunching 2016-05-01 11:54:23 -04:00
Zorg 981f67e8b1 Only trigger update delegate error abort when there's an error 2016-05-01 11:21:04 -04:00
Zorg a4157e5989 Add checknow flag to check for updates immediately
What is new is that we can now disable checking for updates immediately.
sparkle-cli is not intended to be run for a long time, so if the next update check is not soon, we exit.
A client can now launch sparkle-cli without having to necessarily check for updates, so that they don't check for updates too soon.
2016-05-01 02:46:22 -04:00
Zorg 9bea84b29e Fix unit tests from not compiling 2016-05-01 01:10:35 -04:00
Zorg d632dcb72f Add a verbose mode to command line driver 2016-05-01 01:06:38 -04:00
Zorg 11c79b7b2a Add command line argument parsing to sparkle-cli
Also add defer installation option, which will not terminate the application right away.
Rename "relaunch" option as "application" instead.
2016-05-01 00:39:28 -04:00
Zorg 83bb5354dc Use NSRunLoop instead of NSApplication
Don't use AppKit where we don't have to, especially for command line tools
2016-04-30 23:02:21 -04:00
Zorg 15483815ff Pass path to relaunch to sparkle-cli
We also now listen on termination for the app that we are going to re-launch,
rather than the bundle we are updating.
2016-04-30 22:52:04 -04:00
Jake Petroules 8a4e4aea2c Update screenshot with new logo. 2016-04-30 17:47:37 -07:00
Jake Petroules 8fea6670c2 Remove Sparkle.png. This does not appear to be used anywhere anymore. 2016-04-30 17:27:26 -07:00
Jake Petroules 19fcca11f0 Set correct DPI for all images (72 for @1x, 144 for @2x). 2016-04-30 17:24:02 -07:00
1024jp fd082a93d4 Assign newly added icon images in asset catalog (#801) (#804) 2016-04-30 17:20:51 -07:00
Zorg d9952b8f22 Merge branch 'master' into ui-separation-and-xpc 2016-04-30 14:11:44 -04:00