You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v0.2.3: run AppImage runtime patch after electron-builder, not in hook (#11)
v0.2.2's Linux build showed that electron-builder's `afterAllArtifactBuild`
hook fires BEFORE `latest-linux.yml` gets written — so our hook patched
the AppImage bytes but never found the YAML to update, leaving the sha512
in the manifest pointing at the original (pre-patch) file. electron-updater
would have rejected the download on signature mismatch.
Fix: demote the hook to a standalone CLI script and run it from the
`dist:linux` npm script AFTER `electron-builder` has finished producing
everything it writes (AppImage + latest-linux.yml both present on disk).
"dist:linux": "electron-vite build && electron-builder --linux && node scripts/patch-appimage-runtime.mjs artifacts"
Script logic is identical — download static runtime once, splice it over
the original runtime prefix of each .AppImage in the given dir, recompute
sha512/size, rewrite matching entries in latest-linux.yml. Just runs at
the right time now.
Removed `afterAllArtifactBuild` from electron-builder.yml since the
script is no longer wired there.
Version bump to 0.2.3.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments