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
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
Zorg
51e1e1c646
More care to handling invalidation logic
2016-04-01 23:58:32 -04:00
Zorg
d5cd64159c
Handle error handling for update downloader connection
2016-04-01 23:45:59 -04:00
Zorg
0b19d8d7fd
Add error handling cleanup to Appcast Downloader connection
2016-04-01 23:22:52 -04:00
Zorg
92e5c30c0d
Move SUUnarchiver.h from private to project
2016-04-01 22:51:10 -04:00
Zorg
9b1d441194
Add warning that Sparkle shouldn't be used when built in Debug
...
This is for several reasons: ATS, very short default update timer intervals, ...
2016-04-01 22:45:46 -04:00
Zorg
e74a397152
Add downloader XPC services for sandboxed apps
...
ATS exceptions now need to be included in the appcast & update downloader services - *shrugs*.
I've a run script configured to disable ATS for release builds.
2016-04-01 22:41:12 -04:00
Zorg
9525b156a2
Export classes that we are using publicly so release build compiles
2016-04-01 22:36:42 -04:00
Zorg
e7f85bb40f
Add testing writability as part of SUInstallerLauncher
...
This is necessary for detecting if automatic updates are possible in a sandboxed environment
2016-04-01 18:56:20 -04:00
Zorg
5c08e0a1d1
Add InstallerLauncher XPC Service
...
This allows Sparkle to be used as-is in a sandboxed application,
without needing to place Sparkle into its own XPC service.
Currently the main app may need to set a global mach service lookup exception
and a client download exception, however this can be fixed by creating a couple more
services. Testing for disk writability will need be done in a service too.
2016-04-01 17:54:12 -04:00
Zorg
ee77bf59d5
IB is not smart enough to parse Nullable attribute
2016-04-01 17:41:28 -04:00
Zorg
009de37415
Remove references to status controller from AutoUpdate
2016-04-01 15:17:18 -04:00
Zorg
e0e93e3edf
Remove old periodic timer code
2016-04-01 15:15:11 -04:00
Zorg
60fcbe4f88
Call -fileManagerByPreservingAuthorizationRights during cleanup
...
Since cleanup may be invoked after 2nd stage failed for example.
2016-04-01 15:12:50 -04:00
Zorg
c9f66cdeff
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-01 15:06:47 -04:00
Zorg
32edf6cc5d
Add temporary hack for bringing up authorization dialog right away if needed later
2016-04-01 14:11:30 -04:00
Zorg
941ae6481f
Read the allowsUI flag again for performing installation work
...
Also some code cleanup. In the future, we may want to figure out authorization
before extraction even occurs.
2016-04-01 13:55:34 -04:00
Zorg
e0b3a128b0
Revert 3 stage installation..
...
Just do all installation in 3rd stage at the moment and reconsider this idea..
Doing any work prior to finishing the installation that requires keeping files in
a temporary directory for potentially a long time turns not to probably not be a great idea.
Unfortunately I don't think trying to keep the files up to date every some interval is a _great_ idea.
I will need to rethink this some more.
2016-03-31 00:53:01 -04:00
Zorg
9e6f376285
Add periodic timer for preventing temporary file cleanup
...
This is inevitable if we stick to a three stage installation.
The other direction to consider is to defer most installation until after the app terminated,
although that may have disadvantages of its own.
One important addition is touching the new app recursively before moving it in a temp directory.
This is important because archives can preserve modification & access times, but we don't want that.
2016-03-29 01:15:39 -04:00
Zorg
5c624eccbe
Fix issues with unit tests
2016-03-27 22:58:41 -04:00
Zorg
e792798294
Forgot to invoke download receive response/progress user driver callbacks
2016-03-27 22:29:23 -04:00
Zorg
08696841c2
Fix bug where generic error dialog was shown when no update was found
2016-03-27 21:57:06 -04:00
Zorg
0b94f56f7f
Rename some user driver delegate methods
2016-03-27 19:03:28 -04:00
Zorg
d12121a265
Add SUUpdaterSettings class, allowing to read default settings.
...
This is convenient if the updater and app live in separate processes.
No need to use XPC to find out what certain settings are, and it may take too long to find out that way.
2016-03-27 18:44:36 -04:00
Zorg
9bb87b2018
Move installationPath out from SUHost
...
It's not too relevant to SUHost, and mostly relevant to the installer.
Plus its output can depend on whether a certain file exists on the system.
2016-03-27 17:54:38 -04:00
Zorg
6de75413e8
Don't show user initiated progress when resuming an update
...
Retrieving the data to resume an update happens very quickly.
2016-03-27 16:36:24 -04:00
Zorg
b27255468a
Update cycle should only be reset if update is not in progress
2016-03-27 16:11:17 -04:00
Zorg
b0963583ba
Remove unused header
2016-03-27 16:03:55 -04:00
Zorg
46387097c1
These resets are not necessary
2016-03-27 16:03:23 -04:00
Zorg
c58eaa205e
Remove -[SUUpdater updateInProgress]
...
This method is not used anymore internally. Outside, the user driver should
be used instead.
2016-03-27 15:56:17 -04:00
Zorg
ac0aaddefa
Use -resetUpdateCycleAfterShortDelay internally but don't expose it publicly
2016-03-27 15:51:52 -04:00
Zorg
528c6f25ed
Remove user defaults observing in standard updater controller
...
If these settings are changed, they should be changed through SUUpdater, honestly.
Morever, this user defaults code retains the controller.
2016-03-27 15:46:40 -04:00
Zorg
a8252cbe20
This is supposed to be main bundle actually
2016-03-27 14:51:36 -04:00
Zorg
7fc6896170
Move automatic updates property from SUHost into SUUpdater
...
SUHost cannot properly detect if automatic updates are allowed due to write permissions,
thus it should not be a property of SUHost at all.
2016-03-27 13:33:28 -04:00
Zorg
9c7d41dd90
Updating SUUserDriver docs
2016-03-27 00:08:01 -04:00
Zorg
eddf611ede
Decryption password should now be supported
2016-03-26 23:46:27 -04:00
Zorg
8184838835
Explain reasoning on re-assigning updateItem here
2016-03-26 23:16:17 -04:00
Zorg
301f3bf4e3
Move appCachePath out of SUHost for process independence
...
The behavior depends on what kind of process is invoking is, which is no good.
2016-03-26 22:54:08 -04:00
Zorg
fb32c8e18a
Fix unarchiving unit tests
2016-03-26 02:20:34 -04:00
Zorg
8e4498adaf
Refactor unarchivers to use protocols and less dynamism/global state
...
Before there were implicit dependencies and unarchivers were globally registered as their classes were loaded.
This flexibilty is unnecessary and comes with a safety (eg: forgetting to link in a class) and harder to read cost
2016-03-26 01:54:15 -04:00
Zorg
9d6f196111
Dismiss user initiated update check progress after appcast is loaded
...
Fixes bug where the update check progress window could still be visible after the appcast loaded successfully
2016-03-26 00:12:28 -04:00
Zorg
06c2f47024
Make delta updates & multiple download attempts work.
2016-03-25 23:58:05 -04:00
Zorg
1e9292acf4
Merge branch 'master' into ui-separation-and-xpc
2016-03-23 22:37:11 -04:00