Commit Graph

  • 9e9fef0d51 Add an extract property for creating/applying binary diffs Before, an extract was assumed if nothing else matched. This can get quite confusing when adding new properties, so we shouldn't treat any property to be handled if nothing else was handled. Zorg 2015-04-18 17:59:52 -04:00
  • 509df736bc Merge pull request #526 from zorgiepoo/arc-autoupdate-release Kornel 2015-04-18 18:47:28 +01:00
  • 063056e193 Ensure termListen is not deallocated before -[NSRunningApplication run] Related: Issue #441 I have no evidence that this is the cause of the issue, but from what we do know from the crash logs submitted, it looks like Sparkle crashes or errors on the main thread. It also looks like it might be from an object release rather than copying (which is done on a different thread) being the issue (see issue #417 also). I'm leaning towards this being an issue after the project was converted to ARC. Zorg 2015-04-18 13:14:57 -04:00
  • d1908b1645 Unused Kornel Lesiński 2015-04-14 23:44:09 +01:00
  • 06a1ab8787 Formatting Kornel Lesiński 2015-04-14 23:32:13 +01:00
  • cd478a4c48 Fixing unused variable warnings Zorg 2015-04-17 19:07:36 -04:00
  • acbd622369 Add tests for invalid patch version inputs Zorg 2015-04-17 19:03:21 -04:00
  • 817bbc46b1 Add a test to make sure old patches still work Zorg 2015-04-17 18:52:42 -04:00
  • dbc9123dce Use SUBinaryDeltaMajorVersion instead of uint16_t for this cast Zorg 2015-04-17 18:40:08 -04:00
  • c2cb3094af Use after-tree instead of before-tree here. Oops. Zorg 2015-04-17 18:38:44 -04:00
  • 65931f6277 First delta minor version should now be 0 Zorg 2015-04-17 17:55:32 -04:00
  • 0f6697214d Increase minor version for version 1 patches Since BinaryDelta can still create patches for older versions, and since I've made fixes recently even for version 1 patches, we should increment this counter. Zorg 2015-04-17 17:53:05 -04:00
  • 3c78139ec8 Use enums for major/minor versions instead of #defines This should be more typesafe Zorg 2015-04-17 17:50:21 -04:00
  • 5c921de24f Removing couple of unused variables Zorg 2015-04-17 17:20:54 -04:00
  • a715babce3 Create #defines for diff properties Zorg 2015-04-17 16:32:38 -04:00
  • fd68e649db Clarifying which BinaryDiff fields are available when Zorg 2015-04-17 15:14:51 -04:00
  • 186cfa8486 New patches will now be at major version 2 This will break backwards compatibility with version 1 patches, which generated tree hashes differently and did not handle applying permission changes in some cases. A version flag is also added to BinaryDelta create for creating patches an older version of BinaryDelta apply can handle. This is only meant for transition purposes. Zorg 2015-04-17 14:53:54 -04:00
  • c5bc6fe95b s/executablePermissions/permissions/ Zorg 2015-04-17 02:29:27 -04:00
  • 285cd3063f Fix removeTree not working for symbolic links and added tests I accidently broke this a few commits ago where I inserted a return value for it Zorg 2015-04-17 02:28:03 -04:00
  • 8a4f4677bd Add detection for ACLs and fail if they are present Applications probably shouldn't contain ACLs for files inside their bundle. Dealing with these could be complicated, so we should just reject them. Zorg 2015-04-17 01:35:17 -04:00
  • 57122a40e6 Back out of using the kSecCSCheckNestedCode flag. Isaac Wankerl 2015-04-15 14:26:53 -05:00
  • e2fca42f6c Add error checking to a removeTree call Zorg 2015-04-15 00:09:32 -04:00
  • 443a6064b3 Add test with no files in before/after trees Zorg 2015-04-14 01:48:50 -04:00
  • 86754e0537 Adding another test case for empty directories Zorg 2015-04-14 01:47:01 -04:00
  • 78a940fcf4 Add tests for symlink permissions Zorg 2015-04-14 01:46:24 -04:00
  • 4029788163 Use lchmod for symlinks; fixes not being able to modify them Zorg 2015-04-14 01:44:19 -04:00
  • 16cd57b8eb Use XCTFail where appropriate Zorg 2015-04-14 00:36:30 -04:00
  • a5687d9c1d Track all Unix permissions Rationale: given a before-hash and an after-hash, there should only be one way to create the diff file. It was possible to violate this before, if we let a file differ in a permission bit that wasn't executable. Zorg 2015-04-14 00:12:12 -04:00
  • e93888ad3f Add more permissions tests with directories and files Zorg 2015-04-14 00:09:03 -04:00
  • 7aaf002651 Track directories in binary delta hashes This code was intended to track directories from the start, but it looks like it never did. Zorg 2015-04-13 20:41:10 -04:00
  • 742648a166 Check the code signature of installed app in the SUPlainInstaller. Isaac Wankerl 2015-04-13 15:48:17 -05:00
  • c1f9fcb456 Add SUCodeSigningVerifier unit tests. Isaac Wankerl 2015-04-13 15:27:59 -05:00
  • 47d56a5485 Use the bundleURL instead of executableURL with SecStaticCodeCreateWithPath() Isaac Wankerl 2015-04-13 12:55:20 -05:00
  • 498ed027dd Perform a deep code signature verification with kSecCSCheckNestedCode Isaac Wankerl 2015-04-13 12:51:20 -05:00
  • 31d03b314d Add +[SUCodeSigningVerifier codeSignatureIsValidAtPath:error:] Isaac Wankerl 2015-04-13 11:47:34 -05:00
  • 8bbe487c86 Refactor +[SUCodeSigningVerifier codeSignatureIsValidAtPath:error:] to +[SUCodeSigningVerifier codeSignatureMatchesHostAndIsValidAtPath:error:] Isaac Wankerl 2015-04-13 11:31:34 -05:00
  • 4d6eeb363c Add +[SUCodeSigningVerifier applicationAtPathIsCodeSigned:] Isaac Wankerl 2015-04-13 11:25:44 -05:00
  • 419b6aabef Extracting files should take priority over changing permissions Fixes a bug where permissions would change but a new (small) file would not be updated Zorg 2015-04-13 00:05:46 -04:00
  • 54522aa725 Reworked diffing file permissions My initial attempt did not work correctly for directories that differed in permissions (since it removed them and all the files inside them). We are now setting a property for permission changes which can happen when a binary diff is created, or when it is skipped. Still have to figure out how backwards compatibility is going to work now.. Zorg 2015-04-12 23:21:40 -04:00
  • d374d99e51 Only allow 0755 and 0644 permissions in after-tree Zorg 2015-04-12 19:57:40 -04:00
  • 33de6ed878 Don't think _DARWIN_NO_64_BIT_INODE is needed Zorg 2015-04-12 16:30:17 -04:00
  • 0c40d99740 Added invalid source test for BinaryDelta Zorg 2015-04-12 15:55:28 -04:00
  • bcab57d8f5 Handle exec. file changes, versioning, more error handling BinaryDelta can now create proper diffs in the case if a non-executable file becomes an executable file, or vise versa. Currently for simplicit y and backward-compatibility we delete then extract if an executable difference is found, rather than creating a diff. Files that contain an executable difference are unlikely to be large anyway. Zorg 2015-04-12 14:46:26 -04:00
  • 2ca0a739e5 Merge pull request #522 from zorgiepoo/binary-delta-tests Kornel 2015-04-11 16:13:02 +01:00
  • 9895f123a7 Comments changes to SUBinaryDeltaTest.m Zorg 2015-04-11 00:40:50 -04:00
  • 87dfe0a4ed Adding BinaryDelta creating/applying tests Zorg 2015-04-11 00:13:27 -04:00
  • 08434edf79 Move creating diffs into separate source file Since a function for creating diffs is now exposed, this should make testing easier This is also consistent with applying diffs being in a separate source file from the delta tool as well Zorg 2015-04-09 21:39:11 -04:00
  • 695e05eba4 Merge pull request #520 from ProsoftEngineering/xcode-63-update Kornel 2015-04-09 23:58:59 +01:00
  • b9a8adba73 Suppress Xcode 6.3 -Wcstring-format-directive warning Brian Bergstrand 2015-04-09 14:17:30 -05:00
  • 91f504ed9f Update to Xcode 6.3 Brian Bergstrand 2015-04-09 13:48:59 -05:00
  • 6033bd4228 Suppress AuthorizationExecuteWithPrivileges deprecated warning Brian Bergstrand 2015-02-10 12:36:58 -06:00
  • 3de3b11523 Merge pull request #518 from zorgiepoo/binary-delta-stdout Kornel 2015-04-09 00:36:25 +01:00
  • 707f86a2f4 Patch BinaryDeltaApply to use stdout for info messages too See issue #516 Zorg 2015-04-07 21:51:26 -04:00
  • e9817380d2 Stdout used for non error outputs JDuquennoy 2015-04-07 09:55:23 +02:00
  • c94eac3673 Corrected script for correcting locales names. kit_1.1.2 kit_1.1.1 Dmytro Tretiakov 2015-04-07 18:26:31 +03:00
  • 21999e4a75 Merge pull request #515 from zorgiepoo/bsdiff-sais Kornel 2015-04-05 23:28:14 +01:00
  • 616cc70775 Change bsdiff's suffix sort algorithm to sais. Fixes #132 Although #132 is marked as closed, the issue is still real. bsdiff can crash or hang when creating diffs on some files. In particular, bsdiff hangs/crashes in its recursive split function. Zorg 2015-04-05 15:01:49 -04:00
  • acea9b0d1d Fixed crash when releasing semaphore in different class methods. Dmytro Tretiakov 2015-04-05 13:28:59 +03:00
  • 09d98932d9 Merge pull request #513 from zorgiepoo/binary-delta-case-issue Kornel 2015-04-04 23:37:48 +01:00
  • 3b8513546e Merge pull request #514 from zorgiepoo/binary-delta-dir-change-issue Kornel 2015-04-04 23:37:36 +01:00
  • 5589a604b8 Use child/parent names with paths for better clarity Zorg 2015-04-04 16:44:36 -04:00
  • 44b027a178 Fix BinaryDelta sometimes failing when a dir becomes a dir link This can occur in the following case: -- original_tree: A/ Current/ B new_tree: A/ B Current -> A/ -- Because symbolic links are not followed, Current/B can be marked as deleted. If A/B is added before the deletion, then A will end up as an empty directory. Our fix is to remove all subpaths of a file when it changes from a directory to another type of file. This should also decrease the size of the diff even in harmless cases such as when a directory changes into a regular file. Zorg 2015-04-04 13:29:29 -04:00
  • 2dfc8494d7 Fix BinaryDelta failing on filenames changing case When a filename changes case, make sure we have the file deleted in the old tree before being extracted into the new one. Note that we don't try creating a diff if a file is renamed with a different case, just like we don't track file names changing in other ways. See issue #474 Zorg 2015-04-03 17:45:43 -04:00
  • 729087f696 Merge pull request #511 from grahammiln/imageoptim Kornel 2015-04-01 17:15:31 +01:00
  • 7656128c55 Crunching image size with ImageOptim Graham Miln 2015-04-01 17:21:00 +02:00
  • 5fe670ce05 Merge pull request #510 from grahammiln/remove-cast Kornel 2015-04-01 15:34:54 +01:00
  • d700b69072 Removing redundate NSString cast; see #590 Graham Miln 2015-04-01 16:23:29 +02:00
  • ddde2822fa Merge pull request #509 from grahammiln/launch-services Kornel 2015-04-01 11:20:16 +01:00
  • a7d11f88c7 Register update with Launch Services; see #508 Graham Miln 2015-04-01 11:16:46 +02:00
  • 3b15ab08e1 [SUUpdaterQueue] Used dispatch_semaphore instead of running run loop. Dmytro Tretiakov 2015-03-24 17:39:43 +02:00
  • acb5fdb553 LastUpgradeCheck = 0620 tf-v1.6.19 tf-v1.6.18 Antonin Hildebrand 2015-03-24 14:26:58 +08:00
  • e7ed4aa32f Merge pull request #492 from ksuther/french-change Kornel 2015-03-12 17:06:20 +00:00
  • 090285ec7e Changed French string for automatically install updates as suggested by a French user: Kent Sutherland 2015-03-12 11:43:15 -04:00
  • bc99dbd560 Merge pull request #491 from MaddTheSane/xCode63someFix Jake Petroules 2015-02-25 22:47:47 -08:00
  • fbd90763f9 Merge pull request #490 from MaddTheSane/modulesToXcconfig Jake Petroules 2015-02-25 22:46:53 -08:00
  • f88439923f Fix some issues discovered when building on Xcode 6.3: Remove binaryDeltaSupported, as libxar is no longer weak-linked. C.W. Betts 2015-02-25 22:17:23 -07:00
  • 8f4ab3eb56 Move the module build settings out of Xcode. Because all of the other build settings are in the xcconfig files. C.W. Betts 2015-02-25 21:51:09 -07:00
  • f216ef7a13 Merge pull request #489 from mgunneras/http-headers Kornel 2015-02-26 01:10:55 +00:00
  • 1db20c4882 Bugfix for setting headers properly, not just key-value pairs on the class Mattias Gunneras 2015-02-25 10:56:56 -05:00
  • 0a6de47783 Added ability to inject custom http headers in appcast request Mattias Gunneras 2015-02-25 09:42:31 -05:00
  • 02d5d44ffd Renamed XPC services with "com.devmate" prefix kit_1.1.0 kit_1.0.0 Dmytro Tretiakov 2015-02-11 12:38:13 +02:00
  • f16d3b2db0 Fix for warning introduced by XC6.3 Sam Deane 2015-02-10 11:55:03 +00:00
  • 01685649ee XC6.3 update Sam Deane 2015-02-10 11:39:49 +00:00
  • 2a1760a5a9 Merge pull request #482 from sparkle-project/hasLaunched Kornel 2015-02-08 11:10:47 +00:00
  • 65238c35a9 Merge pull request #472 from millerdev/fix-invalid-parameter Kornel 2015-02-08 11:10:32 +00:00
  • 5e4e904efd Merge pull request #469 from kainjow/master Kornel 2015-02-08 11:07:55 +00:00
  • 4d6d766a21 Merge pull request #377 from grahammiln/guided-pkg-install Kornel 2015-02-08 11:04:14 +00:00
  • 2cb531066c Merge pull request #483 from stel/patch-1 Kornel 2015-01-27 08:40:59 +00:00
  • e41fbdee49 Update podspec for 1.9.0 Dmitry Obukhov 2015-01-27 10:52:54 +03:00
  • 1daba4d60f Updated DMCore lib to the latest version. Dmytro Tretiakov 2015-01-26 16:16:36 +02:00
  • c2672cf89c Always set hasLaunchedBefore Kornel Lesiński 2015-01-25 10:55:18 +00:00
  • 6146b0a002 Version bump 1.9.0 Kornel Lesiński 2015-01-25 10:54:43 +00:00
  • ce22598d13 Merge pull request #481 from MaddTheSane/useModules 1.9.0rc1 Kornel 2015-01-22 16:45:20 +00:00
  • c067f7a13b Have Sparkle build a framework module. C.W. Betts 2015-01-20 14:57:07 -07:00
  • 89c21b3acd Updated changelog Kornel Lesiński 2015-01-15 09:54:06 +00:00
  • 2adadf56e1 Explicit @synthesize Kornel Lesiński 2015-01-15 09:41:00 +00:00
  • 57530564a6 Merge pull request #446 from tonyarnold/skip-install Kornel 2015-01-15 09:30:25 +00:00
  • 3bebcfdd68 Merge pull request #476 from greenbuffo/master Kornel 2015-01-14 23:12:36 +00:00
  • b5fc2be113 Fix Autoupdate.app crash on 10.7 (issue #441) Chris Campbell 2015-01-14 11:42:33 -05:00
  • a8d96e0dce Fix invalid parameter error on check for updates Daniel Miller 2014-12-31 00:17:23 -05:00