Commit Graph
4099 Commits
Author SHA1 Message Date
Zorg 7e54e94472 Remove build settings I didn't configure
Maybe these happened during a bad merge.
2016-06-20 00:12:00 -04:00
Zorg 6cca0673c5 Change SURemoteMessagePort protocol to SURemoteMessagePortProtocol 2016-06-19 23:52:46 -04:00
Jerry Krinock 33907ec4ed • In SUUpdater.m, use SULocalizedString macro instead of NSLocalizedString.
• In SUOperatingSystem.m, assert instead of test for nil URL.
2016-06-17 22:24:43 -07:00
Jerry Krinock 7892e41b27 Fix for warning in in SUAppcast.m now tests for nil instead of using setValue:forKey: 2016-06-17 20:23:32 -07:00
Jerry Krinock 53983d9452 The following changes were made to clear warnings from static analyzer in Xcode 8:
• In ConfigCommon.xcconfig, removed references to CLANG_WARN_OBJC_RECEIVER_WEAK and -Wno-receiver-is-weak, because apparently these had been deprecated and are now no longer recognized.
• In SUAppcast.m, changed to method which can accept nil.
• In SUOperatingSystem.h, added a check for nil which probably never happens.
• In SUUpdateAlert.m, swapped receiver with parameter in -isEqualToString, 3 places, so that nonnull parameter could never be nil.
• In SUUpdater.m, added NSLocalizedString() wrappers around 8 recently-added (in the last few years, I think) user-facing warning strings.
2016-06-17 14:42:44 -07:00
Zorg 6a4b96580a Info only updates shouldn't require enclosure length 2016-06-16 23:27:39 -04:00
Zorg a780894d14 Fix appcast unit tests 2016-06-16 23:23:43 -04:00
Zorg af7c7cea2b Merge branch 'master' into ui-separation-and-xpc 2016-06-16 22:46:26 -04:00
Zorg 29d32eaaa0 Disable automatic termination when using SULocalMessagePort 2016-06-16 22:38:11 -04:00
B. Kevin Hardman f3a151d473 update Sparkle framework headers to use modules if modules are available 2016-06-16 12:16:31 -04:00
Zorg 061e99995f Add XPC service for local message port
This should work under 10.12 (beta) environment now when sandboxed.
2016-06-15 21:44:24 -04:00
Jake Petroules bb624ffa59 Replace OS X with macOS or more generic terminology. 2016-06-15 13:46:19 -07:00
Jake Petroules 2963f788e1 Fix version number in Doxyfile. 2016-06-15 13:43:40 -07:00
Zorg 911f2150f9 Don't think update driver should be interruptible anymore 2016-06-11 23:52:05 -04:00
Zorg adba3bd945 Don't allow SUUpdater to be kept alive by cycle resets 2016-06-11 23:31:24 -04:00
Zorg 71b91734e5 Merge branch 'master' into ui-separation-and-xpc 2016-06-11 21:07:57 -04:00
Kornel 9017962ab9 Merge pull request #818 from zorgiepoo/auth-wait-fileop
Improve Authorization Usage (Take 2)
2016-06-11 00:24:22 +01:00
Zorg dd0805c05b No need to log the underlying error
This is already logged when logging the main error
2016-06-10 16:13:18 -04:00
Zorg e4c3c29a85 Fix SUFileOperationConstants link errors in BinaryDelta 2016-06-09 07:59:46 -04:00
Zorg f70c7429ba Merge branch 'auth-wait-fileop' into ui-separation-and-xpc 2016-06-08 23:44:05 -04:00
Zorg be1e86174a Wait for the appropriate process when authorizing file operations
This changes the way we authorize & execute commands, and how we wait for their completion. In order to obtain the correct child to wait (instead of another one terminating intermediately), we use a wrapper tool (fileop) to output its pid onto the communication pipe that we read from the other end.
2016-06-08 21:49:58 -04:00
Zorg 207390a2c1 Retrieve child pid by using fcntl() 2016-06-06 23:11:38 -04:00
Zorg 86d5d49111 Comment why AuthorizationExecuteWithPrivileges() is still being used 2016-06-04 18:02:21 -04:00
Zorg b2cb1bd531 Wait for all children processes to stop
This fixes installation failing when we check for the wrong child and don't let the installer finish. However, this code now ignores the status from the child. I might see if there's a better way around fixing that..
2016-06-04 17:38:21 -04:00
Zorg f36397e89c Handle EINTR for wait() and don't store / back up ECHILD handler 2016-06-04 13:31:57 -04:00
Zorg 623f535883 We can do guided installation silently if we're root 2016-06-03 23:16:21 -04:00
Zorg 070686b488 Use NS_ASSUME_NONNULL macros 2016-05-29 20:21:14 -04:00
Zorg 4482e2b736 Fix unsigned cast warning 2016-05-29 20:20:42 -04:00
Zorg c80ddf99f8 Declare constants for SUAppcastItem.m 2016-05-29 17:42:34 -04:00
Zorg 45aaba9ee9 Use ivars in SUAppcastItem initializers to make code smaller 2016-05-29 17:29:13 -04:00
Zorg 53c4abaf9e Remove providing custom installer progress app
I don't think this feature would be used much, and I don't want to deal with additional maintainability. As it is, the progress app should show up in rare cases.
2016-05-29 17:01:38 -04:00
Zorg d44ef6bb75 Installer progress: change the dock icon to the bundle being updated
This way we don't have to include an icon for the installer progress app. There is a minor issue where the dock icon changes back before termination. However, this app should show up in rare cases in the first place, so I still think this is a good trade off.

