Zorg
b6fe5ea289
Move permission checking of allowing automatic updates to SUUpdater
...
SUHost can be called from any process with different privilege levels,
so it can't determine if the user can install to the app bundle without issue
2016-02-29 22:48:27 -05:00
Zorg
f7b6a70979
These two classes are not referenced here anymore
2016-02-29 18:27:33 -05:00
Zorg
7c16419a6d
SUUpdatePermissionPromptResult is a core/non-UI class
2016-02-29 08:38:28 -05:00
Zorg
253f544bbe
Remove old localized byte count code
2016-02-29 08:28:54 -05:00
Zorg
16b9d47cbe
SUHost can go back to non-public header
...
Although I don't know if this should be the final decision on that matter.
If users create their own user drivers, will they want SUHost?
2016-02-29 03:04:36 -05:00
Zorg
d3ed152e1a
Let SUSparkleUserUpdaterDriver take a NSBundle instead of SUHost
...
This way we don't have to expose SUHost to public anymore, I think
2016-02-29 03:00:12 -05:00
Zorg
5e87fe6daa
Let delegate tell us if it's responsible for signaling termination
2016-02-29 02:53:50 -05:00
Zorg
34cf472834
Import Foundation in SUStatusCompletionResults.h
2016-02-29 02:29:22 -05:00
Zorg
1278a34d3b
Move SUUserUpdaterDriverDelegate into its own source file
2016-02-29 02:28:51 -05:00
Zorg
1aa6f88819
Move status completion results into a new header
2016-02-29 02:23:15 -05:00
Zorg
829a88be58
Remove references to IOKit
2016-02-29 01:48:01 -05:00
Zorg
4a26c395d8
Add no-AppKit guards against all "core" files
...
Also move system shut off handling to the user driver.
Observing system shut off is difficult without AppKit, and
a client may want to observe for varying types of events.
I suppose this is consistent with application termination
notifications though.
2016-02-29 01:42:16 -05:00
Zorg
02ee6f9c15
Fix bad typo :\
2016-02-28 22:53:57 -05:00
Zorg
6c1aa38ac9
Mm.. I don't think so.
2016-02-28 22:16:51 -05:00
Zorg
45e6951552
User updater driver is now aware about updates being in progress or not
2016-02-28 22:10:58 -05:00
Zorg
8c769ca9cd
Raising exception if -[SUUpdater init] is called
2016-02-28 21:28:46 -05:00
Zorg
2e28d47d48
Add some docs on SUUpdateController
2016-02-28 21:21:40 -05:00
Zorg
21b49d41a2
Make sure updater is not nil for menu validation
2016-02-28 21:15:43 -05:00
Zorg
8325c9a4d9
Remove duplicated referenced classes in test app and framework
2016-02-28 21:05:23 -05:00
Zorg
6ade2f270b
Don't see why this method should be very generic
2016-02-28 21:01:49 -05:00
Zorg
15b4d1adf3
Add a "Updater NIB" object for standard sparkle UI
...
I may consider extending SUUpdater instead of another controller..
2016-02-28 20:18:06 -05:00
Zorg
7f494f13be
Fix not observing driver finishing notifications
2016-02-28 20:16:47 -05:00
Zorg
34ad4cfd6b
Add note about has launched before logic needing improvement
2016-02-28 18:03:38 -05:00
Zorg
cba11cac2d
Don't need to forward declare these methods
2016-02-28 17:50:00 -05:00
Zorg
3725d1e14d
We don't need to delay update cycle from SUUpdater anymore
2016-02-28 17:48:47 -05:00
Zorg
cfd462002c
Let AutoUpdater relaunch itself through LaunchServices
...
This solves several problems:
1) we can't spawn a task reliably from a XPC process
2) we don't want to link to AppKit from SUBasicUpdateDriver
3) spawning a task to invoke open utility is poor with bad inputs
2016-02-28 17:46:29 -05:00
Zorg
caf5e01643
Merge branch 'best-update-by-version' into ui-separation-core
2016-02-28 15:52:00 -05:00
Zorg
196bb64483
Be extra careful the updater is passed as a weak reference
2016-02-28 15:40:33 -05:00
Zorg
30abbb238a
Fix AutoUpdate activation issues
...
Forcing the app to activate after we show the status window in AutoUpdate seems to work better
2016-02-28 15:34:11 -05:00
Zorg
dccce32beb
Temporary fix for running the test application
2016-02-28 15:18:09 -05:00
Zorg
680484f7c2
SUWindowController can be removed; it doesn't do anything
2016-02-28 15:09:09 -05:00
Zorg
030725ff2d
Replace Cocoa imports with Foundation in unit tests
2016-02-28 14:52:39 -05:00
Zorg
cd83dd3769
Removing NTSynchronousTask for good
2016-02-28 14:45:16 -05:00
Zorg
f88eec8105
Remove NTSynchronousTask from SUCodeSigningVerifierTest
2016-02-28 14:11:54 -05:00
Zorg
c6df59c7b0
Fix code signing verifier tests for me
2016-02-28 14:06:05 -05:00
Zorg
876c7af538
Move finding active host pid into Autoupdate
...
Also use 'open' instead of NSWorkspace to remove our dependency on AppKit
2016-02-28 13:38:51 -05:00
Zorg
513d7f39a1
Use SUFileManager to move the temp item to the trash
2016-02-28 12:27:53 -05:00
Zorg
3e64da75b6
Replace Cocoa import with Foundation wherever possible
2016-02-28 11:59:27 -05:00
Zorg
6041d68db6
Add note about .pch usually being a bad idea
2016-02-28 11:41:09 -05:00
Zorg
d216f30f47
More secure coding implementation forgot to remove
2016-02-28 11:37:35 -05:00
Zorg
8af18843ef
Move AppKit functionality from SUHost to SUApplicationInfo
...
These operations also make incorrect assumptions when called from out of process,
so it makes sense to separate them out. Furthermore, SUHost can now only depend on
Foundation
2016-02-28 11:36:11 -05:00
Zorg
2a13d62838
Forgot to remove this secure coding implmentation
2016-02-28 11:09:48 -05:00
Zorg
1fc1d3598a
No need for SUSystemProfiler singleton, and SUHost doesn't need to know about it
2016-02-28 11:09:11 -05:00
Zorg
0d7b0037a1
Remove unneeded deps from SUHost
2016-02-28 10:51:31 -05:00
Zorg
4a3f0ad984
Pass the SUHost into the driver's constructor
2016-02-28 02:00:57 -05:00
Zorg
f630188255
Remove/modernize a bunch of cruft
...
Yeah, this isn't backwards compatible with older code that uses Sparkle
Few notes:
* Mostly everything from *.pch has been moved out for saner dependency tracking
* 10.7 compatibility has been removed out so I don't import Cocoa when I don't have to
* sharedUpdaters/SUUpdater singletons has been removed out so updaters can actually be deallocated properly
(and since singletons are generally horrible idea anyway)
* SUUpdater doesn't have UI/cocoa/bindings/menu validation code. Its new initializer method takes a user driver
(perhaps in the future I'll create another class that "binds" the UI and core)
2016-02-28 01:39:15 -05:00
Zorg
b5a1826a47
finishTermination property is no longer used
2016-02-27 21:47:27 -05:00
Zorg
717f741977
Simplify sending termination signal from the user driver
2016-02-27 21:13:26 -05:00
Zorg
3d2958326c
Looks like standard Foundation classes (NSNumber, NSString) are safe
2016-02-27 20:30:18 -05:00
Zorg
3bf91e795e
Move delegate protocol to SUUserUpdaterDriver protocol
2016-02-27 19:59:39 -05:00