Repository navigation
feat: roll Squirrel.Mac for streamed, resumable and delta update downloads - #52820
Merged
Merged
Conversation
…nloads Rolls squirrel.mac to fffea30 (Squirrel/Squirrel.Mac#327, #328, #330): * the update ZIP streams to disk through an NSURLSession download task instead of arriving as one in-memory NSData, an interrupted transfer resumes on the next check (and after a relaunch) when the server provides a validator and honours Range, and a feed may declare `sha256`/`size` for the ZIP, checked before it is unpacked; * a feed may offer `delta`, a Sparkle BinaryDelta patch from one earlier build, applied to a copy of the running app and verified like an unpacked ZIP, with the ZIP as fallback in the same check. Squirrel compiles Sparkle's BinaryDelta apply sources and the bsdiff it vendors into the framework, so Sparkle 2.9.5 becomes a DEPS entry at vendor/Sparkle (gclient does not initialise Squirrel's submodule) with a licenses.py entry, and the GN config gains those sources with the flags Squirrel's Xcode project gives them, the new Squirrel sources, and -lbz2 -lcompression -lz. The autoUpdater docs describe the behaviour and the optional feed keys.
mac_framework_bundle() expands squirrel_framework into inner targets (squirrel_framework_shared_library links the sources), so limit the source_set to this file rather than to the template's outer name.
MarshallOfSound
approved these changes
Aug 15, 2026
Member
|
Will land on main for some additional testing and then do backports after |
Member
|
API LGTM |
jkleinsc
approved these changes
Aug 17, 2026
|
Release Notes Persisted
|
Contributor
|
@codebytere has manually backported this PR to "44-x-y", please check out #54204 |
jkleinsc
pushed a commit
that referenced
this pull request
Oct 7, 2026
…loads (#54204) feat: roll Squirrel.Mac for streamed, resumable and delta update downloads (#52820) * chore: roll Squirrel.Mac for streamed, resumable and delta update downloads Rolls squirrel.mac to fffea30 (Squirrel/Squirrel.Mac#327, #328, #330): * the update ZIP streams to disk through an NSURLSession download task instead of arriving as one in-memory NSData, an interrupted transfer resumes on the next check (and after a relaunch) when the server provides a validator and honours Range, and a feed may declare `sha256`/`size` for the ZIP, checked before it is unpacked; * a feed may offer `delta`, a Sparkle BinaryDelta patch from one earlier build, applied to a copy of the running app and verified like an unpacked ZIP, with the ZIP as fallback in the same check. Squirrel compiles Sparkle's BinaryDelta apply sources and the bsdiff it vendors into the framework, so Sparkle 2.9.5 becomes a DEPS entry at vendor/Sparkle (gclient does not initialise Squirrel's submodule) with a licenses.py entry, and the GN config gains those sources with the flags Squirrel's Xcode project gives them, the new Squirrel sources, and -lbz2 -lcompression -lz. The autoUpdater docs describe the behaviour and the optional feed keys. * fixup! visibility of sparkle_binary_delta mac_framework_bundle() expands squirrel_framework into inner targets (squirrel_framework_shared_library links the sources), so limit the source_set to this file rather than to the template's outer name. (cherry picked from commit fd93bf4)
This was referenced Oct 18, 2026
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Rolls
squirrel.macto Squirrel/Squirrel.Mac@fffea30, picking up Squirrel/Squirrel.Mac#327, Squirrel/Squirrel.Mac#328 and Squirrel/Squirrel.Mac#330.On macOS the update ZIP now streams to disk through an
NSURLSessiondownload task instead of arriving as one in-memoryNSData; an interrupted transfer resumes on the next check (and after a relaunch) when the server provides a validator and honoursRange; a feed may declaresha256/sizefor the ZIP, checked before it is unpacked; and a feed may offerdelta, a Sparkle BinaryDelta patch from one earlier build that Squirrel applies to a copy of the running app and puts through the same code signing verification as an unpacked ZIP, falling back to the ZIP in the same check on any failure. No API change inautoUpdater;docs/api/auto-updater.mddescribes the behaviour and the optional feed keys.Squirrel compiles Sparkle's BinaryDelta apply sources and the bsdiff it vendors into the framework, and gclient does not initialise Squirrel's Sparkle submodule, so Sparkle 2.9.5 becomes a DEPS entry at
third_party/squirrel.mac/vendor/Sparkle(beside Mantle and ReactiveObjC) with alicenses.pyentry, and the squirrel.mac GN config gains those sources in asparkle_binary_deltasource_set with the flags Squirrel's Xcode project gives them, the new Squirrel sources (SQRLDownloader,SQRLUpdateDelta), the include dirs, and-lbz2 -lcompression -lz.Checklist
npm testpassesRelease Notes
Notes: The macOS
autoUpdaternow streams update downloads to disk, resumes an interrupted download on the next check instead of starting over, and applies a binary delta when the update feed offers one for the running version.