diff --git a/.github/readme/feature-gpu-en-dark.svg b/.github/readme/feature-gpu-en-dark.svg new file mode 100644 index 0000000..4558c83 --- /dev/null +++ b/.github/readme/feature-gpu-en-dark.svg @@ -0,0 +1 @@ +macOS VMWindows hostMetal appsGames, editorsand UI animationGuest driverPacks Metal callsinto a command streamVirtual GPUreims-graphics-pcimetal2vulkanTranslates thestream to VulkanYour GPURuns it throughits Vulkan driverFrames show up directly in the VM window on Windows diff --git a/.github/readme/feature-gpu-en-light.svg b/.github/readme/feature-gpu-en-light.svg new file mode 100644 index 0000000..7f2973e --- /dev/null +++ b/.github/readme/feature-gpu-en-light.svg @@ -0,0 +1 @@ +macOS VMWindows hostMetal appsGames, editorsand UI animationGuest driverPacks Metal callsinto a command streamVirtual GPUreims-graphics-pcimetal2vulkanTranslates thestream to VulkanYour GPURuns it throughits Vulkan driverFrames show up directly in the VM window on Windows diff --git a/.github/readme/feature-gpu-zh-dark.svg b/.github/readme/feature-gpu-zh-dark.svg new file mode 100644 index 0000000..3d71333 --- /dev/null +++ b/.github/readme/feature-gpu-zh-dark.svg @@ -0,0 +1 @@ +macOS 虚拟机Windows 主机Metal 应用游戏、剪辑软件和界面动画Reims 客体驱动把 Metal 调用打包成命令流虚拟显卡reims-graphics-pcimetal2vulkan把命令流翻译成 Vulkan你的独立显卡经 Vulkan 驱动执行渲染结果直接显示在 Windows 上的虚拟机窗口里 diff --git a/.github/readme/feature-gpu-zh-light.svg b/.github/readme/feature-gpu-zh-light.svg new file mode 100644 index 0000000..2d9b664 --- /dev/null +++ b/.github/readme/feature-gpu-zh-light.svg @@ -0,0 +1 @@ +macOS 虚拟机Windows 主机Metal 应用游戏、剪辑软件和界面动画Reims 客体驱动把 Metal 调用打包成命令流虚拟显卡reims-graphics-pcimetal2vulkan把命令流翻译成 Vulkan你的独立显卡经 Vulkan 驱动执行渲染结果直接显示在 Windows 上的虚拟机窗口里 diff --git a/.github/readme/feature-install-en-dark.svg b/.github/readme/feature-install-en-dark.svg new file mode 100644 index 0000000..fadd5eb --- /dev/null +++ b/.github/readme/feature-install-en-dark.svg @@ -0,0 +1 @@ +1DownloadStraight from Apple,resumes if interruptedAutomatic2Prepare the VMCreates the disk andOpenCore boot imageAutomatic3Start the VMBoots straight intomacOS RecoveryOne click4InstallClick the keyboard icon;the commands type inOne click5FinishAt Setup Assistant,exit recovery modeOne clickNo commands to type by hand diff --git a/.github/readme/feature-install-en-light.svg b/.github/readme/feature-install-en-light.svg new file mode 100644 index 0000000..1e0a29d --- /dev/null +++ b/.github/readme/feature-install-en-light.svg @@ -0,0 +1 @@ +1DownloadStraight from Apple,resumes if interruptedAutomatic2Prepare the VMCreates the disk andOpenCore boot imageAutomatic3Start the VMBoots straight intomacOS RecoveryOne click4InstallClick the keyboard icon;the commands type inOne click5FinishAt Setup Assistant,exit recovery modeOne clickNo commands to type by hand diff --git a/.github/readme/feature-install-zh-dark.svg b/.github/readme/feature-install-zh-dark.svg new file mode 100644 index 0000000..4a2541b --- /dev/null +++ b/.github/readme/feature-install-zh-dark.svg @@ -0,0 +1 @@ +1下载安装包直接从 Apple 下载支持断点续传自动2准备虚拟机生成虚拟磁盘和 OpenCore 引导盘自动3启动虚拟机自动进入macOS 恢复环境点一下4开始安装点键盘图标,抹盘和安装命令自动键入点一下5完成看到设置助理后退出恢复模式点一下全程不用手动敲命令 diff --git a/.github/readme/feature-install-zh-light.svg b/.github/readme/feature-install-zh-light.svg new file mode 100644 index 0000000..506cd76 --- /dev/null +++ b/.github/readme/feature-install-zh-light.svg @@ -0,0 +1 @@ +1下载安装包直接从 Apple 下载支持断点续传自动2准备虚拟机生成虚拟磁盘和 OpenCore 引导盘自动3启动虚拟机自动进入macOS 恢复环境点一下4开始安装点键盘图标,抹盘和安装命令自动键入点一下5完成看到设置助理后退出恢复模式点一下全程不用手动敲命令 diff --git a/.github/readme/feature-interop-en-dark.svg b/.github/readme/feature-interop-en-dark.svg new file mode 100644 index 0000000..31d10fc --- /dev/null +++ b/.github/readme/feature-interop-en-dark.svg @@ -0,0 +1 @@ +WindowsmacOSClipboardClipboardText and imagesShared folder~/Desktop/ReimsShareShared folderFiles dropped on windowShared folderSend filesWindows IMEFocused text fieldAny language, emojiTerminal / VS CodeSSH loginSSH forwardingClipboard, sharing and text input go through Guest Tools on the loopback address only diff --git a/.github/readme/feature-interop-en-light.svg b/.github/readme/feature-interop-en-light.svg new file mode 100644 index 0000000..f02f6cf --- /dev/null +++ b/.github/readme/feature-interop-en-light.svg @@ -0,0 +1 @@ +WindowsmacOSClipboardClipboardText and imagesShared folder~/Desktop/ReimsShareShared folderFiles dropped on windowShared folderSend filesWindows IMEFocused text fieldAny language, emojiTerminal / VS CodeSSH loginSSH forwardingClipboard, sharing and text input go through Guest Tools on the loopback address only diff --git a/.github/readme/feature-interop-zh-dark.svg b/.github/readme/feature-interop-zh-dark.svg new file mode 100644 index 0000000..a792bab --- /dev/null +++ b/.github/readme/feature-interop-zh-dark.svg @@ -0,0 +1 @@ +WindowsmacOS剪贴板剪贴板文字和图片共享目录~/Desktop/ReimsShare共享文件夹拖进窗口的文件共享文件夹发送文件Windows 输入法当前输入框中文与 emoji终端 / VS CodeSSH 登录SSH 端口转发剪贴板、共享和输入法由 Guest Tools 提供,只在本机回环地址上通信 diff --git a/.github/readme/feature-interop-zh-light.svg b/.github/readme/feature-interop-zh-light.svg new file mode 100644 index 0000000..4001828 --- /dev/null +++ b/.github/readme/feature-interop-zh-light.svg @@ -0,0 +1 @@ +WindowsmacOS剪贴板剪贴板文字和图片共享目录~/Desktop/ReimsShare共享文件夹拖进窗口的文件共享文件夹发送文件Windows 输入法当前输入框中文与 emoji终端 / VS CodeSSH 登录SSH 端口转发剪贴板、共享和输入法由 Guest Tools 提供,只在本机回环地址上通信 diff --git a/.github/readme/host-dark.webp b/.github/readme/host-dark.webp deleted file mode 100644 index ca5c740..0000000 Binary files a/.github/readme/host-dark.webp and /dev/null differ diff --git a/.github/readme/host-light.webp b/.github/readme/host-light.webp deleted file mode 100644 index b58c19c..0000000 Binary files a/.github/readme/host-light.webp and /dev/null differ diff --git a/.github/readme/settings-dark.webp b/.github/readme/settings-dark.webp deleted file mode 100644 index 5c6d6ae..0000000 Binary files a/.github/readme/settings-dark.webp and /dev/null differ diff --git a/.github/readme/settings-light.webp b/.github/readme/settings-light.webp deleted file mode 100644 index eaec40d..0000000 Binary files a/.github/readme/settings-light.webp and /dev/null differ diff --git a/.github/readme/vm-dark.webp b/.github/readme/vm-dark.webp deleted file mode 100644 index af085da..0000000 Binary files a/.github/readme/vm-dark.webp and /dev/null differ diff --git a/.github/readme/vm-light.webp b/.github/readme/vm-light.webp deleted file mode 100644 index 537014d..0000000 Binary files a/.github/readme/vm-light.webp and /dev/null differ diff --git a/.github/readme/wizard-dark.webp b/.github/readme/wizard-dark.webp deleted file mode 100644 index 1fbc719..0000000 Binary files a/.github/readme/wizard-dark.webp and /dev/null differ diff --git a/.github/readme/wizard-light.webp b/.github/readme/wizard-light.webp deleted file mode 100644 index 6d1f570..0000000 Binary files a/.github/readme/wizard-light.webp and /dev/null differ diff --git a/README.en.md b/README.en.md index d411fc2..f82b1be 100644 --- a/README.en.md +++ b/README.en.md @@ -1,3 +1,7 @@ +

