Document the reims-go GitHub organization, reims-go/plugins market repository, L1/L3/declarative plugin tiers, pkg/pluginsdk, and verified plugin development CLI commands in README.md and README.en.md.
213 lines
11 KiB
Markdown
213 lines
11 KiB
Markdown
<p align="center">
|
||
<a href="https://github.com/Nwflower/Reims-Go">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="./.github/readme/banner-dark.svg" />
|
||
<img src="./.github/readme/banner-light.svg" width="440" alt="Reims-Go" />
|
||
</picture>
|
||
</a>
|
||
</p>
|
||
<p align="center">
|
||
<strong>为 Windows 打造的 macOS 虚拟机。图形加速、开箱即用。</strong>
|
||
</p>
|
||
|
||
|
||
<p align="center">
|
||
<img src="https://img.shields.io/badge/macOS-Tahoe%2026-16182e?logo=apple&logoColor=white" alt="macOS Tahoe 26" />
|
||
<img src="https://img.shields.io/badge/host-Windows%2010%20%7C%2011-0078D4?logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDMuNCA5LjggMnY5LjRIMHptMTEtMS42TDI0IDB2MTEuM0gxMXpNMCAxMi42aDkuOFYyMkwwIDIwLjZ6bTExIDBoMTNWMjRsLTEzLTEuOHoiLz48L3N2Zz4=" alt="Windows 10 | 11" />
|
||
<a href="https://github.com/Nwflower/Reims-Go/releases"><img src="https://img.shields.io/github/v/release/Nwflower/Reims-Go?label=release&color=3b8cff" alt="release" /></a>
|
||
<a href="https://github.com/Nwflower/Reims-Go/stargazers"><img src="https://img.shields.io/github/stars/Nwflower/Reims-Go?style=flat&label=stars&logo=github&color=ffb86b" alt="GitHub stars" /></a>
|
||
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-ff7a9a" alt="license Apache-2.0" /></a>
|
||
<a href="https://discord.gg/Tj682rW5rS"><img src="https://img.shields.io/badge/Discord-Join-5865F2?logo=discord&logoColor=white" alt="Discord" /></a>
|
||
<a href="https://qm.qq.com/q/TBmRJlVbSo"><img src="https://img.shields.io/badge/QQ%20群-1136042744-12B7F5?logo=qq&logoColor=white" alt="QQ 交流群 1136042744" /></a>
|
||
<!-- Go 日榜:上榜后取消注释,把 %23N 改成名次
|
||
<a href="https://github.com/trending/go?since=daily"><img src="https://img.shields.io/badge/Trending-%23N%20Go%20日榜-00ADD8?logo=go&logoColor=white" alt="GitHub Trending: Go 日榜" /></a>
|
||
-->
|
||
</p>
|
||
|
||
<!-- Trendshift 官方徽章:https://trendshift.io/api/badge/repositories/385884 能打开后取消注释
|
||
<p align="center">
|
||
<a href="https://trendshift.io/repositories/385884?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-385884" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/385884" alt="Nwflower%2FReims-Go | Trendshift" width="250" height="55"/></a>
|
||
</p>
|
||
-->
|
||
|
||
<p align="center">
|
||
<a href="https://github.com/Nwflower/Reims-Go/releases"><strong>下载</strong></a> ·
|
||
<a href="#快速开始">快速开始</a> ·
|
||
<a href="#界面">界面</a> ·
|
||
<a href="#插件与开发">插件与开发</a> ·
|
||
<a href="./docs/roadmap.md">路线图</a> ·
|
||
<a href="#项目组与社区">项目组与社区</a>
|
||
</p>
|
||
|
||
<p align="center">
|
||
<strong>简体中文</strong> · <a href="./README.en.md">English</a>
|
||
</p>
|
||
|
||
<br />
|
||
|
||
<p align="center">
|
||
<img src="./.github/readme/hero.webp" width="100%" alt="Reims-Go 主窗口:浅色外观下的虚拟机页与深色外观下的内核页" />
|
||
</p>
|
||
|
||
<br />
|
||
|
||
Reims-Go 是 [reims-vgpu](https://github.com/steelbrain/reims-vgpu) 的 Windows 桌面应用。装运行时、下载 macOS、建虚拟机和日常使用,都在一个窗口里完成。
|
||
|
||
> 仍在早期迭代,功能和界面会继续调整。
|
||
|
||
## 特点
|
||
|
||
- **显卡加速**:macOS 的 Metal 图形经 Vulkan 交给 Windows 独显执行。
|
||
- **免编译**:下载一个 exe 就能用。运行时在应用里一键安装,支持系统代理和本地压缩包导入。
|
||
- **装机不用敲命令**:安装包直接从 Apple 下载;在恢复模式里点一下,装机命令会自动键入,抹盘和安装随即开始。
|
||
|
||
装好之后:
|
||
|
||
- 剪贴板(含图片)和共享文件夹与 Windows 互通,文件拖进窗口就能传进 macOS
|
||
- 中文输入法和 emoji 可以直接输入
|
||
- 升级系统前留个恢复点,出问题一键回滚;关机的虚拟机能秒级派生副本
|
||
- 关掉窗口后常驻托盘,剪贴板和共享照常工作
|
||
- 支持 SSH 端口转发和 VS Code 远程连接,常用操作也能在命令行里完成
|
||
|
||
更多功能见[更新日志](./CHANGELOG.md)。
|
||
|
||
## 界面
|
||
|
||
<table>
|
||
<tr>
|
||
<td width="50%">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="./.github/readme/host-dark.webp" />
|
||
<img src="./.github/readme/host-light.webp" alt="内核页" />
|
||
</picture>
|
||
<p align="center"><sub>内核</sub></p>
|
||
</td>
|
||
<td width="50%">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="./.github/readme/vm-dark.webp" />
|
||
<img src="./.github/readme/vm-light.webp" alt="虚拟机页" />
|
||
</picture>
|
||
<p align="center"><sub>虚拟机</sub></p>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td width="50%">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="./.github/readme/settings-dark.webp" />
|
||
<img src="./.github/readme/settings-light.webp" alt="虚拟机设置" />
|
||
</picture>
|
||
<p align="center"><sub>虚拟机设置</sub></p>
|
||
</td>
|
||
<td width="50%">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="./.github/readme/wizard-dark.webp" />
|
||
<img src="./.github/readme/wizard-light.webp" alt="新建虚拟机向导" />
|
||
</picture>
|
||
<p align="center"><sub>新建虚拟机</sub></p>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
## 快速开始
|
||
|
||
### 环境要求
|
||
|
||
- Windows 10 / 11(64 位),BIOS 里已开启 Intel VT-x 或 AMD-V
|
||
- 支持 Vulkan 的独立显卡,推荐 NVIDIA RTX 系列
|
||
- 内存 16 GB 以上
|
||
- 磁盘空间 150 GB 以上,最少 60 GB,最好不放在系统盘
|
||
|
||
### 安装与上手
|
||
|
||
从 [Releases](https://github.com/Nwflower/Reims-Go/releases) 下载 `reims-go.exe`,双击运行。
|
||
|
||
1. **初始化**:按引导选数据目录、检查电脑、安装运行时。虚拟化没开的话可以一键开启,之后重启 Windows。
|
||
2. **新建虚拟机**:点侧边栏的 **+**,安装来源选「离线安装包」,设好 CPU、内存和磁盘。
|
||
3. **安装 macOS**:启动虚拟机,在恢复终端里点键盘图标,装机命令自动键入。看到「设置助理」后点「退出恢复模式」。
|
||
4. **安装 Guest Tools**:进入桌面后,在虚拟机页 Guest Tools 一行点「安装…」,再到 macOS 终端运行页面给出的命令。装好后剪贴板、共享文件夹和中文输入就能用了。
|
||
|
||
<details>
|
||
<summary>命令行</summary>
|
||
|
||
不带参数运行 `reims-go.exe` 会打开窗口,带上子命令则在终端里执行:
|
||
|
||
```powershell
|
||
reims-go doctor | Out-Host # 检查电脑环境
|
||
reims-go runtime fetch | Out-Host # 安装运行时
|
||
reims-go installer download tahoe | Out-Host # 下载安装包(支持续传)
|
||
reims-go vm create macos-tahoe | Out-Host # 新建虚拟机
|
||
reims-go vm start macos-tahoe | Out-Host # 启动虚拟机
|
||
reims-go vm stop macos-tahoe | Out-Host # 关闭虚拟机
|
||
```
|
||
|
||
在 PowerShell 或 cmd 里要加上 `| Out-Host`,终端才会等命令执行完再返回。`reims-go help` 列出全部子命令。
|
||
|
||
</details>
|
||
|
||
<details>
|
||
<summary>从源码构建</summary>
|
||
|
||
需要 [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`。
|
||
|
||
</details>
|
||
|
||
## 插件与开发
|
||
|
||
Reims-Go 内置进程外隔离的插件体系,零外部运行时依赖。可以在应用的「插件」页直接浏览安装官方市场插件或导入本地 `.zip` 包;如插件引发启动异常,可用 `reims-go --safe-mode` 跳过全部第三方插件恢复。
|
||
|
||
- **L1 声明式插件**(纯 JSON + 静态资源):界面主题(基于稳定的 [UI 契约](./frontend/ui-contract.json))、多语种语言包(分域 JSON 与可选 `.woff2` 字体)、虚拟机模板、运行时源、输入过滤与规则 Hook。
|
||
- **L3 Sidecar 插件**(任意语言独立可执行文件):每插件独立进程,通过 stdin/stdout `Content-Length` 分帧 JSON-RPC 2.0 通信,可用于非 macOS 虚拟机驱动、生命周期 Hook、自定义命令与排障采集;Go 开发者可直接使用零依赖 SDK [`pkg/pluginsdk`](./pkg/pluginsdk)。
|
||
- **声明式 UI 扩展**:通过 `settings` JSON Schema 原生渲染插件设置页,向宿主预定义槽位贡献菜单项、卡片与状态项。
|
||
|
||
<details>
|
||
<summary>插件开发常用命令</summary>
|
||
|
||
```powershell
|
||
reims-go plugin link <dir> | Out-Host # 链接本地插件目录用于开发调试
|
||
reims-go plugin doctor --contract frontend/ui-contract.json <dir|zip> | Out-Host # 静态安全扫描与清单/UI 契约校验
|
||
reims-go plugin locale init ja-JP --out <dir> | Out-Host # 生成多语种语言包脚手架
|
||
reims-go plugin locale check <dir> | Out-Host # 校验语言包覆盖率与格式
|
||
reims-go plugin pack <dir> | Out-Host # 校验并打包 .zip(自动生成 SHA256SUMS,支持 --sign-key)
|
||
reims-go plugin search | Out-Host # 浏览官方插件市场
|
||
```
|
||
|
||
</details>
|
||
|
||
- 完整插件架构、清单字段(`plugin.json`)、权限分级与协议规范见 [`docs/plugin-architecture.md`](./docs/plugin-architecture.md)
|
||
- 官方插件市场索引与投稿发布见 [`reims-go/plugins`](https://github.com/reims-go/plugins)
|
||
|
||
## 项目组与社区
|
||
|
||
- **GitHub 项目组**:[`reims-go`](https://github.com/reims-go) — 维护官方插件市场索引([`reims-go/plugins`](https://github.com/reims-go/plugins))及周边生态项目;桌面客户端主仓库位于 [`Nwflower/Reims-Go`](https://github.com/Nwflower/Reims-Go)
|
||
- **Discord 社区**:[加入 Discord 服务器](https://discord.gg/Tj682rW5rS) — 中英双语交流、排障求助、硬件兼容性实测、Alpha 测试与插件开发
|
||
- **QQ 交流群**:[1136042744](https://qm.qq.com/q/TBmRJlVbSo) — 中文日常交流与使用反馈
|
||
|
||
## 许可与声明
|
||
|
||
- Reims-Go 采用 [Apache-2.0](./LICENSE) 协议。运行时里的 QEMU 等组件作为独立程序随附,许可证见 [`NOTICE.md`](./NOTICE.md),每个运行时 Release 都附带对应源码。
|
||
- Reims-Go 不包含、不分发任何 Apple 系统文件,安装包由本机直接从 Apple 下载。**macOS 软件许可协议只允许在 Apple 硬件上虚拟化**,在其他硬件上使用请自行评估。本项目与 Apple Inc. 无关,macOS 是 Apple Inc. 的注册商标。
|
||
|
||
## 友情链接
|
||
|
||
- [LINUX DO](https://linux.do/) — 新的理想型社区
|
||
|
||
<br />
|
||
|
||
## Star History
|
||
|
||
<a href="https://www.star-history.com/#Nwflower/Reims-Go&Date">
|
||
<picture>
|
||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Nwflower/Reims-Go&type=Date&theme=dark" />
|
||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Nwflower/Reims-Go&type=Date" />
|
||
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Nwflower/Reims-Go&type=Date" />
|
||
</picture>
|
||
</a>
|