From 4b1f8d76b5c8a0e018e998c35100542e2cfcdb23 Mon Sep 17 00:00:00 2001 From: Dnyo666 Date: Thu, 3 Dec 2026 20:13:22 +0800 Subject: [PATCH] feat: add navbar caching, live GitHub releases edge API, and 1:1 Reims-Go desktop UI with mobile fidelity --- astro.config.mjs | 5 +- package.json | 3 +- public/_headers | 52 + public/data/plugins.json | 101 +- public/data/releases-bundle.json | 1339 +++++++ public/data/releases.json | 26 +- scripts/sync-external-data.mjs | 189 +- src/components/brand/VersionArt.tsx | 129 +- src/components/home/HeroReleaseMeta.tsx | 36 + src/components/home/HeroWindowPreview.tsx | 3085 ++++++++++++----- src/components/home/HomePage.astro | 11 +- .../home/reims-sim/SimSystemViews.tsx | 1610 +++++++++ src/components/home/reims-sim/simTypes.tsx | 304 ++ src/components/layout/DocsVersionBadge.tsx | 17 + src/components/layout/HeaderControls.tsx | 155 - src/components/layout/Navbar.astro | 59 +- src/components/layout/SearchModal.tsx | 7 +- src/components/layout/SiteHeader.tsx | 365 ++ src/components/pages/ChangelogFeed.tsx | 340 ++ src/components/pages/ChangelogView.astro | 172 +- src/content/docs/en/quick-start.mdx | 4 +- src/content/docs/zh-cn/quick-start.mdx | 4 +- src/i18n/translations.ts | 4 +- src/i18n/types.ts | 11 +- src/layouts/BaseLayout.astro | 260 +- src/layouts/DocsLayout.astro | 7 +- src/lib/plugins.ts | 2 +- src/lib/release-parser.ts | 249 ++ src/lib/releases.ts | 371 +- src/styles/global.css | 122 +- tests/regression-dist.test.mjs | 212 ++ tests/release-parser.test.mjs | 363 ++ tests/worker.test.mjs | 664 ++++ worker/index.js | 377 ++ wrangler.jsonc | 7 +- 35 files changed, 9253 insertions(+), 1409 deletions(-) create mode 100644 public/data/releases-bundle.json create mode 100644 src/components/home/HeroReleaseMeta.tsx create mode 100644 src/components/home/reims-sim/SimSystemViews.tsx create mode 100644 src/components/home/reims-sim/simTypes.tsx create mode 100644 src/components/layout/DocsVersionBadge.tsx delete mode 100644 src/components/layout/HeaderControls.tsx create mode 100644 src/components/layout/SiteHeader.tsx create mode 100644 src/components/pages/ChangelogFeed.tsx create mode 100644 src/lib/release-parser.ts create mode 100644 tests/regression-dist.test.mjs create mode 100644 tests/release-parser.test.mjs create mode 100644 tests/worker.test.mjs create mode 100644 worker/index.js diff --git a/astro.config.mjs b/astro.config.mjs index f956267..39de057 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -9,10 +9,7 @@ export default defineConfig({ site: SITE_URL, output: 'static', trailingSlash: 'ignore', - prefetch: { - prefetchAll: true, - defaultStrategy: 'hover', - }, + prefetch: false, integrations: [ react(), mdx(), diff --git a/package.json b/package.json index dd980c7..72782ac 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "build": "astro check && astro build && pagefind --site dist", "build:fast": "astro build && pagefind --site dist", "preview": "astro preview", - "check": "astro check" + "check": "astro check", + "test": "node --test tests/*.test.mjs" }, "dependencies": { "@astrojs/check": "^0.9.4", diff --git a/public/_headers b/public/_headers index 59bfe8e..8687d8d 100644 --- a/public/_headers +++ b/public/_headers @@ -2,6 +2,58 @@ X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN Referrer-Policy: strict-origin-when-cross-origin + Permissions-Policy: camera=(), microphone=(), geolocation=() + +/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/docs/* + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/docs/* + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/plugins + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/plugins/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/plugins + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/plugins/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/compatibility + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/compatibility/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/compatibility + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/compatibility/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/changelog + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/changelog/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/changelog + Cache-Control: public, max-age=60, stale-while-revalidate=600 + +/en/changelog/ + Cache-Control: public, max-age=60, stale-while-revalidate=600 /_astro/* Cache-Control: public, max-age=31536000, immutable diff --git a/public/data/plugins.json b/public/data/plugins.json index 73fc943..b621fb8 100644 --- a/public/data/plugins.json +++ b/public/data/plugins.json @@ -1,7 +1,55 @@ { "schema": 1, - "updated_at": "2026-12-02T03:58:51.696Z", + "updated_at": "2026-12-03T03:29:42.285Z", "plugins": [ + { + "id": "reims.agent", + "version": "0.1.0", + "name": { + "zh-CN": "MCP服务", + "en-US": "MCP Service" + }, + "description": { + "zh-CN": "通过宿主授权的控制通道向 MCP 客户端提供虚拟机交互工具", + "en-US": "Provides VM interaction tools to MCP clients through host-authorized channels" + }, + "publisher": "Reims-Go", + "license": "Apache-2.0", + "channel": "stable", + "trust": "official", + "kind": "tool", + "tier": "L3", + "homepage": "https://github.com/reims-go/reims-agent", + "readme_url": "https://github.com/reims-go/reims-agent#readme", + "engines": { + "pluginApi": "^1.1.0" + }, + "platforms": [ + "windows-x64" + ], + "permissions": [ + "vm:read", + "vm:control", + "vm:screen", + "qmp:write" + ], + "download_url": "https://github.com/reims-go/reims-agent/releases/download/v0.1.0/reims.agent-0.1.0.zip", + "sha256": "0c662804508b1b6b06e10f80f395b28814cc4e280907f833c5e629d3293dac79", + "size_bytes": 4510547, + "changelog": { + "zh-CN": "首个正式版本:提供受宿主按虚拟机授权的 MCP 服务,支持截图、批量桌面操作、光标去噪屏幕等待、DPAPI 自动解锁、SSH/SFTP 及隔离 CoW 测试运行。", + "en-US": "Initial stable release: official host-authorized MCP service for per-VM screenshots, batched desktop controls, cursor-tolerant screen waits, DPAPI unlock, SSH/SFTP, and isolated CoW test runs." + }, + "tags": [ + "mcp", + "agent", + "computer-use", + "ssh", + "automation", + "MCP" + ], + "updated_at": "2026-12-03T03:29:41.346Z" + }, { "id": "official.lang.zh-tw", "version": "1.0.0", @@ -42,7 +90,7 @@ "traditional-chinese", "繁體中文" ], - "updated_at": "2026-12-02T03:58:51.146Z" + "updated_at": "2026-12-03T03:29:41.563Z" }, { "id": "community.lang.ko-kr", @@ -84,7 +132,7 @@ "korean", "한국어" ], - "updated_at": "2026-12-02T03:58:51.327Z" + "updated_at": "2026-12-03T03:29:41.783Z" }, { "id": "abadx.lang.es-es", @@ -125,7 +173,7 @@ "spanish", "español" ], - "updated_at": "2026-12-02T03:58:51.518Z" + "updated_at": "2026-12-03T03:29:41.937Z" }, { "id": "community.lang.ar-sa", @@ -163,7 +211,50 @@ "arabic", "العربية" ], - "updated_at": "2026-12-02T03:58:51.695Z" + "updated_at": "2026-12-03T03:29:42.125Z" + }, + { + "id": "yfl520.theme.wallpaper-studio", + "version": "1.1.0", + "name": { + "zh-CN": "动态壁纸工坊", + "en-US": "Wallpaper Studio" + }, + "description": { + "zh-CN": "可交互的动态壁纸主题:导入本机图片、GIF 与 MP4/WebM 视频作为窗口背景,支持定时轮播、实时调节背景遮罩与卡片不透明度,虚拟机运行时自动暂停视频以节省资源", + "en-US": "Interactive wallpaper theme: use local images, GIFs, and MP4/WebM videos as the window background, with slideshow, live dimming and card opacity controls, and automatic video pause while a VM is running" + }, + "publisher": "yfl520", + "license": "Apache-2.0", + "channel": "stable", + "trust": "community", + "kind": "theme", + "tier": "L1", + "homepage": "https://github.com/yfl520/reims-theme-wallpaper-studio", + "readme_url": "https://github.com/yfl520/reims-theme-wallpaper-studio#readme", + "engines": { + "pluginApi": "^1.0.0", + "uiApi": "^2.0.0" + }, + "permissions": [ + "ui:script" + ], + "download_url": "https://github.com/yfl520/reims-theme-wallpaper-studio/releases/download/v1.1.0/yfl520.theme.wallpaper-studio-1.1.0.zip", + "sha256": "f2af730f8701964e3becbdf826cba112b9b38f76f146b02ca00cf0db82a0000d", + "size_bytes": 29496, + "changelog": { + "zh-CN": "首个上架版本:导入本机图片、GIF 与 MP4/WebM 视频壁纸,支持定时轮播、背景遮罩与卡片不透明度实时调节、虚拟机运行时自动暂停视频、清空壁纸库,内置昼夜双景与 6 套配色", + "en-US": "First marketplace release: import local images, GIFs, and MP4/WebM videos as wallpapers, with slideshow, live dimming and card opacity controls, automatic video pause while a VM is running, a clear library action, built-in day and night backdrops, and 6 accent schemes" + }, + "tags": [ + "theme", + "wallpaper", + "video", + "glass", + "动态壁纸", + "交互主题" + ], + "updated_at": "2026-12-03T03:29:42.284Z" } ], "withdrawn": [] diff --git a/public/data/releases-bundle.json b/public/data/releases-bundle.json new file mode 100644 index 0000000..6edb5a6 --- /dev/null +++ b/public/data/releases-bundle.json @@ -0,0 +1,1339 @@ +{ + "source": "static-fallback", + "synced_at": "2026-12-03T06:51:34.121Z", + "latest": { + "synced_at": "2026-12-03T06:51:34.121Z", + "stars": 1868, + "version": "v0.2.12", + "published_at": "2026-12-02T20:42:58Z", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.12", + "exe": { + "name": "reims-go-v0.2.12-windows-amd64.exe", + "size": 21023744, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/reims-go-v0.2.12-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.12-windows-amd64.zip", + "size": 8362065, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/reims-go-v0.2.12-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/SHA256SUMS.txt", + "sha256_sums": "9bb1cbc25085acd1b2b4aed4dd422775030d7829b865e15ee79a301e161ee206 reims-go-v0.2.12-windows-amd64.exe\nf59f22b535a4c87b49b2d536d5bcb7069f9f754790da3c1dc24178dd07dbd9cb reims-go-v0.2.12-windows-amd64.zip" + }, + "entries": [ + { + "tag": "v0.2.12", + "name": "Reims-Go v0.2.12", + "published_at": "2026-12-02T20:42:58Z", + "date": "2026-12-02", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.12", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.12-windows-amd64.exe", + "size": 21023744, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/reims-go-v0.2.12-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.12-windows-amd64.zip", + "size": 8362065, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/reims-go-v0.2.12-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "重点更新", + "items": [ + "支持将 Windows 文件、图片和文本直接拖入 macOS 虚拟机窗口。修复重复复制或从挂起恢复后,宿主机到虚拟机的剪贴板同步失效问题。可在客体内重新安装 Guest Tools 升级至 `v14`。 [#84](https://github.com/Nwflower/Reims-Go/pull/84)", + "Npcap 桥接支持为每台虚拟机选择有线或无线网卡,并在运行中切换出口。 [#54](https://github.com/Nwflower/Reims-Go/pull/54)", + "新增虚拟机交互扩展,支持按虚拟机授权截图、鼠标、键盘和文本输入,并提供 MCP 服务。 [#92](https://github.com/Nwflower/Reims-Go/pull/92)", + "稳定版运行时升级至 `2df30ff`,修复部分 AMD 驱动下的启动黑屏与渲染错误,并在 RX 6500M 和 RTX A5000 上通过冷启动、同版本挂起恢复和正常关机验证。 [运行时公告](https://github.com/reims-go/reims-vgpu/releases/tag/runtime-2df30ff)", + "VirtIO 系统盘使用独立 I/O 线程并传递 TRIM。修复 Windows 用户态 NAT 在大量套接字活跃时丢失 UDP 回包的问题。 [QEMU #1](https://github.com/reims-go/qemu-reims-vgpu/pull/1)" + ] + }, + { + "title": "新增功能", + "items": [ + "新增默认启用的「虚拟机交互」扩展,统一处理虚拟机截图、鼠标、键盘与文本输入;新增按虚拟机授权的插件控制通道和 MCP 服务。 — [@bvzrays](https://github.com/bvzrays)", + "「帮助」菜单和「关于」页新增官方网站与使用文档入口,按界面语言打开 [reims.dev](https://reims.dev/) 的中文或英文页面。 — [@Nwflower](https://github.com/Nwflower)", + "可为每台虚拟机指定目标显示器。目标显示器断开时,窗口回退到主显示器([#63](https://github.com/Nwflower/Reims-Go/pull/63))。 — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "支持将 Windows 文件、文件夹、图片及文本或网址直接拖入 macOS 虚拟机窗口,提供宿主机零拷贝 WebDAV 映射、桌面直投、照片原生导入与跨应用隐身模拟粘贴。 — [@YinLiaoCo](https://github.com/YinLiaoCo)", + "虚拟机可使用 Npcap 桥接到指定的有线或无线网卡,运行中可切换桥接出口。宿主与客体可经同一网卡双向访问,需要 Npcap 1.83 或更高版本。 [#54](https://github.com/Nwflower/Reims-Go/pull/54) — [@ssdsl0126](https://github.com/ssdsl0126)", + "已安装的 macOS 虚拟机可通过 Guest Tools 使用宿主系统 DNS 或 DoH,适用于直连 DNS 受限的网络。 [#65](https://github.com/Nwflower/Reims-Go/pull/65) — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "在 macOS 虚拟机设置中选择跟随宿主机或固定时区。同步需要更新并授权 Guest Tools。 [#66](https://github.com/Nwflower/Reims-Go/pull/66) — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "支持 VMX 的 Windows 宿主机可为单台 macOS 虚拟机启用嵌套虚拟化。默认关闭,冷启动后生效。 [#72](https://github.com/Nwflower/Reims-Go/pull/72) — [@zhongruan0522](https://github.com/zhongruan0522), [@yxc0915](https://github.com/yxc0915)", + "虚拟机修饰键设置新增「聚焦时拦截宿主机快捷键」开关,聚焦虚拟机窗口时拦截 Windows 的 Win 与 Alt 快捷键并自动置顶低级键盘钩子。 [#73](https://github.com/Nwflower/Reims-Go/pull/73) — [@reiasu2](https://github.com/reiasu2)" + ] + }, + { + "title": "体验优化", + "items": [ + "具有相同挂起兼容标识的 Alpha 修订可恢复同一主编号下保存的虚拟机挂起状态。 — [@yxc0915](https://github.com/yxc0915)" + ] + }, + { + "title": "问题修复", + "items": [ + "开启无边框模式时若 `reims-ctl show` 未输出分辨率,改为从 `vm.toml` 回读已配置的 `[display].resolution`,避免界面误显示默认 `1920x1080`。 — [@YinLiaoCo](https://github.com/YinLiaoCo)", + "保护在册 CoW 副本依赖的父磁盘,删除最后一个副本后可恢复启动和磁盘修改,历史残留文件不再阻断操作。 — [@Admilkk](https://github.com/Admilkk)", + "修复 Windows 宿主机与 macOS 虚拟机之间的剪贴板同步失效问题,包括重复复制和挂起恢复后的失效。减少大图同步的重复读取和拷贝。请在虚拟机内重新安装 Guest Tools 以升级到 `v14`。 — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "修复插件市场平台与引擎兼容校验不一致、外部主题在重启或升级后丢失、安全模式或 CLI 停用无关插件误清空当前主题,以及隐藏对话框阻断快捷键和审批弹窗在小窗口被裁切的问题。 [#93](https://github.com/Nwflower/Reims-Go/issues/93) — [@Dnyo666](https://github.com/Dnyo666)", + "修复多台桥接虚拟机同时启停时的偶发断网,以及停用 Npcap 插件后桥接通道被后台任务重新打开的问题。 — [@ssdsl0126](https://github.com/ssdsl0126)", + "修复 Npcap 桥接时宿主与虚拟机无法通过同一物理网卡的局域网地址双向访问的问题,支持有线、WLAN、IPv4 与 IPv6,需要 Npcap 1.83 或更高版本。 — [@ssdsl0126](https://github.com/ssdsl0126)", + "修复网络应用失败回滚后出口选中项与实际配置不一致的问题,补齐备用启动路径的桥接参数归属,并在网络操作结束后回收无使用者的虚拟机网络锁。 — [@ssdsl0126](https://github.com/ssdsl0126)", + "Windows 内存检查计入分页文件可增长的空间,避免明明能启动的虚拟机因当前提交内存上限而被拦截。 — [@Nwflower](https://github.com/Nwflower)", + "重新导入同版本运行时失败时保留旧运行时,避免被占用的 Windows 文件导致已安装的运行时缺失。 — [@Admilkk](https://github.com/Admilkk)", + "在支持固定显示模式的运行时中,创建和设置虚拟机时可在窗口模式选择目标显示器的原生分辨率,并缩放以适应窗口。 — [@cxykhaos](https://github.com/cxykhaos)", + "Windows 显卡检测仅保留当前在位且正常启动的显示适配器,避免已拔出或已禁用的显卡继续出现在可用显卡列表中。 — [@icaruszezen](https://github.com/icaruszezen)" + ] + }, + { + "title": "安全", + "items": [ + "为 `ui:script` 交互主题补齐脚本 SHA-256 哈希锚定与高危审批详情(从 `v0.2.11` 升级后已启用的 `ui:script` 主题首次启动需重新确认一次),并为插件市场下载加固直连防 HTTPS 降级、体积硬上限、慢流超时、版本路径校验及陈旧缓存信任降级一致性。 [#93](https://github.com/Nwflower/Reims-Go/issues/93) — [@Dnyo666](https://github.com/Dnyo666)", + "禁止恢复旧版 TCP 桥接及管理通道,防止客体经 SLIRP 冒用 QEMU 连接;正常关机后重新启动即可迁移到 Unix 通道,旧挂起状态需确认放弃后再冷启动。 — [@ssdsl0126](https://github.com/ssdsl0126)" + ] + }, + { + "title": "其他变更", + "items": [ + "新增本地定向、CI 与发布三档测试,并用真实 WebView2 首启冒烟验证客户端数据目录设置。 — [@Nwflower](https://github.com/Nwflower)", + "每天北京时间 0 点以 `main` 上最新的 `fix` 提交自动发布 Alpha 测试版,该提交已发布时跳过。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "新增功能", + "items": [ + "Windows WHPX 上的 Intel macOS 虚拟机支持挂起到磁盘,保留内存和图形状态。使用旧运行时保存的挂起状态,请先用原版本恢复并正常关机,再切换运行时。", + "原生虚拟机窗口支持向客户端转发文件、文本和网址拖放。 [#1](https://github.com/reims-go/reims-vgpu/pull/1)" + ] + }, + { + "title": "体验优化", + "items": [ + "VirtIO 系统盘使用独立 I/O 线程并传递客体 TRIM,QCOW2 的 L2 元数据缓存根据镜像容量设置。", + "对 Vulkan 绘制命令采用批量编码,复制 GPU 缓冲区时只同步涉及的范围。 [#2](https://github.com/reims-go/reims-vgpu/pull/2)", + "离线安装包提供分片校验信息时,运行时可并行下载并校验分片。" + ] + }, + { + "title": "问题修复", + "items": [ + "修复部分 AMD 驱动下因着色器地址和纹理读写处理而出现的启动黑屏或渲染错误。已在 RX 6500M 上验证启动、挂起恢复和正常关机。", + "修复 Windows 用户态 NAT 在活动套接字超过 64 个时丢失 UDP 回包的问题。 [QEMU #1](https://github.com/reims-go/qemu-reims-vgpu/pull/1)" + ] + } + ], + "en-US": [ + { + "title": "Highlights", + "items": [ + "Drag Windows files, images and text directly into the macOS VM window. Fix host-to-guest clipboard sync when copying the same item again or resuming a suspended VM. Reinstall Guest Tools in the guest to upgrade to `v14`. [#84](https://github.com/Nwflower/Reims-Go/pull/84)", + "Choose an Ethernet or Wi-Fi adapter for each Npcap-bridged VM and switch uplinks while the VM is running. [#54](https://github.com/Nwflower/Reims-Go/pull/54)", + "The Computer Use extension provides per-VM authorization for screenshots, pointer, keyboard and text input, plus an MCP service. [#92](https://github.com/Nwflower/Reims-Go/pull/92)", + "Stable runtime `2df30ff` fixes startup black screens and rendering errors on affected AMD drivers. Cold boot, same-version suspend and resume, and normal shutdown passed on the RX 6500M and RTX A5000. [Runtime release](https://github.com/reims-go/reims-vgpu/releases/tag/runtime-2df30ff)", + "VirtIO system disks use a dedicated I/O thread and pass TRIM through. Fix missing UDP replies in Windows user-mode NAT when many sockets are active. [QEMU #1](https://github.com/reims-go/qemu-reims-vgpu/pull/1)" + ] + }, + { + "title": "New Features", + "items": [ + "Add the enabled-by-default Computer Use extension for VM screenshots, pointer, keyboard, and text input, plus per-VM authorization and the MCP service. — [@bvzrays](https://github.com/bvzrays)", + "Open the official website and documentation from the Help menu and the About page, in Chinese or English to match the app language. See [reims.dev](https://reims.dev/en). — [@Nwflower](https://github.com/Nwflower)", + "Choose a target monitor per VM. The window falls back to the primary monitor if the target is disconnected ([#63](https://github.com/Nwflower/Reims-Go/pull/63)). — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "Support dragging Windows files, folders, images, and text or URLs directly into the macOS VM window with zero-copy host WebDAV shares, direct Desktop placement, native Photos import, and stealth cross-app paste. — [@YinLiaoCo](https://github.com/YinLiaoCo)", + "Bridge a VM to a selected Ethernet or Wi-Fi adapter with Npcap and switch uplinks while the VM is running. Bidirectional host and guest access on the same adapter requires Npcap 1.83 or later. [#54](https://github.com/Nwflower/Reims-Go/pull/54) — [@ssdsl0126](https://github.com/ssdsl0126)", + "Use the host DNS resolver or DoH through Guest Tools in installed macOS VMs on networks that block direct DNS. [#65](https://github.com/Nwflower/Reims-Go/pull/65) — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "Set a fixed timezone or follow the host in macOS VM settings. Sync requires updated and authorized Guest Tools. [#66](https://github.com/Nwflower/Reims-Go/pull/66) — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "Enable nested virtualization per macOS VM on Windows hosts with WHPX VMX support. Off by default, applied on cold start. [#72](https://github.com/Nwflower/Reims-Go/pull/72) — [@zhongruan0522](https://github.com/zhongruan0522), [@yxc0915](https://github.com/yxc0915)", + "Add a per-VM \"Capture Host Shortcuts\" toggle under modifier key settings to block Windows Win/Alt shortcuts and promote the low-level keyboard hook while the VM window is focused. [#73](https://github.com/Nwflower/Reims-Go/pull/73) — [@reiasu2](https://github.com/reiasu2)" + ] + }, + { + "title": "Improvements", + "items": [ + "Alpha revisions with the same suspend compatibility ID can resume VM state saved under the same base version. — [@yxc0915](https://github.com/yxc0915)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Read `[display].resolution` from `vm.toml` when `reims-ctl show` omits the resolution in borderless mode so the UI no longer falls back to `1920x1080`. — [@YinLiaoCo](https://github.com/YinLiaoCo)", + "Protect backing disks used by registered CoW clones, and allow startup and disk changes once the last dependent VM is deleted even if older overlay files remain. — [@Admilkk](https://github.com/Admilkk)", + "Fix clipboard sync between a Windows host and a macOS VM, including failures after copying the same content again or resuming a suspended VM. Reduce repeated reads and copies when syncing large images. Reinstall Guest Tools inside the VM to upgrade to `v14`. — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "Fix mismatched plugin market platform and engine compatibility checks, external theme loss across restarts and upgrades, unrelated safe-mode or CLI disables clearing the active theme, hidden dialogs blocking shortcuts, and approval modal list clipping on compact windows. [#93](https://github.com/Nwflower/Reims-Go/issues/93) — [@Dnyo666](https://github.com/Dnyo666)", + "Fix intermittent network loss when bridged VMs start and stop concurrently, and prevent background tasks from reopening bridge channels after the Npcap plugin is disabled. — [@ssdsl0126](https://github.com/ssdsl0126)", + "Fix bidirectional LAN access between the host and bridged VMs through the same physical adapter, supporting Ethernet, WLAN, IPv4, and IPv6 with Npcap 1.83 or later. — [@ssdsl0126](https://github.com/ssdsl0126)", + "Keep the selected network mode and uplink aligned with the actual configuration after a failed apply, track bridge argument ownership in fallback startup, and reclaim unused per-VM network locks. — [@ssdsl0126](https://github.com/ssdsl0126)", + "Windows memory checks account for available page-file growth so the current commit limit does not block VMs that can start. — [@Nwflower](https://github.com/Nwflower)", + "Preserve the existing runtime when reimporting the same version fails, including when Windows has files open. — [@Admilkk](https://github.com/Admilkk)", + "Allow the target display’s native resolution in windowed mode when creating or configuring a VM with a fixed-display-mode runtime, scaling it to fit the window. — [@cxykhaos](https://github.com/cxykhaos)", + "Detect only present, started display adapters on Windows so unplugged or disabled GPUs no longer appear in the available GPU list. — [@icaruszezen](https://github.com/icaruszezen)" + ] + }, + { + "title": "Security", + "items": [ + "Enforce script SHA-256 hash pinning and full high-risk approval disclosure for `ui:script` interactive themes (existing `v0.2.11` `ui:script` themes require one-time re-approval on first startup), and harden plugin market downloads with direct HTTPS-only redirects, hard size caps, stall timeouts, version path validation, and stale-cache trust parity. [#93](https://github.com/Nwflower/Reims-Go/issues/93) — [@Dnyo666](https://github.com/Dnyo666)", + "Reject legacy TCP bridge and management channels to prevent guests from impersonating QEMU through SLIRP. A normal shutdown and restart migrates to Unix channels; suspended legacy VMs require confirmation to discard their suspended state before a cold start. — [@ssdsl0126](https://github.com/ssdsl0126)" + ] + }, + { + "title": "Chores", + "items": [ + "Add focused, CI, and release test profiles, including a first-launch WebView2 smoke test that checks client data-folder setup. — [@Nwflower](https://github.com/Nwflower)", + "Publish an alpha build every day at midnight Beijing time from the newest `fix` commit on `main`, skipping commits that were already released. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "New Features", + "items": [ + "Intel macOS VMs on Windows WHPX can suspend to disk and preserve memory and graphics state. Resume states saved by an older runtime with that version and shut down the guest before switching runtimes.", + "The native VM window can forward dropped files, text and URLs to the client. [#1](https://github.com/reims-go/reims-vgpu/pull/1)" + ] + }, + { + "title": "Improvements", + "items": [ + "VirtIO system disks use a dedicated I/O thread and pass guest TRIM through. The QCOW2 L2 metadata cache is sized from the image capacity.", + "Batch Vulkan draw commands and synchronize only the affected GPU buffer ranges during copies. [#2](https://github.com/reims-go/reims-vgpu/pull/2)", + "Download and verify offline installer chunks in parallel when chunk verification data is available." + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Fix startup black screens and rendering errors on affected AMD drivers by correcting shader addresses and texture feedback handling. Boot, suspend and resume, and normal shutdown were verified on the RX 6500M.", + "Fix Windows user-mode NAT dropping UDP replies when more than 64 sockets are active. [QEMU #1](https://github.com/reims-go/qemu-reims-vgpu/pull/1)" + ] + } + ] + } + }, + { + "tag": "v0.2.11", + "name": "Reims-Go v0.2.11", + "published_at": "2026-12-01T13:57:00Z", + "date": "2026-12-01", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.11", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.11-windows-amd64.exe", + "size": 19269632, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.11/reims-go-v0.2.11-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.11-windows-amd64.zip", + "size": 7755304, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.11/reims-go-v0.2.11-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.11/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "Intel 虚拟机可在运行中挂起并保存内存和图形状态,下次启动时恢复会话。保存失败时回滚。请在「内核」页启用 Alpha,并选用支持 `vm-suspend` 的运行时,例如 [`c953356` Alpha](https://github.com/yxc0915/reims-vgpu/releases/tag/runtime-c953356)([#37](https://github.com/Nwflower/Reims-Go/pull/37))。 — [@yxc0915](https://github.com/yxc0915)", + "Guest Tools v8 支持按虚拟机添加和管理宿主机共享文件夹,并检查所选卷([#39](https://github.com/Nwflower/Reims-Go/pull/39))。 — [@reiasu2](https://github.com/reiasu2)", + "离线安装包和镜像可由内置下载器并行分片下载,插件也可通过 `downloaders` 提供下载器([#24](https://github.com/Nwflower/Reims-Go/pull/24)、[#52](https://github.com/Nwflower/Reims-Go/pull/52))。 — [@Admilkk](https://github.com/Admilkk), [@yfl520](https://github.com/yfl520)", + "「镜像」页取代「安装包」页,可在内置 macOS 镜像源和通过 `images.source` 注册的插件镜像源之间切换。 — [@Nwflower](https://github.com/Nwflower)", + "发布插件 UI 契约 `uiApi 2.0` 和桥接契约 `bridgeApi 1.0`。主题可添加插槽和全窗装饰层,调整布局,并覆盖图标和品牌标志。 — [@Nwflower](https://github.com/Nwflower)", + "可按虚拟机重映射 Windows 修饰键,包括将 Win 键映射为 macOS Command([#53](https://github.com/Nwflower/Reims-Go/pull/53))。 — [@reiasu2](https://github.com/reiasu2)", + "可轮换 OpenCore SMBIOS 硬件标识,也可选择让客体的 SMBIOS Type 17 内存规格跟随宿主机([#47](https://github.com/Nwflower/Reims-Go/pull/47)、[#44](https://github.com/Nwflower/Reims-Go/pull/44))。 — [@yfl520](https://github.com/yfl520)", + "虚拟机存储设置支持启用 `qcow2` 扩展 L2 子簇(`extended_l2`),并提供 Windows Defender 排除项配置引导([#56](https://github.com/Nwflower/Reims-Go/pull/56))。 — [@reiasu2](https://github.com/reiasu2)", + "虚拟机可选择关机方式并一键强制退出([#51](https://github.com/Nwflower/Reims-Go/pull/51))。 — [@ELDment](https://github.com/ELDment)", + "关闭虚拟机窗口时可在确认框中选择关机,支持挂起的虚拟机也可选择挂起。 — [@yxc0915](https://github.com/yxc0915)", + "「关于」页新增 Discord 社区入口([#57](https://github.com/Nwflower/Reims-Go/pull/57))。 — [@Dnyo666](https://github.com/Dnyo666)", + "可在「插件」页停用内置 macOS 客体插件,虚拟机生命周期操作由其所属驱动处理。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "全屏切换保留客体分辨率,因此可在全屏下使用 1.5× HiDPI([#22](https://github.com/Nwflower/Reims-Go/pull/22))。 — [@reiasu2](https://github.com/reiasu2), [@Nwflower](https://github.com/Nwflower)", + "插件列表、市场和首启向导统一图标、信任标记、筛选和搜索样式,并补齐语言包图标及从右到左的布局。 — [@Nwflower](https://github.com/Nwflower)", + "「镜像」页加载时显示品牌动画,并提示镜像服务的可用性。 — [@Nwflower](https://github.com/Nwflower)", + "启动时迁移旧数据目录。遇到由更新版本写入或版本记录损坏的目录时,客户端以只读方式打开。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "修复 Apple 在线恢复镜像的下载鉴权和分区 chunklist 校验。 — [@Nwflower](https://github.com/Nwflower), [@yfl520](https://github.com/yfl520)", + "修复离线安装路径中的主目录展开([#34](https://github.com/Nwflower/Reims-Go/pull/34))。 — [@yxc0915](https://github.com/yxc0915)", + "修复 Windows 剪贴板占用时的同步失败,以及 DIB 和 PNG 转换导致的剪贴板回声([#28](https://github.com/Nwflower/Reims-Go/pull/28))。 — [@reiasu2](https://github.com/reiasu2)", + "修复 Guest Tools 回退文件同步中的删除传播([#33](https://github.com/Nwflower/Reims-Go/pull/33))。 — [@yxc0915](https://github.com/yxc0915)", + "修复 Guest Tools 挂载 Windows 驱动器时的认证。CLI 直接启动虚拟机时保留 Guest Tools。 — [@yxc0915](https://github.com/yxc0915), [@Nwflower](https://github.com/Nwflower)", + "清理失效的显卡驱动缓存,从正在使用的显示驱动包中查找缺失的 Vulkan ICD,并在向导与 `reims-go doctor` 中显示探测结果([#21](https://github.com/Nwflower/Reims-Go/pull/21)、[#46](https://github.com/Nwflower/Reims-Go/pull/46))。 — [@reiasu2](https://github.com/reiasu2), [@ChenRuoT](https://github.com/ChenRuoT)", + "降低软件合成模式下的弹窗卡顿([#57](https://github.com/Nwflower/Reims-Go/pull/57))。 — [@Dnyo666](https://github.com/Dnyo666)", + "正确报告虚拟机列表读取错误及插件状态,并允许在虚拟机挂起后停用其驱动插件。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "安全", + "items": [ + "WebDAV 和回退文件同步共用目录边界检查,限制在获准的共享目录内读写([#38](https://github.com/Nwflower/Reims-Go/pull/38))。 — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "阻止会影响现有内部快照的磁盘改写([#56](https://github.com/Nwflower/Reims-Go/pull/56))。 — [@reiasu2](https://github.com/reiasu2)" + ] + }, + { + "title": "其他变更", + "items": [ + "客户端从 Reims vGPU fork 的目录读取正式版和预览版运行时。 — [@yxc0915](https://github.com/yxc0915)", + "前端和脚本的静态检查会拒绝空的异常处理代码。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Suspend a running Intel VM with its memory and graphics state, then resume the session on the next start. Failed saves roll back. Enable Alpha on the Kernel page and select a runtime that supports `vm-suspend`, such as [`c953356` Alpha](https://github.com/yxc0915/reims-vgpu/releases/tag/runtime-c953356) ([#37](https://github.com/Nwflower/Reims-Go/pull/37)). — [@yxc0915](https://github.com/yxc0915)", + "Guest Tools v8 lets you add and manage host folders per VM and validates the selected volume ([#39](https://github.com/Nwflower/Reims-Go/pull/39)). — [@reiasu2](https://github.com/reiasu2)", + "The built-in downloader fetches offline installers and images in parallel chunks, and plugins can provide downloaders through `downloaders` ([#24](https://github.com/Nwflower/Reims-Go/pull/24), [#52](https://github.com/Nwflower/Reims-Go/pull/52)). — [@Admilkk](https://github.com/Admilkk), [@yfl520](https://github.com/yfl520)", + "Images replaces Installers and lets you switch between the built-in macOS source and plugin sources registered through `images.source`. — [@Nwflower](https://github.com/Nwflower)", + "Publish the `uiApi 2.0` and `bridgeApi 1.0` plugin contracts. Themes can add slots and full-window layers, adjust layout, and override icons and branding. — [@Nwflower](https://github.com/Nwflower)", + "Remap Windows modifier keys per VM, including mapping the Windows key to macOS Command ([#53](https://github.com/Nwflower/Reims-Go/pull/53)). — [@reiasu2](https://github.com/reiasu2)", + "Rotate OpenCore SMBIOS identifiers or opt to match the guest's SMBIOS Type 17 memory information to the host ([#47](https://github.com/Nwflower/Reims-Go/pull/47), [#44](https://github.com/Nwflower/Reims-Go/pull/44)). — [@yfl520](https://github.com/yfl520)", + "VM storage settings can enable `qcow2` extended L2 subclusters (`extended_l2`) and guide you through Windows Defender exclusions ([#56](https://github.com/Nwflower/Reims-Go/pull/56)). — [@reiasu2](https://github.com/reiasu2)", + "Choose how to shut down a VM or force it to exit in one click ([#51](https://github.com/Nwflower/Reims-Go/pull/51)). — [@ELDment](https://github.com/ELDment)", + "Confirm shutdown when closing a VM window, with a suspend option for supported VMs. — [@yxc0915](https://github.com/yxc0915)", + "Find the Discord community in About ([#57](https://github.com/Nwflower/Reims-Go/pull/57)). — [@Dnyo666](https://github.com/Dnyo666)", + "Disable the built-in macOS guest plugin from Plugins. Each VM's owning driver handles its lifecycle actions. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "Switching to fullscreen preserves the guest resolution, allowing 1.5× HiDPI in fullscreen ([#22](https://github.com/Nwflower/Reims-Go/pull/22)). — [@reiasu2](https://github.com/reiasu2), [@Nwflower](https://github.com/Nwflower)", + "Plugins, Marketplace, and first-run setup share their icons, trust badges, filters, and search controls, with language-pack icons and right-to-left layouts. — [@Nwflower](https://github.com/Nwflower)", + "Images shows a loading animation and reports whether the image service is available. — [@Nwflower](https://github.com/Nwflower)", + "Upgrade older data folders on startup. The client opens folders written by a newer version or with a damaged version record in read-only mode. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Fix Apple recovery download authentication and partition chunklist validation. — [@Nwflower](https://github.com/Nwflower), [@yfl520](https://github.com/yfl520)", + "Fix home-directory expansion in offline installer paths ([#34](https://github.com/Nwflower/Reims-Go/pull/34)). — [@yxc0915](https://github.com/yxc0915)", + "Fix sync failures when the Windows clipboard is busy and prevent clipboard echo during DIB and PNG conversion ([#28](https://github.com/Nwflower/Reims-Go/pull/28)). — [@reiasu2](https://github.com/reiasu2)", + "Fix deletion propagation in Guest Tools fallback sync ([#33](https://github.com/Nwflower/Reims-Go/pull/33)). — [@yxc0915](https://github.com/yxc0915)", + "Fix authentication for Windows drives mounted through Guest Tools. Direct CLI starts retain Guest Tools. — [@yxc0915](https://github.com/yxc0915), [@Nwflower](https://github.com/Nwflower)", + "Clear stale GPU driver cache entries, find missing Vulkan ICDs in active display driver packages, and show the results in setup and `reims-go doctor` ([#21](https://github.com/Nwflower/Reims-Go/pull/21), [#46](https://github.com/Nwflower/Reims-Go/pull/46)). — [@reiasu2](https://github.com/reiasu2), [@ChenRuoT](https://github.com/ChenRuoT)", + "Reduce dialog stutter in software rendering ([#57](https://github.com/Nwflower/Reims-Go/pull/57)). — [@Dnyo666](https://github.com/Dnyo666)", + "Report VM inventory failures and plugin state accurately. A driver can be disabled once its VMs are suspended. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Security", + "items": [ + "WebDAV and fallback file sync share path checks that limit reads and writes to authorized folders ([#38](https://github.com/Nwflower/Reims-Go/pull/38)). — [@reiasu2](https://github.com/reiasu2), [@yxc0915](https://github.com/yxc0915)", + "Block disk rewrites that would affect existing internal snapshots ([#56](https://github.com/Nwflower/Reims-Go/pull/56)). — [@reiasu2](https://github.com/reiasu2)" + ] + }, + { + "title": "Chores", + "items": [ + "The client lists stable and preview runtimes from the Reims vGPU fork's catalog. — [@yxc0915](https://github.com/yxc0915)", + "Static checks reject empty exception handlers in the frontend and scripts. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.10", + "name": "Reims-Go v0.2.10", + "published_at": "2026-11-30T09:31:41Z", + "date": "2026-11-30", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.10", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.10-windows-amd64.exe", + "size": 17597440, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.10/reims-go-v0.2.10-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.10-windows-amd64.zip", + "size": 7127465, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.10/reims-go-v0.2.10-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.10/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "新增 `reims-go plugin pack` 命令。打包时执行静态检查,生成 `SHA256SUMS`,并可签名生成 `SHA256SUMS.sig`。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "插件市场默认读取 `reims-go/plugins` 组织仓库,主源不可用时自动回退到 jsDelivr。 — [@Nwflower](https://github.com/Nwflower)", + "调整繁体中文(`zh-TW`)在语言列表中的名称。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "修复虚拟机中物理键盘输入偶发重复或错序,以及中文拼音首字母重复。已安装 `runtime-3731afd-p3` 的用户可直接升级客户端([#14](https://github.com/Nwflower/Reims-Go/issues/14))。 — [@Nwflower](https://github.com/Nwflower)", + "修复切换标题栏菜单时的闪烁和浮层焦点提示冲突([#16](https://github.com/Nwflower/Reims-Go/pull/16))。 — [@Dnyo666](https://github.com/Dnyo666)" + ] + }, + { + "title": "安全", + "items": [ + "插件签名可通过客户端内置的 Ed25519 可信公钥环验证。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Add `reims-go plugin pack` to scan a plugin, build its package, write `SHA256SUMS`, and optionally sign it as `SHA256SUMS.sig`. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "The marketplace defaults to the `reims-go/plugins` organization repository and falls back to jsDelivr when the primary source is unavailable. — [@Nwflower](https://github.com/Nwflower)", + "Update the display name for Traditional Chinese (`zh-TW`) in the language list. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Fix occasional repeated or reordered physical keystrokes and duplicated initial Pinyin letters in VMs. Users with `runtime-3731afd-p3` can upgrade the client directly ([#14](https://github.com/Nwflower/Reims-Go/issues/14)). — [@Nwflower](https://github.com/Nwflower)", + "Fix flicker and competing focus indicators when switching title bar menus ([#16](https://github.com/Nwflower/Reims-Go/pull/16)). — [@Dnyo666](https://github.com/Dnyo666)" + ] + }, + { + "title": "Security", + "items": [ + "Verify plugin signatures against the client's built-in trusted Ed25519 keyring. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.9", + "name": "Reims-Go v0.2.9", + "published_at": "2026-11-30T08:19:19Z", + "date": "2026-11-30", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.9", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.9-windows-amd64.exe", + "size": 17561600, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.9/reims-go-v0.2.9-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.9-windows-amd64.zip", + "size": 7111698, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.9/reims-go-v0.2.9-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.9/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "本地化 v2 支持区域回退、ICU 复数与格式化以及第三方语言包。新增 `reims-go plugin locale init|check`,并本地化系统托盘、文件选择器和安装引导([#10](https://github.com/Nwflower/Reims-Go/pull/10))。 — [@Dnyo666](https://github.com/Dnyo666)", + "「关于」页可在 `stable`、`alpha` 和 `dev` 更新通道之间切换。安装测试版时保留上一版本,以便回退。 — [@Nwflower](https://github.com/Nwflower)", + "「插件」页新增单独的市场标签页。CLI 新增 `reims-go plugin search`、`update` 和 `install`。 — [@Nwflower](https://github.com/Nwflower)", + "「内核」页和 CLI 可删除未激活的旧运行时,释放磁盘空间。 — [@Nwflower](https://github.com/Nwflower)", + "CoW 派生链达到两层或父镜像缺失时,`reims-go doctor`、宿主体检及虚拟机存储设置会提示排查。 — [@Nwflower](https://github.com/Nwflower)", + "「关于」页可查看随应用提供的第三方开源许可证。 — [@Nwflower](https://github.com/Nwflower)", + "FileVault 预启动界面支持鼠标和数字键盘输入([#6](https://github.com/Nwflower/Reims-Go/pull/6))。 — [@yxc0915](https://github.com/yxc0915)" + ] + }, + { + "title": "体验优化", + "items": [ + "插件市场按需加载并缓存索引,提供内置离线索引,也可通过 `REIMS_GO_PLUGIN_MARKET_URL` 指定镜像或关闭远程市场。 — [@Nwflower](https://github.com/Nwflower)", + "回收空间与创建 CoW 派生盘时保留源 `qcow2` 的建盘参数。导入时使用统一的建盘默认值。 — [@Nwflower](https://github.com/Nwflower)", + "应用错误带有错误码和脱敏诊断详情。改进窄窗口布局和文字对比度。 — [@Dnyo666](https://github.com/Dnyo666), [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "修复新建虚拟机向导和「安装包」页的下载进度不同步([#13](https://github.com/Nwflower/Reims-Go/pull/13))。 — [@icaruszezen](https://github.com/icaruszezen)", + "重启虚拟机前等待 QEMU 退出并回收已提交内存,避免连续重启时内存叠加或启动失败。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "安全", + "items": [ + "插件导入与已安装插件页可查看静态扫描报告,`reims-go plugin doctor` 支持扫描 ZIP 并输出 JSON。扫描会拦截未获准的二进制或脚本、SVG 主动内容和越过宿主边界的代码。 — [@Nwflower](https://github.com/Nwflower)", + "L3 Sidecar 安装提示说明原生程序使用当前 Windows 用户权限,并显示可执行文件的 SHA-256。 — [@Nwflower](https://github.com/Nwflower)", + "市场在下载前检查插件兼容性和撤回状态,下载后核验 SHA-256。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "移除", + "items": [ + "移除 GitCode 运行时镜像下载源和镜像同步。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "其他变更", + "items": [ + "新增系统盘小文件 I/O 基准。工具覆盖 macOS 客体计时、QMP 块层采样和与显示语言无关的 Windows 磁盘计数器。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Localization v2 supports regional fallback, ICU plurals and formatting, and third-party language packs. Add `reims-go plugin locale init|check` and localize the system tray, file pickers, and installation guide ([#10](https://github.com/Nwflower/Reims-Go/pull/10)). — [@Dnyo666](https://github.com/Dnyo666)", + "Switch between `stable`, `alpha`, and `dev` updates in About. Installing an alpha keeps a backup of the previous version for rollback. — [@Nwflower](https://github.com/Nwflower)", + "Plugins gains a dedicated Marketplace tab. The CLI adds `reims-go plugin search`, `update`, and `install`. — [@Nwflower](https://github.com/Nwflower)", + "Free disk space by removing inactive runtimes from the Kernel page or the CLI. — [@Nwflower](https://github.com/Nwflower)", + "`reims-go doctor`, host diagnostics, and VM storage settings warn when a CoW chain is at least two layers deep or a backing image is missing. — [@Nwflower](https://github.com/Nwflower)", + "Read bundled third-party open-source licenses in About. — [@Nwflower](https://github.com/Nwflower)", + "Use mouse and numeric keypad input on the FileVault preboot screen ([#6](https://github.com/Nwflower/Reims-Go/pull/6)). — [@yxc0915](https://github.com/yxc0915)" + ] + }, + { + "title": "Improvements", + "items": [ + "The marketplace loads and caches its index on demand and ships an offline fallback. Set `REIMS_GO_PLUGIN_MARKET_URL` to use a mirror or disable the remote marketplace. — [@Nwflower](https://github.com/Nwflower)", + "Disk compaction and CoW cloning preserve the source `qcow2` creation options. Imports use consistent creation defaults. — [@Nwflower](https://github.com/Nwflower)", + "App errors include codes and redacted diagnostic details. Narrow layouts and text contrast are improved. — [@Dnyo666](https://github.com/Dnyo666), [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Synchronize installer download progress between the VM creation wizard and Installers ([#13](https://github.com/Nwflower/Reims-Go/pull/13)). — [@icaruszezen](https://github.com/icaruszezen)", + "Wait for QEMU to exit and release committed memory before restarting a VM, preventing memory buildup and launch failures during repeated restarts. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Security", + "items": [ + "Show scan reports before importing plugins and on the installed plugins page. `reims-go plugin doctor` scans ZIP files and can emit JSON. Scans block unauthorized binaries or scripts, active SVG content, and code that crosses host boundaries. — [@Nwflower](https://github.com/Nwflower)", + "L3 Sidecar prompts explain that native programs run with the current Windows user's permissions and show the executable's SHA-256. — [@Nwflower](https://github.com/Nwflower)", + "The marketplace checks compatibility and withdrawal status before download, then verifies the downloaded file's SHA-256. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Removals", + "items": [ + "Remove the GitCode runtime download mirror and its sync job. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Chores", + "items": [ + "Add a system-disk small-file I/O benchmark with macOS guest timing, QMP block statistics, and language-independent Windows disk counters. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.8", + "name": "Reims-Go v0.2.8", + "published_at": "2026-11-30T01:19:45Z", + "date": "2026-11-30", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.8", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.8-windows-amd64.exe", + "size": 16738816, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.8/reims-go-v0.2.8-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.8-windows-amd64.zip", + "size": 6812209, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.8/reims-go-v0.2.8-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.8/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "客户端和 `reims-go doctor` 检查 Vulkan 1.3、PCI ID 和所需扩展,并提示有黑屏或设备丢失风险的显卡,包括 AMD Vega、Polaris 和 RX 6600 XT。向导与设置页可切换到 VMware SVGA([#4](https://github.com/Nwflower/Reims-Go/issues/4))。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "新建虚拟机默认使用自动显卡选择,减少驱动更新后原驱动路径失效的情况。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "内置解压 `.tar.zst`,修复 Windows 10 22H2 等系统因自带 `tar.exe` 缺少 zstd 解压器而无法下载或导入运行时([#5](https://github.com/Nwflower/Reims-Go/issues/5))。 — [@Nwflower](https://github.com/Nwflower)", + "正确识别 AMD Radeon 核显和 Intel Core Ultra 集成 Arc,并跳过失效的 Vulkan ICD 注册表路径。 — [@Nwflower](https://github.com/Nwflower)", + "启动前检查 WHPX,避免将未启用虚拟化误报为磁盘空间不足。排障包也会记录 Vulkan 门槛拒绝和 `ERROR_DEVICE_LOST`。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "The client and `reims-go doctor` check for Vulkan 1.3, identify GPUs by PCI ID, and check required extensions. They flag black-screen or device-loss risks on hardware such as AMD Vega, Polaris, and RX 6600 XT. Setup and settings offer VMware SVGA as an alternative ([#4](https://github.com/Nwflower/Reims-Go/issues/4)). — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "New VMs default to automatic GPU selection, avoiding a stale driver path after a graphics driver update. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Extract `.tar.zst` in the client so Windows 10 22H2 and other systems whose `tar.exe` lacks zstd support can download or import runtimes ([#5](https://github.com/Nwflower/Reims-Go/issues/5)). — [@Nwflower](https://github.com/Nwflower)", + "Recognize AMD Radeon integrated graphics and Intel Core Ultra integrated Arc, and ignore stale Vulkan ICD registry paths. — [@Nwflower](https://github.com/Nwflower)", + "Check WHPX before starting a VM so disabled virtualization is reported as such. Diagnostic bundles also record Vulkan requirement failures and `ERROR_DEVICE_LOST`. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.7", + "name": "Reims-Go v0.2.7", + "published_at": "2026-11-29T17:43:16Z", + "date": "2026-11-29", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.7", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.7-windows-amd64.exe", + "size": 16344576, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.7/reims-go-v0.2.7-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.7-windows-amd64.zip", + "size": 6649998, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.7/reims-go-v0.2.7-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.7/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "新增「插件」页和 `reims-go plugin` 命令,可管理内置扩展、导入本地插件包、热重载开发目录和通过 `--safe-mode` 恢复。 — [@Nwflower](https://github.com/Nwflower)", + "「虚拟机窗口安装引导」插件在虚拟机窗口旁提供离线安装、在线恢复和内置恢复步骤,支持输入命令、退出恢复后重启续接及折叠。停用后仍可从主窗口进入恢复卡片([#3](https://github.com/Nwflower/Reims-Go/pull/3))。 — [@yxc0915](https://github.com/yxc0915)", + "新增「关于」页和应用内更新。正式版更新可续传,通过 `SHA256SUMS.txt` 校验后可替换程序并重启。保留原发布文件名时,更新会使用新版本的文件名。 — [@Nwflower](https://github.com/Nwflower)", + "主题插件支持热重载、配色编辑与 UI 契约校验,语言也可通过插件扩展。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "首次启动跟随系统语言,配置校验和 CLI 错误提示也支持本地化。 — [@Nwflower](https://github.com/Nwflower)", + "核心的 WHPX 降级和 Windows 10 冷重启选项继续可用。Guest Tools 传输、剪贴板互通、宿主输入和窗口安装引导可独立停用,相关监听与钩子随之停止。 — [@Nwflower](https://github.com/Nwflower)", + "标题栏菜单新增交流群入口。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "修复 Windows 回调泄漏。WebView2 界面健康检查可在崩溃后提示恢复。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "其他变更", + "items": [ + "新增英文 README。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Add Plugins and the `reims-go plugin` CLI for enabling built-in extensions, importing local packages, hot-reloading development directories, and recovering with `--safe-mode`. — [@Nwflower](https://github.com/Nwflower)", + "The VM Window Installation Guide plugin shows offline, online, and built-in recovery steps beside the VM. It can enter commands, continue after restarting out of recovery, and collapse. Disabling it leaves the recovery card in the main window ([#3](https://github.com/Nwflower/Reims-Go/pull/3)). — [@yxc0915](https://github.com/yxc0915)", + "Add About and in-app stable updates. Downloads can resume and are checked against `SHA256SUMS.txt` before the app is replaced and restarted. Copies that keep the original release filename adopt the new release filename. — [@Nwflower](https://github.com/Nwflower)", + "Theme plugins support hot reload, color scheme editing, and UI contract checks. Plugins can also add languages. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "First launch follows the system language. Configuration validation and CLI errors can also be localized. — [@Nwflower](https://github.com/Nwflower)", + "The core retains WHPX fallback and Windows 10 cold-restart options. Disabling any of Guest Tools transport, clipboard sharing, host input, or the window guide stops its listeners and hooks. — [@Nwflower](https://github.com/Nwflower)", + "The title bar menu links to the community chat. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Fix Windows callback leaks and add WebView2 health checks with a recovery prompt after a crash. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Chores", + "items": [ + "Add an English README. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.6", + "name": "Reims-Go v0.2.6", + "published_at": "2026-11-29T12:56:39Z", + "date": "2026-11-29", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.6", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.6-windows-amd64.exe", + "size": 15094272, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.6/reims-go-v0.2.6-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.6-windows-amd64.zip", + "size": 6172838, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.6/reims-go-v0.2.6-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.6/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "可按虚拟机设置 CPU 亲和性,支持自动、全部核心、性能核、避开低功耗核和自定义。运行中修改立即生效。 — [@Nwflower](https://github.com/Nwflower)", + "虚拟机停机后可创建、回滚和删除恢复点。 — [@Nwflower](https://github.com/Nwflower)", + "SSH 快捷操作可记住用户名、打开终端、写入 `~/.ssh/config` 或用 VS Code 远程连接。 — [@Nwflower](https://github.com/Nwflower)", + "虚拟机运行时可将其窗口带到前台,或把全分辨率截图复制到剪贴板。 — [@Nwflower](https://github.com/Nwflower)", + "将文件拖进客户端可发送到虚拟机的共享文件夹。 — [@Nwflower](https://github.com/Nwflower)", + "可直接在页面标题处设置虚拟机的显示名。 — [@Nwflower](https://github.com/Nwflower)", + "新增标题栏菜单、虚拟机侧栏右键菜单以及 `Ctrl+B` 侧栏折叠快捷键。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "虚拟机页按运行状态突出主要操作,在摘要区显示负载、磁盘和 Guest Tools 状态。宽窗口下,预览与配置并排显示。 — [@Nwflower](https://github.com/Nwflower)", + "托盘为每台虚拟机提供子菜单和状态圆点,跟随 Windows 明暗主题,并在截图或后台任务出错时显示通知。 — [@Nwflower](https://github.com/Nwflower)", + "侧栏和空白预览使用对应 macOS 版本图标。安装包按大版本分组并折叠旧版本,加载失败时可重试。 — [@Nwflower](https://github.com/Nwflower)", + "降低 4K 预览的内存开销,及时释放删除虚拟机留下的后台资源和长时间运行产生的过期任务。 — [@Nwflower](https://github.com/Nwflower)", + "页面和弹窗按需加载,减少界面刷新与图形开销。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "修复空间分布统计,让虚拟机文件和数据目录中的其他文件都计入用量。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "其他变更", + "items": [ + "客户端许可证从 MIT 改为 Apache-2.0,发布同时提供独立 EXE 和 ZIP。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Set CPU affinity per VM to automatic, all cores, performance cores, avoid low-power cores, or a custom selection. Changes take effect while the VM is running. — [@Nwflower](https://github.com/Nwflower)", + "Create, restore, and delete restore points while the VM is stopped. — [@Nwflower](https://github.com/Nwflower)", + "SSH shortcuts remember the username, open a terminal, write to `~/.ssh/config`, or connect through VS Code. — [@Nwflower](https://github.com/Nwflower)", + "Bring a running VM's window forward or copy a full-resolution screenshot to the clipboard. — [@Nwflower](https://github.com/Nwflower)", + "Drop files into the client to send them to the VM's shared folder. — [@Nwflower](https://github.com/Nwflower)", + "Set a VM's display name directly from its page title. — [@Nwflower](https://github.com/Nwflower)", + "Add title bar menus, sidebar VM context menus, and the `Ctrl+B` sidebar shortcut. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "The VM page prioritizes actions for the current state and summarizes load, disk use, and Guest Tools status. Wide windows place the preview beside the configuration. — [@Nwflower](https://github.com/Nwflower)", + "The tray gives each VM a status dot and submenu, follows Windows light and dark mode, and notifies you when a screenshot or a background operation fails. — [@Nwflower](https://github.com/Nwflower)", + "Sidebar and empty-preview icons match the macOS version. Installers are grouped by major version, older versions are collapsed, and failed loads can be retried. — [@Nwflower](https://github.com/Nwflower)", + "Reduce 4K preview memory use and clear background resources for deleted VMs and expired tasks from long-running sessions. — [@Nwflower](https://github.com/Nwflower)", + "Load pages and dialogs on demand to reduce UI refresh and graphics overhead. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Correct storage accounting so both VM files and other data-folder files appear in usage totals. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Chores", + "items": [ + "Change the client license from MIT to Apache-2.0 and provide both standalone EXE and ZIP downloads. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.5", + "name": "Reims-Go v0.2.5", + "published_at": "2026-11-29T10:03:27Z", + "date": "2026-11-29", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.5", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.5-windows-amd64.exe", + "size": 14887936, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.5/reims-go-v0.2.5-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.5/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "运行时下载和更新检查可在 GitHub 不可达时自动回退到 GitCode 镜像。 — [@Nwflower](https://github.com/Nwflower)", + "底部状态栏空闲时显示宿主机内存占用、可用内存、数据盘剩余空间和运行中虚拟机数量。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "重新布局虚拟机主页,集中显示屏幕预览、规格、连接和可复制的技术信息。日志抽屉可拖拽调整高度。 — [@Nwflower](https://github.com/Nwflower)", + "「宿主与运行时」更名为「内核」。应用设置移到独立页面,可选择浅色、深色或跟随系统。 — [@Nwflower](https://github.com/Nwflower)", + "下载检查遵循 Windows 系统代理,在 GitHub API 限流时回退到网页解析,并提供重试。 — [@Nwflower](https://github.com/Nwflower)", + "按实际图形后端显示虚拟机窗口快捷键。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "内置 Inter Variable 并调整 Windows 中英文字体回退,修复默认字重偏轻和混排不一致的问题。 — [@Nwflower](https://github.com/Nwflower)", + "修复 GitCode 将 alpha 运行时误标为正式版时,稳定通道错误提示更新的问题。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Runtime downloads and update checks fall back to the GitCode mirror when GitHub is unreachable. — [@Nwflower](https://github.com/Nwflower)", + "The idle status bar shows host memory usage, available memory, free space on the data drive, and the number of running VMs. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "Redesign the VM overview around its display preview, specs, connections, and copyable details. Drag to resize the log drawer. — [@Nwflower](https://github.com/Nwflower)", + "Rename Host and Runtime to Kernel. Move application settings to a dedicated page with light, dark, and system appearance options. — [@Nwflower](https://github.com/Nwflower)", + "Download checks follow the Windows proxy, fall back to GitHub web pages when API rate-limited, and can be retried. — [@Nwflower](https://github.com/Nwflower)", + "Show VM window shortcuts for the active graphics backend. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Bundle Inter Variable and adjust Windows font fallback to fix overly light default text and inconsistent Chinese and English typesetting. — [@Nwflower](https://github.com/Nwflower)", + "Fix stable runtime update alerts caused by GitCode mislabeling an alpha as a stable release. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.4", + "name": "Reims-Go v0.2.4", + "published_at": "2026-11-29T07:37:18Z", + "date": "2026-11-29", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.4", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.4-windows-amd64.exe", + "size": 14761472, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.4/reims-go-v0.2.4-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.4/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "宿主页显示 Windows 处理器计划是程序优先还是后台服务优先,并可直接打开相应的管理员设置。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "将全屏设为分辨率选项,合并原有的独立全屏开关。 — [@Nwflower](https://github.com/Nwflower)", + "根据屏幕能容纳的尺寸推荐 HiDPI 分辨率,并显示「看起来像 1280 × 800」等逻辑尺寸。无法进入 HiDPI 时提供提示。 — [@Nwflower](https://github.com/Nwflower)", + "虚拟机自行关机或退出时,界面立即更新为已停止。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "正确读取已保存的分辨率、显示器数量、VMware SVGA 后端和不限时的关机等待。多显示器配置可改回一块。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "The host page shows whether Windows processor scheduling favors programs or background services, with a shortcut to the administrator settings. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "Make Fullscreen a resolution option and fold the separate fullscreen switch into it. — [@Nwflower](https://github.com/Nwflower)", + "Recommend HiDPI sizes that fit the screen, label their effective size such as “Looks like 1280 × 800,” and show guidance when HiDPI is unavailable. — [@Nwflower](https://github.com/Nwflower)", + "Update the VM status to stopped as soon as the VM shuts down or exits on its own. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Read saved resolution, display count, VMware SVGA, and unlimited shutdown wait correctly. Multi-display configurations can return to one display. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "升级提示", + "items": [ + "以前保存过非 1920 × 1080 分辨率的虚拟机,升级后设置页会显示真实的值,不再一律显示 1920 × 1080;", + "想让 macOS 文字更清晰,可在「设置 › 图形与显示器」里选带 HiDPI 标记的分辨率或「全屏」,下次启动生效。" + ] + } + ] + } + }, + { + "tag": "v0.2.3", + "name": "Reims-Go v0.2.3", + "published_at": "2026-11-29T05:54:55Z", + "date": "2026-11-29", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.3", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-v0.2.3-windows-amd64.exe", + "size": 14754304, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.3/reims-go-v0.2.3-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.3/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "命令行并入 `reims-go.exe`。双击打开界面,传入子命令即可在终端使用。 — [@Nwflower](https://github.com/Nwflower)", + "从 CLI 启动的虚拟机由客户端托管。界面未打开时会在托盘启动,提供剪贴板、共享目录和 Windows 10 自动冷重启。 — [@Nwflower](https://github.com/Nwflower)", + "可按虚拟机只读共享 Windows 本地磁盘,默认关闭。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "再次双击客户端会唤起已有窗口。 — [@Nwflower](https://github.com/Nwflower)", + "减少虚拟机状态查询。缩略图生成改为每 15 秒刷新,虚拟机窗口在前台时暂停截取。 — [@Nwflower](https://github.com/Nwflower)", + "CLI 启动失败时直接显示原因。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "移除", + "items": [ + "停止单独分发 CLI 可执行文件。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Use `reims-go.exe` for both modes. Double-click to open the GUI or pass a subcommand to run it in a terminal. — [@Nwflower](https://github.com/Nwflower)", + "The client manages VMs started from the CLI. If the window is closed, it starts in the tray so clipboard sharing, shared folders, and Windows 10 cold restarts remain available. — [@Nwflower](https://github.com/Nwflower)", + "Share Windows local drives read-only per VM. The option is off by default. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "Launching the client again raises the existing window. — [@Nwflower](https://github.com/Nwflower)", + "Reduce VM status polling, refresh thumbnails every 15 seconds, and pause capture while the VM window is in the foreground. — [@Nwflower](https://github.com/Nwflower)", + "Print the cause of a failed VM launch directly in the CLI. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Removals", + "items": [ + "Stop shipping a separate CLI executable. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "升级提示", + "items": [ + "升级前请先从托盘退出旧版 Reims-Go,否则从命令行启动虚拟机时无法交给新版托管;", + "在 PowerShell 或 cmd 里手动输入命令时,提示符会先返回;加 `| Out-Host` 可以等命令结束并拿到退出码。脚本和管道调用不受影响。" + ] + } + ] + } + }, + { + "tag": "v0.2.2", + "name": "Reims-Go v0.2.2", + "published_at": "2026-11-28T17:55:16Z", + "date": "2026-11-28", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.2", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-cli-v0.2.2-windows-amd64.exe", + "size": 7819776, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.2/reims-go-cli-v0.2.2-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.2/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "Guest Tools 2.0 支持图片剪贴板,可在 macOS 内直接挂载共享目录。 — [@Nwflower](https://github.com/Nwflower)", + "可向虚拟机发送中文和 emoji,也可使用宿主机输入法直接输入。 — [@Nwflower](https://github.com/Nwflower)", + "关闭客户端窗口后可在托盘驻留,并从托盘启停虚拟机。 — [@Nwflower](https://github.com/Nwflower)", + "提供 macOS 防休眠开关。 — [@Nwflower](https://github.com/Nwflower)", + "虚拟机详情显示实时 CPU、内存、磁盘占用、运行时长和屏幕缩略图。 — [@Nwflower](https://github.com/Nwflower)", + "根据显示器分辨率和缩放推荐 HiDPI 分辨率。 — [@Nwflower](https://github.com/Nwflower)", + "可预设 macOS 系统语言,应用到恢复模式和设置助理。 — [@Nwflower](https://github.com/Nwflower)", + "虚拟磁盘可在停机时扩容或回收未用空间。 — [@Nwflower](https://github.com/Nwflower)", + "可切换音频后端,并检查宿主机的播放和录音设备。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "设置面板采用 macOS 系统设置式布局,改动可逐项撤销。 — [@Nwflower](https://github.com/Nwflower)", + "缩略图改用更快的格式,减少截图造成的卡顿。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "问题修复", + "items": [ + "修正运行中虚拟机的状态识别,使相应的提示和操作保护正常生效。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "其他变更", + "items": [ + "运行时候选通道改名为 alpha,并按日构建。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Guest Tools 2.0 adds image clipboard support and mounts shared directories directly in macOS. — [@Nwflower](https://github.com/Nwflower)", + "Send Chinese text and emoji to a VM, or type with the host's input method. — [@Nwflower](https://github.com/Nwflower)", + "Keep the client in the tray after closing its window and start or stop VMs from there. — [@Nwflower](https://github.com/Nwflower)", + "Toggle macOS sleep prevention. — [@Nwflower](https://github.com/Nwflower)", + "VM details show live CPU, memory, and disk use, uptime, and a screen thumbnail. — [@Nwflower](https://github.com/Nwflower)", + "Recommend HiDPI resolutions from the host display's resolution and scale. — [@Nwflower](https://github.com/Nwflower)", + "Set the macOS language in advance for Recovery and Setup Assistant. — [@Nwflower](https://github.com/Nwflower)", + "Expand virtual disks or reclaim unused space while the VM is stopped. — [@Nwflower](https://github.com/Nwflower)", + "Switch audio backends and check the host's playback and recording devices. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "The settings panel follows a macOS System Settings layout and can undo changes individually. — [@Nwflower](https://github.com/Nwflower)", + "A faster thumbnail format reduces stutter during capture. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Bug Fixes", + "items": [ + "Detect running VM state correctly so the corresponding prompts and safeguards apply. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Chores", + "items": [ + "Rename the runtime candidate channel to alpha and build it daily. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.1", + "name": "Reims-Go v0.2.1", + "published_at": "2026-11-28T16:01:27Z", + "date": "2026-11-28", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.1", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-cli-v0.2.1-windows-amd64.exe", + "size": 7271936, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.1/reims-go-cli-v0.2.1-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.1/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "离线装机辅助盘自动完成抹盘和安装命令。 — [@Nwflower](https://github.com/Nwflower)", + "一键进入或退出恢复模式,可挂载离线镜像或下载在线恢复镜像。 — [@Nwflower](https://github.com/Nwflower)", + "Guest Tools 提供 Windows 与 macOS 双向剪贴板和共享文件夹。 — [@Nwflower](https://github.com/Nwflower)", + "可从已关机的虚拟机快速派生独立副本。 — [@Nwflower](https://github.com/Nwflower)", + "新建虚拟机时可导入 VMDK 或 RAW 磁盘。 — [@Nwflower](https://github.com/Nwflower)", + "一键导出已脱敏的排障日志包。 — [@Nwflower](https://github.com/Nwflower)", + "宿主页显示客户端版本并检查更新。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "新建虚拟机默认使用 NVMe,现有虚拟机可一键迁移。 — [@Nwflower](https://github.com/Nwflower)", + "CPU 亲和性支持三层混合核心架构。虚拟 CPU 多于性能核时,可自动避开低功耗核。 — [@Nwflower](https://github.com/Nwflower)", + "数据目录位于外置盘或网络盘,或宿主机内存负荷过高时,客户端给出提示。 — [@Nwflower](https://github.com/Nwflower)", + "客户端临时文件集中写到所选数据目录。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "安全", + "items": [ + "Windows 10 冷重启的控制通道仅向宿主机开放。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "The offline installation helper disk runs the erase and install commands automatically. — [@Nwflower](https://github.com/Nwflower)", + "Enter or exit Recovery in one click, and mount an offline image or download an online recovery image. — [@Nwflower](https://github.com/Nwflower)", + "Guest Tools provides bidirectional clipboard sharing and shared folders between Windows and macOS. — [@Nwflower](https://github.com/Nwflower)", + "Quickly create an independent copy of a stopped VM. — [@Nwflower](https://github.com/Nwflower)", + "Import VMDK or RAW disks when creating a VM. — [@Nwflower](https://github.com/Nwflower)", + "Export a redacted troubleshooting bundle in one click. — [@Nwflower](https://github.com/Nwflower)", + "The host page shows the client version and checks for updates. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "New VMs default to NVMe. Existing VMs can migrate to NVMe in one click. — [@Nwflower](https://github.com/Nwflower)", + "CPU affinity handles three-tier hybrid CPUs and can avoid low-power cores when vCPUs outnumber performance cores. — [@Nwflower](https://github.com/Nwflower)", + "Warn when the data folder is on external or network storage or the host is under memory pressure. — [@Nwflower](https://github.com/Nwflower)", + "Keep the client's temporary files in the chosen data folder. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Security", + "items": [ + "Limit the Windows 10 cold-restart control channel to the host. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.2.0", + "name": "reims-go v0.2.0", + "published_at": "2026-11-28T12:15:11Z", + "date": "2026-11-28", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.0", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-cli-v0.2.0-windows-amd64.exe", + "size": 7670784, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.0/reims-go-cli-v0.2.0-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.0/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "「安装包」页可下载、暂停、续传和删除离线安装包。 — [@Nwflower](https://github.com/Nwflower)", + "首次启动检查 WHPX、显卡和内存,并引导安装运行时。 — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "体验优化", + "items": [ + "默认使用离线安装包,安装引导简化为三步。 — [@Nwflower](https://github.com/Nwflower)", + "按 Windows 可用内存推荐虚拟机内存,在创建、修改和启动前检查。 — [@Nwflower](https://github.com/Nwflower)", + "新建向导先提示重名并增加配置确认页,确认后在后台创建。 — [@Nwflower](https://github.com/Nwflower)", + "宿主页将运行时归并到一个列表,并缓存远程版本列表 10 分钟以减少 API 请求。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Download, pause, resume, and delete offline installers from Installers. — [@Nwflower](https://github.com/Nwflower)", + "First launch checks WHPX, graphics, and memory before guiding you through runtime installation. — [@Nwflower](https://github.com/Nwflower)" + ] + }, + { + "title": "Improvements", + "items": [ + "Default to offline installers and streamline the installation guide to three steps. — [@Nwflower](https://github.com/Nwflower)", + "Recommend VM memory based on Windows memory availability and check it before creation, configuration changes, and startup. — [@Nwflower](https://github.com/Nwflower)", + "The creation wizard flags duplicate names, shows a confirmation page, and creates the VM in the background after confirmation. — [@Nwflower](https://github.com/Nwflower)", + "Consolidate runtimes into one list on the host page and cache the remote list for 10 minutes to reduce API requests. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "v0.1.0", + "name": "reims-go v0.1.0", + "published_at": "2026-11-28T11:52:24Z", + "date": "2026-11-28", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.1.0", + "prerelease": false, + "channel": "stable", + "exe": { + "name": "reims-go-cli-v0.1.0-windows-amd64.exe", + "size": 7669248, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.1.0/reims-go-cli-v0.1.0-windows-amd64.exe" + }, + "zip": null, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.1.0/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "新增功能", + "items": [ + "首次发布面向 Windows x64 的单文件桌面客户端,可启动支持 GPU 加速的 macOS 虚拟机。 — [@Nwflower](https://github.com/Nwflower)", + "支持虚拟机列表、启动和关机、分组设置和分步新建。 — [@Nwflower](https://github.com/Nwflower)", + "支持下载、暂停和续传离线安装包。 — [@Nwflower](https://github.com/Nwflower)", + "提供稳定版和候选版的运行时在线安装。 — [@Nwflower](https://github.com/Nwflower)", + "提供宿主体检,虚拟机启动后可自动绑定到性能核。 — [@Nwflower](https://github.com/Nwflower)", + "Windows 10 宿主机可在客体内部重启时自动执行虚拟机冷重启。 — [@Nwflower](https://github.com/Nwflower)" + ] + } + ], + "en-US": [ + { + "title": "New Features", + "items": [ + "Initial single-file desktop client for Windows x64, with GPU-accelerated macOS VMs. — [@Nwflower](https://github.com/Nwflower)", + "List, start, stop, and configure VMs, or create one with a step-by-step wizard. — [@Nwflower](https://github.com/Nwflower)", + "Download, pause, and resume offline installers. — [@Nwflower](https://github.com/Nwflower)", + "Install stable or candidate runtimes online. — [@Nwflower](https://github.com/Nwflower)", + "Run host diagnostics and automatically pin VMs to performance cores. — [@Nwflower](https://github.com/Nwflower)", + "On Windows 10, automatically cold-restart the VM when the guest requests a restart. — [@Nwflower](https://github.com/Nwflower)" + ] + } + ] + } + }, + { + "tag": "dev", + "name": "Reims-Go Dev (v0.2.13-dev-a3a2ffc)", + "published_at": "2026-11-30T07:21:21Z", + "date": "2026-11-30", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/dev", + "prerelease": true, + "channel": "dev", + "exe": { + "name": "reims-go-v0.2.13-dev-a3a2ffc-windows-amd64.exe", + "size": 21458432, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/dev/reims-go-v0.2.13-dev-a3a2ffc-windows-amd64.exe" + }, + "zip": { + "name": "reims-go-v0.2.13-dev-a3a2ffc-windows-amd64.zip", + "size": 8524594, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/dev/reims-go-v0.2.13-dev-a3a2ffc-windows-amd64.zip" + }, + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/dev/SHA256SUMS.txt", + "sections": { + "zh-CN": [ + { + "title": "自 v0.2.12 以来的提交", + "items": [ + "`ff99d8d` feat(host,ui): add opt-in Hyper-V boot switch and hypervisor launch detection (#122)", + "`2a153b4` docs: require upgrade compatibility checks in PR review", + "`cb9ee87` fix(guesttools): verify Windows clipboard files before publishing", + "`b21a353` feat: offer macOS app windows as an optional built-in plugin", + "`619ac88` fix: dispose plugin consumers before required providers", + "`ce866ca` feat: remove the Windows frame from macOS app windows", + "`8334170` test: include window reporter cleanup in folder fixtures", + "`a9b2553` fix: synchronize clipboard for macOS app windows", + "`3bfbc36` test: resolve registered VM key in freshness check", + "`d36d3ed` test: make app window freshness check deterministic", + "`e281e43` fix: release app window input on close", + "`9f6c9aa` feat: open a macOS app in a separate Windows window", + "`e9b3758` chore: record the macOS app window feature", + "`e2c930c` feat(guesttools): sync Windows copied files to macOS clipboard via zero-copy WebDAV (Agent v15)", + "`c77ff5c` docs: include go-winio MIT notice", + "`10a0ac6` fix: reap orphaned computer-use VMs on startup", + "`1880593` fix: close remaining computer-use lifecycle gaps", + "`33fde6b` fix: harden computer-use lifecycle and control channel", + "`0dae99c` fix(clipboard): preserve active CF_HDROP staging batch during expiry prune", + "`8c823d9` fix(clipboard): align Guest Tools v14 changelog and rebind staging dir after setup", + "`f6989a4` feat(guesttools): add bidirectional file and folder clipboard sync" + ] + } + ], + "en-US": [ + { + "title": "自 v0.2.12 以来的提交", + "items": [ + "`ff99d8d` feat(host,ui): add opt-in Hyper-V boot switch and hypervisor launch detection (#122)", + "`2a153b4` docs: require upgrade compatibility checks in PR review", + "`cb9ee87` fix(guesttools): verify Windows clipboard files before publishing", + "`b21a353` feat: offer macOS app windows as an optional built-in plugin", + "`619ac88` fix: dispose plugin consumers before required providers", + "`ce866ca` feat: remove the Windows frame from macOS app windows", + "`8334170` test: include window reporter cleanup in folder fixtures", + "`a9b2553` fix: synchronize clipboard for macOS app windows", + "`3bfbc36` test: resolve registered VM key in freshness check", + "`d36d3ed` test: make app window freshness check deterministic", + "`e281e43` fix: release app window input on close", + "`9f6c9aa` feat: open a macOS app in a separate Windows window", + "`e9b3758` chore: record the macOS app window feature", + "`e2c930c` feat(guesttools): sync Windows copied files to macOS clipboard via zero-copy WebDAV (Agent v15)", + "`c77ff5c` docs: include go-winio MIT notice", + "`10a0ac6` fix: reap orphaned computer-use VMs on startup", + "`1880593` fix: close remaining computer-use lifecycle gaps", + "`33fde6b` fix: harden computer-use lifecycle and control channel", + "`0dae99c` fix(clipboard): preserve active CF_HDROP staging batch during expiry prune", + "`8c823d9` fix(clipboard): align Guest Tools v14 changelog and rebind staging dir after setup", + "`f6989a4` feat(guesttools): add bidirectional file and folder clipboard sync" + ] + } + ] + } + } + ] +} diff --git a/public/data/releases.json b/public/data/releases.json index a8bc8b0..89fe644 100644 --- a/public/data/releases.json +++ b/public/data/releases.json @@ -1,19 +1,19 @@ { - "synced_at": "2026-12-02T00:00:00Z", - "stars": 1600, - "version": "v0.2.11", - "published_at": "2026-12-01T00:00:00Z", - "html_url": "https://github.com/Nwflower/Reims-Go/releases/latest", + "synced_at": "2026-12-03T06:51:34.121Z", + "stars": 1868, + "version": "v0.2.12", + "published_at": "2026-12-02T20:42:58Z", + "html_url": "https://github.com/Nwflower/Reims-Go/releases/tag/v0.2.12", "exe": { - "name": "reims-go-v0.2.11-windows-amd64.exe", - "size": 19312640, - "url": "https://github.com/Nwflower/Reims-Go/releases/latest/download/reims-go-v0.2.11-windows-amd64.exe" + "name": "reims-go-v0.2.12-windows-amd64.exe", + "size": 21023744, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/reims-go-v0.2.12-windows-amd64.exe" }, "zip": { - "name": "reims-go-v0.2.11-windows-amd64.zip", - "size": 18874368, - "url": "https://github.com/Nwflower/Reims-Go/releases/latest/download/reims-go-v0.2.11-windows-amd64.zip" + "name": "reims-go-v0.2.12-windows-amd64.zip", + "size": 8362065, + "url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/reims-go-v0.2.12-windows-amd64.zip" }, - "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/latest/download/SHA256SUMS.txt", - "sha256_sums": "" + "sha256_url": "https://github.com/Nwflower/Reims-Go/releases/download/v0.2.12/SHA256SUMS.txt", + "sha256_sums": "9bb1cbc25085acd1b2b4aed4dd422775030d7829b865e15ee79a301e161ee206 reims-go-v0.2.12-windows-amd64.exe\nf59f22b535a4c87b49b2d536d5bcb7069f9f754790da3c1dc24178dd07dbd9cb reims-go-v0.2.12-windows-amd64.zip" } diff --git a/scripts/sync-external-data.mjs b/scripts/sync-external-data.mjs index 86ed073..2149c9e 100644 --- a/scripts/sync-external-data.mjs +++ b/scripts/sync-external-data.mjs @@ -1,12 +1,99 @@ -import { writeFileSync, mkdirSync } from 'node:fs'; +import { mkdirSync, writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; const DATA_DIR = resolve(process.cwd(), 'public/data'); mkdirSync(DATA_DIR, { recursive: true }); +const SKIP_SECTIONS = /^(下载|download|downloads|已知限制|known limitations|许可证|license|构建与许可证)/i; + +function normalizeTitle(raw) { + return String(raw || '') + .replace(/<[^>]+>/g, '') + .replace(/^#+\s*/, '') + .trim(); +} + +function parseSections(markdown) { + const lines = String(markdown || '').replace(/\r\n/g, '\n').split('\n'); + const sections = []; + let current = null; + let skipping = false; + + for (const rawLine of lines) { + const line = rawLine.trim(); + if (!line) continue; + + const htmlHeading = line.match(/^]*>(.*?)<\/h[2-4]>$/i); + const mdHeading = !htmlHeading ? line.match(/^#{2,4}\s+(.+)$/) : null; + + if (htmlHeading || mdHeading) { + const title = normalizeTitle(htmlHeading ? htmlHeading[1] : mdHeading[1]); + if (!title || SKIP_SECTIONS.test(title)) { + skipping = true; + current = null; + } else { + skipping = false; + current = { title, items: [] }; + sections.push(current); + } + continue; + } + + if (skipping || /^\[中文\]\(#cn-/i.test(line) || line.startsWith('>')) continue; + + const bullet = line.match(/^[-*]\s+(.+)$/); + if (bullet && bullet[1].trim()) { + if (!current) { + current = { title: '', items: [] }; + sections.push(current); + } + current.items.push(bullet[1].trim()); + } + } + + return sections.filter((s) => s.items.length > 0); +} + +function parseBilingualBody(body) { + const text = String(body || '').replace(/\r\n/g, '\n'); + if (!text.trim()) return { 'zh-CN': [], 'en-US': [] }; + + const cn = text.match(/]*\bid=["']cn-[^"']*["'][^>]*>/i); + const en = text.match(/]*\bid=["']en-[^"']*["'][^>]*>/i); + + if (cn && en && cn.index !== undefined && en.index !== undefined) { + const cnChunk = cn.index < en.index ? text.slice(cn.index, en.index) : text.slice(cn.index); + const enChunk = en.index > cn.index ? text.slice(en.index) : text.slice(en.index, cn.index); + const zhSections = parseSections(cnChunk); + const enSections = parseSections(enChunk); + return { + 'zh-CN': zhSections.length ? zhSections : enSections, + 'en-US': enSections.length ? enSections : zhSections, + }; + } + + const single = parseSections(text); + return { 'zh-CN': single, 'en-US': single }; +} + +function classifyChannel(tag, prerelease) { + const lower = tag.toLowerCase(); + if (lower === 'dev' || lower.includes('-dev')) return 'dev'; + if (prerelease || lower.includes('alpha') || lower.includes('beta') || lower.includes('rc')) return 'alpha'; + return 'stable'; +} + +function isClientTag(tag) { + if (!tag || /^runtime-/i.test(tag)) return false; + return /^v\d+\.\d+/i.test(tag) || /^dev$/i.test(tag) || /^alpha/i.test(tag); +} + async function fetchJson(url) { const res = await fetch(url, { - headers: { 'User-Agent': 'Reims-Go-Landing-Sync/1.0' }, + headers: { + Accept: 'application/vnd.github+json', + 'User-Agent': 'Reims-Go-Landing-Sync/2.0', + }, }); if (!res.ok) throw new Error(`${res.status} ${url}`); return res.json(); @@ -14,7 +101,7 @@ async function fetchJson(url) { async function fetchText(url) { const res = await fetch(url, { - headers: { 'User-Agent': 'Reims-Go-Landing-Sync/1.0' }, + headers: { 'User-Agent': 'Reims-Go-Landing-Sync/2.0' }, }); if (!res.ok) throw new Error(`${res.status} ${url}`); return res.text(); @@ -22,39 +109,95 @@ async function fetchText(url) { async function syncReleases() { try { - const [repo, rel] = await Promise.all([ + const [repo, rawReleases] = await Promise.all([ fetchJson('https://api.github.com/repos/Nwflower/Reims-Go'), - fetchJson('https://api.github.com/repos/Nwflower/Reims-Go/releases/latest'), + fetchJson('https://api.github.com/repos/Nwflower/Reims-Go/releases?per_page=25'), ]); - const assets = Array.isArray(rel.assets) ? rel.assets : []; - const exeAsset = assets.find((a) => /windows-amd64\.exe$/i.test(a.name)); - const zipAsset = assets.find((a) => /windows-amd64\.zip$/i.test(a.name)); - const shaAsset = assets.find((a) => /^SHA256SUMS\.txt$/i.test(a.name)); + + const list = Array.isArray(rawReleases) ? rawReleases : []; + const entries = []; + let latestStableRaw = null; + + for (const rel of list) { + if (!rel || rel.draft) continue; + const tag = String(rel.tag_name || '').trim(); + if (!isClientTag(tag)) continue; + + const assets = Array.isArray(rel.assets) ? rel.assets : []; + const exeAsset = assets.find((a) => /windows-amd64\.exe$/i.test(a.name)); + const zipAsset = assets.find((a) => /windows-amd64\.zip$/i.test(a.name)); + const shaAsset = assets.find((a) => /^SHA256SUMS\.txt$/i.test(a.name)); + const prerelease = Boolean(rel.prerelease); + const channel = classifyChannel(tag, prerelease); + const published = rel.published_at || rel.created_at || ''; + + if (channel === 'stable' && !latestStableRaw) { + latestStableRaw = { rel, exeAsset, zipAsset, shaAsset }; + } + + entries.push({ + tag, + name: String(rel.name || `Reims-Go ${tag}`).trim(), + published_at: published, + date: published ? published.slice(0, 10) : '', + html_url: rel.html_url || `https://github.com/Nwflower/Reims-Go/releases/tag/${encodeURIComponent(tag)}`, + prerelease, + channel, + exe: exeAsset ? { name: exeAsset.name, size: exeAsset.size, url: exeAsset.browser_download_url } : null, + zip: zipAsset ? { name: zipAsset.name, size: zipAsset.size, url: zipAsset.browser_download_url } : null, + sha256_url: shaAsset?.browser_download_url || null, + sections: parseBilingualBody(rel.body || ''), + }); + } + + entries.sort((a, b) => { + if (a.channel === 'stable' && b.channel !== 'stable') return -1; + if (a.channel !== 'stable' && b.channel === 'stable') return 1; + return (b.published_at || '').localeCompare(a.published_at || ''); + }); + + const top = latestStableRaw?.rel; + const exeAsset = latestStableRaw?.exeAsset; + const zipAsset = latestStableRaw?.zipAsset; + const shaAsset = latestStableRaw?.shaAsset; + let sha256Text = ''; - if (shaAsset?.browser_download_url) { + const digestLines = [exeAsset, zipAsset] + .filter((a) => a?.name && a?.digest && /^sha256:[a-f0-9]{64}$/i.test(a.digest)) + .map((a) => `${a.digest.replace(/^sha256:/i, '')} ${a.name}`); + if (digestLines.length > 0) { + sha256Text = digestLines.join('\n'); + } else if (shaAsset?.browser_download_url) { try { sha256Text = await fetchText(shaAsset.browser_download_url); } catch { sha256Text = ''; } } - const payload = { - synced_at: new Date().toISOString(), + + const nowIso = new Date().toISOString(); + const latest = { + synced_at: nowIso, stars: typeof repo.stargazers_count === 'number' ? repo.stargazers_count : 1600, - version: rel.tag_name || 'v0.2.11', - published_at: rel.published_at || '2026-12-01T00:00:00Z', - html_url: rel.html_url || 'https://github.com/Nwflower/Reims-Go/releases/latest', - exe: exeAsset - ? { name: exeAsset.name, size: exeAsset.size, url: exeAsset.browser_download_url } - : null, - zip: zipAsset - ? { name: zipAsset.name, size: zipAsset.size, url: zipAsset.browser_download_url } - : null, + version: top?.tag_name || entries[0]?.tag || 'v0.2.12', + published_at: top?.published_at || nowIso, + html_url: top?.html_url || 'https://github.com/Nwflower/Reims-Go/releases/latest', + exe: exeAsset ? { name: exeAsset.name, size: exeAsset.size, url: exeAsset.browser_download_url } : null, + zip: zipAsset ? { name: zipAsset.name, size: zipAsset.size, url: zipAsset.browser_download_url } : null, sha256_url: shaAsset?.browser_download_url || null, sha256_sums: sha256Text, }; - writeFileSync(resolve(DATA_DIR, 'releases.json'), JSON.stringify(payload, null, 2) + '\n', 'utf8'); - console.log(`[sync] releases.json updated: ${payload.version} (${payload.stars} stars)`); + + const bundle = { + source: 'static-fallback', + synced_at: nowIso, + latest, + entries, + }; + + writeFileSync(resolve(DATA_DIR, 'releases.json'), JSON.stringify(latest, null, 2) + '\n', 'utf8'); + writeFileSync(resolve(DATA_DIR, 'releases-bundle.json'), JSON.stringify(bundle, null, 2) + '\n', 'utf8'); + console.log(`[sync] releases.json & releases-bundle.json updated: ${latest.version} (${latest.stars} stars, ${entries.length} releases)`); } catch (err) { console.warn('[sync] skipped releases fetch, keeping local fallback:', err.message); } diff --git a/src/components/brand/VersionArt.tsx b/src/components/brand/VersionArt.tsx index 317bf8a..9e0e93b 100644 --- a/src/components/brand/VersionArt.tsx +++ b/src/components/brand/VersionArt.tsx @@ -1,68 +1,133 @@ import React, { useId } from 'react'; +/** + * Ported 1:1 from Reims-Go desktop client `VersionArt`: + * Frosted-glass macOS major version digits over soft colour folds (tile & 16:10 screen shapes). + */ type Palette = [string, string, string, string]; const PALETTES: Record = { - 26: ['#f6e8cf', '#ebc8b4', '#a597d8', '#5450b4'], - 15: ['#ddf2e8', '#86ccb8', '#3f8ea3', '#22446e'], - 14: ['#ffe5d2', '#f5a48d', '#d6688f', '#6a3f8e'], - 13: ['#fff1cc', '#f7b95e', '#df7140', '#83372b'], - 12: ['#e4ecff', '#91b1f4', '#5b70df', '#2f3592'], + 26: ['#f6e8cf', '#ebc8b4', '#a597d8', '#5450b4'], // sand -> rose -> lavender (Tahoe) + 15: ['#ddf2e8', '#86ccb8', '#3f8ea3', '#22446e'], // mint -> teal (Sequoia) + 14: ['#ffe5d2', '#f5a48d', '#d6688f', '#6a3f8e'], // peach -> coral -> plum (Sonoma) + 13: ['#fff1cc', '#f7b95e', '#df7140', '#83372b'], // cream -> amber (Ventura) + 12: ['#e4ecff', '#91b1f4', '#5b70df', '#2f3592'], // ice -> blue (Monterey) + 11: ['#e5f5ff', '#88c9ee', '#3f86d0', '#233f88'], // sky -> ocean (Big Sur) }; const NEUTRAL: Palette = ['#eef0f4', '#c9ceda', '#8d95a9', '#4b5266']; +function paletteFor(major: number | null): Palette { + if (major === null) return NEUTRAL; + return PALETTES[major] || PALETTES[11]; +} + +function initial(name: string): string { + const ch = Array.from(name.trim().replace(/^macos[\s_-]*/i, ''))[0] ?? 'M'; + return ch.toUpperCase(); +} + +const SHAPES = { + tile: { w: 64, h: 64, size: 38, weight: 700, blur: 2.4, rim: 2.0, shadow: 1.6, glass: 1.55, shade: 0.7 }, + screen: { w: 160, h: 100, size: 76, weight: 600, blur: 3.6, rim: 1.1, shadow: 2.4, glass: 1, shade: 0.36 }, +}; + interface Props { major: number | null; + name?: string; + shape?: 'tile' | 'screen'; size?: number; className?: string; } -export const VersionArt: React.FC = ({ major, size = 24, className }) => { - const uid = useId().replace(/[^a-zA-Z0-9_-]/g, ''); - const p = major && PALETTES[major] ? PALETTES[major] : NEUTRAL; - const label = major !== null ? String(major) : 'M'; +export const VersionArt: React.FC = ({ + major, + name = 'macOS', + shape = 'tile', + size, + className, +}) => { + const id = useId().replace(/[^a-zA-Z0-9_-]/g, ''); + const p = paletteFor(major); + const s = SHAPES[shape]; + const label = major !== null ? String(major) : initial(name); + const fontSize = label.length > 2 ? s.size * 0.72 : label.length === 1 ? s.size * 1.08 : s.size; + const textProps = { + x: s.w / 2, + y: s.h / 2 + fontSize * 0.04, + textAnchor: 'middle' as const, + dominantBaseline: 'central' as const, + fontSize, + fontWeight: s.weight, + letterSpacing: label.length > 1 ? -fontSize * 0.04 : 0, + style: { fontFamily: 'var(--font-sans)', fontVariantNumeric: 'tabular-nums' as const }, + }; + const sx = s.w / 100; + const sy = s.h / 100; return ( diff --git a/src/components/home/HeroReleaseMeta.tsx b/src/components/home/HeroReleaseMeta.tsx new file mode 100644 index 0000000..71d7553 --- /dev/null +++ b/src/components/home/HeroReleaseMeta.tsx @@ -0,0 +1,36 @@ +import React from 'react'; +import { t } from '../../i18n/translations'; +import { localizedPath, type Locale } from '../../i18n/types'; +import { useLatestRelease } from '../../lib/releases'; + +interface Props { + locale: Locale; +} + +export const HeroReleaseMeta: React.FC = ({ locale }) => { + const strings = t(locale); + const { data: release, live } = useLatestRelease(); + const changelogHref = localizedPath(locale, '/changelog'); + + return ( +

+ + + + {strings.hero.metaTail} +

+ ); +}; diff --git a/src/components/home/HeroWindowPreview.tsx b/src/components/home/HeroWindowPreview.tsx index 3d3f05c..35799fe 100644 --- a/src/components/home/HeroWindowPreview.tsx +++ b/src/components/home/HeroWindowPreview.tsx @@ -2,93 +2,377 @@ import { useGSAP } from '@gsap/react'; import gsap from 'gsap'; import { ScrollTrigger } from 'gsap/ScrollTrigger'; import { + Activity, AppWindow, + Camera, Check, + ChevronDown, ChevronRight, + ChevronUp, + Code2, Copy, + CopyPlus, Cpu, + Disc, Download, Ellipsis, + Eraser, + FileCode2, FolderOpen, Globe, HardDrive, Info, + Keyboard, + LifeBuoy, + LoaderCircle, + Maximize2, MemoryStick, Minus, Monitor, Moon, + MoveHorizontal, Network, PanelLeft, Pause, + Pencil, Play, Plus, + Power, Puzzle, + RotateCw, Settings, - ShieldCheck, Square, Sun, Terminal, Upload, X, } from 'lucide-react'; -import React, { useEffect, useRef, useState } from 'react'; +import React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'; import type { Locale } from '../../i18n/types'; +import { useLatestRelease } from '../../lib/releases'; import { VersionArt } from '../brand/VersionArt'; +import { + SimAboutView, + SimCreateVmModal, + SimImagesView, + SimKernelView, + SimPluginsView, + SimSettingsView, + SimVmSettingsModal, +} from './reims-sim/SimSystemViews'; +import { + StatusShape, + TahoeSwitch, + getSimThemeVars, + type AppSelection, + type LogTab, + type SimDownloadTask, + type SimLogLine, + type SimPlugin, + type SimVM, + type SysPageId, +} from './reims-sim/simTypes'; gsap.registerPlugin(useGSAP, ScrollTrigger); -type AppTab = 'vm' | 'images' | 'plugins' | 'kernel' | 'settings' | 'about'; -type VmState = 'stopped' | 'starting' | 'running' | 'suspended'; +const useIsoLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect; + +const DESKTOP_W = 1120; +const DESKTOP_H = 688; +const SYS_IDS: readonly SysPageId[] = ['__images__', '__plugins__', '__kernel__', '__settings__', '__about__']; interface Props { locale: Locale; } +function nowTimeStr(): string { + const d = new Date(); + return `${String(d.getHours()).padStart(2, '0')}:${String(d.getMinutes()).padStart(2, '0')}:${String(d.getSeconds()).padStart(2, '0')}`; +} + +function fmtUptime(sec: number): string { + const m = Math.floor(sec / 60); + const s = sec % 60; + return `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`; +} + +const INITIAL_VMS: SimVM[] = [ + { + id: 'macos-tahoe', + name: 'macos-tahoe', + displayName: '', + major: 26, + state: 'stopped', + cpus: 8, + memoryGb: 8, + diskUsedGb: 54, + diskTotalGb: 128, + resolution: '1080p', + graphics: 'reims-vgpu', + gpuName: 'RTX 4070 Ti', + network: 'shared', + lang: 'zh-CN', + sshPort: 2222, + sshUser: '', + guestToolsAttached: true, + preventSleep: false, + hostDns: true, + captureShortcuts: true, + winToCmd: true, + uptimeSec: 0, + }, + { + id: 'macos-sequoia', + name: 'macos-sequoia', + displayName: '', + major: 15, + state: 'suspended', + cpus: 6, + memoryGb: 8, + diskUsedGb: 46, + diskTotalGb: 128, + resolution: '1440p · 1.5× HiDPI', + graphics: 'reims-vgpu', + gpuName: 'RTX 4070 Ti', + network: 'bridged', + lang: 'zh-CN', + sshPort: 2223, + sshUser: 'dev', + guestToolsAttached: false, + preventSleep: true, + hostDns: false, + captureShortcuts: false, + winToCmd: true, + uptimeSec: 0, + suspendedAt: '14:20', + }, +]; + +const INITIAL_PLUGINS: SimPlugin[] = [ + { + id: 'builtin.driver.reims-macos', + nameZh: '内置 macOS 客体支持', + nameEn: 'Built-in macOS Guest Driver', + descZh: '提供 OpenCore 引导、NVMe 磁盘、Guest Tools v14 互通与生命周期控制', + descEn: 'OpenCore boot, NVMe storage, Guest Tools v14 interop, and VM lifecycle', + version: '1.0.0', + trust: 'builtin', + tier: 'L3', + tone: 'indigo', + enabled: true, + installed: true, + locked: true, + }, + { + id: 'builtin.computer-use', + nameZh: '虚拟机交互(Computer Use & MCP)', + nameEn: 'VM Computer Use & MCP', + descZh: 'v0.2.12 新增:统一处理按虚拟机授权的截图、鼠标键盘输入与 MCP 服务', + descEn: 'New in v0.2.12: per-VM authorized screenshots, pointer/keyboard input & MCP', + version: '0.2.12', + trust: 'builtin', + tier: 'L3', + tone: 'rose', + enabled: true, + installed: true, + }, + { + id: 'builtin.network.npcap', + nameZh: 'Npcap 桥接网络', + nameEn: 'Npcap Bridged Networking', + descZh: '桥接至宿主机有线或 Wi-Fi 网卡,支持运行中切换出口与宿客双向局域网互访', + descEn: 'Bridge VMs to Ethernet/Wi-Fi adapters with live uplink switching & LAN access', + version: '1.83', + trust: 'builtin', + tier: 'L3', + tone: 'emerald', + enabled: true, + installed: true, + }, + { + id: 'builtin.guide.install', + nameZh: '虚拟机窗口安装引导', + nameEn: 'VM Window Install Guide', + descZh: '贴靠虚拟机窗口展示分步装机卡片,支持一键自动键入 Recovery 安装命令', + descEn: 'Docks beside the VM window with one-click Recovery installation commands', + version: '1.2.0', + trust: 'builtin', + tier: 'L4', + tone: 'sky', + enabled: true, + installed: true, + }, + { + id: 'official.lang.zh-tw', + nameZh: '繁体中文语言包', + nameEn: 'Traditional Chinese Locale Pack', + descZh: '官方维护的 zh-TW / zh-HK 正体中文本地化与区域字体栈', + descEn: 'Official zh-TW / zh-HK Traditional Chinese translations and font stack', + version: '1.1.0', + trust: 'official', + tier: 'L1', + tone: 'purple', + enabled: true, + installed: true, + }, + { + id: 'official.theme.nord', + nameZh: 'Nord Polar 极简主题', + nameEn: 'Nord Polar Theme', + descZh: '基于 uiApi 2.0 的低对比度冷色调浅色/深色主题扩展', + descEn: 'Low-glare cool-tone light/dark theme built on uiApi 2.0', + version: '2.0.1', + trust: 'official', + tier: 'L1', + tone: 'amber', + enabled: false, + installed: false, + }, +]; + export const HeroWindowPreview: React.FC = ({ locale }) => { const isZh = locale === 'zh-CN'; - const stageRef = useRef(null); - const windowRef = useRef(null); + const { data: liveRelease } = useLatestRelease(); + const stageRef = useRef(null); + const scaleHostRef = useRef(null); + const windowRef = useRef(null); + const frameRef = useRef(null); + + // Proportional viewport scaler so mobile preserves the authentic Windows desktop app UI + const [availW, setAvailW] = useState(DESKTOP_W); + const [measured, setMeasured] = useState(false); + const [mobileZoomMode, setMobileZoomMode] = useState<'fit' | 'pan'>('fit'); + + // Authentic Desktop App State const [winDark, setWinDark] = useState(false); const [sidebarOpen, setSidebarOpen] = useState(true); - const [tab, setTab] = useState('vm'); - const [vmState, setVmState] = useState('stopped'); - const [preventSleep, setPreventSleep] = useState(false); + const [selected, setSelected] = useState('macos-tahoe'); + const [vms, setVms] = useState(INITIAL_VMS); + const [plugins, setPlugins] = useState(INITIAL_PLUGINS); + const [alphaRuntime, setAlphaRuntime] = useState(true); + const [downloadedVersions, setDownloadedVersions] = useState(['26.1']); + const [downloadTask, setDownloadTask] = useState(null); + const downloadTaskRef = useRef(null); + downloadTaskRef.current = downloadTask; + + // Interactive menus, modals, inline rename, shutdown split mode & log drawer + const [openMenu, setOpenMenu] = useState<'vm' | 'view' | 'help' | 'more' | 'ssh' | 'shutdown' | null>(null); + const [shutdownMode, setShutdownMode] = useState<'stop' | 'forceStop'>('stop'); + const [editingName, setEditingName] = useState(false); + const [nameDraft, setNameDraft] = useState(''); + const renameCancelledRef = useRef(false); const [techOpen, setTechOpen] = useState(false); + const [settingsModalOpen, setSettingsModalOpen] = useState(false); + const [wizardOpen, setWizardOpen] = useState<{ open: boolean; major: number }>({ open: false, major: 26 }); + const [logsOpen, setLogsOpen] = useState(false); - const [channel, setChannel] = useState<'stable' | 'alpha' | 'dev'>('stable'); - const [uptimeSec, setUptimeSec] = useState(0); + const [logTab, setLogTab] = useState('app'); + const [logQuery, setLogQuery] = useState(''); + const [errorsOnly, setErrorsOnly] = useState(false); + const [logLines, setLogLines] = useState([ + { id: 1, ts: '14:38:01', source: 'host', level: 'info', line: 'WHPX=ready gpu="NVIDIA GeForce RTX 4070 Ti" vulkan=1.3.289' }, + { id: 2, ts: '14:38:01', source: 'bridge', level: 'info', line: 'unix control socket active (legacy TCP rejected, 256-bit per-VM token)' }, + { id: 3, ts: '14:38:02', source: 'vm', level: 'info', line: 'inventory loaded: macos-tahoe (stopped), macos-sequoia (suspended)' }, + ]); + const logIdRef = useRef(4); const [toast, setToast] = useState(''); + const toastTimerRef = useRef(null); + const vmTimersRef = useRef>(new Map()); - // Collapse sidebar by default on small mobile screens so main VM view fits immediately - useEffect(() => { - if (window.innerWidth < 768) { - setSidebarOpen(false); - } - }, []); + // Measure outer stage width & sync initial theme before paint to prevent mobile CLS and dark-mode flash + useIsoLayoutEffect(() => { + const syncInitialTheme = () => setWinDark(document.documentElement.getAttribute('data-theme') === 'dark'); + syncInitialTheme(); - // Sync preview appearance with page theme changes (while keeping manual toggle override) - useEffect(() => { - const syncTheme = () => { - setWinDark(document.documentElement.getAttribute('data-theme') === 'dark'); + const el = scaleHostRef.current; + if (!el) return; + const update = () => { + const w = el.clientWidth; + if (w > 0) { + setAvailW(w); + setMeasured(true); + } }; - syncTheme(); - const observer = new MutationObserver(syncTheme); - observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] }); - return () => observer.disconnect(); + update(); + if (typeof ResizeObserver === 'undefined') { + window.addEventListener('resize', update); + return () => window.removeEventListener('resize', update); + } + const ro = new ResizeObserver(update); + ro.observe(el); + return () => ro.disconnect(); }, []); - // Tick uptime when VM is running + // Track subsequent page theme changes useEffect(() => { - if (vmState !== 'running') { - setUptimeSec(0); - return; - } - const id = window.setInterval(() => setUptimeSec((s) => s + 1), 1000); - return () => window.clearInterval(id); - }, [vmState]); + const syncTheme = () => setWinDark(document.documentElement.getAttribute('data-theme') === 'dark'); + const obs = new MutationObserver(syncTheme); + obs.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] }); + return () => obs.disconnect(); + }, []); - // GSAP ScrollTrigger: wide full-bleed horizontal expansion -> smooth settle into crisp interactive desktop window + // Clear pending timers on unmount + useEffect(() => { + return () => { + if (toastTimerRef.current !== null) window.clearTimeout(toastTimerRef.current); + vmTimersRef.current.forEach((timerId) => window.clearTimeout(timerId)); + vmTimersRef.current.clear(); + }; + }, []); + + // Close open popovers on outside pointerdown or Escape key + useEffect(() => { + if (!openMenu) return; + const onDocDown = (e: PointerEvent) => { + if (!(e.target instanceof Element) || !e.target.closest('[data-sim-menu]')) { + setOpenMenu(null); + } + }; + const onKeyDown = (e: KeyboardEvent) => { + if (e.key === 'Escape') setOpenMenu(null); + }; + document.addEventListener('pointerdown', onDocDown); + window.addEventListener('keydown', onKeyDown); + return () => { + document.removeEventListener('pointerdown', onDocDown); + window.removeEventListener('keydown', onKeyDown); + }; + }, [openMenu]); + + // Tick uptime for running VMs + const hasRunning = vms.some((x) => x.state === 'running'); + useEffect(() => { + if (!hasRunning) return; + const id = window.setInterval(() => { + setVms((prev) => + prev.map((vm) => (vm.state === 'running' ? { ...vm, uptimeSec: vm.uptimeSec + 1 } : vm)), + ); + }, 1000); + return () => window.clearInterval(id); + }, [hasRunning]); + + // Simulate parallel chunk image download progress (pure state updates, side effects outside updater) + useEffect(() => { + if (!downloadTask || downloadTask.paused) return; + const id = window.setInterval(() => { + const cur = downloadTaskRef.current; + if (!cur || cur.paused) return; + const nextPct = cur.percent + 4.5; + if (nextPct >= 100) { + downloadTaskRef.current = null; + setDownloadTask(null); + setDownloadedVersions((list) => (list.includes(cur.version) ? list : [...list, cur.version])); + pushLog('installer', 'info', `verified chunklist & saved ${cur.title} (${cur.version})`); + notify(isZh ? `${cur.title} 离线镜像已下载并校验完成` : `${cur.title} image verified and ready`); + } else { + setDownloadTask({ ...cur, percent: nextPct, speedMb: 78 + Math.sin(nextPct) * 14 }); + } + }, 280); + return () => window.clearInterval(id); + }, [downloadTask?.version, downloadTask?.paused, isZh]); + + // Desktop-only subtle ScrollTrigger scale settle useGSAP( () => { const stage = stageRef.current; @@ -96,26 +380,20 @@ export const HeroWindowPreview: React.FC = ({ locale }) => { if (!stage || !win) return; const mm = gsap.matchMedia(); - mm.add('(min-width: 1024px) and (prefers-reduced-motion: no-preference)', () => { + mm.add('(min-width: 1180px) and (prefers-reduced-motion: no-preference)', () => { gsap.fromTo( win, + { scale: 1.035, y: 8, transformOrigin: '50% 0%' }, { - scale: 1.04, - y: 8, - borderRadius: 10, - transformOrigin: '50% 0%', - }, - { - scale: 0.87, + scale: 0.96, y: 0, - borderRadius: 18, transformOrigin: '50% 0%', ease: 'none', scrollTrigger: { trigger: stage, start: 'top 86%', end: 'top 14%', - scrub: 0.6, + scrub: 0.55, }, }, ); @@ -130,16 +408,28 @@ export const HeroWindowPreview: React.FC = ({ locale }) => { { scope: stageRef }, ); - // Recalculate ScrollTrigger coordinates cleanly after Astro View Transitions - useEffect(() => { - const onPageLoad = () => ScrollTrigger.refresh(); - document.addEventListener('astro:page-load', onPageLoad); - return () => document.removeEventListener('astro:page-load', onPageLoad); - }, []); + const pushLog = (source: string, level: SimLogLine['level'], line: string) => { + setLogLines((prev) => [ + ...prev.slice(-60), + { id: logIdRef.current++, ts: nowTimeStr(), source, level, line }, + ]); + }; const notify = (msg: string) => { setToast(msg); - window.setTimeout(() => setToast((cur) => (cur === msg ? '' : cur)), 2000); + if (toastTimerRef.current !== null) window.clearTimeout(toastTimerRef.current); + toastTimerRef.current = window.setTimeout(() => { + toastTimerRef.current = null; + setToast((cur) => (cur === msg ? '' : cur)); + }, 2200); + }; + + const clearVmTimer = (vmId: string) => { + const existing = vmTimersRef.current.get(vmId); + if (existing !== undefined) { + window.clearTimeout(existing); + vmTimersRef.current.delete(vmId); + } }; const copyText = (text: string, label: string) => { @@ -147,828 +437,1987 @@ export const HeroWindowPreview: React.FC = ({ locale }) => { notify(isZh ? `已复制 ${label}` : `Copied ${label}`); }; - const handleStart = () => { - if (vmState === 'starting') return; - setVmState('starting'); - window.setTimeout(() => { - setVmState('running'); - notify(isZh ? 'macos-tahoe 已启动 · Vulkan 1.3 加速已就绪' : 'macos-tahoe running · Vulkan 1.3 active'); - }, 650); + const isSysPage = (SYS_IDS as readonly string[]).includes(selected); + const selectedVM = useMemo( + () => (!isSysPage ? vms.find((x) => x.id === selected) ?? vms[0] : null), + [isSysPage, vms, selected], + ); + const runningCount = useMemo(() => vms.filter((x) => x.state === 'running').length, [vms]); + + const updateVM = (id: string, patch: Partial) => { + setVms((prev) => prev.map((vm) => (vm.id === id ? { ...vm, ...patch } : vm))); }; - const handleStop = () => { - setVmState('stopped'); - notify(isZh ? 'macos-tahoe 已停止' : 'macos-tahoe stopped'); + const triggerStartOrResume = (vm: SimVM) => { + if (vm.state === 'starting') return; + if (vm.state === 'suspended' && !alphaRuntime) { + notify(isZh ? '请在「内核」页开启 Alpha 通道以恢复挂起会话' : 'Enable Alpha runtime in Kernel to resume'); + return; + } + clearVmTimer(vm.id); + const wasSuspended = vm.state === 'suspended'; + updateVM(vm.id, { state: 'starting' }); + pushLog('vm', 'info', `${wasSuspended ? 'resuming' : 'starting'} ${vm.name} (${vm.cpus}c/${vm.memoryGb}G ${vm.graphics})`); + const timerId = window.setTimeout(() => { + vmTimersRef.current.delete(vm.id); + updateVM(vm.id, { state: 'running', uptimeSec: wasSuspended ? 42 : 0 }); + pushLog('vgpu', 'info', `${vm.name}: reims-graphics-pci -> Vulkan 1.3 active (${vm.resolution})`); + notify( + wasSuspended + ? isZh + ? `${vm.displayName || vm.name} 已从挂起快照秒级恢复` + : `${vm.displayName || vm.name} resumed from suspend state` + : isZh + ? `${vm.displayName || vm.name} 已启动 · Vulkan 1.3 加速就绪` + : `${vm.displayName || vm.name} running · Vulkan 1.3 ready`, + ); + }, 600); + vmTimersRef.current.set(vm.id, timerId); }; - const handleSuspend = () => { - setVmState('suspended'); - notify(isZh ? '已保存内存与图形状态至挂起镜像' : 'Saved RAM and GPU state to suspend image'); + const triggerSuspend = (vm: SimVM) => { + if (!alphaRuntime) { + notify(isZh ? '挂起需要 Alpha 预览运行时(可在内核页切换)' : 'Suspend requires Alpha runtime (toggle in Kernel)'); + return; + } + clearVmTimer(vm.id); + const hm = nowTimeStr().slice(0, 5); + updateVM(vm.id, { state: 'suspended', suspendedAt: hm }); + pushLog('vm', 'info', `suspended ${vm.name}: saved RAM (${vm.memoryGb} GB) & metal2vulkan state`); + notify(isZh ? `已热挂起 ${vm.displayName || vm.name}(内存与图形现场已保存)` : `Suspended ${vm.displayName || vm.name}`); }; - const fmtUptime = (sec: number) => { - const m = Math.floor(sec / 60); - const s = sec % 60; - return `${String(m).padStart(2, '0')}:${String(s).padStart(2, '0')}`; + const triggerStop = (vm: SimVM, force = false) => { + clearVmTimer(vm.id); + updateVM(vm.id, { state: 'stopped', uptimeSec: 0 }); + pushLog('vm', force ? 'warn' : 'info', `${force ? 'force-stopped' : 'stopped'} ${vm.name}`); + notify( + force + ? isZh + ? `已强制退出 ${vm.displayName || vm.name}` + : `Force stopped ${vm.displayName || vm.name}` + : isZh + ? `${vm.displayName || vm.name} 已正常关机` + : `${vm.displayName || vm.name} shut down`, + ); }; - // Authentic Reims-Go internal desktop palette (light & dark from tokens.css) - const appVars = winDark - ? { - chrome: '#212228', - canvas: '#1d1e23', - rail: '#17181c', - sidebar: 'linear-gradient(180deg, rgba(40,41,48,0.94) 0%, rgba(34,35,41,0.92) 100%)', - sidebarBorder: 'rgba(255,255,255,0.09)', - surface1: 'rgba(255,255,255,0.05)', - elevated: 'rgba(255,255,255,0.08)', - border: 'rgba(255,255,255,0.09)', - borderStrong: 'rgba(255,255,255,0.16)', - text: '#f5f5f7', - text2: '#d8d8e0', - text3: '#9a9aa6', - statusbar: '#18191e', - accent: '#0a84ff', - } - : { - chrome: '#eef3fa', - canvas: '#ffffff', - rail: 'linear-gradient(180deg, #e7f0fa 0%, #dde8f7 100%)', - sidebar: 'linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(247,250,255,0.76) 100%)', - sidebarBorder: 'rgba(255,255,255,0.92)', - surface1: '#f5f6f8', - elevated: '#ffffff', - border: 'rgba(15,23,42,0.08)', - borderStrong: 'rgba(15,23,42,0.14)', - text: '#1d1d1f', - text2: '#424247', - text3: '#6e6e73', - statusbar: '#eef3fa', - accent: '#007aff', - }; + const triggerRestart = (vm: SimVM) => { + triggerStop(vm, false); + const stoppedSnap: SimVM = { ...vm, state: 'stopped', uptimeSec: 0 }; + const timerId = window.setTimeout(() => { + vmTimersRef.current.delete(vm.id); + triggerStartOrResume(stoppedSnap); + }, 200); + vmTimersRef.current.set(vm.id, timerId); + }; - const sysNav: Array<{ id: AppTab; label: string; icon: React.ReactNode; bg: string; dot?: boolean }> = [ - { id: 'images', label: isZh ? '镜像' : 'Images', icon: , bg: 'linear-gradient(145deg,#34c759,#248a3d)' }, - { id: 'plugins', label: isZh ? '插件' : 'Plugins', icon: , bg: 'linear-gradient(145deg,#af52de,#8944ab)' }, - { id: 'kernel', label: isZh ? '内核' : 'Kernel', icon: , bg: 'linear-gradient(145deg,#6e7cf0,#4d5be0)', dot: true }, - { id: 'settings', label: isZh ? '设置' : 'Settings', icon: , bg: 'linear-gradient(145deg,#8e8e93,#636366)' }, - { id: 'about', label: isZh ? '关于' : 'About', icon: , bg: 'linear-gradient(145deg,#32a0ff,#007aff)' }, + const triggerClone = (vm: SimVM) => { + const base = `${vm.name}-clone`; + const uniqueId = `${base}-${vms.length + 1}`; + const cloned: SimVM = { + ...vm, + id: uniqueId, + name: uniqueId, + displayName: '', + state: 'stopped', + uptimeSec: 0, + diskUsedGb: 2, + sshPort: 2222 + vms.length, + }; + setVms((prev) => [...prev, cloned]); + setSelected(uniqueId); + pushLog('disk', 'info', `created CoW overlay clone ${uniqueId} <- ${vm.name} (backing protected)`); + notify(isZh ? `已秒级创建 CoW 派生副本 ${uniqueId}` : `Created instant CoW clone ${uniqueId}`); + }; + + const commitRename = () => { + if (renameCancelledRef.current) { + renameCancelledRef.current = false; + return; + } + setEditingName(false); + if (!selectedVM) return; + const trimmed = nameDraft.trim(); + const next = trimmed === selectedVM.name ? '' : trimmed; + if (next !== selectedVM.displayName) { + updateVM(selectedVM.id, { displayName: next }); + pushLog('vm', 'info', `renamed display note for ${selectedVM.name} -> "${next || selectedVM.name}"`); + } + }; + + const v = getSimThemeVars(winDark); + const fitScale = Math.min(1, availW / DESKTOP_W); + const showMobileZoomToggle = measured && fitScale < 0.85; + const panScale = Math.max(0.86, Math.min(1, fitScale * 1.45)); + const isPanMode = showMobileZoomToggle && mobileZoomMode === 'pan'; + const effectiveScale = isPanMode ? panScale : fitScale; + const scaledHeight = Math.ceil(DESKTOP_H * effectiveScale); + const scaledWidth = Math.ceil(DESKTOP_W * effectiveScale); + + const sysNav: Array<{ id: SysPageId; label: string; icon: React.ReactNode; bg: string; status?: 'running' | 'busy' }> = [ + { + id: '__images__', + label: isZh ? '镜像' : 'Images', + icon: , + bg: 'linear-gradient(145deg,#34c759,#248a3d)', + status: downloadTask && !downloadTask.paused ? 'busy' : undefined, + }, + { + id: '__plugins__', + label: isZh ? '插件' : 'Plugins', + icon: , + bg: 'linear-gradient(145deg,#af52de,#8944ab)', + }, + { + id: '__kernel__', + label: isZh ? '内核' : 'Kernel', + icon: , + bg: 'linear-gradient(145deg,#6e7cf0,#4d5be0)', + status: 'running', + }, + { + id: '__settings__', + label: isZh ? '设置' : 'Settings', + icon: , + bg: 'linear-gradient(145deg,#8e8e93,#636366)', + }, + { + id: '__about__', + label: isZh ? '关于' : 'About', + icon: , + bg: 'linear-gradient(145deg,#32a0ff,#007aff)', + }, ]; + const filteredLogs = useMemo(() => { + const q = logQuery.trim().toLowerCase(); + return logLines.filter((l) => { + if (errorsOnly && l.level !== 'warn' && l.level !== 'error') return false; + if (q && !l.line.toLowerCase().includes(q) && !l.source.toLowerCase().includes(q)) return false; + return true; + }); + }, [logLines, logQuery, errorsOnly]); + return ( -
-
- {/* Authentic Titlebar (42px) */} +
+ {/* Outer width observer container: clips overflow on narrow screens, allows GSAP 1.035x + drop shadow on desktop */} +
-
- - {(isZh ? ['虚拟机', '视图', '帮助'] : ['VM', 'View', 'Help']).map((menu) => ( - - {menu} - - ))} -
- -
- -
- - - -
-
-
- - {/* Workspace: Floating Tahoe Sidebar + Authentic Main Pane */} -
- {sidebarOpen && ( - - )} - {/* Main Content Pane */} -
- {/* Mobile Quick Tab Strip (when sidebar is collapsed on mobile) */} -
- {[ - { id: 'vm' as AppTab, label: 'macos-tahoe' }, - ...sysNav.map((s) => ({ id: s.id, label: s.label })), - ].map((item) => ( - - ))} -
- - {tab === 'vm' && ( -
- {/* Top Split: Authentic iMac Monitor + Stand & 6-row Spec Card */} -
-
- {/* Authentic iMac Display Unit with Aluminum Stand */} - - -

- macos-tahoe -

- -
- - - {vmState === 'stopped' && (isZh ? '已停止' : 'Stopped')} - {vmState === 'starting' && (isZh ? '正在启动' : 'Starting')} - {vmState === 'running' && (isZh ? `运行中 · ${fmtUptime(uptimeSec)}` : `Running · ${fmtUptime(uptimeSec)}`)} - {vmState === 'suspended' && (isZh ? '已挂起' : 'Suspended')} - -
- -
- {vmState === 'stopped' || vmState === 'suspended' ? ( - - ) : ( - <> - - - - - )} - - - - -
-
- - {/* Authentic 6-Row Left-Aligned Hardware Spec Card */} -
- {[ - { icon: , label: isZh ? '处理器' : 'CPU', val: isZh ? '8 核' : '8 cores', pct: vmState === 'running' ? 28 : 0 }, - { icon: , label: isZh ? '内存' : 'Memory', val: '8 GB', pct: vmState === 'running' ? 62 : 0 }, - { icon: , label: isZh ? '存储' : 'Storage', val: '54 / 128 GB', pct: 42 }, - { icon: , label: isZh ? '图形' : 'Graphics', val: 'RTX 4070 Ti · 1080p', pct: 0 }, - { icon: , label: isZh ? '网络' : 'Network', val: isZh ? '共享网络' : 'Shared network', pct: 0 }, - { icon: , label: isZh ? '语言' : 'Language', val: isZh ? '简体中文' : 'English', pct: 0 }, - ].map((row) => ( -
- - {row.icon} - {row.label} - -
- {row.val} - {row.pct > 0 && ( - - - - )} -
-
- ))} -
-
- - {/* Authentic Connection Section */} -
-

- {isZh ? '连接' : 'Connection'} -

-
- {/* SSH */} -
- SSH -
- - -
-
- - {/* Guest Tools + Indented Command */} -
-
-
- Guest Tools - - - {isZh ? '已启用' : 'Enabled'} - -
- -
-
- - {isZh ? '在 macOS 终端里运行' : 'Run in macOS Terminal'} - - -
-
- - {/* Shared Folder */} -
-
- - {isZh ? '共享文件夹' : 'Shared folder'} - - - ~/Desktop/ReimsShare - -
-
- - -
-
- - {/* Prevent Sleep Switch */} -
- - {isZh ? '防止 macOS 睡眠' : 'Prevent macOS sleep'} - - -
-
- - {/* Technical details disclosure */} + {/* Right: Theme Toggle + Authentic Windows Caption Buttons (- □ ×) */} +
- {techOpen && ( -
+
- )} +
-
- )} + - {tab === 'kernel' && ( -
-
-

- {isZh ? '内核' : 'Kernel'} -

- - - {isZh ? '宿主机体检就绪' : 'Host ready'} - -
-
- {[ - { k: 'WHPX', v: isZh ? '就绪' : 'Ready', s: isZh ? '免提权探测' : 'Enabled', ok: true }, - { k: isZh ? '处理器' : 'CPU', v: isZh ? '12 核 · 20 线程' : '12C · 20T', s: '8P + 4E' }, - { k: isZh ? '内存' : 'Memory', v: isZh ? '可用 14.8 GB' : '14.8 GB free', s: isZh ? '共 32.0 GB' : '32.0 GB total' }, - { k: isZh ? '可用空间' : 'Storage', v: '114514GB', s: 'D:\\ReimsData' }, - ].map((tile) => ( -
- {tile.k} - - {tile.v} - - {tile.s} -
- ))} -
+ {/* ── Workspace: Authentic 248px Floating Tahoe Sidebar + Main Pane ── */} +
-
-
- NVIDIA GeForce RTX 4070 Ti · Vulkan 1.3.289 -
-
- runtime-stable · SHA256SUMS.txt verified -
-
- - {isZh ? '已是最新' : 'Up to date'} - -
-
-
-
- {isZh ? '运行时通道' : 'Runtime channel'} -
-
- {isZh ? 'Alpha 通道可抢先体验 Intel 虚拟机运行中热挂起(vm-suspend)' : 'Alpha channel previews running VM suspend (vm-suspend)'} -
-
-
- {(['stable', 'alpha', 'dev'] as const).map((ch) => ( - - ))} -
-
-
- )} - - {(tab === 'images' || tab === 'plugins' || tab === 'settings' || tab === 'about') && ( -
-

- {sysNav.find((s) => s.id === tab)?.label} -

-
- {tab === 'images' && [ - { major: 26, name: 'macOS Tahoe 26', sub: isZh ? '直连 Apple 官方目录 · 并行分片断点续传' : 'Direct from Apple catalog · parallel resume', tag: isZh ? '推荐' : 'Recommended' }, - { major: 15, name: 'macOS Sequoia 15', sub: isZh ? '支持离线安装包与在线恢复镜像' : 'Offline installer & online recovery', tag: '15.x' }, - ].map((img) => ( -
-
- -
-
{img.name}
-
{img.sub}
-
-
- -
- ))} - {tab === 'plugins' && [ - { name: isZh ? '内置 macOS 客体支持' : 'Built-in macOS Guest Driver', id: 'builtin.driver.reims-macos', badge: isZh ? '内置' : 'Built-in' }, - { name: isZh ? '繁体中文语言包' : 'Traditional Chinese Pack', id: 'official.lang.zh-tw · L1', badge: isZh ? '官方' : 'Official' }, - { name: isZh ? '虚拟机窗口安装引导' : 'VM Window Install Guide', id: 'builtin.guide.install', badge: isZh ? '内置' : 'Built-in' }, - ].map((p) => ( -
-
-
{p.name}
-
{p.id}
-
- - {p.badge} + {/* Sidebar Brand */} +
+ + + Reims-Go
- ))} - {tab === 'settings' && [ - { k: isZh ? '外观' : 'Appearance', v: winDark ? (isZh ? '深色' : 'Dark') : (isZh ? '浅色' : 'Light') }, - { k: isZh ? '数据目录' : 'Data folder', v: 'D:\\ReimsData' }, - { k: isZh ? '系统托盘' : 'System tray', v: isZh ? '关闭窗口后驻留托盘' : 'Keep running in tray' }, - { k: isZh ? '安全模式恢复' : 'Safe mode', v: 'reims-go --safe-mode' }, - ].map((row) => ( -
- {row.k} - {row.v} + + {/* VMs Section Head */} +
+ + {isZh ? '虚拟机' : 'Virtual Machines'} + +
- ))} - {tab === 'about' && ( -
-
- -
-
Reims-Go v0.2.11
-
Apache-2.0 · Go 1.26 + Wails v2.17.1
+ + {/* Scrollable VM List */} +
+ {vms.map((vm) => { + const active = selected === vm.id; + const label = vm.displayName || vm.name; + const statusKind = vm.state === 'starting' ? 'busy' : vm.state; + return ( + + ); + })} +
+ + {/* Pinned System Nav (exact order from Sidebar.tsx) */} +
+ {sysNav.map((item) => { + const active = selected === item.id; + return ( + + ); + })} +
+ +
+ + {/* ── Main Content Scroll Area ── */} +
+
+ {selectedVM && ( +
+ {/* Top Wide 2-Column About-This-Mac Split (exact @container >=760px layout) */} +
+ {/* Left: Studio Display + Aluminum Stand + Editable Title + Status + Actions */} +
+
+ {/* Studio Display Bezel (sibling buttons: never nest interactive + + {/* Sibling Screenshot Camera Button (running, keyboard focus-visible) */} + {selectedVM.state === 'running' && ( + + )} +
+ + {/* Aluminum Stand Neck & Foot */} +
+ + {/* Right: Authentic 6-Row Single-Line Spec Card (exact @container >=760px grid) */} +
+ {[ + { + icon: , + label: isZh ? '处理器' : 'CPU', + val: isZh ? `${selectedVM.cpus} 核` : `${selectedVM.cpus} cores`, + meter: selectedVM.state === 'running' ? 32 : 0, + hasMeter: true, + }, + { + icon: , + label: isZh ? '内存' : 'Memory', + val: `${selectedVM.memoryGb} GB`, + meter: selectedVM.state === 'running' ? 64 : 0, + hasMeter: true, + }, + { + icon: , + label: isZh ? '存储' : 'Storage', + val: `${selectedVM.diskUsedGb} / ${selectedVM.diskTotalGb} GB`, + meter: Math.round((selectedVM.diskUsedGb / selectedVM.diskTotalGb) * 100), + hasMeter: true, + }, + { + icon: , + label: isZh ? '图形' : 'Graphics', + val: + selectedVM.graphics === 'reims-vgpu' + ? `${selectedVM.gpuName} · ${selectedVM.resolution}` + : `VMware SVGA · ${selectedVM.resolution}`, + hasMeter: false, + }, + { + icon: , + label: isZh ? '网络' : 'Network', + val: + selectedVM.network === 'bridged' + ? isZh + ? 'Npcap 桥接网卡' + : 'Npcap Bridged' + : isZh + ? '共享网络' + : 'Shared network', + hasMeter: false, + }, + { + icon: , + label: isZh ? '语言' : 'Language', + val: isZh ? '简体中文' : 'English', + hasMeter: false, + }, + ].map((row) => ( +
+ {row.icon} + + {row.label} + + + {row.val} + + {row.hasMeter && ( + 0 ? 1 : 0, + }} + > + + + )} +
+ ))} +
+ + {/* Suspended State Notice Banner (exact VMPage.tsx notice-info) */} + {selectedVM.state === 'suspended' && ( +
+ + + + + {isZh ? '虚拟机已热挂起(内存与图形状态已保存)' : 'VM suspended (RAM & GPU state saved)'} + + + {isZh + ? `保存于 ${selectedVM.suspendedAt || '14:20'} · 状态镜像 ${selectedVM.memoryGb}.0 GB` + : `Saved at ${selectedVM.suspendedAt || '14:20'} · state image ${selectedVM.memoryGb}.0 GB`} + {!alphaRuntime && + (isZh + ? ' · 当前未启用 Alpha 运行时,请在「内核」页开启后再恢复' + : ' · Enable Alpha runtime in Kernel to resume')} + + + + {alphaRuntime && ( + + )} +
+ )} + + {/* Authentic Connection Section (VMPage.tsx .conn-list 1:1) */} +
+

+ {isZh ? '连接' : 'Connection'} +

+
+ {/* Row 1: SSH + Terminal + Interactive SSH More menu */} +
+ + SSH + +
+
+ + {selectedVM.sshUser + ? `ssh -p ${selectedVM.sshPort} ${selectedVM.sshUser}@127.0.0.1` + : `ssh -p ${selectedVM.sshPort} 127.0.0.1`} + + +
+ +
+ + {openMenu === 'ssh' && ( +
+ + +
+ )} +
+
+
+ + {/* Row 2: Guest Tools + Interactive Mount/Eject + Install Command */} +
+
+
+ + Guest Tools + + + + {selectedVM.state === 'running' + ? isZh + ? '已连接 · v14 WebDAV' + : 'Connected · v14 WebDAV' + : isZh + ? '已启用' + : 'Enabled'} + +
+ +
+ + {selectedVM.guestToolsAttached && ( +
+ + {isZh ? '在 macOS 终端里运行' : 'Run in macOS Terminal'} + +
+ + sh /Volumes/REIMSTOOLS/Install-Reims-Tools.command + + + {selectedVM.state === 'running' && ( + + )} +
+
+ )} +
+ + {/* Row 3: Shared Folder */} +
+
+ + {isZh ? '共享文件夹' : 'Shared folder'} + + + ~/Desktop/ReimsShare + +
+
+ + +
+
+ + {/* Row 4: Prevent Sleep */} +
+
+ + {isZh ? '防止 macOS 睡眠' : 'Prevent macOS sleep'} + + {selectedVM.preventSleep && selectedVM.state === 'running' && ( + + + {isZh ? '生效中' : 'Active'} + + )} +
+ { + updateVM(selectedVM.id, { preventSleep: checked }); + pushLog('guest-tools', 'info', `prevent_sleep=${checked} (${selectedVM.name})`); + }} + label={isZh ? '防止 macOS 睡眠' : 'Prevent macOS sleep'} + v={v} + /> +
+ + {/* Row 5: Host DNS Proxy (v0.2.12 new feature!) */} +
+
+ + {isZh ? '使用宿主机 DNS' : 'Use Host DNS'} + + + + {selectedVM.hostDns + ? isZh + ? 'DoH 代理已就绪' + : 'DoH proxy ready' + : isZh + ? '未开启' + : 'Off'} + +
+ { + updateVM(selectedVM.id, { hostDns: checked }); + pushLog('host-dns', 'info', `host_dns=${checked} (${selectedVM.name})`); + }} + label={isZh ? '使用宿主机 DNS' : 'Use Host DNS'} + v={v} + /> +
+
+ + {/* Technical Details Disclosure + Footnote */} +
+ + + {isZh ? '双击左侧虚拟机或按 Ctrl+Enter 快速启动' : 'Double-click VM or press Ctrl+Enter to start'} + +
+ + {techOpen && ( +
+ + graphics + + {selectedVM.graphics === 'reims-vgpu' + ? 'reims-graphics-pci (Metal 3 -> Vulkan 1.3)' + : 'vmware-svga (software fallback)'} + + disk + NVMe · qcow2 (extended_l2=on · VirtIO TRIM) + bridge + Unix domain socket · 256-bit per-VM token · Guest Tools v14 +
+ )} +
-

- {isZh - ? '面向 Windows 10/11 x64 的免编译、显卡加速 macOS 虚拟机桌面启动器与工作台。' - : 'Prebuilt GPU-accelerated macOS virtual machine launcher and CLI workbench for Windows 10/11 x64.'} -

+ )} + + {selected === '__images__' && ( + { + setDownloadTask({ version, title, percent: 8, speedMb: 84.2, paused: false }); + pushLog('installer', 'info', `started 8x parallel download for ${title} (${version})`); + }} + onTogglePauseDownload={() => + setDownloadTask((cur) => (cur ? { ...cur, paused: !cur.paused } : null)) + } + onOpenWizard={(major) => setWizardOpen({ open: true, major })} + onNotify={notify} + /> + )} + + {selected === '__plugins__' && ( + { + setPlugins((prev) => + prev.map((p) => { + if (p.id !== id || p.locked) return p; + const next = !p.enabled; + pushLog('plugin', 'info', `${next ? 'enabled' : 'disabled'} ${p.id}`); + notify(`${next ? (isZh ? '已启用' : 'Enabled') : isZh ? '已停用' : 'Disabled'} ${isZh ? p.nameZh : p.nameEn}`); + return { ...p, enabled: next }; + }), + ); + }} + onInstallMarketPlugin={(id) => { + setPlugins((prev) => + prev.map((p) => { + if (p.id !== id) return p; + pushLog('market', 'info', `installed & verified SHA-256 for ${p.id}@${p.version}`); + notify(isZh ? `已安装 ${p.nameZh}` : `Installed ${p.nameEn}`); + return { ...p, installed: true, enabled: true }; + }), + ); + }} + onNotify={notify} + /> + )} + + {selected === '__kernel__' && ( + { + setAlphaRuntime(alpha); + pushLog('runtime', 'info', `switched runtime channel -> ${alpha ? 'alpha (vm-suspend)' : 'stable (2df30ff)'}`); + notify( + alpha + ? isZh + ? '已启用 Alpha 预览运行时(支持热挂起与恢复)' + : 'Enabled Alpha runtime (VM suspend/resume active)' + : isZh + ? '已切换回 Stable 稳定版运行时' + : 'Switched back to Stable runtime', + ); + }} + onNotify={notify} + /> + )} + + {selected === '__settings__' && ( + + )} + + {selected === '__about__' && ( + + )} +
+ + {/* Authentic In-Window Toast */} + {toast && ( +
+
)} -
+
- )} - {/* In-window toast feedback */} - {toast && ( + {/* ── Authentic Bottom Statusbar & Expandable Log Drawer (LogPanel.tsx 1:1) ── */}
- - {toast} +
+ {/* Left: Live Download Task OR Host Telemetry with Hairline Dividers */} + {downloadTask ? ( +
+ + + {isZh ? `正在下载 ${downloadTask.title}` : `Downloading ${downloadTask.title}`} + + + + + {Math.floor(downloadTask.percent)}% +
+ ) : ( +
+ + {isZh ? '内存' : 'RAM'} + {runningCount > 0 ? `${(20.2 + runningCount * 3.4).toFixed(1)} / 32 GB` : '20.2 / 32 GB'} + + + + + + + D: + {isZh ? '可用 114514GB' : '114514GB free'} + + {runningCount > 0 && ( + <> + + + + {isZh ? `${runningCount} 台运行中` : `${runningCount} running`} + + + )} +
+ )} + + {/* Right: Log Filter / Tabs (when open) + Toggle Button */} +
+ {logsOpen && ( + <> + setLogQuery(e.target.value)} + placeholder={isZh ? '筛选日志…' : 'Filter logs…'} + style={{ background: v.input, borderColor: v.borderStrong, color: v.text }} + className="h-[22px] w-[136px] rounded-[6px] border px-2 text-[11.5px] outline-none focus-visible:ring-2 focus-visible:ring-accent/40" + /> + +
+ {(['app', 'serial', 'qemu'] as const).map((tb) => ( + + ))} +
+ + + + )} + + +
+
+ + {/* Expanded Live Log Drawer */} + {logsOpen && ( +
+ {logTab === 'app' ? ( + filteredLogs.length === 0 ? ( + {isZh ? '暂无日志记录' : 'No log entries'} + ) : ( + filteredLogs.map((l) => ( +
+ + {l.ts} + + + {l.source} + + + {l.line} + +
+ )) + ) + ) : logTab === 'serial' ? ( +
+                        {`OpenCore 1.0.3 (Reims-Go NVMe profile)\n[OK] AppleKeyStore: starting (Unix bridge isolated)\n[OK] ReimsGraphicsPCI: bound Metal 3 command ring -> Vulkan 1.3.289\n[OK] ReimsGuestAgent v14: WebDAV ~/Desktop/ReimsShare mounted`}
+                      
+ ) : ( +
+                        {`qemu-system-x86_64 -accel whpx,kernel-irqchip=off -cpu host,vendor=GenuineIntel\n  -device reims-graphics-pci,vulkan-icd=nv-vk64.json\n  -drive file=D:\\ReimsData\\vms\\macos-tahoe\\disk.qcow2,if=none,discard=unmap\n  -chardev socket,id=qmp0,path=\\\\.\\pipe\\reims-qmp-macos-tahoe`}
+                      
+ )} +
+ )}
- )} + + {/* ── Interactive In-Window Modals (SettingsModal & CreateWizard) ── */} + {settingsModalOpen && selectedVM && ( + setSettingsModalOpen(false)} + onSave={(patch) => { + updateVM(selectedVM.id, patch); + setSettingsModalOpen(false); + pushLog('config', 'info', `saved vm.toml for ${selectedVM.name} (${patch.cpus}c/${patch.memoryGb}G ${patch.resolution})`); + notify(isZh ? '已保存虚拟机硬件设置' : 'Saved VM settings'); + }} + /> + )} + + {wizardOpen.open && ( + setWizardOpen({ open: false, major: 26 })} + onCreate={({ name, major, cpus, memoryGb }) => { + const slug = name.toLowerCase().replace(/[^a-z0-9-_]+/g, '-') || `macos-${major}`; + const uniqueId = vms.some((x) => x.id === slug) ? `${slug}-${vms.length + 1}` : slug; + const created: SimVM = { + ...INITIAL_VMS[0], + id: uniqueId, + name: uniqueId, + displayName: name !== uniqueId ? name : '', + major, + state: 'stopped', + cpus, + memoryGb, + diskUsedGb: 1, + sshPort: 2222 + vms.length, + uptimeSec: 0, + }; + setVms((prev) => [...prev, created]); + setSelected(uniqueId); + setWizardOpen({ open: false, major: 26 }); + pushLog('wizard', 'info', `provisioned ${uniqueId} (macOS ${major}, NVMe qcow2 extended_l2=on)`); + notify(isZh ? `已创建虚拟机 ${name}` : `Created VM ${name}`); + }} + /> + )} +
- {/* Collapsible Live Log Drawer */} - {logsOpen && ( -
-
[16:40:12] host.inspect: WHPX=ready gpu="NVIDIA GeForce RTX 4070 Ti" vulkan=1.3.289
-
[16:40:12] bridge.loopback: listening 127.0.0.1 (256-bit per-VM token isolated)
-
[16:40:13] vm.inventory: loaded macos-tahoe (driver=builtin.driver.reims-macos)
+ {/* Subtle Mobile-Only View Control: preserves full desktop software UI while allowing 1-tap pan zoom */} + {showMobileZoomToggle && ( +
+
+ + +
)} - - {/* Authentic Bottom Statusbar (32px) */} -
-
- {isZh ? '内存 20.2 / 32 GB' : 'RAM 20.2 / 32 GB'} - - - - | - {isZh ? 'D: 可用 114514GB' : 'D: 114514GB free'} -
- -
); diff --git a/src/components/home/HomePage.astro b/src/components/home/HomePage.astro index be9b2b3..3a0ba58 100644 --- a/src/components/home/HomePage.astro +++ b/src/components/home/HomePage.astro @@ -2,10 +2,10 @@ import BaseLayout from '../../layouts/BaseLayout.astro'; import { t } from '../../i18n/translations'; import { localizedPath, type Locale } from '../../i18n/types'; -import { FALLBACK_RELEASE } from '../../lib/releases'; import { buildHomeJsonLd } from '../../lib/seo'; import { WordmarkBrush } from '../brand/WordmarkBrush'; import { HeroHeadline } from './HeroHeadline'; +import { HeroReleaseMeta } from './HeroReleaseMeta'; import { HeroWindowPreview } from './HeroWindowPreview'; import { GpuPipelineViz } from './GpuPipelineViz'; import { InstallStepper } from './InstallStepper'; @@ -20,7 +20,6 @@ interface Props { const { locale } = Astro.props; const strings = t(locale); -const releaseVer = FALLBACK_RELEASE.version; const homeJsonLd = buildHomeJsonLd(locale); --- @@ -32,7 +31,7 @@ const homeJsonLd = buildHomeJsonLd(locale); jsonLd={homeJsonLd} > -
+
@@ -63,10 +62,8 @@ const homeJsonLd = buildHomeJsonLd(locale);
-

- {releaseVer} · {strings.hero.metaTail} -

-

+ +

{strings.hero.iconDisclaimer}

diff --git a/src/components/home/reims-sim/SimSystemViews.tsx b/src/components/home/reims-sim/SimSystemViews.tsx new file mode 100644 index 0000000..e6e2d22 --- /dev/null +++ b/src/components/home/reims-sim/SimSystemViews.tsx @@ -0,0 +1,1610 @@ +import { + Check, + ChevronDown, + Copy, + Cpu, + Download, + ExternalLink, + HardDrive, + Info, + LoaderCircle, + MemoryStick, + Pause, + Plus, + Puzzle, + RefreshCw, + Scale, + ShieldCheck, + Sparkles, + Wifi, + X, +} from 'lucide-react'; +import React, { useEffect, useRef, useState } from 'react'; +import { VersionArt } from '../../brand/VersionArt'; +import { + TahoeSegmented, + TahoeSwitch, + type SimDownloadTask, + type SimPlugin, + type SimThemeVars, + type SimVM, +} from './simTypes'; + +const PLUGIN_TONE_BG: Record = { + indigo: 'linear-gradient(145deg, #6e7cf0 0%, #4d5be0 100%)', + purple: 'linear-gradient(145deg, #bf5af2 0%, #8944ab 100%)', + sky: 'linear-gradient(145deg, #32a0ff 0%, #007aff 100%)', + emerald: 'linear-gradient(145deg, #34c759 0%, #248a3d 100%)', + amber: 'linear-gradient(145deg, #ffb340 0%, #ff9500 100%)', + rose: 'linear-gradient(145deg, #ff6482 0%, #ff2d55 100%)', +}; + +// ── Images Page (ImagesPage.tsx + InstallersPage.tsx 1:1) ───────────────────── +export const SimImagesView: React.FC<{ + isZh: boolean; + v: SimThemeVars; + downloadTask: SimDownloadTask | null; + downloadedVersions: string[]; + onStartDownload: (version: string, title: string) => void; + onTogglePauseDownload: () => void; + onOpenWizard: (major: number) => void; + onNotify: (msg: string) => void; +}> = ({ + isZh, + v, + downloadTask, + downloadedVersions, + onStartDownload, + onTogglePauseDownload, + onOpenWizard, + onNotify, +}) => { + const [sourceTab, setSourceTab] = useState<'macos' | 'custom'>('macos'); + const [historyOpen, setHistoryOpen] = useState>({}); + + const releases = [ + { + major: 26, + title: 'macOS Tahoe 26', + latest: '26.1', + posted: '2026-11-18', + size: '17.8 GB', + history: [ + { version: '26.0.1', posted: '2026-10-14', size: '17.6 GB' }, + { version: '26.0', posted: '2026-09-22', size: '17.4 GB' }, + ], + }, + { + major: 15, + title: 'macOS Sequoia 15', + latest: '15.5', + posted: '2026-10-28', + size: '15.6 GB', + history: [{ version: '15.4.1', posted: '2026-08-19', size: '15.4 GB' }], + }, + ]; + + return ( +
+
+
+

+ {isZh ? '镜像' : 'Images'} +

+ + {isZh + ? '直连 Apple 官方目录并行分片下载离线安装包,支持断点续传与插件扩展镜像源' + : 'Parallel chunk downloads directly from Apple catalog with resume and plugin sources'} + +
+ +
+ +
+ +
+ + {sourceTab === 'custom' ? ( +
+ +
+ {isZh ? '通过 uiApi 2.0 扩展第三方镜像源' : 'Extend image sources via uiApi 2.0'} +
+
+ {isZh + ? '外部插件可注册 images.source 沙箱面板与自定义并行下载器,并沿用统一的任务队列与 SHA-256 校验。' + : 'External plugins can register sandboxed images.source panels and custom downloaders using the unified task queue.'} +
+
+ ) : ( + <> + {/* Apple SLA Notice Banner */} +
+ + + + {isZh + ? '镜像文件由本机直接从 Apple 服务器下载,请遵守 Apple 软件许可协议(仅限个人学习与研究)。' + : 'Installers are fetched directly from Apple by your PC. Follow the Apple SLA (personal study & research only).'} + + + + + Apple SLA + +
+ + {/* Release Cards */} +
+ {releases.map((rel) => { + const isDownloading = downloadTask?.version === rel.latest; + const isDownloaded = downloadedVersions.includes(rel.latest); + const openHist = !!historyOpen[rel.major]; + + return ( +
+
+
+ +
+
+
+ + {rel.title} + + + {rel.latest} + + {rel.major === 26 && ( + + {isZh ? '推荐' : 'Recommended'} + + )} +
+ {isDownloading && downloadTask ? ( +
+ + + + + + {Math.floor(downloadTask.percent)}% ·{' '} + {downloadTask.paused + ? isZh + ? '已暂停(支持断点续传)' + : 'Paused (resumable)' + : `${downloadTask.speedMb.toFixed(1)} MB/s · 8x`} + +
+ ) : ( +
+ {rel.posted} · {rel.size} + {isDownloaded && ( + + · {isZh ? '已缓存到本地' : 'Cached locally'} + + )} +
+ )} +
+ +
+ {isDownloading && downloadTask ? ( + + ) : isDownloaded ? ( + + ) : ( + + )} +
+
+ + {/* Collapsible Point Release History */} +
+ + {openHist && ( +
+ {rel.history.map((h) => { + const histCached = downloadedVersions.includes(h.version); + const histDownloading = downloadTask?.version === h.version; + return ( +
+
+ + {h.version} + + + {h.posted} · {h.size} + +
+ {histCached ? ( + + + {isZh ? '已缓存' : 'Cached'} + + ) : histDownloading ? ( + + + {Math.floor(downloadTask.percent)}% + + ) : ( + + )} +
+ ); + })} +
+ )} +
+
+ ); + })} +
+ + )} +
+ ); +}; + +// ── Plugins Page (PluginsPage.tsx 1:1) ──────────────────────────────────────── +export const SimPluginsView: React.FC<{ + isZh: boolean; + v: SimThemeVars; + plugins: SimPlugin[]; + onTogglePlugin: (id: string) => void; + onInstallMarketPlugin: (id: string) => void; + onNotify: (msg: string) => void; +}> = ({ isZh, v, plugins, onTogglePlugin, onInstallMarketPlugin, onNotify }) => { + const [tab, setTab] = useState<'installed' | 'market'>('installed'); + const installedList = plugins.filter((p) => p.installed); + const marketList = plugins; + + return ( +
+
+
+

