Skip to content

feat: roll Squirrel.Mac for streamed, resumable and delta update downloads - #52820

Merged
jkleinsc merged 2 commits into
mainfrom
squirrel-mac-streaming-downloads
Aug 17, 2026
Merged

jkleinsc merged 2 commits into
mainfrom
squirrel-mac-streaming-downloads

Conversation

@codebytere

@codebytere codebytere commented Aug 14, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Rolls squirrel.mac to 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 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; a feed may declare sha256/size for the ZIP, checked before it is unpacked; and a feed may offer delta, 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 in autoUpdater; docs/api/auto-updater.md describes 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 a licenses.py entry, and the squirrel.mac GN config gains those sources in a sparkle_binary_delta source_set with the flags Squirrel's Xcode project gives them, the new Squirrel sources (SQRLDownloader, SQRLUpdateDelta), the include dirs, and -lbz2 -lcompression -lz.

Checklist

Release Notes

Notes: The macOS autoUpdater now 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.

…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.
@codebytere
codebytere requested review from a team as code owners August 14, 2026 18:26
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Aug 14, 2026
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.
@codebytere codebytere added semver/patch backwards-compatible bug fixes target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 14, 2026
@codebytere codebytere changed the title chore: roll Squirrel.Mac for streamed, resumable and delta update downloads feat: roll Squirrel.Mac for streamed, resumable and delta update downloads Aug 15, 2026
@MarshallOfSound MarshallOfSound added no-backport and removed target/42-x-y PR should also be added to the "42-x-y" branch. target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Aug 15, 2026
@MarshallOfSound

Copy link
Copy Markdown
Member

Will land on main for some additional testing and then do backports after

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Aug 15, 2026
@codebytere codebytere added semver/minor backwards-compatible functionality and removed semver/patch backwards-compatible bug fixes labels Aug 17, 2026
@electron-cation electron-cation Bot added api-review/requested 🗳 new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Aug 17, 2026
@MarshallOfSound

Copy link
Copy Markdown
Member

API LGTM

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@codebytere codebytere added api-review/skip-delay ⏰ Skip the mandatory 7 day waiting period for new APIs and removed api-review/requested 🗳 labels Aug 17, 2026

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@jkleinsc
jkleinsc merged commit fd93bf4 into main Aug 17, 2026
227 of 230 checks passed
@jkleinsc
jkleinsc deleted the squirrel-mac-streaming-downloads branch August 17, 2026 20:42
@release-clerk

release-clerk Bot commented Aug 17, 2026

Copy link
Copy Markdown

Release Notes Persisted

The macOS autoUpdater now 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.

@trop

trop Bot commented Sep 22, 2026

Copy link
Copy Markdown
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)
@trop trop Bot added merged/44-x-y PR was merged to the "44-x-y" branch. and removed in-flight/44-x-y labels Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-review/requested 🗳 api-review/skip-delay ⏰ Skip the mandatory 7 day waiting period for new APIs merged/44-x-y PR was merged to the "44-x-y" branch. no-backport semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants