Zorg
cba7f51132
Merge branch 'master' into ui-separation-and-xpc
2016-12-27 10:29:33 -05:00
Zorg
b4210a85b9
Add and use normal initializer for SUStandardVersionComparator
2016-12-26 21:23:30 -05:00
Zorg
36ed896d0f
Rename SPUInstallerProtocol -> SUInstallerProtocol, remove -cleanup
...
This is to prepare for the next merge from master.
2016-12-26 19:12:02 -05:00
Zorg
1ecb620986
Decouple and simplify installation code using protocols
...
This also fixes a bug where the status window would stay visible during interactive (non-guided) package installations.
2016-12-26 17:59:32 -05:00
Zorg
fd533f937e
Don't pass version comparator to SUInstaller
2016-12-26 13:03:20 -05:00
Zorg
578e78876c
Separate SUUpdater delegate methods into different file
...
Also create SUUpdaterPrivate protocol to expose as little as possible to the internal update drivers. Ideally this would be minimized and not even exist at all, but I don't want to make the architectural and potential backwards-incompatible changes required to do that.
2016-12-25 18:25:42 -05:00
Zorg
1a09baf0ed
Remove Sparkle.pch and many file #includes
...
This eliminates many dependencies that don't need to exist.
2016-12-23 16:13:35 -05:00
Zorg
553168ba51
Merge branch 'master' into ui-separation-and-xpc
2016-12-23 14:44:32 -05:00
Kornel Lesiński
a1095ff29c
Null fix
2016-12-23 20:00:45 +01:00
Kornel
b5bc2a7374
Merge pull request #940 from sparkle-project/nulz
...
Nulz
2016-12-23 18:56:57 +01:00
Kornel
23f9e747c1
Merge pull request #942 from zorgiepoo/unarchiver-protocol
...
Unarchiver protocol
2016-12-23 18:54:25 +01:00
Kornel Lesiński
657e3d47d0
Removed unnecessary nullability
2016-12-23 16:25:09 +01:00
Zorg
98b3a9828a
Use localhost instead of 0.0.0.0. Latter doesn't work when offline.
2016-12-22 12:17:45 -05:00
Zorg
91d13c7239
Merge branch 'master' into unarchiver-protocol
2016-12-21 15:53:41 -05:00
Zorg
fd6ba1820a
Merge branch 'master' into unarchiver-protocol
2016-12-21 15:39:38 -05:00
Kornel Lesiński
2519eb573f
Test unarchiving failure
2016-12-21 18:06:22 +01:00
Kornel Lesiński
8a3338b078
Extracted function
2016-12-21 18:06:22 +01:00
Kornel Lesiński
b03ae0d765
Moved assert
2016-12-21 18:06:19 +01:00
Zorg
60d4f05743
Add SUUnarchiverProtocol & remove runtime registration of unarchivers
2016-12-21 11:07:03 -05:00
Kornel Lesiński
464972126c
Unwrap early
2016-12-21 16:44:04 +01:00
Kornel Lesiński
c1392bc190
Nullability
2016-12-21 16:44:04 +01:00
Kornel Lesiński
59d90e0bb1
Basic binary delta progress
2016-12-21 15:23:41 +01:00
Kornel Lesiński
8103f5fd43
Replaced progress delegate with a block
2016-12-21 15:23:40 +01:00
Kornel Lesiński
70f5681797
Use completion block for unarchiving
2016-12-21 15:22:59 +01:00
Kornel Lesiński
f3f268388b
Nullability declarations
2016-12-21 15:22:57 +01:00
Zorg
163158cacf
Merge branch 'master' into ui-separation-and-xpc
2016-09-16 15:08:04 -04:00
Zorg
ed5dca3423
Update unit tests to Swift 3
2016-09-14 23:05:05 -04:00
Zorg
30d4a5eb5c
Merge code sign test changes from master
2016-09-04 18:23:23 -04:00
Kornel Lesiński
4eb518de7e
Test nullability
2016-09-04 16:07:11 +01:00
Zorg
32373e8185
Use -[NSURL checkResourceIsReachableAndReturnError:] in tests
...
This avoids nullability warnings when converting NSURL -> NSString path
2016-09-03 22:56:38 -04:00
Zorg
213bedfa37
Merge branch 'master' into ui-separation-and-xpc
2016-09-03 22:50:25 -04:00
Kornel Lesiński
1195d4b5d2
Fixed test
2016-09-03 16:14:02 +01:00
Kornel Lesiński
c7a7704f3b
Switch test to NSURL
2016-09-02 19:08:42 +01:00
Kornel Lesiński
64af6d04c2
Use bundle URLs instead of paths to avoid creation of temp bundle objects
2016-09-02 18:53:23 +01:00
Kornel
0af27ea783
Merge pull request #877 from zorgiepoo/host-independent-signing
...
Improve Host Signing Verification
2016-09-02 18:31:37 +01:00
Zorg
56cd205880
Merge branch 'master' into ui-separation-and-xpc
2016-08-27 22:46:14 -04:00
Zorg
39268a13e5
Add unit tests for Apple code signature matching
2016-08-27 19:06:58 -04:00
Zorg
4864dfb5aa
Update signing verifier to take any host and s/application/bundle/
2016-08-27 18:07:40 -04:00
Zorg
71125e3d16
Add unit test for updating spotlight mdimporter bundles
2016-08-27 17:03:54 -04:00
Zorg
115686cd07
Change dmg and test verifying code by removing NTSynchronousTask
2016-08-27 01:09:24 -04:00
Zorg
29d790c63c
Pass application bundle into SPUUpdater instead of relying on delegate method
2016-08-13 12:57:26 -04:00
Zorg
cdc329d2c3
Remove SPUUselessUserDriver and just pass nil
2016-08-13 10:57:00 -04:00
Zorg
d1c2faf7e5
Fixing some old SUUpdater references
2016-08-12 23:18:53 -04:00
Zorg
878c30d17c
More SU -> SPU renaming for status completion results
2016-08-12 20:45:24 -04:00
Zorg
f5afdc1cd8
Group download data, text encoding name, and MIME type into one class
2016-08-12 20:26:56 -04:00
Zorg
a523621b71
Remove support for remotely using user driver from updater
...
Although it is interesting to separate the user driver and update scheduler in different processes, this has yet to prove useful. Further, this management should not exist in the user driver protocol since the protocol would be doing double duty. If this separation is useful in the future, it should be separated into another driver altogether. Note that it is also hard to write correct code that separates the user driver and updater. Removing this code should greatly reduce maintenance costs.
2016-08-12 18:48:54 -04:00
Zorg
65d78d5129
Pass text encoding and MIME type to user driver for release notes
...
This fixes issues where the user driver may not be displaying release notes properly because it doesn't know what kind of data was downloaded (eg: html vs plain text).
2016-08-10 22:11:19 -04:00
Zorg
2b65860293
Fix nullability warning
2016-08-06 21:01:15 -04:00
Zorg
e53539b19e
Don't deprecate +defaultComparator, although discourage it and use alloc/init
2016-08-06 11:18:00 -04:00
Zorg
c9f673cda8
Use SPU prefix in many places
2016-08-05 19:10:21 -04:00