+ {isZh ? '插件' : 'Plugins'} +

+ + {isZh + ? '管理内置与第三方扩展,支持 uiApi 2.0、L1/L3/L4 隔离与 --safe-mode 恢复' + : 'Manage built-in and community extensions with uiApi 2.0 isolation and --safe-mode'} + +
+ +
+ +
+ + + reims-go/plugins · SHA-256 + +
+ + {tab === 'installed' ? ( +
+ {installedList.map((p) => ( +
+
+ + {p.tone === 'rose' ? ( + + ) : p.tone === 'emerald' ? ( + + ) : ( + + )} + +
+
+ + {isZh ? p.nameZh : p.nameEn} + + + {p.tier} + + + + {p.trust === 'builtin' + ? isZh + ? '内置' + : 'Built-in' + : p.trust === 'official' + ? isZh + ? '官方签名' + : 'Official' + : isZh + ? '已验证' + : 'Verified'} + +
+
+ {isZh ? p.descZh : p.descEn} +
+
+
+ + onTogglePlugin(p.id)} + label={isZh ? p.nameZh : p.nameEn} + v={v} + /> +
+ ))} +
+ ) : ( +
+ {marketList.map((p) => ( +
+
+ + + +
+
+ {isZh ? p.nameZh : p.nameEn} +
+
+ {p.tier} · v{p.version} +
+
+ {p.installed ? ( + + + {isZh ? '已安装' : 'Installed'} + + ) : ( + + )} +
+

+ {isZh ? p.descZh : p.descEn} +

+
+ ))} +
+ )} +
+ ); +}; + +// ── Kernel Page (HostView.tsx + RuntimeOnline.tsx 1:1) ──────────────────────── +export const SimKernelView: React.FC<{ + isZh: boolean; + v: SimThemeVars; + alphaRuntime: boolean; + onToggleAlphaRuntime: (alpha: boolean) => void; + onNotify: (msg: string) => void; +}> = ({ isZh, v, alphaRuntime, onToggleAlphaRuntime, onNotify }) => ( +
+
+

+ {isZh ? '内核' : 'Kernel'} +

+ +
+ + {/* 4-up Host Summary Tiles */} +
+ {[ + { + icon: , + iconBg: v.okSoft, + iconCol: v.okText, + title: 'WHPX', + val: isZh ? '就绪' : 'Ready', + valCol: v.okText, + sub: isZh ? '免提权探测' : 'Enabled', + }, + { + icon: , + iconBg: v.accentSoft, + iconCol: v.accentSoftText, + title: isZh ? '处理器' : 'CPU', + val: isZh ? '12 核 · 20 线程' : '12C · 20T', + valCol: v.text, + sub: '8P + 4E', + }, + { + icon: , + iconBg: v.accentSoft, + iconCol: v.accentSoftText, + title: isZh ? '内存' : 'Memory', + val: isZh ? '可用 14.8 GB' : '14.8 GB free', + valCol: v.text, + sub: isZh ? '共 32.0 GB · 5600 MHz' : '32.0 GB · 5600 MHz', + }, + { + icon: , + iconBg: v.active, + iconCol: v.text2, + title: isZh ? '可用空间' : 'Free disk', + val: '114514 GB', + valCol: v.text, + sub: 'D:\\ReimsData', + }, + ].map((tile) => ( +
+
+ + {tile.icon} + + {tile.title} +
+
+ {tile.val} +
+
+ {tile.sub} +
+
+ ))} +
+ + {/* Storage Breakdown Card */} +
+
+ + {isZh ? '数据目录空间占用' : 'Data folder usage'} + + + 76.4 GB + +
+
+
+
+
+
+
+ + + {isZh ? '虚拟机 · 54.0 GB' : 'VMs · 54.0 GB'} + + + + {isZh ? '镜像 · 17.8 GB' : 'Images · 17.8 GB'} + + + + {isZh ? '运行时 · 4.6 GB' : 'Runtimes · 4.6 GB'} + +
+
+ + {/* Portable Runtime Section */} +
+
+ + {isZh ? '便携运行时' : 'Portable runtime'} + + +
+
+
+
+
+ {isZh ? '当前版本' : 'Active'} + {alphaRuntime ? 'c953356-alpha' : '2df30ff'} + + {isZh ? '已是最新' : 'Up to date'} + +
+
+ {alphaRuntime + ? 'QEMU 11.1.90 · vm-suspend + display-fixed-mode · SHA256SUMS verified' + : 'QEMU 11.1.90 · VirtIO TRIM + display-fixed-mode · SHA256SUMS verified'} +
+
+
+
+
+
+ {isZh ? '启用 Alpha 预览通道' : 'Enable Alpha runtime channel'} +
+
+ {isZh + ? '支持 Intel 虚拟机运行中热挂起与恢复会话(切换后将实时影响虚拟机页挂起能力)' + : 'Unlocks running Intel VM suspend & resume (live toggle updates VM page controls)'} +
+
+ +
+
+
+ + {/* Host GPUs + Displays */} +
+
+ + {isZh ? '显卡' : 'Graphics'} + +
+
+
+ NVIDIA GeForce RTX 4070 Ti + + {isZh ? '独显' : 'Discrete'} + + + {isZh ? '推荐' : 'Rec'} + +
+
+ Vulkan 1.3.289 · 12 GB VRAM +
+
+
+
+ Intel UHD Graphics 770 + + {isZh ? '核显' : 'iGPU'} + +
+
+ Vulkan 1.3.275 · Shared +
+
+
+
+ +
+ + {isZh ? '显示器' : 'Displays'} + +
+
+
+ 2560 × 1440 @ 144Hz + + 150% + + + {isZh ? '主屏' : 'Primary'} + +
+
+ {isZh ? '推荐 1.5× HiDPI 固定模式输出' : 'Recommended 1.5x HiDPI fixed mode'} +
+
+
+
+ 1920 × 1080 @ 60Hz + + 100% + +
+
+ {isZh ? '可在虚拟机设置指定目标显示器' : 'Selectable per VM in display settings'} +
+
+
+
+
+
+); + +// ── App Settings Page (AppSettingsPage.tsx 1:1) ─────────────────────────────── +export const SimSettingsView: React.FC<{ + isZh: boolean; + v: SimThemeVars; + winDark: boolean; + onSetWinDark: (dark: boolean) => void; + onNotify: (msg: string) => void; +}> = ({ isZh, v, winDark, onSetWinDark, onNotify }) => { + const [autoPinP, setAutoPinP] = useState(true); + const [syncSmbios, setSyncSmbios] = useState(true); + const [minToTray, setMinToTray] = useState(true); + const [dnsMode, setDnsMode] = useState<'system' | 'doh'>('doh'); + const [dohPreset, setDohPreset] = useState<'alidns' | 'cloudflare' | 'google'>('cloudflare'); + const [dnsTesting, setDnsTesting] = useState(false); + const [dnsResult, setDnsResult] = useState(''); + const dnsTimerRef = useRef(null); + + useEffect(() => { + return () => { + if (dnsTimerRef.current !== null) window.clearTimeout(dnsTimerRef.current); + }; + }, []); + + const runDnsTest = () => { + if (dnsTimerRef.current !== null) window.clearTimeout(dnsTimerRef.current); + setDnsTesting(true); + setDnsResult(''); + dnsTimerRef.current = window.setTimeout(() => { + dnsTimerRef.current = null; + setDnsTesting(false); + setDnsResult( + isZh + ? '解析成功:apple.com → 17.253.144.10(22 ms)' + : 'Resolved apple.com → 17.253.144.10 (22 ms)', + ); + }, 450); + }; + + return ( +
+

