Commit Graph
4099 Commits
Author SHA1 Message Date
Zorg 626d2c96f5 Show the public DSA file key that doesn't exist in the insecure alert 2016-08-27 09:11:08 -04:00
Kornel 5db4e1505b Merge pull request #872 from zorgiepoo/menuvalidation
Menu item validation
2016-08-27 10:42:25 +01:00
Zorg 251feb7e07 Rename registerRelaunchBundlePath to registerApplicationBundlePath 2016-08-27 02:24:37 -04:00
Zorg 115686cd07 Change dmg and test verifying code by removing NTSynchronousTask 2016-08-27 01:09:24 -04:00
Zorg e2fc8b4258 Prevent public DSA key -> no public DSA key downgrade
This may prevent developers from making accidental downgrades.
2016-08-27 00:32:01 -04:00
Zorg 99f34299f1 Show alert if no pub key exists, but SUPublicDSAKeyFileKey exists 2016-08-27 00:07:11 -04:00
Zorg fdf79bc3a6 Enable check for updates menu item if update driver is interruptible 2016-08-26 23:07:13 -04:00
Zorg eb810c7d8f Implement menu item validation in Test Applications window controller 2016-08-26 23:03:08 -04:00
Zorg 38af7cd8cd Export -validateMenuItem: as a method in SUUpdater.h for public use 2016-08-26 23:01:30 -04:00
Zorg 6f337aa6f3 Remove outdated comment about command key being held down in test app 2016-08-26 22:32:49 -04:00
Zorg 9b4aaef3dd Update documentation on -[SPUUserDriver dismissUpdateInstallation] 2016-08-26 18:58:59 -04:00
Zorg 2548057da8 Clarify why installer has handling for timeouts 2016-08-26 18:46:25 -04:00
Zorg fb5c577dad Update comment to reflect what occurs after sending stage 2 request 2016-08-26 18:35:52 -04:00
Zorg db642a0700 Fix relaunching if multiple instances of app were running
We leave the "application was alive and needs to terminate logic" to the progress agent rather than to the installer too.
2016-08-26 18:23:42 -04:00
Zorg 328a445b5c Clarify that the agent tool shouldn't monitor processes' death 2016-08-26 18:01:44 -04:00
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