Files
Reims-Go/README.md
T
NwflowerandClaude Opus 5.5 4bea654736 feat: add Wails desktop GUI and stage-0 UI redesign
Wails shell over the existing Go core (app.go, main.go, wails.json,
build/), with a React frontend for the VM list, VM detail, host page,
create wizard and settings, plus process helpers for the driver and
runtime packages.

UI redesign stage 0 (docs/ui-redesign.md):
- VM actions live in the page header: one primary action per state,
  icon-only secondary actions with tooltips, the rest in a "..." menu
- install guide is a single card with the only "eject installer" button
- summary is an icon + value row; paths, ICD, CPU model and runtime hash
  moved to a collapsed "technical details" section
- logs no longer auto-open; a status bar shows merged download progress
  and an error count; the log view sticks to the bottom
- busy states on actions, toasts for results, custom delete dialog with
  "keep disk files"
- design tokens, Windows font stack, integer type scale, no inline styles
- keyboard: sidebar listbox navigation, focus rings, Ctrl+N / Ctrl+, / Ctrl+L
- copy rewritten per the restraint rules in §4.5
- Radix primitives and lucide icons replace hand-rolled widgets

Backend: OpenVMFolder binding to show a VM's directory in Explorer.
Docs: shell-design.md revised for decisions D1 and D4.
Vite dev server pinned to 127.0.0.1 so `wails dev` can reach it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 03:09:39 -07:00

4.4 KiB
Raw Permalink Blame History

reims-go

Windows 桌面端 免编译、一站式 reims-vgpu macOS 虚拟机启动器与开发者工作台(Go + Wails,GUI + CLI 一体)。

为什么做 reims-go?

上游 steelbrain/reims-vgpu 已经实现了在 Windows 原生 QEMU + WHPX 上将 macOS Guest 的 Metal 图形转译到宿主机 Vulkan GPU(如 NVIDIA RTX 4070 Ti)。但当前使用门槛依然很高:

  1. 安装编译繁琐:需手动安装 MSYS2、换镜像源、装 Rust、拉取 vendor/qemu 并本地编译 1800+ 目标(耗时 15–30 分钟)。
  2. 默认污染 C 盘:MSYS2、Cargo/Rustup、QEMU 构建和上百 GB 的 macOS 虚拟盘默认全部写入 %USERPROFILE% 与 C:\msys64。
  3. 硬件排障靠手工:缺少 WHPX 一键体检、多显卡/虚拟显示适配器(如 ToDesk/GameViewer)自动过滤、Intel 12–14 代大小核 P-Core 亲和性绑核。
  4. 缺少开发者工作流:上游 reims-ctl 未内置 CoW 秒级派生、快照管理、QMP 控制与自动化测试闭环;现有社区 GUI(如 PySide6 打包的 Reims-GUI-Win)包体达 1.68 GB 且绕开了 reims-ctl,难以跟进上游更新。

reims-go 的解法:

  • 免编译便携运行时:通过 CI 预编译单套 reims-runtime-win-x64(仅含 reims-ctl.exe + reims-util.exe + 自包含 71 DLL 的 qemu/,彻底脱离 MSYS2 / Rust / Git),经本机冒烟测试后进入 stable 通道,用户端下载解压即用。
  • 把上游当内核:不长期维护 fork。对上游的修改只放在 patches/ 补丁队列里,同时向上游提 PR,合并后删掉,目标是补丁数清零。
  • 轻量单文件外壳:Go + Wails(复用系统内置 WebView2),GUI 与 CLI 共用同一套 Go 核心包,不捆绑 Python / PowerShell 7。
  • 紧贴 reims-ctl 生态:以子进程封装 reims-ctl 与 reims-util(并通过 XDG_* 环境变量强制隔离到用户指定盘符),上游更新只需同步发布新版运行时包。
  • GUI 宿主机断点续传离线下载:通过 reims-util --json 在宿主机直接下载可复用的 macOS 离线完整安装包(结构化进度条 + 自动断点续传 + 缓存管理),规避 Recovery 内经 QEMU SLIRP 在线拉取 ~17 GB 易因 Apple CDN 断流失败的问题。
  • 工程化增值能力:WHPX 与 Windows 提交内存(Commit Limit)一键体检、自动锁定独显 Vulkan ICD、P-Core 绑核、CoW 派生与快照、独立 QMP/SSH/截屏控制。

技术可行性基线(2026-11-28 本机实测)

  • Win10 19045 + RTX 4070 Ti 实测可用,但需要本地补丁:本机已在 Reims vGPU 窗口内成功引导并进入 Install macOS Tahoe 图形安装界面。这次用的 QEMU 带着 patches/qemu-whpx-win10-compat.patch(修复 Win10 上 WHPX 建 vCPU hr=80070057 与 WHvResetPartition 空指针 0xc0000005 崩溃),不是纯上游构建。补丁的管理方式见 docs/portable-runtime-spec.md 第 5 节。
  • 上游没有 Release、变动很快:2026-11-21 到 11-28 上游有 100 多个提交。所以 reims-go 只给用户发冒烟测试过的 stable 运行时(同上文档第 6 节)。
  • 目标宿主:Win10 的扩展支持已在 2026 年 10 月结束,上游只在 Win11 上测过。对外以 Win11 为主,Win10 靠补丁保证本机可用。
  • 便携运行时剥离实测通过:将 reims-ctl.exe(58 MB)、reims-util.exe(31.3 MB)与 qemu/current/(828.5 MB,含 71 个 DLL)置于纯净 PATH(无 MSYS2、无 Rust、无源码仓库)中运行,reims-ctl doctor 的 9/9 运行时检查全部通过(详情见 docs/portable-runtime-spec.md)。
  • 本机开发环境就绪:Go 1.27.3、Node.js、pnpm、WebView2 Runtime 158.0 均已存在。

文档索引