Commit Graph
2364 Commits
Author SHA1 Message Date
Zorg 5ceeb3dfd3 Remove "incoming connection" log 2016-07-27 00:04:34 -04:00
Zorg 2191a2b6ed Improve termination & cleanup for progress agent & installer 2016-07-26 23:57:48 -04:00
Zorg 2eccc3a1db Remove unused header 2016-07-26 23:39:49 -04:00
Zorg c445a3f1e4 Remove linking to unused system frameworks 2016-07-26 21:10:22 -04:00
Zorg 6fc5dfb8e7 Simplify release quarantine method 2016-07-26 21:05:42 -04:00
Zorg 929705d6dd Update installer unit test 2016-07-26 21:05:25 -04:00
Zorg 9e1664b42e This function shouldn't be concerned about symlinks
Besides, the path passed into this function in our code comes from a NSBundle
2016-07-26 20:50:23 -04:00
Zorg 260235b2a0 Break retain cycles rather than using weak ref for connection handlers 2016-07-26 20:42:15 -04:00
Zorg 646ed6f3c4 Improve logic for allowing installer interaction
We now distinguish between the updater delegate allowing interaction and the update driver allowing interaction. We also remove an interaction allowed flag from the AppInstaller, letting shouldShowUI flag suffice.
2016-07-26 20:00:56 -04:00
Zorg f9e2609fa1 Update is no longer cancelable after installation begins 2016-07-26 19:25:49 -04:00
Zorg 0ca688073b Disable root support & checking
Assume that the updater will be run as a logged in user.
The command line driver and progress app aren't completely root safe anyway, and running the progress app under a different user could be quite awkward from root
2016-07-26 19:16:38 -04:00
Zorg 9f4e44f919 Don't move old app to Trash
Several reasons:
* The user may not look at the trash anyway, and it would bloat their HD space
* Other sofware updaters don't move old versions to the trash either. Can confuse the user or not be seemly transparent experience.
* Moving app to trash will not work if user has to authenticate anyway
* Unclear how long and expensive this operation *could* take in all scenarios
* App replacements in Apple's new file system can be atomic-safe, but that may only be the case if the old app is no longer needed

Cons:
* Few tech savvy users may not be able to restore an app without re-downloading it. This would still be rarely done even amongst them.
2016-07-25 19:11:20 -04:00
Zorg eac55846a8 Avoid copying the installer to a temporary location 2016-07-25 17:13:18 -04:00
Zorg 70cc3ea360 Remove unused mach service 2016-07-25 00:14:13 -04:00
Zorg fe62ad0468 Merge branch 'xpc-remove-auth' into ui-separation-and-xpc 2016-07-25 00:12:45 -04:00
Zorg 7d16e223c3 Remove stray AuthorizationRef reference 2016-07-25 00:05:42 -04:00
Zorg 150f10ed05 Update Installer unit test 2016-07-24 23:55:21 -04:00
Zorg 0cb59a1b02 Update user driver documentation 2016-07-24 23:44:37 -04:00
Zorg 1384b5a80f Allow tagging installation type in appcast item enclosure
This is now necessary for package type installations so we can know whether or not we should authenticate ahead of time.

Of course, we also verify that the download contains the type of installation we expect (because the appcast is not very trusted).
2016-07-24 23:35:47 -04:00
Zorg 35801a22f2 Remove stray Autoupdate group folder reference 2016-07-24 21:51:54 -04:00
Zorg ec69aa07a3 Add JoinExistingSession to TestAppHelper too 2016-07-24 21:47:12 -04:00
Zorg d8196e1c5d s/cancelled/canceled/ 2016-07-24 20:17:09 -04:00
Zorg da8065f67e Put preventive measures for aborting update more than once.
This resolves issues with canceling not taking complete effect.
2016-07-24 20:13:06 -04:00
Zorg 8d93513813 Don't need SUAuthorizationEnvironment anymore 2016-07-24 19:28:56 -04:00
Zorg 1d3776d5c7 Show app icon in the prompt for authorization 2016-07-24 19:23:56 -04:00
Zorg e5643e2990 Improve authorization prompt handling
We now present a better worded dialog (X wants to update. Please type your password to allow this. OK/Cancel)
We still need to set the icon for the dialog window.

