You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "M4n5ter (via GitHub)" <gi...@apache.org> on 2026/08/28 13:22:37 UTC

[PR] dev(runtime-host): build target-aware host packages [maka]

M4n5ter opened a new pull request, #4087:
URL: https://github.com/apache/maka/pull/4087

   ## Summary
   
   Development Desktop setup now resolves Runtime Host packages against the target environment instead of the Desktop process platform.
   
   - make the development package target an explicit, typed resolver input and cache archives per target
   - probe SSH host OS/architecture before development setup or update
   - keep WSL framed-stdio packages peer-less, so Windows-to-WSL development does not require Rust, Zig, or a host-native addon
   - build supported Linux cross-target addons with `cargo-zigbuild`, with actionable prerequisite and unsupported-target failures
   - leave published release packaging unchanged
   
   Fixes #4085
   
   <details>
   <summary>中文说明</summary>
   
   开发版 Desktop setup 现在按目标环境解析 Runtime Host package,不再错误地使用 Desktop 进程所在平台。
   
   - 将开发 package target 变成显式、类型安全的 resolver 输入,并按 target 缓存 archive
   - 在开发版 SSH setup/update 前探测目标 OS/架构
   - WSL framed-stdio 使用不含 direct-peer addon 的 package,因此 Windows 到 WSL 的开发流程不要求 Rust、Zig 或宿主机 native addon
   - 支持的 Linux 跨目标 addon 使用 `cargo-zigbuild`;缺少依赖或目标不支持时尽早给出可操作错误
   - 正式发布的打包行为保持不变
   
   关闭 #4085。
   
   </details>
   
   ## Verification
   
   - `npm run lint`
   - `npm run format:check`
   - `npm run typecheck`
   - `mise x node@24.18.1 -- npm run check:release` — 110 passed
   - affected compiled Desktop suites — 40 passed
   - built a real `none` development archive and verified it contains no direct-peer prebuild
   - built a real `linux-arm64` archive from Linux x64 and verified its addon is an AArch64 ELF
   - Windows Electron → fresh `Maka-Test` WSL setup, project selection, and real session completed with `WSL_TARGET_PACKAGE_OK`; the generated WSL archive contained no direct-peer prebuild and no Cargo/Zig process ran
   
   <details>
   <summary>中文验证说明</summary>
   
   - lint、format、typecheck 均通过
   - release check 110 项通过,受影响 Desktop suite 40 项通过
   - 实际构建并检查了 peer-less WSL archive 与 Linux x64 → arm64 跨目标 archive
   - 在 Windows Electron 中重新安装并连接 `Maka-Test` WSL,成功选择项目并完成真实 session;WSL archive 不含 direct-peer prebuild,且未启动 Cargo/Zig
   
   </details>
   
   ## AI use
   
   Select exactly one:
   
   - [ ] No generative tool made a substantive contribution
   - [x] Generative tooling made a substantive contribution
   
   Tool(s) and scope: Codex implemented the target-aware resolver, SSH target preflight, packaging changes, focused tests, and cross-platform verification.
   
   ## Checklist
   
   - [x] Tests cover the change and fail without it
   - [x] Lint, format, typecheck and the affected suites pass locally
   
   Does this PR entail a change in behavior?
   
   - [x] Yes — described under Summary above
   - [ ] No
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] dev(runtime-host): build target-aware host packages [maka]

Posted by "M4n5ter (via GitHub)" <gi...@apache.org>.
M4n5ter merged PR #4087:
URL: https://github.com/apache/maka/pull/4087


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org