Commit Graph
2532 Commits
Author SHA1 Message Date
Zorg fbad9e466f Update installation document to include termination, SU->SPU changes 2016-08-26 01:47:57 -04:00
Zorg 44b70bb16c Remove SPUApplicationIcon and merge it into SPUApplicationInfo
Every component that needed SPUApplicationIcon also needed SPUApplicationInfo
2016-08-26 01:08:06 -04:00
Zorg 46a75cde97 Terminate application in the progress agent instead of user driver
This allows us to remove SPUUserDriverUIComponent and remove a bunch of logic in the user driver regarding termination. The user drivers generally don't need to know about the application bundle anymore, and strictly now only show UI events.

This has another advantage of the agent being able to quit multiple instances of an application even if the application to update is sandboxed.

We enforce the logic that an application can only be relaunched if it was running initially.
2016-08-25 23:46:42 -04:00
Zorg 27ea7ca2f5 Implement new allow installer interaction methods in sparkle-cli 2016-08-21 18:58:11 -04:00
Zorg b8d1ac45c3 Clarify that interaction also allows installer UI to show up 2016-08-21 18:46:03 -04:00
Zorg b1fa9efa24 Distinguish initiated vs scheduled updates for allowing interaction 2016-08-21 15:58:33 -04:00
Zorg 6a8680464b Pass installer interaction flag to drivers and use delegate once 2016-08-21 15:14:47 -04:00
Zorg 55d58a2203 Add SparkleCore to make-release-package.sh 2016-08-21 11:24:09 -04:00
Zorg f62f7fa1b8 Add localization scripts to SparkleCore 2016-08-21 02:33:19 -04:00
Zorg 5f0f964c65 Merge branch 'sparkle-core' into ui-separation-and-xpc 2016-08-21 02:17:42 -04:00
Zorg f9c87d76db Fix SparkleCore build issues in Release configuration
We don't import SPUUserDriverUIComponent in SparkleCore because it is an exported class a part of Sparkle framework, which causes issues.

Instead, we import SPUApplicationInfo which is not exported from Sparkle.
2016-08-21 02:07:04 -04:00
Zorg 2ca76bef1c Update comment about how cache path method should not in SUHost 2016-08-20 22:00:35 -04:00
Zorg 53cc1cf1ce Add localization scripts from the Framework to the Progress app 2016-08-20 21:51:42 -04:00
Zorg 3547cb1239 Create SparkleCore target that only includes Core related files
Some build issues still need to be resolved.
2016-08-20 21:44:16 -04:00
Zorg e27c5437ab Resume the XPC connections after setting up invalidation handlers 2016-08-20 19:07:10 -04:00
Zorg 47f08be1a0 Don't check or download updates if updater isn't allowed interaction
This only affects updater delegates that return NO from -updaterShouldAllowInstallerInteraction:

