4bea6547360b994ee05f3020f18f7ca7beb255be
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>
reims-go
Windows 桌面端 免编译、一站式
reims-vgpumacOS 虚拟机启动器与开发者工作台(Go + Wails,GUI + CLI 一体)。
为什么做 reims-go?
上游 steelbrain/reims-vgpu 已经实现了在 Windows 原生 QEMU + WHPX 上将 macOS Guest 的 Metal 图形转译到宿主机 Vulkan GPU(如 NVIDIA RTX 4070 Ti)。但当前使用门槛依然很高:
- 安装编译繁琐:需手动安装 MSYS2、换镜像源、装 Rust、拉取
vendor/qemu并本地编译 1800+ 目标(耗时 15–30 分钟)。 - 默认污染 C 盘:MSYS2、Cargo/Rustup、QEMU 构建和上百 GB 的 macOS 虚拟盘默认全部写入
%USERPROFILE%与C:\msys64。 - 硬件排障靠手工:缺少 WHPX 一键体检、多显卡/虚拟显示适配器(如 ToDesk/GameViewer)自动过滤、Intel 12–14 代大小核 P-Core 亲和性绑核。
- 缺少开发者工作流:上游
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 建 vCPUhr=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均已存在。
文档索引
AGENTS.md— 仓库约定、存储红线与开源合规边界docs/portable-runtime-spec.md— 便携运行时实测记录、目录规范与打包方案docs/architecture.md— Go + Wails 系统架构与模块设计docs/shell-design.md— 外壳设计原语:配置模型与交互对齐 macOS,随时修改、标明生效时机patches/— 对上游的补丁队列docs/roadmap.md— M0–M4 开发路线图与验收门槛
Languages
Go
72.1%
TypeScript
17.8%
JavaScript
6%
CSS
2.1%
PowerShell
0.9%
Other
1%