For most applications, it makes more sense to use the app's icon than Sparkle's. That and we can save some disk space usage.
2016-05-29 16:39:46 -04:00
Zorg 355d6eddbf Rely more on content length from appcast item than from downloader
The rationale is that the downloader may be giving us an expected length for a block of data rather than the whole
2016-05-29 14:25:21 -04:00
Zorg f62285ff3b Use Appcast's content length when downloader doesn't retrieve an expected length 2016-05-29 13:17:56 -04:00
Zorg 80267f22b5 Test if we are root for guided silent installs 2016-05-29 11:28:38 -04:00
Zorg da145b2100 Log terminating target application in sparkle-cli 2016-05-29 11:28:11 -04:00
Zorg 0fb951bd4c NSURLQuarantinePropertiesKey isn't used anywhere 2016-05-29 10:53:45 -04:00
Zorg b4f1f67ddb Prevent using wrong combination of flags 2016-05-28 23:15:54 -04:00
Zorg a113ce49bd Add interactive option to sparkle-cli
This allows installation by requesting the user to enter a password when elevated privileges are necessary. This only works if the application is alive before installation begins.
2016-05-28 23:04:43 -04:00
Zorg ec0889ef83 Redirect stdout/stderr when unmounting dmg 2016-05-28 17:06:41 -04:00
Zorg 1046cb4217 Don't attempt 3rd installation stage if 2nd failed 2016-05-28 12:05:00 -04:00
Zorg f210fddb30 Add error for being unable to install the update silently 2016-05-28 11:50:46 -04:00
Zorg 0cf1aee693 Add -updaterShouldDownloadReleaseNotes: delegate method 2016-05-28 10:13:18 -04:00
Zorg 7bfccc3898 Fix nullability warning 2016-05-28 09:49:51 -04:00
Zorg 87903c0d97 Fix unit tests from not compiling
SUFileManager fileManager method had to be renamed to satisfy Swift
2016-05-27 22:23:04 -04:00
Zorg 7df7222fe4 Merge branch 'master' into ui-separation-and-xpc 2016-05-27 16:30:13 -04:00
Zorg 348426e501 Make cancelling authorization prompt graceful
An error dialog no longer shows up when the user cancels an authorization request
2016-05-27 15:56:26 -04:00
Zorg bcb3f669ba Fix couple of nullability warnings 2016-05-27 14:26:13 -04:00
Zorg 1438dd6140 Rename SUUnarchiver protocol to SUUnarchiverProtocol for less confusion 2016-05-27 14:14:22 -04:00
Zorg 64a7624744 Add authorization environment when using file manager
If the file manager is used for authorization, we can now supply an authorization environment.

This allows us to specify a customized prompt message and an icon to use in the authorization dialog window. We no longer need to include an icon for Autoupdate app.

We now also see if we can get authorization rights access right away, rather than lazily when executing a tool.
2016-05-27 12:36:44 -04:00