Commit Graph
1920 Commits
Author SHA1 Message Date
Zorg 59bbcfadb0 Initial work on separating the updater & installer
The installer (Autoupdate.app) is now responsible for extracting & verifying the update.
It talks to the updater via mach ports. We can't afford to use a XPC service due to
lack of perfoming privileged tasks.
2016-03-10 01:49:59 -05:00
Zorg 73a0f10010 I don't see installerForHost:error: used anywhere
We can also demote relaunchPath from being an ivar
2016-03-08 00:22:57 -05:00
Zorg 6f30ae2093 Remove passing duplicated host path 2016-03-08 00:16:03 -05:00
Zorg 7ea2d0f9cf Separating Autoupdate into separate files 2016-03-08 00:00:00 -05:00
Zorg 57f0bc4245 Make download validation function take a SUHost 2016-03-07 23:24:35 -05:00
Zorg cf3674b2d7 Exit on failure here 2016-03-07 23:15:40 -05:00
Zorg 00368011c8 Add delegate outlets to SUStandardUpdaterController
This adds delegate outlets to the updater and to the user driver, so a
developer can hook either of them up. Note we now initialize the updater and
user driver after being awoken from the nib.

We also took this chance to make the delegates to the updater and user driver read only.
This means that the delegates have to be available on initialization, which is good because
changing delegates or setting delegates too late (and missing messages) is bad.
2016-03-06 23:38:17 -05:00
Zorg 1e92d403ec Improve SUUpdater docs 2016-03-05 17:33:27 -05:00
Zorg f2b9ae97c2 Merge branch 'master' into ui-separation-and-xpc 2016-03-05 15:06:25 -05:00
Zorg 96f016a790 Add acknowledgement handlers to no update found / errors
This way, if the errors are not presented modally, they won't be dismissed
until we tell the updater we are finished acknowledging them
2016-03-05 14:42:17 -05:00
Zorg 337f39e8b9 Just log an error instead of changing update button
Because the update installation will be aborted soon anyway..
2016-03-05 13:33:32 -05:00
Zorg 53719cc8b7 Fix termination being delayed when connection is invalidated 2016-03-05 13:12:52 -05:00
Zorg 5dca54d904 Add custom user driver in the test app 2016-03-05 12:59:11 -05:00
Zorg 30cb984341 Split SUStandardUserDriver into re-usable components 2016-03-05 00:17:41 -05:00
Zorg 43942bcbad Remove UITests-Info.plist being copied to UI Tests bundle 2016-03-04 20:13:02 -05:00
Zorg ed72d25eaa Re-sign the altered/new test app
For sandbox testing, we really have to use ad-hoc signing.
Which means we have to sign the "new" app after we alter its info.plist file,
so that our code signing verifier doesn't (rightfully) complain
2016-03-04 20:05:33 -05:00
Zorg db4e8a9946 s/SUUpdaterController/SUStandardUpdaterController.m/ 2016-03-04 19:25:25 -05:00
Zorg 0338cd443a This should not be wrapped in an exception 2016-03-04 19:19:28 -05:00
Zorg f2e485df87 Add proper remote updater idling support
Meaning that we don't send a message or re-establish the XPC connection
immediately when something goes wrong
2016-03-04 19:00:47 -05:00
Zorg 58f4e97f9c Note about being dispatched on main queue 2016-03-03 22:31:49 -05:00
Zorg af8e195cd9 Handle app termination better with regards to automatic updates
We should terminate even if the update aborts.

We should also terminate even if the connection is invalidated or interrupted, if we've
already been told to quit
2016-03-03 22:28:38 -05:00
Zorg 2e44a5ecc5 Reverting code signing since our verifier doesn't look ad-hoc signatures 2016-03-03 22:12:55 -05:00
Zorg 6c9cbbb389 Set deployment target to 10.8 2016-03-03 20:02:01 -05:00
Zorg 045de30926 Clean up last bit of warnings 2016-03-03 19:59:16 -05:00
Zorg 62fa723564 Use ad-hoc code signing for test app so Xcode won't complain 2016-03-03 19:55:40 -05:00
Zorg cc5826d2f1 Add SUStandardUserDriverDelegate.h 2016-03-03 19:45:52 -05:00
Zorg a652ab952e Add documentation to dismissUpdateInstallation for SUStandardUserDriver 2016-03-03 19:40:25 -05:00
Zorg ada2688b86 Set up invalidation and interruption XPC handlers 2016-03-03 19:20:01 -05:00
Zorg f5a9cf14de s/SUSparkleUserDriver/SUStandardUserDriver/ 2016-03-03 18:29:15 -05:00
Zorg 5f572854d2 Improve docs on showing update is found, plus some formatting 2016-03-03 18:08:34 -05:00
Zorg 8a42975dc2 Add test application code for Sparkle over XPC 2016-03-03 03:03:56 -05:00
Zorg ed00162faa Fix project header imports 2016-03-02 01:44:03 -05:00
Zorg 65f16e7e8c Make delegate methods optional 2016-03-02 01:43:51 -05:00
Zorg 1b9d93f739 Add initForBundle: back just so we can raise an exception 2016-03-02 01:22:54 -05:00
Zorg 9ee8a6d314 Wrap initializer with standard if self != nil check 2016-03-02 01:15:10 -05:00
Zorg b58eeeabb5 Add docs to SUUpdater initializer 2016-03-02 01:13:33 -05:00
Zorg 5eb715f1f3 Added docs to sparkle's user driver
Also split SUSparkleUserDriverDelegate into two protocols, since it
just makes sense.
2016-03-02 00:53:28 -05:00
Zorg 4a2c3dd922 Update docs on SUUpdaterController 2016-03-01 23:18:44 -05:00
Zorg ad26fe9627 Use -[SUSparkleUserDriver updateInProgress] instead
If a developer doesn't want to use SUUpdateController, it'll be
clear to them how to implement the menu item validation
2016-03-01 23:15:08 -05:00
Zorg 772c6b7d3f Just add Sparkle user driver reference to SUUpdaterController 2016-03-01 23:03:05 -05:00
Zorg 8b0eae8ef4 Revert deferring startUpdateCycle in SUUpdater init
I decided it was less evil to allow SUUpdater to defer cycling and have
a mutable delegate, than it was for SUUpdateController to have a nullable SUUpdater
that could be instantiated an arbitrary time later

I have also changed the delay from 0 to 1, on the safer side.
2016-03-01 22:46:15 -05:00
Zorg 1da4ee961c Add delegate as parameter to SUUpdater's initializer 2016-03-01 22:22:05 -05:00
Zorg efac2acf57 Change SUUpdaterDelegate to be weak reference 2016-03-01 21:51:02 -05:00
Zorg 077b0c7bc9 Separate out UI bits from SUSparkleUserDriver delegate protocol 2016-03-01 21:40:13 -05:00
Zorg f5bc152f1c No longer true 2016-03-01 21:25:40 -05:00
Zorg ba4bbbb99a Rename UserUpdaterDriver -> UserDriver
This ends up to be more natural to me.
2016-03-01 21:24:50 -05:00
Zorg d3a09cc68a Move custom version displayer away from SUUpdater delegate
This is a UI related protocol and thus should be part of the user updater driver,
not a part of the core updater.
2016-03-01 21:09:28 -05:00
Zorg dafdcf21b6 Add more nullability specifiers 2016-03-01 20:15:45 -05:00
Zorg 1b46ecf663 Improve SUUpdaterController docs and add nullability specifiers 2016-03-01 20:08:21 -05:00
Zorg dd3c698f3e Add documentation to SUUpdaterController 2016-03-01 19:48:56 -05:00