+ {isZh ? '设置' : 'Settings'} +

+ +
+ + {isZh ? '常规' : 'General'} + +
+
+
+
+ {isZh ? '数据目录' : 'Data folder'} +
+
+ D:\ReimsData +
+
+ +
+ +
+
+
+ {isZh ? '自动绑定性能核(P-Core)' : 'Auto-pin P-Cores'} + + {isZh ? '已支持' : 'Supported'} + +
+
+ {isZh ? '检测到 8P + 4E 混合架构,启动时自动避开低功耗核心' : 'Detected 8P + 4E hybrid topology; avoids LP-E cores'} +
+
+ +
+ +
+
+
+ {isZh ? '同步宿主机内存规格至 SMBIOS' : 'Sync host memory specs to SMBIOS'} +
+
+ 5600 MHz DDR5 · Type 17 +
+
+ +
+ +
+
+
+ {isZh ? '关闭窗口时最小化到托盘' : 'Minimize to system tray on close'} +
+
+ {isZh ? '保持 Guest Tools 剪贴板与共享目录桥接持续在线' : 'Keeps Guest Tools clipboard & shared folder bridges online'} +
+
+ +
+ +
+
+ {isZh ? '外观' : 'Appearance'} +
+ onSetWinDark(val === 'dark')} + v={v} + options={[ + { value: 'light', label: isZh ? '浅色' : 'Light' }, + { value: 'dark', label: isZh ? '深色' : 'Dark' }, + ]} + /> +
+
+
+ + {/* Host DNS Proxy Settings (v0.2.12 feature) */} +
+ + {isZh ? '宿主机 DNS 代理(Guest Tools)' : 'Host DNS Proxy (Guest Tools)'} + +
+
+
+
+ {isZh ? '上游解析方式' : 'Upstream resolver'} +
+
+ {isZh ? '适用于虚拟机内直连 DNS 受限或需加密解析的网络环境' : 'For macOS guests on networks restricting direct DNS'} +
+
+ +
+ + {dnsMode === 'doh' && ( +
+
+ + +
+ {dnsResult && ( +
+ + {dnsResult} +
+ )} +
+ )} +
+
+
+ ); +}; + +// ── About Page (AboutPage.tsx 1:1 with Live GitHub Version!) ────────────────── +export const SimAboutView: React.FC<{ + isZh: boolean; + v: SimThemeVars; + liveVersion: string; + onCopy: (text: string, label: string) => void; + onNotify: (msg: string) => void; +}> = ({ isZh, v, liveVersion, onCopy, onNotify }) => { + const [updateChannel, setUpdateChannel] = useState<'stable' | 'alpha' | 'dev'>('stable'); + const [checking, setChecking] = useState(false); + const checkTimerRef = useRef(null); + + useEffect(() => { + return () => { + if (checkTimerRef.current !== null) window.clearTimeout(checkTimerRef.current); + }; + }, []); + + const checkUpdate = () => { + if (checkTimerRef.current !== null) window.clearTimeout(checkTimerRef.current); + setChecking(true); + checkTimerRef.current = window.setTimeout(() => { + checkTimerRef.current = null; + setChecking(false); + onNotify( + isZh + ? `当前已是 ${updateChannel} 通道最新版本 (${liveVersion})` + : `Already up to date on ${updateChannel} channel (${liveVersion})`, + ); + }, 450); + }; + + return ( +
+
+ +
+

