diff --git a/.github/readme/hero.webp b/.github/readme/hero.webp new file mode 100644 index 0000000..0bb4a4f Binary files /dev/null and b/.github/readme/hero.webp differ diff --git a/.github/readme/host-dark.webp b/.github/readme/host-dark.webp new file mode 100644 index 0000000..d1c9050 Binary files /dev/null and b/.github/readme/host-dark.webp differ diff --git a/.github/readme/host-light.webp b/.github/readme/host-light.webp new file mode 100644 index 0000000..0a915d1 Binary files /dev/null and b/.github/readme/host-light.webp differ diff --git a/.github/readme/settings-dark.webp b/.github/readme/settings-dark.webp new file mode 100644 index 0000000..420b1b2 Binary files /dev/null and b/.github/readme/settings-dark.webp differ diff --git a/.github/readme/settings-light.webp b/.github/readme/settings-light.webp new file mode 100644 index 0000000..67d2afd Binary files /dev/null and b/.github/readme/settings-light.webp differ diff --git a/.github/readme/vm-dark.webp b/.github/readme/vm-dark.webp new file mode 100644 index 0000000..25e17df Binary files /dev/null and b/.github/readme/vm-dark.webp differ diff --git a/.github/readme/vm-light.webp b/.github/readme/vm-light.webp new file mode 100644 index 0000000..9d889cb Binary files /dev/null and b/.github/readme/vm-light.webp differ diff --git a/.github/readme/wizard-dark.webp b/.github/readme/wizard-dark.webp new file mode 100644 index 0000000..22e4ac9 Binary files /dev/null and b/.github/readme/wizard-dark.webp differ diff --git a/.github/readme/wizard-light.webp b/.github/readme/wizard-light.webp new file mode 100644 index 0000000..0c83691 Binary files /dev/null and b/.github/readme/wizard-light.webp differ diff --git a/README.md b/README.md index 55dcead..5cba88a 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,125 @@ -# reims-go +

+ + reims-go 图标 + +

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

reims-go

-## 为什么做 reims-go? +

在 Windows 上开一台带 GPU 加速的 macOS 虚拟机,不用自己编译。

-上游 [steelbrain/reims-vgpu](https://github.com/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 主窗口:前面是浅色外观下正在运行的 macos-tahoe 虚拟机详情页,后面是深色外观下的宿主与运行时页 +

-**`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/截屏控制。 +reims-go 是 [reims-vgpu](https://github.com/steelbrain/reims-vgpu) 的 Windows 桌面应用。装好之后,检查电脑、下载 macOS、创建和启动虚拟机都在一个窗口里完成,不需要自己配环境或敲命令。 -## 技术可行性基线(2026-11-28 本机实测) +> 早期开发中,功能和界面还会变。 -- **Win10 19045 + RTX 4070 Ti 实测可用,但需要本地补丁**:本机已在 `Reims vGPU` 窗口内成功引导并进入 `Install macOS Tahoe` 图形安装界面。这次用的 QEMU 带着 [`patches/qemu-whpx-win10-compat.patch`](patches/qemu-whpx-win10-compat.patch)(修复 Win10 上 WHPX 建 vCPU `hr=80070057` 与 `WHvResetPartition` 空指针 `0xc0000005` 崩溃),不是纯上游构建。补丁的管理方式见 [`docs/portable-runtime-spec.md`](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`](docs/portable-runtime-spec.md))。 -- **本机开发环境就绪**:`Go 1.27.3`、`Node.js`、`pnpm`、`WebView2 Runtime 158.0` 均已存在。 +## 功能 -## 文档索引 +- **开箱即用。** 运行时已经预先编译好,在应用里点一下就能安装,不用装任何开发工具。 +- **电脑体检。** 一屏看清虚拟化是否开启、CPU、内存、显卡和剩余空间。虚拟化没开的话可以一键开启。 +- **下载 macOS。** 在 Windows 上直接下载 macOS 完整安装包,带进度条,可以暂停,断了能接着下。 +- **新建向导。** 五步建好一台虚拟机:选系统来源、CPU 与内存、存储、图形,最后确认。 +- **随时调整。** 设置按 macOS 系统设置的方式分类。虚拟机开着也能改,每一项都会告诉你什么时候生效。 +- **不占 C 盘。** 虚拟机、安装包和运行时都放在你选的数据目录里。 +- **浅色和深色外观**,界面支持中文和英文。 -- [`AGENTS.md`](AGENTS.md) — 仓库约定、存储红线与开源合规边界 -- [`docs/portable-runtime-spec.md`](docs/portable-runtime-spec.md) — 便携运行时实测记录、目录规范与打包方案 -- [`docs/architecture.md`](docs/architecture.md) — Go + Wails 系统架构与模块设计 -- [`docs/shell-design.md`](docs/shell-design.md) — 外壳设计原语:配置模型与交互对齐 macOS,随时修改、标明生效时机 -- [`patches/`](patches/) — 对上游的补丁队列 -- [`docs/roadmap.md`](docs/roadmap.md) — M0–M4 开发路线图与验收门槛 +## 安装 + +### 环境要求 + +- Windows 11 64 位 +- 一块支持 Vulkan 的独立显卡,推荐 NVIDIA RTX 系列 +- 建议留出 150 GB 以上的可用空间,用来放 macOS 安装包和虚拟磁盘 + +### 下载 + +打包好的安装程序还没有发布,目前需要从源码构建。先装好 [Go](https://go.dev/dl/)、[Node.js](https://nodejs.org)、[pnpm](https://pnpm.io) 和 [Wails](https://wails.io/docs/gettingstarted/installation),然后运行: + +```powershell +git clone https://github.com/Nwflower/reims-go +cd reims-go +wails build +``` + +构建完成后,双击 `build\bin\reims-go.exe` 启动。 + +## 使用 + +1. **选择数据目录。** 第一次打开时,应用会推荐一个空间充足、不在 C 盘的位置。 +2. **检查电脑并安装运行时。** 进入「宿主与运行时」页,确认各项都是「就绪」。虚拟化没开的话点「启用」,按提示重启一次电脑。然后在「运行时」里点「在线安装」。 +3. **新建虚拟机。** 点侧边栏的 **+**,按向导选好 macOS 版本、CPU、内存和磁盘大小。 +4. **启动并安装 macOS。** 点「启动」,会弹出虚拟机窗口。照着虚拟机页上的提示操作:先在「磁盘工具」里把磁盘抹掉成 APFS,再选「重新安装 macOS」。进入 macOS 桌面后,点「弹出安装盘」。 +5. **调整配置。** 点齿轮图标打开设置。 + +> 在线安装目前还没有正式版运行时可选。在这之前,可以在「宿主与运行时」页打开「接收候选版」,或者用「导入运行时包」导入本地的运行时。 + +### 命令行 + +不想用图形界面的话,同样的功能也可以用命令行完成: + +```powershell +reims-go doctor # 检查电脑 +reims-go runtime fetch # 安装运行时 +reims-go installer download tahoe # 下载 macOS 安装包 +reims-go vm create macos-tahoe # 新建虚拟机 +reims-go vm start macos-tahoe # 启动 +``` + +运行 `reims-go help` 查看全部命令,加 `--lang en-US` 切换成英文输出。 + +## 截图 + + + + + + + + + + +
+ + + 宿主与运行时页:虚拟化、处理器、内存、可用空间四张卡片,下面是运行时和数据目录 + +