This improves the user experience in sparkle-cli where now the checking can be aborted before even downloading the update feed, if it knows ahead of time that installation will fail.
2016-08-20 18:56:01 -04:00
Zorg 7dd066d894 Add SPUDownloadData as compile source to Downloader service 2016-08-20 13:01:51 -04:00
Zorg e2eb9f2af1 Update INSTALL 2016-08-20 12:58:12 -04:00
Zorg 47cdd37238 Rename PersistentDownload -> Downloader 2016-08-20 12:54:13 -04:00
Zorg eb53b58e2b Remove TemporaryDownloader XPC Service
Temporary downloads now use the Persistent Downloader code
2016-08-20 12:14:31 -04:00
Zorg e476ca2cf0 Handle both temporary and persistent downloads in our Downloader
I will aim to remove the TemporaryDownloader target and rename PersistentDownloader to just Downloader.
2016-08-20 11:26:49 -04:00
Zorg 9ac76d6253 Replace -cleanupWithCompletion: with just a -cleanup
SUPersistentDownloader doesn't implement -dealloc anymore so there shouldn't be issues
2016-08-20 09:46:42 -04:00
Zorg ab44d58d0e Don't invoke -cleanup in SUTemporaryDownloader's dealloc
The file will be cleaned up eventually anyway and I don't want to risk something happening when the connection dies.
2016-08-18 19:47:32 -04:00
Zorg b11794b518 Add XPC service documentation section to practices 2016-08-16 20:05:28 -04:00
Zorg 4b962725a5 Document installation resumability behavior for -checkForUpdatesInBackground 2016-08-16 19:52:14 -04:00
Zorg 4bbd3d6c29 Re-order methods in SPUUpdater, put more interesting ones up top 2016-08-16 19:48:03 -04:00
Zorg 1d3e5753d3 -automaticallyDownloadsUpdates should take account if developer disables automatic updates
This behavior is more consistent with the official branch.
2016-08-16 19:43:56 -04:00
Zorg 35ec3caf55 Add documentation to undocumented properties in SPUUpdater 2016-08-16 19:18:46 -04:00
Zorg b92b7948f0 More SU -> SPU changes in the comments 2016-08-16 19:07:16 -04:00
Zorg 69eb10edba Document SPUUserDriver cannot have optional methods 2016-08-16 19:05:05 -04:00
Zorg a6a2da7a69 Add silent termination method to user driver
This is triggered if the update is automatically downloaded and the installer is started in the background, and the updater's delegate decides to handle silent installation and installs the update invoking its immediate installation block. In this scenario, this fixes an issue where the application may not be terminated silently.
2016-08-16 18:59:13 -04:00
Zorg c9a11a262d Spell Compatibility properly 2016-08-16 00:45:45 -04:00
Zorg 05e22348ca Add check to make sure update bundle is signed if no DSA key is provided
This is not a security check. This is just to save a developer from shooting themselves in the foot.
The security checks are done in the installer.
2016-08-16 00:28:29 -04:00
Zorg 6f1b13954b Add authentication before terminating app / launching installer to changes 2016-08-15 21:12:06 -04:00
Zorg 97e769bab0 Update installation docs on handling symlinks 2016-08-15 19:42:56 -04:00
Zorg 4bbce0a25f Re-add temporary read-write exception for use defaults
Switching between a sandboxed and non-sandboxed app with regards to user defaults has some bugs with saving user defaults.
Confirmed by an Apple engineer.
2016-08-15 01:36:48 -04:00
Zorg 5a743ac366 Clarify documentation for applicationBundle in SPUStandardUserDriver 2016-08-15 00:33:29 -04:00
Zorg 1282e42031 Defend against possible symbolic link attack 2016-08-14 23:07:44 -04:00
Zorg 423d288290 Add some defense and comment about relaunching the new app 2016-08-14 21:48:16 -04:00
Zorg 9e183b4e85 Add comment why relaunch path is passed again 2016-08-14 21:17:34 -04:00
Zorg 3132d19afc Add note about no-DSA deprecation 2016-08-14 20:14:34 -04:00
Zorg 2cc3b4c349 Add security note for JoinExistingSession XPC service key 2016-08-14 19:04:21 -04:00
Zorg e6c529e0ee Update README and add documentation, screenshots to reflect this fork. 2016-08-14 18:22:45 -04:00
Zorg 010f642922 Add AppKit prevention guard 2016-08-14 18:14:48 -04:00
Zorg 55e906ba3e Show or dismiss installation progress after sending termination request
Whether we show or dismiss progress depends on whether the current application (from the user driver) is being terminated or not.
2016-08-14 14:32:44 -04:00
Zorg bbfcd564d2 Detect if shift key is held down ASAP when launching test app 2016-08-14 13:44:10 -04:00
Zorg 57325c7507 Add update permission request and response classes
We now pass these to and from the user driver.
2016-08-14 12:51:37 -04:00
Zorg 3f7c3933e7 Fix order of delegation events by dispatching async to main queue
This synchronizes more with the user driver handling events.
2016-08-14 00:55:17 -04:00
Zorg e972e9072c Remove unnecessary import 2016-08-13 23:20:16 -04:00
Zorg 6321329282 Comment why NSWorkspace launchApplicationAtURL: method isn't used 2016-08-13 21:50:45 -04:00