Commit Graph
2068 Commits
Author SHA1 Message Date
Zorg acaa021583 Merge branch 'master' into ui-separation-and-xpc 2016-04-11 03:25:00 -04:00
Zorg c105154ba8 Only recursively update access time, not modification time of updates 2016-04-11 02:01:58 -04:00
Zorg d4466d1448 Add Installer Progress depedency to Sparkle.framework 2016-04-11 01:31:32 -04:00
Zorg ee8fed0c2a Remove Sparkle target depedency from BinaryDelta
This shouldn't be needed.
2016-04-11 01:30:10 -04:00
Zorg e1b13f9c67 Add sparkle-cli tool that can update any arbitrary app
I added an application target but it's really intended to be used as a command line tool. The reason being was that it was the easiest way to bundle the Sparkle framework, I've found.

Note this doesn't work perfectly yet, but it's a good start. Trying to update anything that's not Sparkle based will crash for instance. And it will use the installer progress tool which may be undesirable.
2016-04-11 01:29:08 -04:00
Zorg d5f1dcc7c3 Use futimes() when updating mod times recursively 2016-04-11 00:18:32 -04:00
Zorg 88f5d9a6d9 Fix SUAppcastItem's delta updates failing to securely unarchive 2016-04-11 00:09:51 -04:00
Zorg 163a64f3fe Fix unit tests using SUCodeSigningVerifier due to previous commit 2016-04-10 19:43:30 -04:00
Zorg 15c9ae65e7 We support bundles, not applications, in the general sense 2016-04-10 19:41:58 -04:00
Zorg 1151d66337 Remove customized application icon for installer progress
This created more complexity than it was worth and leads to subpar user experience because the user can see the icon switch back to the generic one when the updater terminates. So we now bundle the icon in the install progress tool. If a developer wants to use a custom icon, they can provide their own customized tool.
2016-04-10 19:25:31 -04:00
Zorg 8eb0bc1921 Messed up on argument order here 2016-04-10 17:13:00 -04:00
Zorg 2b84e83ba4 Add customization point to installer progress tool & desired icon 2016-04-10 15:57:47 -04:00
Zorg 5fdc438fa6 Refactor InstallerProgress tool into separate classes 2016-04-10 14:46:05 -04:00
Zorg 7015303726 Pass around download name rather than download path
We know that the download sits in the update directory
2016-04-10 13:51:32 -04:00
Zorg 296154d467 Check the parent directory for writability too 2016-04-10 09:07:00 -04:00
Zorg cd108ef47c Allow automatically downloading updates, but alerting the user immediately
Following cases where after an update has been automatically downloaded, Sparkle may alert the user right away:
1) Critical updates
2) Insufficient write access to install without being root
3) Package type installations

In addition to alerting the user right away, if they dismiss the update, the schedule timer will be on regular intervals. We also no longer need to care about writability in the updater, only just in the installer.
2016-04-10 02:32:54 -04:00
Zorg 5a0ee5d56a Don't follow symbolic links for file operations
This fixes issues with updating modification/access time, and changing owner/group
where symbolic links used to be followed. Tests are included.
2016-04-09 22:33:17 -04:00
Zorg 20e8ea8603 Fix tests that use SUStandardVersionComparator 2016-04-09 21:22:22 -04:00
Zorg e1a9e98d8b Fix implicit type conversion warnings 2016-04-09 18:48:19 -04:00
Zorg 39f82edcf6 Remove standard version comparator singleton
There's no reason for this to be a singleton instance, and the singleton pattern is not even implemented right
2016-04-09 18:13:00 -04:00
Zorg 8d5f1edf39 Remove duplicated header 2016-04-09 18:06:41 -04:00
Zorg beacf49158 Improve authorization handling
Duplicated code from SUFileManager and SUGuidedPackageInstaller has been removed.

SUPlainInstaller now tests if it needs authorization rather than by trying to touch the old app.