电脑体检与运行时

+
+ + + 关于此虚拟机页:名称、处理器、图形、内存、存储、网络和显示器 + +

关于此虚拟机

+
+ + + 虚拟机设置:左侧是分类,右侧是 CPU 核数选择 + +

虚拟机设置

+
+ + + 新建虚拟机向导:系统来源、CPU 与内存、存储、图形与外设、确认五步 + +

新建虚拟机

+
+ +## 许可证 + +reims-go 使用 [MIT](./LICENSE) 许可证。它调用的运行时组件有各自的开源许可证,见 [`NOTICE.md`](./NOTICE.md)。 + +## 关于 macOS + +reims-go 不包含、也不分发任何 Apple 系统文件,macOS 安装包由你的电脑直接从 Apple 服务器下载。 + +**macOS 的软件许可协议只允许在 Apple 硬件上运行虚拟机。** 在其他硬件上使用是否合规,需要你自己判断并承担责任。reims-go 与 Apple Inc. 没有关联,macOS 是 Apple Inc. 的商标。 diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..ad10944 Binary files /dev/null and b/assets/logo.png differ diff --git a/assets/logo.svg b/assets/logo.svg new file mode 100644 index 0000000..6f22739 --- /dev/null +++ b/assets/logo.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/build/appicon.png b/build/appicon.png index 63617fe..9c722b7 100644 Binary files a/build/appicon.png and b/build/appicon.png differ diff --git a/build/windows/icon.ico b/build/windows/icon.ico index 73b3761..eeba27a 100644 Binary files a/build/windows/icon.ico and b/build/windows/icon.ico differ diff --git a/frontend/public/logo.svg b/frontend/public/logo.svg new file mode 100644 index 0000000..6f22739 --- /dev/null +++ b/frontend/public/logo.svg @@ -0,0 +1,68 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index f2ed762..d34671e 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -257,7 +257,7 @@ export const App: React.FC = () => {
backend.winToggleMaximise()}>
- + reims-go
e.stopPropagation()}> diff --git a/frontend/src/styles/app.css b/frontend/src/styles/app.css index 5eb133e..04ce9d9 100644 --- a/frontend/src/styles/app.css +++ b/frontend/src/styles/app.css @@ -43,11 +43,9 @@ h1, h2, h3, p { margin: 0; } } .brand { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-13); font-weight: var(--fw-strong); color: var(--text); } .brand-mark { - width: 20px; height: 20px; border-radius: 6px; - background: linear-gradient(145deg, #2d9cff 0%, #0066e6 100%); - color: #fff; - display: grid; place-items: center; font-size: 11px; font-weight: 700; - box-shadow: 0 1px 3px rgba(0, 102, 230, 0.32); + /* The SVG has its own squircle plus shadow padding; scale it so the squircle reads ~20px. */ + width: 24px; height: 24px; margin: -2px; + display: block; } .titlebar-right { display: flex; align-items: center; height: 100%; gap: var(--sp-1); --wails-draggable: no-drag; } .theme-toggle {