build: distribute MQDH on Windows x86_64 (experimental) #24

Merged
cflmy merged 4 commits from codex/windows-distribution into main 2026-12-03 08:52:03 +08:00
Owner

Windows x86_64 experimental distribution for MQDH (marqdo#90 M6 / #2).

What changes

  • scripts/package-windows.ps1: reproducible experimental Windows build — production-only hoisted dependency tree, nested pnpm link farms removed, built-in Node 24, deterministic archive metadata, cold-install verification and package-evidence.json.
  • scripts/install.ps1: user-level install into %LOCALAPPDATA%\MQDH with current.json version pointer, generated bin\mqdh.cmd, optional PATH/Start Menu, uninstall preserving MQDH_HOME.
  • scripts/mqdh.cmd: portable launcher for an extracted tree.
  • Platform/release contract: publish x86_64-pc-windows-msvc, platform-aware manifest fields (os=windows, min_glibc=null) and Windows install root default; tests for target, manifest and install root.
  • Runtime fixes required by a real Windows run: profile directory links use junctions (no Developer Mode needed) and install root defaults to %LOCALAPPDATA%\MQDH.
  • Docs: DISTRIBUTION/RELEASING/STATUS and docs/mqdh/evidence/2026-12-02-windows-experimental.md.

Verification (real Windows 11, Node v24.22.3)

Boundaries

Unsigned, no native Windows CI lane yet, not part of the mqdh-v<version> update channel, and not in the root recommended combination. Linux remains the accepted platform; root acceptance for Windows stays deferred with marqdo#90/M6.

Windows x86_64 experimental distribution for MQDH (marqdo#90 M6 / #2). ## What changes - `scripts/package-windows.ps1`: reproducible experimental Windows build — production-only hoisted dependency tree, nested pnpm link farms removed, built-in Node 24, deterministic archive metadata, cold-install verification and `package-evidence.json`. - `scripts/install.ps1`: user-level install into `%LOCALAPPDATA%\MQDH` with `current.json` version pointer, generated `bin\mqdh.cmd`, optional PATH/Start Menu, uninstall preserving `MQDH_HOME`. - `scripts/mqdh.cmd`: portable launcher for an extracted tree. - Platform/release contract: publish `x86_64-pc-windows-msvc`, platform-aware manifest fields (`os=windows`, `min_glibc=null`) and Windows install root default; tests for target, manifest and install root. - Runtime fixes required by a real Windows run: profile directory links use junctions (no Developer Mode needed) and install root defaults to `%LOCALAPPDATA%\MQDH`. - Docs: DISTRIBUTION/RELEASING/STATUS and `docs/mqdh/evidence/2026-12-02-windows-experimental.md`. ## Verification (real Windows 11, Node v24.22.3) - `pnpm run build`: 10/10 gates PASS (746.63s). - Targeted tests: platform/release/install-root 10 passed / 0 failed. - Experimental release `mqdh-win-experimental-2026-12-02` (tag at build commit `6b97043`): archive 684,093,946 bytes, sha256 `c647e13e…`; cold extract → `install.ps1` → `mqdh --version` / `doctor --json` / `--dump-config` PASS. - Release: https://git.cflmy.cn/cflmy/marqdo-app-harness/releases/tag/mqdh-win-experimental-2026-12-02 ## Boundaries Unsigned, no native Windows CI lane yet, not part of the `mqdh-v<version>` update channel, and not in the root recommended combination. Linux remains the accepted platform; root acceptance for Windows stays deferred with marqdo#90/M6.
cflmy added 2 commits 2026-12-02 21:52:11 +08:00
- add scripts/package-windows.ps1, scripts/install.ps1 and scripts/mqdh.cmd for a portable Windows tree with a user-level install, version pointer and launcher;
- teach the release manifest script the Windows target/platform fields and publish the Windows target in the platform table;
- cover the Windows target in platform/manifest tests and document the experimental Windows scope (unsigned, manual updates, no native CI lane).
Release tag mqdh-win-experimental-2026-12-02 points at the built source commit; this post-release record carries the cold-install evidence, archive identity and boundaries.
cflmy force-pushed codex/windows-distribution from faf5a4d438 to 54f1c090fc 2026-12-02 21:52:11 +08:00 Compare
Author
Owner

Review notes

  • 分支已 rebase 到 main 9a975e44(MQDH Linux beta 记录之后),PR mergeable。
  • 实验 Release 的归档由 rebase 前同一内容的构建提交 6b97043 产出(mqdh-release.json/package-evidence.json 记录该 SHA);rebase 只解决文档冲突,不改变归档字节。合并后如需把 Windows 纳入后续版本,应在新的不可变 tag 上重建。
  • 实验 tag 不匹配 mqdh-v<version>,因此不会被应用内更新候选选中;mqdh-release.json 仍按产品版本合同描述平台/资产。
## Review notes - 分支已 rebase 到 main `9a975e44`(MQDH Linux beta 记录之后),PR mergeable。 - 实验 Release 的归档由 rebase 前同一内容的构建提交 `6b97043` 产出(`mqdh-release.json`/`package-evidence.json` 记录该 SHA);rebase 只解决文档冲突,不改变归档字节。合并后如需把 Windows 纳入后续版本,应在新的不可变 tag 上重建。 - 实验 tag 不匹配 `mqdh-v<version>`,因此不会被应用内更新候选选中;`mqdh-release.json` 仍按产品版本合同描述平台/资产。
cflmy added 2 commits 2026-12-03 01:37:10 +08:00
- bundle-runtime deps: launcher points bootstrap at runtime-deps when present;
- install native Windows CLI/Worker names and platform-aware executable lookup;
- accept pc-windows-msvc offline archive names and fix workspace path containment with path.relative;
- package-windows gains -RuntimeDeps with digest verification and records bundled_runtime;
- tests/docs for the Windows offline runtime and executable names.
Offline runtime pack bootstrap, real check/call smoke and cold-install evidence for the 2026-12-03 Windows experimental build; also fix the package script variable shadowing found during packaging.
Author
Owner

2026-12-03 可用 Windows 实验版已发布

  • Release:mqdh-win-experimental-2026-12-03(experimental,不匹配 mqdh-v<version>,不进入应用内更新候选)。
  • 构建源 0d3a9c43…;归档 688,136,852 bytes,sha256 6bb1580c…;4 个分卷 + download-windows.ps1 下载/合并/校验脚本。
  • 关键改动:应用树内置离线运行时 runtime-deps/(CLI rc.7 Windows + Worker + Bundle 0.3.0);mqdh bootstrap 自动使用它,无需网络;Windows .exe 可执行名/cli_path/worker_path;离线归档名支持 pc-windows-msvc;文档路径包含判断改用 path.relative;package-windows.ps1 -RuntimeDeps 校验并记录内嵌运行时。
  • 真机验证:冷安装 → mqdh bootstrap --json = ready;check+call 阶乘(n=5) = 120;doctor runtime installed;--dump-config PASS;便携与安装启动器 --version PASS。
  • 边界:experimental/未签名/无原生 Windows CI lane/应用内更新未验证;Knowledge/View Tool 因缺 Windows 归档在 bootstrap 显式 skipped;不进入根推荐组合。
  • 组件 CI:同 SHA push pipeline #58 success;tag pipeline #60 触发中(结果以 Woodpecker 为准)。CI/CD 仅 Woodpecker,根仓无构建。
## 2026-12-03 可用 Windows 实验版已发布 - Release:[`mqdh-win-experimental-2026-12-03`](https://git.cflmy.cn/cflmy/marqdo-app-harness/releases/tag/mqdh-win-experimental-2026-12-03)(experimental,不匹配 `mqdh-v<version>`,不进入应用内更新候选)。 - 构建源 `0d3a9c43…`;归档 688,136,852 bytes,sha256 `6bb1580c…`;4 个分卷 + `download-windows.ps1` 下载/合并/校验脚本。 - 关键改动:应用树内置离线运行时 `runtime-deps/`(CLI rc.7 Windows + Worker + Bundle 0.3.0);`mqdh bootstrap` 自动使用它,无需网络;Windows `.exe` 可执行名/`cli_path`/`worker_path`;离线归档名支持 `pc-windows-msvc`;文档路径包含判断改用 `path.relative`;`package-windows.ps1 -RuntimeDeps` 校验并记录内嵌运行时。 - 真机验证:冷安装 → `mqdh bootstrap --json` = `ready`;`check`+`call 阶乘(n=5)` = 120;`doctor` runtime installed;`--dump-config` PASS;便携与安装启动器 `--version` PASS。 - 边界:experimental/未签名/无原生 Windows CI lane/应用内更新未验证;Knowledge/View Tool 因缺 Windows 归档在 bootstrap 显式 skipped;不进入根推荐组合。 - 组件 CI:同 SHA push pipeline #58 success;tag pipeline #60 触发中(结果以 Woodpecker 为准)。CI/CD 仅 Woodpecker,根仓无构建。
cflmy merged commit 6a1d6af109 into main 2026-12-03 08:52:03 +08:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo-app-harness#24