I also fixed some issues with canceling the dialog still throwing an error.
2016-07-24 17:05:26 -04:00
Zorg c95b337b09 Don't need SUSubmitInstaller.h/m anymore 2016-07-24 15:37:33 -04:00
Zorg 25a52439a1 Remove stray reference to SUAuthorizationEnvironment 2016-07-24 15:09:52 -04:00
Zorg e2a51347b9 Differentiate between resuming an installing update & a downloaded one 2016-07-24 14:37:21 -04:00
Zorg ec7766022d Add callback for showing downloaded updates that haven't started 2016-07-24 14:24:04 -04:00
Zorg 5c0ee2d74a Rename did finish downloaading callbacks to did start extracting 2016-07-24 13:29:03 -04:00
Zorg 48938d0e78 Clear downloaded update if delta extraction fails 2016-07-24 13:13:17 -04:00
Zorg a1d43997d9 With JoinExistingSession, the agent doesn't need to submit the intaller ever 2016-07-24 13:03:39 -04:00
Zorg 7d4690ed17 Add JoinExistingSession key to InstallerLauncher service
This is necessary for older OS versions (10.8 & 10.9), otherwise authorization interaction will not be allowed
2016-07-24 11:10:20 -04:00
Zorg 21ad358772 Add JoinExistingSession key to InstallerLauncher service
This is necessary for older OS versions (10.8 & 10.9), otherwise authorization interaction will not be allowed
2016-07-24 11:06:37 -04:00
Zorg ad950beab6 Include SUStatusInfoProtocol methods in SUInstallerStatusProtocol to fix 10.8 compatiblity issues 2016-07-23 23:57:20 -04:00
Zorg d98fe465b5 Allow installer authorization by default
Fixes accidental bug during refactor where authorization wouldn't even be attempted
2016-07-23 23:54:08 -04:00
Zorg 3200029157 Include adopted protocol methods in SUInstallerStatusProtocol
This is because of compatibility issues with 10.8
2016-07-23 23:31:00 -04:00
Zorg 41ee168f2c Change try again error to authorize later error 2016-07-23 14:49:19 -04:00
Zorg c2db46f656 Add error codes to log messages 2016-07-23 14:46:35 -04:00
Zorg 350aeb1c81 Change how errors are passed & clear download after installer starts 2016-07-23 13:50:14 -04:00
Zorg 345ed3b60e Add resuming downloaded updates without starting the installer automatically
This allows automatically downloading updates, and having them prompt up later, so the user can perform authorization later for starting up the installer
2016-07-23 09:08:29 -04:00
Zorg b014737e83 Group appcast update item, download name, and temp directory into one class 2016-07-18 23:25:44 -04:00
Zorg 3244bf7f14 Move installer status info service to progress agent 2016-07-18 21:14:33 -04:00
Zorg 50594dda57 Move execute package out from SUFileManager 2016-07-18 19:48:25 -04:00
Zorg dd02cb2509 Change Autoupdate target from app to command line tool 2016-07-18 18:46:12 -04:00
Zorg 66e3083e0c Initial work on removing AuthorizationExecuteWithPrivileges
I need to at least look at:
* Automatic downloaded / silent updates
* Running updates as root user from beginning
* Status info query service
* Add guided flag in the appcast
2016-07-18 17:40:35 -04:00
Zorg 6b5f014946 Release self if we fail to set up termination callback 2016-07-17 10:54:15 -04:00
Zorg 849d265900 Use kqueues to determine if a process identifier terminates
This way we don't have to rely on AppKit for watching when the target process dies
2016-07-16 21:58:41 -04:00
Zorg 59af8ae0ba Remove old reachability related code/comments 2016-07-16 17:21:57 -04:00