Repository navigation
发版:Windows x64 暂用原版 Electron,解除 0.2.13 的阻塞 - #9
Merged
Merged
Conversation
…ative runtime The release gate required an accepted native Electron runtime for every target. macOS arm64, macOS x64 and Linux x64 have one; the Windows build has not completed, which blocked 0.2.13 on every platform. The packaging hook now lists win32-x64 as a stock target. With no win32-x64 runtime in the artifacts directory it leaves electronDist unset, warns, and electron-builder packages the npm Electron at the locked version. A supplied win32-x64 runtime is still verified and used, and an unaccepted or incomplete one fails packaging instead of falling back. Every other target still fails without its native artifacts. The fetch step now runs the bundle extraction with python3 on macOS and Linux, the same interpreter names the hook uses. On Windows this release imports extensions but cannot run userscripts; the changelog says so.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
The release rehearsal failed on Windows with "patch SHA-256 mismatch". The Windows runner checks out with core.autocrlf=true, which rewrote the patch with CRLF line endings, so its bytes no longer matched patchSha256 in build-lock.json. ci.yml turns the conversion off; release.yml does not, so a native Windows runtime would have failed the same way. Mark the patch -text so no checkout converts it.
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.
摘要 / Summary
0.2.13 的发版门要求每个平台都有通过验收的自编译 Electron。macOS arm64、macOS x64、Linux x64 已有,Windows 的从源码构建一直没能完成(托管机 4 核、单任务 6 小时上限),三个平台因此都发不出去。
这次改动只放开 Windows x64:
runtime/electron/packaging.mjs新增stockTargets,目前只有win32-x64。产物目录里没有win32-x64时,钩子不设置electronDist并打印警告,electron-builder 按锁定版本打包 npm 的 Electron。win32-x64目录,仍然完整校验并使用;未验收或不完整的会让打包失败,不会回退到原版。其它平台缺少原生产物时照旧失败。release.yml的解包步骤在 macOS / Linux 上改用python3,与钩子使用的解释器名一致。.gitattributes,把原生补丁标成不做换行转换。Windows 托管机检出时会把它改成 CRLF,字节就和build-lock.json里的 SHA-256 对不上;这是第一次演练在 Windows 上失败的原因,Windows 原生包将来也会撞上。The 0.2.13 release gate required an accepted native Electron for every target. macOS arm64, macOS x64 and Linux x64 have one; the Windows from-source build has not completed, which blocked all three platforms. The packaging hook now lists
win32-x64as a stock target: with nowin32-x64runtime supplied it packages the npm Electron at the locked version and warns. A supplied Windows runtime is still verified and used, and an unaccepted or incomplete one fails packaging. Every other target still fails without its native artifacts. A new.gitattributeskeeps the native patch byte-identical on Windows checkouts, which otherwise rewrite it with CRLF and break its locked SHA-256. The changelog states that userscripts do not run on Windows in this release.测试 / Testing
pnpm typecheck、pnpm lint、pnpm format:check、pnpm test(159 个文件,2229 个用例通过)。receipt.json、无视已提供的运行时),对应的守卫用例都会失败。0b9c9316…a72a52,已发布为native-electron-v43.7.9-953989e2244d)。dc9227d):Linux 用原生包打包成功;macOS 两个架构都用原生包,签名和公证成功;Windows 以patch SHA-256 mismatch失败。46b9da2,加了.gitattributes):Windows 打印原版警告后用 Electron 43.7.9 打出 NSIS 安装包;Linux 再次成功。macOS 任务与第一次重复,已取消。在以下平台测试过 / Tested on:
AI 使用声明 / AI disclosure
claude-fable-5-2)