+ Reims-Go +

+

+ {isZh + ? '面向 Windows 10/11 x64 的免编译、Metal 经 Vulkan 硬件加速 macOS 虚拟机工作台。' + : 'Prebuilt Metal-to-Vulkan GPU-accelerated macOS virtual machine workbench for Windows 10/11 x64.'} +

+
+
+ +
+
+
+
+ {isZh ? '当前版本' : 'Version'} + {liveVersion} + + {isZh ? '已是最新' : 'Up to date'} + +
+
+ Apache-2.0 · Go 1.26 + Wails v2 · SHA256SUMS.txt +
+
+ +
+ +
+
+
+ {isZh ? '客户端更新通道' : 'App update channel'} +
+
+ {updateChannel === 'stable' + ? isZh + ? '仅接收正式稳定版更新' + : 'Receive stable releases only' + : isZh + ? '自动保留上一版备份,支持一键回滚' + : 'Keeps previous binary backup for quick rollback'} +
+
+ +
+
+ +
+ + {isZh ? '项目与社区' : 'Project & Community'} + +
+ {[ + { + title: isZh ? '官方网站' : 'Official Website', + sub: 'reims.dev', + href: 'https://reims.dev/', + }, + { + title: isZh ? '项目主页' : 'Project Repository', + sub: 'github.com/Nwflower/Reims-Go', + href: 'https://github.com/Nwflower/Reims-Go', + }, + { + title: 'Discord', + sub: isZh ? '加入社区交流与反馈问题' : 'Join the community server', + href: 'https://discord.gg/Tj682rW5rS', + }, + ].map((link) => ( +
+
+
+ {link.title} +
+
+ {link.sub} +
+
+ + + {isZh ? '打开' : 'Open'} + +
+ ))} + +
+
+
+ {isZh ? 'QQ 交流群' : 'QQ Group'} + 1136042744 +
+
+ {isZh ? '中文社区讨论与装机排障' : 'Chinese community discussion'} +
+
+
+ + + + NOTICE + +
+
+
+
+
+ ); +}; + +// ── In-Window Interactive VM Settings Modal (SettingsModal.tsx 1:1) ─────────── +export const SimVmSettingsModal: React.FC<{ + isZh: boolean; + v: SimThemeVars; + vm: SimVM; + onClose: () => void; + onSave: (patch: Partial) => void; +}> = ({ isZh, v, vm, onClose, onSave }) => { + const [cat, setCat] = useState<'compute' | 'display' | 'input'>('compute'); + const [cpus, setCpus] = useState(vm.cpus); + const [memoryGb, setMemoryGb] = useState(vm.memoryGb); + const [resolution, setResolution] = useState(vm.resolution); + const [graphics, setGraphics] = useState(vm.graphics); + const [network, setNetwork] = useState(vm.network); + const [winToCmd, setWinToCmd] = useState(vm.winToCmd); + const [captureShortcuts, setCaptureShortcuts] = useState(vm.captureShortcuts); + + const cats = [ + { id: 'compute' as const, label: isZh ? '计算与网络' : 'Compute & Net', bg: 'linear-gradient(145deg,#7a78ff,#5856d6)' }, + { id: 'display' as const, label: isZh ? '显示与显卡' : 'Display & GPU', bg: 'linear-gradient(145deg,#32a0ff,#007aff)' }, + { id: 'input' as const, label: isZh ? '键盘与快捷键' : 'Keyboard', bg: 'linear-gradient(145deg,#ff6482,#ff2d55)' }, + ]; + + useEffect(() => { + const onKey = (e: KeyboardEvent) => { + if (e.key === 'Escape') onClose(); + }; + window.addEventListener('keydown', onKey); + return () => window.removeEventListener('keydown', onKey); + }, [onClose]); + + return ( +
+
e.stopPropagation()} + style={{ + background: v.surface2, + borderColor: v.borderStrong, + boxShadow: v.shadowOverlay, + color: v.text, + }} + className="flex h-[440px] w-[680px] flex-col overflow-hidden rounded-[16px] border" + > +
+
+ {vm.displayName || vm.name} — {isZh ? '虚拟机设置' : 'VM Settings'} +
+ +
+ +
+
+ {cats.map((c) => { + const active = cat === c.id; + return ( + + ); + })} +
+ +
+ {cat === 'compute' && ( + <> +
+ + {isZh ? '处理器核心数 (P-Core 优先)' : 'CPU Cores (P-Core preferred)'} + +
+ {[4, 6, 8, 12].map((n) => ( + + ))} +
+
+ +
+ + {isZh ? '分配内存' : 'Memory'} + +
+ {[8, 12, 16].map((gb) => ( + + ))} +
+
+ +
+ + {isZh ? '网络模式(v0.2.12 支持 Npcap 运行中热切换)' : 'Network mode (v0.2.12 live Npcap bridge)'} + + +
+ + )} + + {cat === 'display' && ( + <> +
+ + {isZh ? '显卡模式' : 'Graphics engine'} + + +
+ +
+ + {isZh ? '分辨率与缩放' : 'Resolution & HiDPI'} + +
+ {['1080p', '1440p · 1.5× HiDPI', '4K · 2× HiDPI'].map((res) => ( + + ))} +
+
+ + )} + + {cat === 'input' && ( +
+
+
+
+ {isZh ? '将 Win 键映射为 macOS Command' : 'Map Windows key to Command'} +
+
+ {isZh ? '按虚拟机独立生效,匹配原生 Mac 快捷键手势' : 'Per-VM modifier remap for native macOS shortcuts'} +
+
+ +
+
+
+
+ {isZh ? '聚焦时拦截宿主机快捷键(v0.2.12)' : 'Capture host shortcuts on focus (v0.2.12)'} +
+
+ {isZh ? '自动置顶低级键盘钩子,防止 Win / Alt 误触 Windows 菜单' : 'Blocks Win/Alt host shortcuts while VM window is focused'} +
+
+ +
+
+ )} +
+
+ +
+ + {vm.state === 'running' + ? isZh + ? '部分硬件参数将在下次重启生效' + : 'Hardware changes apply on next restart' + : isZh + ? '修改后将立即写入 vm.toml' + : 'Changes write directly to vm.toml'} + +
+ + +
+
+
+
+ ); +}; + +// ── In-Window Interactive Create VM Modal ───────────────────────────────────── +export const SimCreateVmModal: React.FC<{ + isZh: boolean; + v: SimThemeVars; + defaultMajor?: number; + onClose: () => void; + onCreate: (opts: { name: string; major: number; cpus: number; memoryGb: number }) => void; +}> = ({ isZh, v, defaultMajor = 26, onClose, onCreate }) => { + const [major, setMajor] = useState(defaultMajor); + const [name, setName] = useState(defaultMajor === 15 ? 'macos-sequoia-dev' : 'macos-tahoe-lab'); + const [cpus, setCpus] = useState(8); + const [memoryGb, setMemoryGb] = useState(8); + + const presets = [ + { major: 26, label: 'macOS Tahoe 26', slug: 'macos-tahoe-lab' }, + { major: 15, label: 'macOS Sequoia 15', slug: 'macos-sequoia-dev' }, + { major: 14, label: 'macOS Sonoma 14', slug: 'macos-sonoma-test' }, + ]; + + useEffect(() => { + const onKey = (e: KeyboardEvent) => { + if (e.key === 'Escape') onClose(); + }; + window.addEventListener('keydown', onKey); + return () => window.removeEventListener('keydown', onKey); + }, [onClose]); + + return ( +
+
e.stopPropagation()} + style={{ background: v.surface2, borderColor: v.borderStrong, boxShadow: v.shadowOverlay, color: v.text }} + className="flex w-[520px] flex-col overflow-hidden rounded-[16px] border" + > +
+
+ {isZh ? '新建虚拟机向导' : 'Create Virtual Machine'} +
+ +
+ +
+
+ + {isZh ? '选择 macOS 版本' : 'Choose macOS version'} + +
+ {presets.map((p) => { + const active = major === p.major; + return ( + + ); + })} +
+
+ +
+ + setName(e.target.value)} + style={{ background: v.input, borderColor: v.borderStrong, color: v.text }} + className="h-[32px] rounded-[8px] border px-3 text-[13px] outline-none focus-visible:ring-2 focus-visible:ring-accent/40" + /> +
+ +
+
+ {isZh ? '处理器' : 'CPU'} +
+ {[4, 8, 12].map((c) => ( + + ))} +
+
+
+ {isZh ? '内存' : 'RAM'} +
+ {[8, 12, 16].map((g) => ( + + ))} +
+
+
+
+ +
+ + +
+
+
+ ); +}; diff --git a/src/components/home/reims-sim/simTypes.tsx b/src/components/home/reims-sim/simTypes.tsx new file mode 100644 index 0000000..9e9178c --- /dev/null +++ b/src/components/home/reims-sim/simTypes.tsx @@ -0,0 +1,304 @@ +import React from 'react'; + +export type VmState = 'stopped' | 'starting' | 'running' | 'suspended'; +export type SysPageId = '__images__' | '__plugins__' | '__kernel__' | '__settings__' | '__about__'; +export type AppSelection = string; // VM id or SysPageId +export type LogTab = 'app' | 'serial' | 'qemu'; + +export interface SimVM { + id: string; + name: string; + displayName: string; + major: number; + state: VmState; + cpus: number; + memoryGb: number; + diskUsedGb: number; + diskTotalGb: number; + resolution: string; + graphics: 'reims-vgpu' | 'vmware-svga'; + gpuName: string; + network: 'shared' | 'bridged'; + lang: 'zh-CN' | 'en-US'; + sshPort: number; + sshUser: string; + guestToolsAttached: boolean; + preventSleep: boolean; + hostDns: boolean; + captureShortcuts: boolean; + winToCmd: boolean; + uptimeSec: number; + suspendedAt?: string; +} + +export interface SimLogLine { + id: number; + ts: string; + source: string; + level: 'info' | 'warn' | 'error'; + line: string; +} + +export interface SimPlugin { + id: string; + nameZh: string; + nameEn: string; + descZh: string; + descEn: string; + version: string; + trust: 'official' | 'builtin' | 'verified'; + tier: 'L1' | 'L3' | 'L4'; + tone: 'indigo' | 'purple' | 'sky' | 'emerald' | 'amber' | 'rose'; + enabled: boolean; + installed: boolean; + locked?: boolean; +} + +export interface SimDownloadTask { + version: string; + title: string; + percent: number; + speedMb: number; + paused: boolean; +} + +export interface SimThemeVars { + chrome: string; + canvas: string; + rail: string; + sidebar: string; + sidebarBorder: string; + sidebarShadow: string; + surface1: string; + elevated: string; + surface2: string; + input: string; + hover: string; + active: string; + border: string; + borderStrong: string; + text: string; + text2: string; + text3: string; + textCode: string; + statusbar: string; + accent: string; + accentHover: string; + accentSoft: string; + accentSoftText: string; + okSoft: string; + okText: string; + warnSoft: string; + warnText: string; + danger: string; + dangerSoft: string; + dangerText: string; + segThumb: string; + shadowOverlay: string; + shadowBtn: string; +} + +export function getSimThemeVars(dark: boolean): SimThemeVars { + if (dark) { + return { + chrome: 'linear-gradient(180deg, #212228 0%, #1c1d22 100%)', + canvas: '#1d1e23', + rail: '#17181c', + sidebar: 'linear-gradient(180deg, rgba(40,41,48,0.94) 0%, rgba(34,35,41,0.92) 100%)', + sidebarBorder: 'rgba(255,255,255,0.09)', + sidebarShadow: '0 6px 22px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.08)', + surface1: 'rgba(255,255,255,0.048)', + elevated: 'rgba(255,255,255,0.075)', + surface2: 'rgba(42,43,50,0.98)', + input: 'rgba(0,0,0,0.28)', + hover: 'rgba(255,255,255,0.075)', + active: 'rgba(255,255,255,0.12)', + border: 'rgba(255,255,255,0.085)', + borderStrong: 'rgba(255,255,255,0.16)', + text: '#f5f5f7', + text2: '#c2c2ca', + text3: '#92929c', + textCode: '#d4d6e0', + statusbar: '#18191e', + accent: '#0a84ff', + accentHover: '#2492ff', + accentSoft: 'rgba(10,132,255,0.20)', + accentSoftText: '#64b0ff', + okSoft: 'rgba(48,209,88,0.16)', + okText: '#30d158', + warnSoft: 'rgba(255,214,10,0.15)', + warnText: '#ffd60a', + danger: '#ff453a', + dangerSoft: 'rgba(255,69,58,0.15)', + dangerText: '#ff8b83', + segThumb: '#555760', + shadowOverlay: '0 18px 40px rgba(0,0,0,0.52), 0 0 0 1px rgba(255,255,255,0.09)', + shadowBtn: '0 1px 2px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.06)', + }; + } + return { + chrome: 'linear-gradient(180deg, #eff4fb 0%, #e8f0fa 100%)', + canvas: '#ffffff', + rail: 'linear-gradient(180deg, #e7f0fa 0%, #dde8f7 100%)', + sidebar: 'linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(247,250,255,0.74) 100%)', + sidebarBorder: 'rgba(255,255,255,0.90)', + sidebarShadow: '0 4px 18px rgba(15,35,70,0.065), 0 0 0 1px rgba(15,23,42,0.06)', + surface1: '#f5f6f8', + elevated: '#ffffff', + surface2: 'rgba(255,255,255,0.98)', + input: '#ffffff', + hover: 'rgba(15,23,42,0.048)', + active: 'rgba(15,23,42,0.085)', + border: 'rgba(15,23,42,0.08)', + borderStrong: 'rgba(15,23,42,0.14)', + text: '#1d1d1f', + text2: '#424247', + text3: '#6e6e73', + textCode: '#2c2c30', + statusbar: '#eef3fa', + accent: '#007aff', + accentHover: '#006be6', + accentSoft: 'rgba(0,122,255,0.11)', + accentSoftText: '#0066d6', + okSoft: 'rgba(40,205,65,0.13)', + okText: '#147425', + warnSoft: 'rgba(255,159,10,0.14)', + warnText: '#945400', + danger: '#ff3b30', + dangerSoft: 'rgba(255,59,48,0.10)', + dangerText: '#d70015', + segThumb: '#ffffff', + shadowOverlay: '0 16px 36px rgba(15,23,42,0.16), 0 3px 10px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.06)', + shadowBtn: '0 1px 2px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.7)', + }; +} + +/** Authentic Reims-Go StatusShape (running dot, stopped ring, suspended || bars, busy half-pie). */ +export const StatusShape: React.FC<{ + kind: 'running' | 'stopped' | 'suspended' | 'busy' | 'warn'; + inverted?: boolean; +}> = ({ kind, inverted = false }) => { + if (kind === 'running') { + return ( +