Repository navigation
Stage macOS updates with Electron's unpatched filesystem - #200
Merged
Merged
Conversation
The first signed v0.0.12 run (38437820616) failed all three native updater scenarios. The signed 0.0.0 source refused the tampered ZIP as intended, then reported the authentic candidate as "could not be downloaded or verified". Inside Electron, staging failed with "Invalid package .../Modex.app/Contents/Resources/app.asar": Electron's fs treats any path ending in .asar as an archive to read, and every real update contains that file. Unit tests run in plain Node, and the updater UI tests substitute staging, so no test had staged inside Electron. Stage with original-fs when running in Electron. A new e2e test stages an archive containing app.asar inside Electron. It failed with the production error before this change. With the fix, staging and the real publisher verification accept the run's signed candidate ZIP inside Electron. Also wait for the new browser tab to take focus before the Store recovery test fills its draft. That race failed main's post-merge CI on e3fecf0 once. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 14, 2026
This branch was successfully 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.
The first signed v0.0.12 release run (38437820616) failed all three native updater scenarios: upgrade, native-failure and interrupted. Signing, notarization, packaged E2E and the Windows and Linux candidates all passed. No draft was created, and nothing was published.
What happened
In each scenario, the signed
0.0.0source refused the tampered ZIP, which is correct. It then showed "The update could not be downloaded or verified" for the authentic candidate: 131,698,006 bytes, SHA-256a1156e6d….Running the shipped staging inside the run's signed
0.0.0fixture app gives the real error, which the controller's catch had hidden:Electron's
fstreats any path ending in.asaras an archive to read, and every real Modex update containsContents/Resources/app.asar. Two other results narrow it down:stageUpdateArchiveandverifyMacUpdateBundleaccept the same bytes, and everycodesign,PlistBuddy,lipoandspctlstep passes (source=Notarized Developer ID).Fix
update-archive.ts: inside Electron, staging uses the unpatchedoriginal-fsmodule; plain Node is unchanged. This module is the only updater code that writes or removes files in the unpacked bundle.e2e/update-archive-electron.spec.ts: stages an archive containingapp.asar(plusapp.asar.unpacked/) inside Electron, then checks the file contents and their removal. It failed with the production error before the fix and passes after it. It loads the module the same way the release harness does, so it also runs in packaged E2E.e2e/store-desktop.spec.ts: the Store recovery test now waits for the new browser tab's address field to take focus before filling the draft. That race failed main's post-merge CI one3fecf0once. Its rerun passed, as did 15 local repeats.docs/status.mdare updated.Verification
npm run build,npm run typecheckandnpm testall pass: 1,426 unit tests, 1,410 passed, 16 skipped, 0 failed.