Prepare Windows ARM64 release packaging#1153
Draft
ErlichLiu wants to merge 1 commit into
Draft
Conversation
3 tasks
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.
概述
为未来支持 Windows ARM64 安装包补齐打包与发布链路,但默认不启用 ARM64 release job,避免在缺少 Windows ARM 设备或 runner 时影响当前 Intel/x64 Windows 用户发布。
改动
electron-builder.yml将 Windows NSIS target 扩展到x64 + arm64release.yml新增默认关闭的build-windows-arm64jobENABLE_WINDOWS_ARM64_RELEASE=true启用windows-11-arm,也可通过WINDOWS_ARM64_RUNNER指向自托管 runnerwin32-arm64scripts/dist.ts改为按 host/target triple 判断 CLI 编译安全性promaCLI 混进目标安装包--skip-cliresources/bin,避免 stale CLI 被打包win32-arm64@proma/sharedruntime 类型加入win32-arm64设计取舍
Windows ARM64 的正式包必须在 Windows ARM64 runner 上构建。Proma 不是纯 Electron 前端壳,安装包里还包含 Agent SDK native binary、Proma CLI 和运行时探测逻辑;用 macOS 或 Windows x64 交叉构建正式包容易产出缺 CLI 或混入错误平台二进制的包。
ARM64 release job 默认跳过,等有 Windows ARM 设备或可靠 runner 后再打开。
验证
git diff --checkbun run --cwd apps/electron typecheckbun run --cwd apps/electron build:mainbun run --cwd apps/electron build:preloadbun run --cwd apps/electron scripts/dist.ts --win --arm64 --no-sign确认在 mac-arm64 主机上会拒绝正式交叉打包