+ 简体中文 · English +

+

@@ -12,35 +16,20 @@

- macOS Tahoe 26 - Windows 10 | 11 - release - GitHub stars - license Apache-2.0 - Discord - QQ Group 1136042744 - + macOS Tahoe 26 + Windows 10 | 11 x64 + Latest release + License Apache-2.0 + Discord + QQ Group 1136042744

- - -

- Download · + Download · Quick Start · - Screenshots · - Plugins · + FAQ · Roadmap · - Community -

- -

- 简体中文 · English + Community


@@ -51,155 +40,144 @@
-Reims-Go is a Windows desktop app for [reims-vgpu](https://github.com/steelbrain/reims-vgpu). Installing the runtime, downloading macOS, creating VMs and using them day to day all happen in one window. +Reims-Go is a community-built Windows desktop app for [reims-vgpu](https://github.com/steelbrain/reims-vgpu). Installing the runtime, downloading macOS, creating VMs and using them day to day all happen in one window. -> Early development. Features and UI will keep changing. +> [!NOTE] +> Early development. Testing so far has focused on NVIDIA RTX GPUs and macOS Tahoe 26; please report other setups to the [community](#community). -## Highlights +

+ Download from GitHub Releases +

-- **GPU acceleration**: macOS Metal graphics run on your Windows GPU through Vulkan. -- **Nothing to compile**: download one exe and run it. The app installs the runtime for you, with system proxy support and local archive import. -- **No typing during install**: installers come straight from Apple. One click in Recovery types the install command, which erases the disk and starts installing. +## Features -Once macOS is running: +### GPU acceleration -- Clipboard (including images) and shared folders work both ways; drop files on the window to send them to macOS -- Type with Windows IMEs and emoji directly -- Save a restore point before updates and roll back in one click; clone a stopped VM in seconds -- Close the window and it stays in the tray, with clipboard and sharing still working -- SSH port forwarding and VS Code Remote-SSH; common tasks also work from the command line +macOS Metal graphics run on your Windows discrete GPU through Vulkan. -For everything else, see the [changelog](./CHANGELOG.md). +

+ + + GPU acceleration diagram: Metal apps, guest driver, virtual GPU, metal2vulkan, host GPU + +

-## Screenshots +### No typing during install - - - - - - - - - -
- - - Engine page - -

Engine

-
- - - Virtual machine page - -

Virtual Machine

-
- - - VM settings - -

VM Settings

-
- - - New virtual machine wizard - -

New Virtual Machine

-
+Installers come straight from Apple, and one click in Recovery starts the install. + +

+ + + Install flow diagram: download and setup are automatic, then three clicks + +

+ +### Works with Windows + +Clipboard, shared folders, drag-and-drop file transfer and Windows IMEs just work, plus SSH and VS Code Remote-SSH. + +

+ + + Interop diagram: clipboard, shared folder, drag-and-drop, IME and SSH + +

+ +There are also one-click restore points, instant VM clones, a tray mode and a command line; see the [changelog](./CHANGELOG.md) for more. ## Quick Start -### Requirements +**Requirements**: Windows 10 / 11 (64-bit) with virtualization enabled in BIOS, a Vulkan-capable discrete GPU (NVIDIA RTX recommended), 16 GB of RAM or more, and 150 GB of free disk space (ideally not on the system drive). -- Windows 10 / 11 (64-bit) with Intel VT-x or AMD-V enabled in BIOS -- A discrete Vulkan GPU, NVIDIA RTX series recommended -- 16 GB of RAM or more -- 150 GB of free disk space, 60 GB at minimum, ideally not on the system drive +Download the exe from [Releases](https://github.com/Nwflower/Reims-Go/releases/latest) and double-click it: -### Install and set up - -Download `reims-go.exe` from [Releases](https://github.com/Nwflower/Reims-Go/releases) and double-click it. - -1. **First launch**: pick a data folder, check your PC and install the runtime. If virtualization is off, turn it on in one click and restart Windows. -2. **Create a VM**: click **+** in the sidebar, choose **Offline installer**, and set CPU, memory and disk size. -3. **Install macOS**: start the VM, then click the keyboard icon in Recovery Terminal to type the install command. When Setup Assistant appears, click **Exit recovery mode**. -4. **Install Guest Tools**: on the macOS desktop, click **Install…** on the Guest Tools row of the VM page, then run the command it shows in macOS Terminal. Clipboard, shared folders and IME input work after that. +1. **First launch**: pick a data folder, check your PC and install the runtime; if virtualization is off, turn it on in one click and restart Windows. +2. **Create a VM**: click **+** in the sidebar and choose **Offline installer**. +3. **Install macOS**: start the VM, click the keyboard icon in Recovery Terminal to start installing, and click **Exit recovery mode** once Setup Assistant appears. +4. **Install Guest Tools**: click **Install…** on the Guest Tools row of the VM page, then run the command it shows in macOS Terminal.
Command line -Run `reims-go.exe` with no arguments to open the window, or with a subcommand to run it in the terminal: - ```powershell reims-go doctor | Out-Host # Check your PC reims-go runtime fetch | Out-Host # Install the runtime -reims-go installer download tahoe | Out-Host # Download an installer (resumable) +reims-go installer download tahoe | Out-Host # Download an installer reims-go vm create macos-tahoe | Out-Host # Create a VM reims-go vm start macos-tahoe | Out-Host # Start the VM -reims-go vm stop macos-tahoe | Out-Host # Shut down the VM ``` -In PowerShell or cmd, add `| Out-Host` so the terminal waits for the command to finish. `reims-go help` lists every subcommand. +`| Out-Host` (or `| more` in cmd) makes the terminal wait for the command to finish; `reims-go help` lists every subcommand.
Build from source -Requires [Go](https://go.dev/dl/), [Node.js](https://nodejs.org), [pnpm](https://pnpm.io) and [Wails](https://wails.io/docs/gettingstarted/installation): - -```powershell -git clone https://github.com/Nwflower/Reims-Go -cd Reims-Go -wails build -``` - -The binary is written to `build\bin\reims-go.exe`. +With Go 1.26+, Node.js 22, pnpm 10 and the [Wails CLI](https://wails.io/docs/gettingstarted/installation) v2.17.1, run `wails build` in the repository root; the binary is written to `build\bin\reims-go.exe`. The runtime is built separately by the [Reims vGPU fork](https://github.com/yxc0915/reims-vgpu).
-## Plugin Development - -Reims-Go ships an out-of-process plugin system with zero external runtime dependencies. Browse and install plugins from the built-in **Plugins** page or import a local `.zip` archive; if a third-party plugin breaks startup, launch with `reims-go --safe-mode` to skip all third-party plugins. - -- **L1 declarative plugins** (JSON + static assets): UI themes backed by the versioned [UI contract](./frontend/ui-contract.json), language packs (domain JSON + optional `.woff2` fonts), VM templates, runtime sources, input filters and rule hooks. -- **L3 sidecar plugins** (standalone executables in any language): one isolated process per plugin speaking `Content-Length`-framed JSON-RPC 2.0 over stdin/stdout for custom guest drivers (such as non-macOS VMs), lifecycle hooks, custom commands and diagnostics; Go authors can use the zero-dependency SDK in [`pkg/pluginsdk`](./pkg/pluginsdk). -- **Declarative UI extensions**: render native plugin settings from `settings` JSON Schema and contribute menu items, cards and status items to declared host slots. +## FAQ
-Plugin development CLI +Is it legal to run macOS on a non-Apple PC? +
-```powershell -reims-go plugin link | Out-Host # Link a local plugin directory for development -reims-go plugin doctor --contract frontend/ui-contract.json | Out-Host # Run static security, manifest and UI contract checks -reims-go plugin locale init ja-JP --out | Out-Host # Scaffold a language pack -reims-go plugin locale check | Out-Host # Validate language pack coverage and syntax -reims-go plugin pack | Out-Host # Verify and pack a .zip with SHA256SUMS (optional --sign-key) -reims-go plugin search | Out-Host # Browse the official plugin market -``` +The macOS license only permits virtualization on Apple hardware, so assess it yourself. Reims-Go distributes no Apple files; installers are downloaded from Apple by your own machine.
-- Full architecture, `plugin.json` manifest reference, permission tiers and protocol spec: [`docs/plugin-architecture.md`](./docs/plugin-architecture.md) -- Official plugin market index and submissions: [`reims-go/plugins`](https://github.com/reims-go/plugins) +
+Does it work with AMD GPUs or integrated graphics? +
-## Organization and Community +Not yet verified. If acceleration doesn't work, switch graphics to VMware SVGA in the VM settings: it works, just without acceleration. -- **GitHub Organization**: [`reims-go`](https://github.com/reims-go) — Maintains the official plugin market index ([`reims-go/plugins`](https://github.com/reims-go/plugins)) and ecosystem repositories; the desktop launcher repository lives at [`Nwflower/Reims-Go`](https://github.com/Nwflower/Reims-Go) -- **Discord**: [Join the Discord server](https://discord.gg/Tj682rW5rS) — Bilingual chat, troubleshooting, hardware compatibility reports, alpha testing and plugin development -- **QQ Group**: [1136042744](https://qm.qq.com/q/TBmRJlVbSo) — Chinese community chat and feedback +
-## License & Notice +
+Windows blocked the exe. What now? +
-- Reims-Go is licensed under [Apache-2.0](./LICENSE). Runtime components such as QEMU ship as separate programs; their licenses are in [`NOTICE.md`](./NOTICE.md), and every runtime release includes the matching source. -- Reims-Go contains no Apple system files; installers are downloaded from Apple on your machine. **The macOS license only permits virtualization on Apple hardware**, so assess your own compliance on other hardware. This project is not affiliated with Apple Inc.; macOS is a registered trademark of Apple Inc. +The exe isn't code-signed yet. Click **More info** → **Run anyway**, or verify it against `SHA256SUMS.txt` from Releases. -## Links +
-- [LINUX DO](https://linux.do/) — Community forum +
+Does it need admin rights or upload my data? +
-
+Admin approval is only needed to turn on WHPX. The app only talks to Apple, GitHub and the plugin market, and collects no usage statistics. + +
+ +
+How do I uninstall it? +
+ +Quit from the tray, then delete the exe and the data folder you chose. + +
+ +## Plugins + +Install themes, language packs, VM templates and more from the app's **Plugins** page; if a plugin breaks startup, launch with `reims-go --safe-mode` to skip it. To write plugins, see [`docs/plugin-architecture.md`](./docs/plugin-architecture.md). + +## Community + +- **Discord**: [join the server](https://discord.gg/Tj682rW5rS) for English and Chinese chat, troubleshooting and hardware reports +- **QQ Group**: [1136042744](https://qm.qq.com/q/TBmRJlVbSo) +- **GitHub organization**: [`reims-go`](https://github.com/reims-go), home of the official plugin market + +Report bugs in [Issues](https://github.com/Nwflower/Reims-Go/issues) with the output of `reims-go doctor`. + +## License and Acknowledgements + +Reims-Go is licensed under [Apache-2.0](./LICENSE) and provided "as is". Runtime component licenses are in [`NOTICE.md`](./NOTICE.md). Thanks to [reims-vgpu](https://github.com/steelbrain/reims-vgpu), [QEMU](https://www.qemu.org/), [OpenCore](https://github.com/acidanthera/OpenCorePkg) and [Wails](https://wails.io/). + +Links: [LINUX DO](https://linux.do/), a community forum. ## Star History @@ -210,3 +188,7 @@ reims-go plugin search | Out-Host Star History Chart + +
+ +

Reims-Go is not affiliated with Apple Inc. or the upstream reims-vgpu project. macOS is a registered trademark of Apple Inc.

diff --git a/README.md b/README.md index b795f5e..7737bbd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +

+ 简体中文 · English +

+

@@ -6,41 +10,26 @@

+

为 Windows 打造的 macOS 虚拟机。图形加速、开箱即用。

-

- macOS Tahoe 26 - Windows 10 | 11 - release - GitHub stars - license Apache-2.0 - Discord - QQ 交流群 1136042744 - + macOS Tahoe 26 + Windows 10 | 11 x64 + 最新版本 + 许可证 Apache-2.0 + Discord + QQ 交流群 1136042744

- - -

- 下载 · + 下载 · 快速开始 · - 界面 · - 插件与开发 · + 常见问题 · 路线图 · - 项目组与社区 -

- -

- 简体中文 · English + 社区


@@ -51,155 +40,146 @@
-Reims-Go 是 [reims-vgpu](https://github.com/steelbrain/reims-vgpu) 的 Windows 桌面应用。装运行时、下载 macOS、建虚拟机和日常使用,都在一个窗口里完成。 +Reims-Go 是社区为 [reims-vgpu](https://github.com/steelbrain/reims-vgpu) 开发的 Windows 桌面客户端,装运行时、下载 macOS、建虚拟机和日常使用都在一个窗口里完成。 -> 仍在早期迭代,功能和界面会继续调整。 +> [!NOTE] +> 仍在早期迭代。目前主要在 NVIDIA RTX 显卡和 macOS Tahoe 26 上测试,其他组合欢迎到[社区](#社区)反馈。 -## 特点 +

+ 从 GitHub Releases 下载 +

-- **显卡加速**:macOS 的 Metal 图形经 Vulkan 交给 Windows 独显执行。 -- **免编译**:下载一个 exe 就能用。运行时在应用里一键安装,支持系统代理和本地压缩包导入。 -- **装机不用敲命令**:安装包直接从 Apple 下载;在恢复模式里点一下,装机命令会自动键入,抹盘和安装随即开始。 +## 功能 -装好之后: +### 显卡加速 -- 剪贴板(含图片)和共享文件夹与 Windows 互通,文件拖进窗口就能传进 macOS -- 中文输入法和 emoji 可以直接输入 -- 升级系统前留个恢复点,出问题一键回滚;关机的虚拟机能秒级派生副本 -- 关掉窗口后常驻托盘,剪贴板和共享照常工作 -- 支持 SSH 端口转发和 VS Code 远程连接,常用操作也能在命令行里完成 +macOS 的 Metal 图形经 Vulkan 交给 Windows 独显执行。 -更多功能见[更新日志](./CHANGELOG.md)。 +

+ + + 显卡加速示意图:Metal 应用、客体驱动、虚拟显卡、metal2vulkan、宿主独显 + +

-## 界面 +### 装机不用敲命令 - - - - - - - - - -
- - - 内核页 - -

内核

-
- - - 虚拟机页 - -

虚拟机

-
- - - 虚拟机设置 - -

虚拟机设置

-
- - - 新建虚拟机向导 - -

新建虚拟机

-
+安装包直接从 Apple 下载,在恢复模式里点一下就自动开始安装。 + +

+ + + 装机流程示意图:下载和准备自动完成,之后点三下 + +

+ +### 和 Windows 互通 + +剪贴板、共享文件夹、拖拽传文件和中文输入法都能直接用,也支持 SSH 和 VS Code 远程连接。 + +

+ + + 互通示意图:剪贴板、共享文件夹、拖拽、输入法与 SSH + +

+ +此外还有一键恢复点、秒级派生副本、托盘常驻和命令行操作,更多见[更新日志](./CHANGELOG.md)。 ## 快速开始 -### 环境要求 +**环境要求**:Windows 10 / 11(64 位)并在 BIOS 开启虚拟化,支持 Vulkan 的独显(推荐 NVIDIA RTX),16 GB 以上内存,150 GB 以上磁盘空间(最好不放在系统盘)。 -- 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/latest) 下载 exe,双击运行: -### 安装与上手 - -从 [Releases](https://github.com/Nwflower/Reims-Go/releases) 下载 `reims-go.exe`,双击运行。 - -1. **初始化**:按引导选数据目录、检查电脑、安装运行时。虚拟化没开的话可以一键开启,之后重启 Windows。 -2. **新建虚拟机**:点侧边栏的 **+**,安装来源选「离线安装包」,设好 CPU、内存和磁盘。 -3. **安装 macOS**:启动虚拟机,在恢复终端里点键盘图标,装机命令自动键入。看到「设置助理」后点「退出恢复模式」。 -4. **安装 Guest Tools**:进入桌面后,在虚拟机页 Guest Tools 一行点「安装…」,再到 macOS 终端运行页面给出的命令。装好后剪贴板、共享文件夹和中文输入就能用了。 +1. **初始化**:按引导选数据目录、检查电脑、安装运行时;虚拟化没开的话可以一键开启,之后重启 Windows。 +2. **新建虚拟机**:点侧边栏的 **+**,安装来源选「离线安装包」。 +3. **安装 macOS**:启动虚拟机,在恢复终端里点键盘图标开始安装,看到「设置助理」后点「退出恢复模式」。 +4. **安装 Guest Tools**:在虚拟机页 Guest Tools 一行点「安装…」,再到 macOS 终端运行页面给出的命令。
命令行 -不带参数运行 `reims-go.exe` 会打开窗口,带上子命令则在终端里执行: - ```powershell reims-go doctor | Out-Host # 检查电脑环境 reims-go runtime fetch | Out-Host # 安装运行时 -reims-go installer download tahoe | 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` 列出全部子命令。 +加 `| Out-Host`(cmd 里用 `| more`)是为了让终端等命令执行完;`reims-go help` 列出全部子命令。
从源码构建 -需要 [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`。 +需要 Go 1.26+、Node.js 22、pnpm 10 和 [Wails CLI](https://wails.io/docs/gettingstarted/installation) v2.17.1,在仓库根目录运行 `wails build`,产物在 `build\bin\reims-go.exe`。运行时由 [Reims vGPU fork](https://github.com/yxc0915/reims-vgpu) 单独构建。
-## 插件与开发 - -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 原生渲染插件设置页,向宿主预定义槽位贡献菜单项、卡片与状态项。 +## 常见问题
-插件开发常用命令 +在非 Apple 电脑上运行 macOS 合法吗? +
-```powershell -reims-go plugin link | Out-Host # 链接本地插件目录用于开发调试 -reims-go plugin doctor --contract frontend/ui-contract.json | Out-Host # 静态安全扫描与清单/UI 契约校验 -reims-go plugin locale init ja-JP --out | Out-Host # 生成多语种语言包脚手架 -reims-go plugin locale check | Out-Host # 校验语言包覆盖率与格式 -reims-go plugin pack | Out-Host # 校验并打包 .zip(自动生成 SHA256SUMS,支持 --sign-key) -reims-go plugin search | Out-Host # 浏览官方插件市场 -``` +macOS 许可协议只允许在 Apple 硬件上虚拟化,请勿用于学习与研究之外的用途。Reims-Go 不分发任何 Apple 文件,安装包由你的电脑直接从 Apple 下载。
-- 完整插件架构、清单字段(`plugin.json`)、权限分级与协议规范见 [`docs/plugin-architecture.md`](./docs/plugin-architecture.md) -- 官方插件市场索引与投稿发布见 [`reims-go/plugins`](https://github.com/reims-go/plugins) +
+AMD 显卡或核显能用吗? +
-## 项目组与社区 +尚待验证。跑不起来时可以在虚拟机设置里把图形切到 VMware SVGA,能用但没有加速。 -- **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) — 中文日常交流与使用反馈 +
-## 许可与声明 +
+exe 被 Windows 拦截怎么办? +
-- 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/) — 新的理想型社区 +
+需要管理员权限吗?会上传数据吗? +
-
+只有一键开启 WHPX 时需要管理员授权。应用只连接 Apple、GitHub 和插件市场,不收集使用统计。 + +
+ +
+怎么卸载? +
+ +从托盘退出后,删除 exe 和你选的数据目录即可。 + +
+ +## 插件 + +在应用的「插件」页可以安装主题、语言包、虚拟机模板等插件;插件导致启动异常时,用 `reims-go --safe-mode` 启动即可跳过。开发插件见 [`docs/plugin-architecture.md`](./docs/plugin-architecture.md)。 + +## 社区 + +- **Discord**:[加入服务器](https://discord.gg/Tj682rW5rS),中英双语交流、排障与硬件实测 +- **QQ 交流群**:[1136042744](https://qm.qq.com/q/TBmRJlVbSo) +- **GitHub 项目组**:[`reims-go`](https://github.com/reims-go),维护官方插件市场 + +问题反馈请提交到 [Issues](https://github.com/Nwflower/Reims-Go/issues),附上 `reims-go doctor` 的输出。 + +## 许可与致谢 + +Reims-Go 采用 [Apache-2.0](./LICENSE) 协议。 + +感谢 [reims-vgpu](https://github.com/steelbrain/reims-vgpu)、[QEMU](https://www.qemu.org/)、[OpenCore](https://github.com/acidanthera/OpenCorePkg) 和 [Wails](https://wails.io/) 等项目。 + +友情链接:[LINUX DO](https://linux.do/),新的理想型社区。 ## Star History @@ -210,3 +190,7 @@ reims-go plugin search | Out-Host Star History Chart + +
+ +

Reims-Go 与 Apple Inc. 无隶属关系。macOS 是 Apple Inc. 的注册商标。

diff --git a/scripts/brand/diagrams.py b/scripts/brand/diagrams.py new file mode 100644 index 0000000..cb900f7 --- /dev/null +++ b/scripts/brand/diagrams.py @@ -0,0 +1,215 @@ +"""Draws the README feature diagrams. + +Three diagrams explain what the feature screenshots could not show: how +guest Metal graphics reach the host GPU, how few clicks an install takes, +and which channels connect Windows and macOS. Run from the repository root: + + python scripts/brand/diagrams.py + +It writes .github/readme/feature-{gpu,install,interop}-{zh,en}-{light,dark}.svg +and needs only the standard library. Text is drawn with system fonts, so +leave room in every box: widths differ between Windows, macOS and Linux. +""" + +from pathlib import Path +from xml.sax.saxutils import escape + +ROOT = Path(__file__).resolve().parents[2] +OUT = ROOT / ".github/readme" + +FONT = ("-apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', " + "'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif") +MONO = "ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace" + +THEMES = { + "light": dict(ink="#16182e", muted="#5d6382", card="#ffffff", line="#dfe3ee", + zone="#f4f6fb", zone2="#eef3ff"), + "dark": dict(ink="#f4f5fa", muted="#a3a8bf", card="#1b2030", line="#2f3650", + zone="#141824", zone2="#162038"), +} +BLUE, VIOLET, PINK, ORANGE = "#3b8cff", "#6d5dfc", "#ff7a9a", "#ff9f0a" + + +def text(x, y, s, size, fill, weight=400, anchor="middle", mono=False): + family = MONO if mono else FONT + return (f'{escape(s)}') + + +def lines(x, y, rows, size, fill, gap=1.45): + return "".join(text(x, y + i * size * gap, r, size, fill) for i, r in enumerate(rows)) + + +def arrow(x1, x2, y, color, both=False, head=11): + """A horizontal arrow from x1 to x2; heads are polygons, not markers.""" + def tip(x, d): + return f'' + d = 1 if x2 > x1 else -1 + a = x1 + (d * head if both else 0) + out = f'' + out += tip(x2, d) + if both: + out += tip(x1, -d) + return out + + +def svg(w, h, body, label): + return (f'{body}\n') + + +# How guest Metal calls reach the host GPU (upstream reims-vgpu README, "Developing"). +GPU = { + "zh": dict( + label="显卡加速示意图:macOS 的 Metal 调用经虚拟显卡和 metal2vulkan 交给 Windows 独显执行", + guest="macOS 虚拟机", host="Windows 主机", + boxes=[("Metal 应用", ["游戏、剪辑软件", "和界面动画"]), + ("Reims 客体驱动", ["把 Metal 调用", "打包成命令流"]), + ("虚拟显卡", ["reims-graphics-pci"]), + ("metal2vulkan", ["把命令流", "翻译成 Vulkan"]), + ("你的独立显卡", ["经 Vulkan 驱动执行"])], + note="渲染结果直接显示在 Windows 上的虚拟机窗口里"), + "en": dict( + label="GPU acceleration: macOS Metal calls reach the Windows GPU through the virtual GPU and metal2vulkan", + guest="macOS VM", host="Windows host", + boxes=[("Metal apps", ["Games, editors", "and UI animation"]), + ("Guest driver", ["Packs Metal calls", "into a command stream"]), + ("Virtual GPU", ["reims-graphics-pci"]), + ("metal2vulkan", ["Translates the", "stream to Vulkan"]), + ("Your GPU", ["Runs it through", "its Vulkan driver"])], + note="Frames show up directly in the VM window on Windows"), +} + + +def gpu(lang, theme): + t, c = GPU[lang], THEMES[theme] + W, H, bw, gap, x0, top, bh = 1200, 360, 196, 40, 32, 104, 150 + mid = x0 + 2 * (bw + gap) + bw / 2 + b = [f'', + f'', + f'', + text(40, 58, t["guest"], 20, c["muted"], 600, "start"), + text(W - 40, 58, t["host"], 20, c["muted"], 600, "end")] + accents = [VIOLET, VIOLET, BLUE, BLUE, ORANGE] + for i, (title, sub) in enumerate(t["boxes"]): + x = x0 + i * (bw + gap) + device = i == 2 + fill = f'url(#gpu-dev-{theme})' if device else c["card"] + stroke = "none" if device else c["line"] + ink = "#ffffff" if device else c["ink"] + sub_ink = "#ffffff" if device else c["muted"] + b.append(f'') + if not device: + b.append(f'') + b.append(text(x + bw / 2, top + 58, title, 21, ink, 700)) + b.append(lines(x + bw / 2, top + 92, sub, 15, sub_ink, 1.5) if not device else + text(x + bw / 2, top + 94, sub[0], 15, sub_ink, 400, mono=True)) + if i < 4: + b.append(arrow(x + bw + 6, x + bw + gap - 6, top + bh / 2, BLUE)) + b.append(text(W / 2, H - 22, t["note"], 17, c["muted"])) + defs = (f'' + f'') + return svg(W, H, defs + "".join(b), t["label"]) + + +# The install flow in the app; "click" steps are the only ones that need the user. +INSTALL = { + "zh": dict( + label="装机流程示意图:下载、准备虚拟机自动完成,之后只需点三下", + auto="自动", click="点一下", + steps=[("下载安装包", ["直接从 Apple 下载", "支持断点续传"], "auto"), + ("准备虚拟机", ["生成虚拟磁盘", "和 OpenCore 引导盘"], "auto"), + ("启动虚拟机", ["自动进入", "macOS 恢复环境"], "click"), + ("开始安装", ["点键盘图标,抹盘", "和安装命令自动键入"], "click"), + ("完成", ["看到设置助理后", "退出恢复模式"], "click")], + note="全程不用手动敲命令"), + "en": dict( + label="Install flow: downloading and preparing the VM are automatic, then it takes three clicks", + auto="Automatic", click="One click", + steps=[("Download", ["Straight from Apple,", "resumes if interrupted"], "auto"), + ("Prepare the VM", ["Creates the disk and", "OpenCore boot image"], "auto"), + ("Start the VM", ["Boots straight into", "macOS Recovery"], "click"), + ("Install", ["Click the keyboard icon;", "the commands type in"], "click"), + ("Finish", ["At Setup Assistant,", "exit recovery mode"], "click")], + note="No commands to type by hand"), +} + + +def install(lang, theme): + t, c = INSTALL[lang], THEMES[theme] + W, H, bw, gap, x0, top, bh = 1200, 330, 208, 30, 22, 30, 236 + b = [] + for i, (title, sub, kind) in enumerate(t["steps"]): + x = x0 + i * (bw + gap) + cx = x + bw / 2 + color = BLUE if kind == "auto" else PINK + b.append(f'') + b.append(f'') + b.append(text(cx, top + 54, str(i + 1), 21, "#ffffff", 700)) + b.append(text(cx, top + 110, title, 21, c["ink"], 700)) + b.append(lines(cx, top + 144, sub, 15, c["muted"], 1.5)) + label = t[kind] + pw = 22 + len(label) * (15 if lang == "zh" else 8.6) + b.append(f'') + b.append(text(cx, top + bh - 27, label, 14, color, 700)) + if i < 4: + b.append(arrow(x + bw + 4, x + bw + gap - 4, top + bh / 2, c["muted"], head=9)) + b.append(text(W / 2, H - 22, t["note"], 17, c["muted"])) + return svg(W, H, "".join(b), t["label"]) + + +# Host <-> guest channels: Guest Tools (clipboard, WebDAV share, text input) and SSH forwarding. +INTEROP = { + "zh": dict( + label="互通示意图:剪贴板、共享文件夹、拖拽传文件、输入法和 SSH 连接 Windows 与 macOS", + win="Windows", mac="macOS", + rows=[("剪贴板", "文字和图片", "剪贴板", True), + ("共享目录", "共享文件夹", "~/Desktop/ReimsShare", True), + ("拖进窗口的文件", "发送文件", "共享文件夹", False), + ("Windows 输入法", "中文与 emoji", "当前输入框", False), + ("终端 / VS Code", "SSH 端口转发", "SSH 登录", False)], + note="剪贴板、共享和输入法由 Guest Tools 提供,只在本机回环地址上通信"), + "en": dict( + label="Windows and macOS interop: clipboard, shared folder, drag-and-drop, IME input and SSH", + win="Windows", mac="macOS", + rows=[("Clipboard", "Text and images", "Clipboard", True), + ("Shared folder", "Shared folder", "~/Desktop/ReimsShare", True), + ("Files dropped on window", "Send files", "Shared folder", False), + ("Windows IME", "Any language, emoji", "Focused text field", False), + ("Terminal / VS Code", "SSH forwarding", "SSH login", False)], + note="Clipboard, sharing and text input go through Guest Tools on the loopback address only"), +} + + +def interop(lang, theme): + t, c = INTEROP[lang], THEMES[theme] + W, H, top, step, ph = 1200, 470, 104, 60, 42 + lx, rx, pw = 40, 880, 280 + b = [f'', + f'', + text(lx + pw / 2, 60, t["win"], 22, c["ink"], 700), + text(rx + pw / 2, 60, t["mac"], 22, c["ink"], 700)] + colors = [BLUE, VIOLET, PINK, ORANGE, c["muted"]] + for i, (left, mid, right, both) in enumerate(t["rows"]): + y = top + i * step + cy = y + ph / 2 + for x, s in ((lx, left), (rx, right)): + mono = s.startswith("~/") + b.append(f'') + b.append(text(x + pw / 2, cy + 6, s, 15 if mono else 17, c["ink"], 500, mono=mono)) + b.append(arrow(lx + pw + 14, rx - 14, cy + 8, colors[i], both=both)) + b.append(text(W / 2, cy - 4, mid, 16, colors[i] if i < 4 else c["muted"], 700)) + b.append(text(W / 2, H - 22, t["note"], 17, c["muted"])) + return svg(W, H, "".join(b), t["label"]) + + +def main(): + for name, draw in (("gpu", gpu), ("install", install), ("interop", interop)): + for lang in ("zh", "en"): + for theme in ("light", "dark"): + path = OUT / f"feature-{name}-{lang}-{theme}.svg" + path.write_text(draw(lang, theme), encoding="utf-8", newline="\n") + + +if __name__ == "__main__": + main()