SUGuidedPackageInstaller now tries to grab authorization during stage 2 of the installation.
2016-04-09 18:00:47 -04:00
Zorg b3b12dc4be Remove unused variable warning 2016-04-09 16:31:28 -04:00
Zorg bb3a2e299e Don't show installer progress if installer already displays progress 2016-04-09 15:29:18 -04:00
Zorg 33bd47cd1f Fix deprecated API warning for -[NSData initWithBase64Encoding:] 2016-04-09 14:55:55 -04:00
Zorg 61ed9920b4 Use NSURL's checkResourceIsReachableAndReturnError: instead of FSRef's
Fixes deprecated API warning in DMG unarchiver code
2016-04-09 14:44:32 -04:00
Zorg f528f6b2ba Fix warnings for bspatch 2016-04-09 14:36:16 -04:00
Zorg 5f253e8c64 Fix not showing download update initiation when applying delta update fails 2016-04-09 13:43:47 -04:00
Zorg 00cdab1766 s/updateInProgress/canCheckForUpdates/ 2016-04-09 13:22:48 -04:00
Zorg e14077ee9a s/SUUpdaterController/SUStandardUpdaterController/ 2016-04-09 13:21:29 -04:00
Zorg e5b5952287 Avoid probing the installer multiple times 2016-04-09 12:53:49 -04:00
Zorg c80015bf99 Move invoking showCanCheckForUpdates: outside of this completion 2016-04-09 12:35:23 -04:00
Zorg 1bb301e82a Change updateInProgress to canCheckForUpdates
This more accurately reflects its intended purpose. From the beginning,
the user cannot check for updates until the updater is ready;
however this doesn't mean that the update is in progress.
2016-04-09 11:39:02 -04:00
Zorg 933504263a Use Autoupdate's icon for installer progress tool 2016-04-09 01:05:11 -04:00
Zorg 233fa268b5 Add tool for showing installer progress
This tool is only launched if a certain amount of time has passed,
and if we're allowed to show UI
2016-04-09 00:36:09 -04:00
Zorg c178e34d8f Remove unused headers from SUStatusController 2016-04-07 23:07:27 -04:00
Kornel bdb3dd8c36 Merge pull request #790 from zorgiepoo/no-auth-cleanup
Don't bring up an authorized dialog during cleanup
2016-04-04 14:41:25 +01:00
Zorg c8ff1c0453 Don't bring up an authorized dialog during cleanup
If permissions are abnormal during cleanup or somewhere along the lines, it may be
possible to bring up authorization dialog that is not really needed. Prevent this from happening.

We would want to restrict authorization from being possible anyway when not needed.
2016-04-04 01:54:02 -04:00
Zorg 97a8568491 Add service for remote message port
This allows the updater to communicate to the installer without an additional entitlement
2016-04-04 01:18:15 -04:00
Zorg c4800182a2 Simplify testing for writable permissions to host path
Before there was always lag when checking for updates the first time.
This helps improve consistency.
2016-04-03 21:30:59 -04:00
Zorg b22d2c2568 Make menu item validation work in the test app 2016-04-03 20:06:56 -04:00
Zorg 44a61b830e Move debug warning up in initializer because it spawns really often.. 2016-04-03 20:04:56 -04:00
Zorg 6dedd8309f Handle multiple live remote port connections better
This also should fix a bug where sometimes an update could not be resumed
2016-04-03 19:56:29 -04:00
Zorg 32c687ed79 Make SURemoteMessagePort operations asynchronous 2016-04-03 17:05:56 -04:00
Zorg d7cca8a594 Check if runningApplication is nil for errors.. 2016-04-02 12:17:54 -04:00
Zorg 116c8ea8b7 Supply NSWorkspaceLaunchNewInstance when launching AutoUpdate
I don't think it actually matters since we are launching a copy we created, but
sounds like the right thing to do anyway.
2016-04-02 12:12:48 -04:00
Kornel bb40663d37 Merge pull request #789 from Eitot/patch
Remove SUEnableAutomaticChecksKeyOld and SUCheckAtStartup constants
2016-04-02 12:18:45 +01:00
Zorg 38a69cee5b Launch AutoUpdate via LaunchServices again.
I was being stupid for trying to launch the executable rather than the app.
2016-04-02 05:34:31 -04:00
Zorg a3a2310952 Fix Appcast unit tests 2016-04-02 02:14:54 -04:00
Zorg e03607a2d6 Only use SUFileManager in debug mode for the test app
This way we don't have to export it in release mode
2016-04-02 00:10:20 -04:00