Repository navigation
Conversation
This branch has not been deployed
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.
A change to a JS bundle can make a Mac updater download unchanged document fonts and device models again: the ZIP compresses the whole app.asar as one entry.
Use electron-builder’s existing asarUnpack filter for the generated web fonts and GLB models on macOS. Each asset then gets its own compressed ZIP entry and keeps its existing Electron path. JS and WASM stay archived. This requires no updater change and benefits users once both releases use the layout. Electron ASAR file resolution.
Release replay
ZIP payload MB (decimal) with a cached previous ZIP. “First switch” uses the official older ZIP and the proposed newer layout.
For each architecture and release, the experiment used the published ZIP, retained the ASAR file order, moved the matching bytes into unpacked entries, refreshed the ASAR header hash, applied an ad-hoc signature, and updated the ZIP with 7-Zip. Ran electron-updater’s download planner on each pair of blockmaps and verified that its COPY and DOWNLOAD operations reconstruct the exact target ZIP by SHA-256. These are release replays. Production Developer ID signing and notarization run in release CI.
For arm64 0.1.15 → 0.1.16 also ran the actual 0.1.15 MacUpdater against an isolated range server. The stock layout transferred 120,276,036 ZIP bytes in 63 HTTP 206 responses. The new layout transferred 75,327,375 bytes in 115 responses. The first switch transferred 120,922,951 bytes. The downloader verified the target ZIP. Blockmaps and HTTP headers are excluded from the table. The full arm64 0.1.16 ZIP grew by 41,892 bytes in this replay.
The higher range count can matter on high-latency links. With a local single-range server injecting a 40 ms delay per request and pacing each response body toward 50 Mbit/s, two runs of the same old MacUpdater took 23.18 / 23.26 seconds on stock and 19.44 / 19.29 seconds with the new layout (download and reconstruction only). Public CDN and geography will affect elapsed time.
Verification
vp test run scripts/build-desktop-artifact.test.ts(97 passed) andvp run check:changed(150 tests, typecheck, lint and remaining gates passed).Model: GPT-6. Harness: Codex.