Skip to content

构建链路下载化改造:沙箱/fastscreen/wezterm-py 改为 Releases 下载 + CI 对齐 - #1

Closed
ming-14 wants to merge 9 commits into
mainfrom
dev
Closed

ming-14 wants to merge 9 commits into
mainfrom
dev

Conversation

@ming-14

@ming-14 ming-14 commented Sep 4, 2026

Copy link
Copy Markdown
Owner

改动概览

BUILD.py(本地编译 → 下载)

  • win-sandbox:从 GitHub Releases 下载 abi3 wheel(按架构 win_amd64/win_arm64,win32 已删),解包到 bin/win_sandbox/
  • nanobind-backend:从 PyPI 下载 split mode 运行期后端(按架构+Python 版本匹配)
  • fastscreen:从 GitHub Releases 下载三架构 DLL
  • wezterm-py:从 GitHub Releases 下载 wheel(查 release 资产列表匹配平台,不拼版本号)
  • 删除本地编译链路(cmake/vcvars/pybind11 依赖全部移除)

bug 修复

  • _download_to_temp:.whl 按 zip 容器解压(此前当 .tar.gz 报 not a gzip file)
  • pywezterm 平台标签对齐 manylinux_2_28(wheel 已重发)
  • 函数命名对齐 step_download_* 系列

CI

  • 移除 Rust/cargo/maturin 步骤(wezterm-py 改为下载)
  • Linux 依赖精简
  • windows+linux 矩阵构建+测试

验证

  • Windows:BUILD.py 构建成功(15.3MB zip,组件全下载),pytest 2089 passed
  • Linux (Ubuntu 22.04):BUILD.py 构建成功,pytest 1984 passed(manylinux_2_28 wheel 兼容旧 glibc)

- step_build_win_sandbox: 从本地编译改为下载 win-sandbox wheel(GitHub Releases),
  同时下载 nanobind-backend wheel(PyPI,split mode 运行期必需后端)
- 新增 _win_sandbox_platform(): 按 platform.machine() 映射 wheel 平台标签
- 新增 _pypi_wheel_url(): 从 PyPI JSON API 获取匹配架构/Python 版本的 wheel URL
- 新增 stage_clean_windows_sandbox_archives(): 清理旧产物
- 架构映射: AMD64→win_amd64, ARM64→win_arm64, x86→win32
  (nanobind-backend 无 win32 wheel,x86 仅下载 win_sandbox 本身)
- 相关文档注释同步更新
…se download

- step_build_fastscreen: replace cmake + VS compilation with platform-arch
  download from github.com/ming-14/fastscreen/releases
- add _fastscreen_asset_name() helper (pointer-width + machine arch)
- update docs/CLI.md: build step 3 description, env var references
- 移除本地编译(step_build_wezterm_py → step_download_wezterm_py)
- 新增 _pywezterm_platform() 映射当前平台到 wheel 平台标签
- 从 ming-14/pywezterm 最新 release 下载对应架构 wheel,解包到 bin/pywezterm
- 清理死代码:_find_cargo、_ensure_maturin、find_vcvars、write_cmd_wrapper
- 告警函数重命名 _warn_pywezterm_missing
- _download_to_temp: .whl 按 zip 容器命名解压(此前被当作 .tar.gz 报 not a gzip file)
- pywezterm: 从 release 资产列表匹配 wheel(tag v1.0 但 wheel 版本 0.1.0,
  不能按 tag 拼文件名,此前 404)
- 新增 _release_asset_name: 查询 release 资产匹配后缀
- CI: 移除 Rust/cargo/maturin(wezterm-py 已改为下载),Linux 依赖精简
@ming-14 ming-14 closed this Sep 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant