【已审核】feat(build): 增加 Windows ARM64 打包支持#1146
Closed
climashscape wants to merge 1 commit into
Closed
Conversation
climashscape
force-pushed
the
feat/win-arm64-support
branch
from
July 13, 2026 12:54
63eec24 to
63491aa
Compare
- electron-builder.yml: 添加 arm64 到 Windows target arch 列表 - scripts/dist.ts: 新增 --arm64/--x64 参数指定目标架构,支持跨平台构建(如 macOS 构建 Windows ARM64);新增 --skip-cli 参数跳过 CLI 编译(避免 bun build --compile 交叉编译问题);补充完整使用文档 - scripts/download-bun.ts: 新增 win32-arm64 平台支持(platform-arch: windows-aarch64) - apps/electron/src/main/lib/bun-finder.ts: 新增 Windows ARM64 原生架构检测(通过 PROCESSOR_Architecture 环境变量识别模拟模式),确保在 x64 模拟下选对 vendor/bun/win32-x64 或 win32-arm64 路径 - packages/shared: PlatformArch 类型新增 win32-arm64,版本号 0.1.41→0.1.42
climashscape
force-pushed
the
feat/win-arm64-support
branch
from
July 15, 2026 02:49
63491aa to
841e01f
Compare
climashscape
marked this pull request as ready for review
July 15, 2026 02:51
Collaborator
|
感谢这个 PR 先把 Windows ARM64 的可行方向梳理出来。这里的判断是:方向是对的,但当前阶段我们先不合并这条实现。 主要原因:
我基于这个方向单独整理了一个更完整、但默认不启用的未来方案:#1153。 #1153 的取舍是:
所以这个 PR 可以作为问题背景和早期探索保留参考,但我们后续会以 #1153 这类“发布链路可控、默认不影响当前用户”的方案继续推进。 |
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.
概述
Proma 是纯 JS/TS/WASM 项目(零 C++ native addon),
Electron 39.5.1 原生支持 ARM64,SDK 也提供 win32-arm64
子包(@anthropic-ai/claude-agent-sdk-win32-arm64),
具备良好的 Windows ARM64 移植条件。
本 PR 添加基础的 win-arm64 打包支持:
与 x64 一致的自动更新和安装体验)
改动
自动更新说明
electron-updater 在 Windows 上统一读取 latest.yml(不存在架构
后缀差异),x64 和 arm64 的 NSIS 安装包均写入同一个 latest.yml。
客户端运行时按 process.arch 自动匹配正确的安装包下载安装。
因此 arm64 和 x64 的自动更新体验完全一致。
测试
设备上运行确认
注意事项:
ARM64 构建不含 proma CLI binary(可用系统安装的 bun 替代)
紧急度
低