From b78f4b3028f973d9afb372503a31234311d65120 Mon Sep 17 00:00:00 2001 From: YXC0915 Date: Wed, 2 Dec 2026 03:15:54 +0800 Subject: [PATCH 1/3] feat(runtime): accept suspend-compatible Alpha revisions Read the verified compatibility ID while preserving legacy and media checks. --- changes/alpha-suspend-compatibility.json | 7 +++ frontend/wailsjs/go/models.ts | 4 ++ internal/macos/reims/suspend.go | 17 +++++-- internal/macos/reims/suspend_test.go | 20 +++++++++ .../macos/reims/suspend_transaction_test.go | 44 +++++++++++++++++++ internal/runtime/remote.go | 14 ++++++ internal/runtime/runtime.go | 1 + 7 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 changes/alpha-suspend-compatibility.json diff --git a/changes/alpha-suspend-compatibility.json b/changes/alpha-suspend-compatibility.json new file mode 100644 index 0000000..d1a9dfd --- /dev/null +++ b/changes/alpha-suspend-compatibility.json @@ -0,0 +1,7 @@ +{ + "group": "improvements", + "order": 0, + "authors": ["yxc0915"], + "zh": "具有相同挂起兼容标识的 Alpha 修订可恢复同一主编号下保存的虚拟机挂起状态。", + "en": "Alpha revisions with the same suspend compatibility ID can resume VM state saved under the same base version." +} diff --git a/frontend/wailsjs/go/models.ts b/frontend/wailsjs/go/models.ts index 99c768e..35d4dc6 100644 --- a/frontend/wailsjs/go/models.ts +++ b/frontend/wailsjs/go/models.ts @@ -2680,6 +2680,7 @@ export namespace reims { extra_args?: string; runtime_commit: string; vendor_qemu_commit?: string; + suspend_compat_id?: string; created_at: string; vmstate_size: number; @@ -2705,6 +2706,7 @@ export namespace reims { this.extra_args = source["extra_args"]; this.runtime_commit = source["runtime_commit"]; this.vendor_qemu_commit = source["vendor_qemu_commit"]; + this.suspend_compat_id = source["suspend_compat_id"]; this.created_at = source["created_at"]; this.vmstate_size = source["vmstate_size"]; } @@ -2873,6 +2875,7 @@ export namespace runtime { raw_bytes: number; sha256: Record; vendor_qemu_commit?: string; + suspend_compat_id?: string; util_commit?: string; metal2vulkan_commit?: string; patches?: Patch[]; @@ -2905,6 +2908,7 @@ export namespace runtime { this.raw_bytes = source["raw_bytes"]; this.sha256 = source["sha256"]; this.vendor_qemu_commit = source["vendor_qemu_commit"]; + this.suspend_compat_id = source["suspend_compat_id"]; this.util_commit = source["util_commit"]; this.metal2vulkan_commit = source["metal2vulkan_commit"]; this.patches = this.convertValues(source["patches"], Patch); diff --git a/internal/macos/reims/suspend.go b/internal/macos/reims/suspend.go index 202565f..26c9f20 100644 --- a/internal/macos/reims/suspend.go +++ b/internal/macos/reims/suspend.go @@ -39,6 +39,7 @@ type SuspendInfo struct { ExtraArgs string `json:"extra_args,omitempty"` RuntimeCommit string `json:"runtime_commit"` VendorQemuCommit string `json:"vendor_qemu_commit,omitempty"` + SuspendCompatID string `json:"suspend_compat_id,omitempty"` CreatedAt string `json:"created_at"` VMStateSize int64 `json:"vmstate_size"` } @@ -128,6 +129,7 @@ func BuildSuspendInfo(d VMDetail, active rt.Installed, vmstateSize int64) Suspen ExtraArgs: StripIncomingDeferArgs(d.ExtraArgs), RuntimeCommit: strings.TrimSpace(active.Commit), VendorQemuCommit: strings.TrimSpace(active.Manifest.VendorQemuCommit), + SuspendCompatID: rt.SuspendCompatibilityID(active.Commit, active.Manifest.SuspendCompatID), CreatedAt: time.Now().UTC().Format(time.RFC3339), VMStateSize: vmstateSize, } @@ -179,11 +181,18 @@ func ValidateSuspendCompatibility(meta SuspendInfo, cur VMDetail, active rt.Inst if meta.Network != cur.Network { diffs = append(diffs, fmt.Sprintf("Network (%v -> %v)", meta.Network, cur.Network)) } - if meta.VendorQemuCommit != "" && active.Manifest.VendorQemuCommit != "" && - !strings.EqualFold(strings.TrimSpace(meta.VendorQemuCommit), strings.TrimSpace(active.Manifest.VendorQemuCommit)) { + savedID := rt.SuspendCompatibilityID(meta.RuntimeCommit, meta.SuspendCompatID) + activeID := rt.SuspendCompatibilityID(active.Commit, active.Manifest.SuspendCompatID) + switch { + case savedID != "" && activeID != "": + if savedID != activeID { + diffs = append(diffs, fmt.Sprintf("Suspend compatibility (%s -> %s)", savedID, activeID)) + } + case meta.VendorQemuCommit != "" && active.Manifest.VendorQemuCommit != "" && + !strings.EqualFold(strings.TrimSpace(meta.VendorQemuCommit), strings.TrimSpace(active.Manifest.VendorQemuCommit)): diffs = append(diffs, fmt.Sprintf("QEMU commit (%s -> %s)", shortRev(meta.VendorQemuCommit), shortRev(active.Manifest.VendorQemuCommit))) - } else if meta.RuntimeCommit != "" && active.Commit != "" && - !strings.EqualFold(strings.TrimSpace(meta.RuntimeCommit), strings.TrimSpace(active.Commit)) { + case meta.RuntimeCommit != "" && active.Commit != "" && + !strings.EqualFold(strings.TrimSpace(meta.RuntimeCommit), strings.TrimSpace(active.Commit)): diffs = append(diffs, fmt.Sprintf("Runtime (%s -> %s)", meta.RuntimeCommit, active.Commit)) } return diffs diff --git a/internal/macos/reims/suspend_test.go b/internal/macos/reims/suspend_test.go index b285d49..0549c80 100644 --- a/internal/macos/reims/suspend_test.go +++ b/internal/macos/reims/suspend_test.go @@ -105,6 +105,26 @@ func TestIncomingDeferArgsIdempotent(t *testing.T) { } } +func TestSuspendLegacyRuntimeStillRequiresExactVersion(t *testing.T) { + qemu := strings.Repeat("a", 40) + state := SuspendInfo{RuntimeCommit: "a1b2c3d", VendorQemuCommit: qemu} + active := rt.Installed{Commit: "a1b2c3d", Manifest: rt.Manifest{VendorQemuCommit: qemu}} + if diffs := ValidateSuspendCompatibility(state, VMDetail{}, active); len(diffs) != 0 { + t.Fatalf("legacy exact version rejected: %v", diffs) + } + active.Commit = "a1b2c3d-p1" + active.Manifest.SuspendCompatID = "a1b2c3d" + if diffs := ValidateSuspendCompatibility(state, VMDetail{}, active); len(diffs) != 1 || !strings.Contains(diffs[0], "Runtime") { + t.Fatalf("legacy state accepted a different revision: %v", diffs) + } + + state.SuspendCompatID = "a1b2c3d" + active.Manifest.SuspendCompatID = "d4e5f6a" + if diffs := ValidateSuspendCompatibility(state, VMDetail{}, active); len(diffs) == 0 { + t.Fatal("compatibility declaration for another family was accepted") + } +} + func TestValidateSetRejectsSuspendedVM(t *testing.T) { issues := ValidateSetLocalized( SetOpts{Name: "tahoe", CPUs: 6}, diff --git a/internal/macos/reims/suspend_transaction_test.go b/internal/macos/reims/suspend_transaction_test.go index 7c9a845..77cf76b 100644 --- a/internal/macos/reims/suspend_transaction_test.go +++ b/internal/macos/reims/suspend_transaction_test.go @@ -87,3 +87,47 @@ func TestSuspendTransactionKeepsSealedFilesWhenPublicationFails(t *testing.T) { t.Fatalf("recoverable snapshot = %q, %v, %v", state, paths, err) } } + +func TestSuspendTransactionChecksRuntimeCompatibilityFamily(t *testing.T) { + dir := t.TempDir() + media := filepath.Join(dir, "disk.qcow2") + for _, path := range []string{media, filepath.Join(dir, "vm.toml"), SuspendStatePath(dir) + ".tmp"} { + if err := os.WriteFile(path, []byte("test state"), 0o600); err != nil { + t.Fatal(err) + } + } + d := VMDetail{Name: "test", Directory: dir, CPUs: 2} + saved := rt.Installed{Commit: "a1b2c3d-p1", Manifest: rt.Manifest{ + SuspendCompatID: "a1b2c3d", VendorQemuCommit: strings.Repeat("a", 40), + }} + if _, err := SealSuspend(d, saved, []string{media}); err != nil { + t.Fatal(err) + } + info, err := ReadSuspendInfo(dir) + if err != nil || info.SuspendCompatID != "a1b2c3d" { + t.Fatalf("saved suspend compatibility = %+v, %v", info, err) + } + candidate := rt.Installed{Commit: "a1b2c3d-p2", Manifest: rt.Manifest{ + SuspendCompatID: "a1b2c3d", VendorQemuCommit: strings.Repeat("b", 40), + }} + if _, _, err := ValidateSuspendFiles(d, candidate); err != nil { + t.Fatalf("compatible revision rejected: %v", err) + } + + otherFamily := candidate + otherFamily.Commit = "d4e5f6a" + otherFamily.Manifest.SuspendCompatID = "d4e5f6a" + if _, _, err := ValidateSuspendFiles(d, otherFamily); err == nil || !strings.Contains(err.Error(), "Suspend compatibility") { + t.Fatalf("different family was not rejected: %v", err) + } + if !HasSuspendState(dir) { + t.Fatal("compatibility check removed the saved state") + } + + if err := os.WriteFile(media, []byte("changed disk content"), 0o600); err != nil { + t.Fatal(err) + } + if _, _, err := ValidateSuspendFiles(d, candidate); err == nil || !strings.Contains(err.Error(), "disk.qcow2") { + t.Fatalf("compatible revision bypassed media verification: %v", err) + } +} diff --git a/internal/runtime/remote.go b/internal/runtime/remote.go index 6452895..39c4ada 100644 --- a/internal/runtime/remote.go +++ b/internal/runtime/remote.go @@ -448,6 +448,20 @@ func splitRuntimeID(id string) (base, rev string) { return id, "" } +var suspendReleaseIDPattern = regexp.MustCompile(`^[0-9a-f]{7,40}(-p[1-9][0-9]*)?$`) + +// SuspendCompatibilityID accepts a declaration only for its own release family. +// An absent declaration keeps the legacy exact-runtime checks. +func SuspendCompatibilityID(releaseID, declared string) string { + releaseID = strings.ToLower(strings.TrimSpace(releaseID)) + declared = strings.ToLower(strings.TrimSpace(declared)) + base, _ := splitRuntimeID(releaseID) + if !suspendReleaseIDPattern.MatchString(releaseID) || declared != base { + return "" + } + return declared +} + // sameRuntimeID reports whether a and b refer to the same runtime build, // allowing short/full commit prefix matching only within the same revision. func sameRuntimeID(a, b string) bool { diff --git a/internal/runtime/runtime.go b/internal/runtime/runtime.go index ae9c3e2..ca75be4 100644 --- a/internal/runtime/runtime.go +++ b/internal/runtime/runtime.go @@ -38,6 +38,7 @@ type Manifest struct { // Schema 2 provenance fields: upstream commits, applied patches, build channel, and source archive. VendorQemuCommit string `json:"vendor_qemu_commit,omitempty"` + SuspendCompatID string `json:"suspend_compat_id,omitempty"` UtilCommit string `json:"util_commit,omitempty"` MetalCommit string `json:"metal2vulkan_commit,omitempty"` Patches []Patch `json:"patches,omitempty"` From 584db4742d9bfde382b097fef0c528dcd8c14cfd Mon Sep 17 00:00:00 2001 From: YXC0915 Date: Wed, 2 Dec 2026 04:07:54 +0800 Subject: [PATCH 2/3] docs(runtime): codify client compatibility and AI index [ci skip] --- AGENTS.md | 12 +------- AI-DOCS.md | 30 ++++++++++++++++++++ docs/runtime-client-compatibility.md | 42 ++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 11 deletions(-) create mode 100644 AI-DOCS.md create mode 100644 docs/runtime-client-compatibility.md diff --git a/AGENTS.md b/AGENTS.md index f117e04..69f09ac 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -46,14 +46,4 @@ Reims-Go 自身代码采用 [Apache-2.0](LICENSE) 协议。便携运行时以独 ## 文档导航 -| 文档 | 说明 | -| :--- | :--- | -| [English](README.md) / [简体中文](README.zh-CN.md) | 项目总览、核心特性与快速开始,默认英文 | -| [`CHANGELOG.md`](CHANGELOG.md) | 客户端版本更新日志 | -| [`docs/architecture.md`](docs/architecture.md) | 系统边界、进程通信、安全隔离与便携运行时契约 | -| [`docs/design-guidelines.md`](docs/design-guidelines.md) | 状态模型、界面层级与文案规范 | -| [`docs/plugin-architecture.md`](docs/plugin-architecture.md) | 插件隔离模型、包清单与公开契约规则 | -| [`docs/testing.md`](docs/testing.md) | 分级测试命令与并发隔离规则 | -| [`docs/pr-review-guidelines.md`](docs/pr-review-guidelines.md) | PR 跨仓归属审查与自动审核规范 | -| [`docs/changelog.md`](docs/changelog.md) | 双语变更片段格式与版本编入流程 | -| [运行时补丁与上游跟踪](https://github.com/yxc0915/reims-vgpu/blob/master/packaging/windows-runtime/patches/README.md) | 外部运行时仓库源码入口与依赖补丁 | +开始处理用户任务前,先通过 [AI 文档索引](AI-DOCS.md) 定位修改目标涉及的领域,并阅读对应的规范。跨领域任务须查阅各相关规范。 diff --git a/AI-DOCS.md b/AI-DOCS.md new file mode 100644 index 0000000..6621757 --- /dev/null +++ b/AI-DOCS.md @@ -0,0 +1,30 @@ +# AI 任务文档索引 + +开始处理用户任务前,先阅读 [AGENTS.md](AGENTS.md)。根据任务的修改目标定位可能涉及的领域,阅读下表对应的规范和相关章节,再修改文件或执行验证。跨领域任务须阅读各相关规范。任务范围变化时,先补读新领域的规范。 + +## 仓库规范 + +| 涉及领域 | 文档名称 | 位置 | +| :--- | :--- | :--- | +| 任务范围、存储、调试目录、安全和合规 | 仓库协作规则 | [AGENTS.md](AGENTS.md) | +| 核心分层、跨仓归属、运行时契约和数据迁移 | 系统架构 | [docs/architecture.md](docs/architecture.md) | +| 运行时下载、安装、版本门槛和分发 | 运行时客户端版本兼容规范 | [docs/runtime-client-compatibility.md](docs/runtime-client-compatibility.md) | +| 界面、状态模型、生产文案和操作反馈 | 产品与界面设计规范 | [docs/design-guidelines.md](docs/design-guidelines.md) | +| 插件、驱动扩展接口、权限和分发 | 插件系统架构 | [docs/plugin-architecture.md](docs/plugin-architecture.md) | +| 测试选择、构建检查、冒烟和并发隔离 | 测试 | [docs/testing.md](docs/testing.md) | +| 提交、PR 描述、跨仓审查和合并检查 | PR 变更归属审查 | [docs/pr-review-guidelines.md](docs/pr-review-guidelines.md) | +| PR 验证记录和合并前核对 | PR 模板 | [.github/PULL_REQUEST_TEMPLATE.md](.github/PULL_REQUEST_TEMPLATE.md) | +| 用户可见变更、更新日志与发布说明 | 更新日志编写与发布 | [docs/changelog.md](docs/changelog.md) | +| 开源许可、依赖声明和运行时分发合规 | Apache License 2.0、Third-Party Notices | [LICENSE](LICENSE) · [NOTICE.md](NOTICE.md) | + +## 专题与关联仓库 + +| 涉及领域 | 文档名称 | 位置 | +| :--- | :--- | :--- | +| 挂起恢复所用运行时的编号和兼容判定 | Alpha 运行时编号与挂起兼容性规范 | [reims-go/reims-vgpu 的 packaging/windows-runtime/versioning.md](https://github.com/reims-go/reims-vgpu/blob/master/packaging/windows-runtime/versioning.md) | +| 运行时源码、依赖补丁和补丁退役 | 运行时源码与依赖补丁 | [reims-go/reims-vgpu 的 packaging/windows-runtime/patches/README.md](https://github.com/reims-go/reims-vgpu/blob/master/packaging/windows-runtime/patches/README.md) | +| FileVault 开机输入与启动镜像 | FileVault 开机输入镜像构建 | [scripts/filevault-input/README.md](scripts/filevault-input/README.md) | +| 虚拟机系统盘性能测量 | 系统盘小文件 I/O 基准与采样工具 | [scripts/io-bench/README.md](scripts/io-bench/README.md) | +| 跨会话工单与 Agent 交接 | 调试工单模板 | [scripts/debug/work-template.md](scripts/debug/work-template.md) | + +项目总览见 [English](README.md) 和 [简体中文](README.zh-CN.md)。已发布的客户端变更见 [CHANGELOG.md](CHANGELOG.md)。新增、移动或废止规范时同步更新本索引。 diff --git a/docs/runtime-client-compatibility.md b/docs/runtime-client-compatibility.md new file mode 100644 index 0000000..9174b2d --- /dev/null +++ b/docs/runtime-client-compatibility.md @@ -0,0 +1,42 @@ +# 运行时客户端版本兼容规范 + +本规范适用于带客户端版本门槛的便携运行时。新分发源在客户端和构建流程通过本文验收后启用。 + +## 最低支持版本 + +最低客户端版本取分发协议下限与运行契约下限中的较高者。分发协议下限是能够识别新分发源并执行下载、安装校验的首个正式客户端版本。初始目标为 `v0.2.12`。该正式版实际提供上述能力并通过验收后,才能作为发布下限。 + +运行契约下限取该运行时必需能力各自首次进入正式客户端的版本中的最高值。审查以客户端和运行时的源码、对应正式发布标签,以及实际操作结果为依据。 + +| 运行时变更 | 版本判定 | +| :--- | :--- | +| QEMU 内部修复、磁盘性能优化或打包整理 | 用原最低版本验证相关操作。通过后沿用下限。 | +| 启动或运行依赖新的参数、配置、CLI 或 QMP 行为 | 找到客户端首次正确处理该契约的正式版,提高下限。 | +| 新增可选功能且原有路径可安全使用 | 验证旧客户端的降级行为后沿用下限。 | +| 旧客户端误判运行时、生成错误启动参数或跳过必要校验 | 找到具备正确处理能力的正式版,并验证修复后再发布。 | + +宿主机或驱动差异随验收环境记录。客户端版本下限以客户端缺失的必需能力为依据。运行时发版记录写明最低版本、需要的能力和验证结果。 + +## 分发和安装校验 + +- 旧客户端继续访问现有运行时分发源,获取已验证兼容的基线。带门槛的新运行时发布到独立的 GitHub Release 分发仓库。首个新源运行时使用新的发布编号。 +- 新客户端的 GUI 和 CLI 使用同一条运行时校验路径。客户端在下载运行时压缩包前读取并校验 Release 的小型兼容清单。新源缺少清单、校验失败或客户端低于门槛时,禁止拉取该包并提示所需版本。 +- 安装前再次检查包内 `manifest.json`,覆盖缓存和离线导入。新格式要求声明最低客户端版本。在线安装还要比对包内外的运行时编号和版本约束。校验通过后才替换当前运行时。 +- 最低版本包含该版本本身,按 SemVer 比较。若门槛为 `v0.2.12`,则同编号的 Dev 预发布低于该正式版。 [SemVer 版本优先级](https://semver.org/spec/v2.0.0.html#spec-item-11) + +Release 兼容清单使用 `runtime-compat.json`,至少记录 `runtime_id` 和 `min_client_version`。`runtime_id` 与包内 `manifest.json` 的 `commit` 一致,最低版本在两份清单中使用同一个值。 + +客户端版本通过后,挂起恢复仍执行运行时挂起兼容、虚拟硬件和介质完整性校验。 [挂起兼容规范](https://github.com/reims-go/reims-vgpu/blob/master/packaging/windows-runtime/versioning.md) + +## 构建与发布 + +运行时源码中的 `reims-go-runtime.json` 声明 `min_client_version`。流水线从这一处生成包内最低版本字段和 Release 兼容清单,并将兼容清单纳入 `SHA256SUMS.txt`。CI 在发布前核对归档名称、包内外版本、校验和与源码来源。运行时编号和去重使用实际运行时与打包提交。 + +先发布具备全部校验能力的正式客户端,再向新分发源发布 Alpha。自动发布凭据只授予分发仓库所需的发布权限。Alpha 由流水线发布,Stable 经真机验证后人工晋升。 [构建入口](https://github.com/reims-go/reims-vgpu/blob/master/.github/workflows/runtime-preview.yml) + +## 验收 + +1. 用同一运行时包在隔离环境里验证拟定的最低客户端和上一正式版。最低客户端应完成下载、安装、启动、关机,以及此次改动涉及的操作。 +2. 声明上一正式版存在运行兼容问题时,记录同包对照中的失败步骤和源码依据。 +3. 验证旧客户端从旧源取得兼容基线。新版客户端的版本不足、清单异常、清单与包不一致时,分别确认在下载、安装阶段拦截。 +4. 验证缓存和离线安装在校验失败后保留原运行时。涉及虚拟机运行和恢复的兼容结论以真机结果为准,未完成时标记待验证。 [测试](testing.md) From e7087c7bd87b4a01b592060b44cc540e2ac6d4af Mon Sep 17 00:00:00 2001 From: YXC0915 Date: Wed, 2 Dec 2026 04:11:02 +0800 Subject: [PATCH 3/3] docs: clarify independently maintained runtime sources [ci skip] --- AGENTS.md | 4 +++- docs/architecture.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 69f09ac..8986b6a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -6,7 +6,9 @@ Reims-Go 是面向 Windows x86-64 的免编译 macOS 虚拟机桌面启动器与工作台,桌面窗口与命令行共用同一份 Go 核心。 -上游 [`steelbrain/reims-vgpu`](https://github.com/steelbrain/reims-vgpu) 提供虚拟显卡引擎、Metal 转 Vulkan 运行库与底层命令行工具。本仓库负责客户端界面、命令行外壳、硬件体检、宿客协作、恢复点与插件托管。便携运行时的编译、依赖补丁、打包与预览发布由 [Reims vGPU fork 的构建流水线](https://github.com/yxc0915/reims-vgpu/blob/master/.github/workflows/runtime-preview.yml) 独立负责。 +`steelbrain/reims-vgpu` 是虚拟显卡引擎、Metal 转 Vulkan 运行库与底层命令行工具的技术上游。本仓库负责客户端界面、命令行外壳、硬件体检、宿客协作、恢复点与插件托管。 [技术上游](https://github.com/steelbrain/reims-vgpu) + +Reims-Go 发布的便携运行时基于团队独立维护的 `reims-go/reims-vgpu` 和 `reims-go/qemu-reims-vgpu` 构建。运行时维护仓库通过 `vendor/qemu` 固定团队 QEMU 仓库的提交,并负责编译、依赖补丁、打包和预览发布。 [运行时维护仓库](https://github.com/reims-go/reims-vgpu) · [QEMU 维护仓库](https://github.com/reims-go/qemu-reims-vgpu) · [运行时构建流程](https://github.com/reims-go/reims-vgpu/blob/master/.github/workflows/runtime-preview.yml) ## 存储与调试目录纪律 diff --git a/docs/architecture.md b/docs/architecture.md index fdfda94..5cdebef 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -83,7 +83,7 @@ macOS 专属逻辑集中在 `internal/macos/` 与 `frontend/src/macos/`,宿主 ## 便携运行时与跨仓边界 -便携运行时由独立的 [Reims vGPU fork 流水线](https://github.com/yxc0915/reims-vgpu) 每日自动构建并发布,压缩包内包含同一上游提交产出的 `reims-ctl.exe`、`reims-util.exe`、QEMU 可执行文件、自包含运行库、`manifest.json` 溯源清单、应用的全部补丁原文及许可证全文,调试符号单独打包分发。 +便携运行时基于团队独立维护的 `reims-go/reims-vgpu` 和 `reims-go/qemu-reims-vgpu` 构建。运行时仓库固定 QEMU 子模块的提交,负责构建、依赖补丁、打包与 Alpha 发布。压缩包包含 `reims-ctl.exe`、`reims-util.exe`、QEMU、自包含运行库、实际应用的补丁和许可证全文。`manifest.json` 记录各组件的实际源码提交及补丁,调试符号单独打包分发。 [运行时维护仓库](https://github.com/reims-go/reims-vgpu) · [QEMU 维护仓库](https://github.com/reims-go/qemu-reims-vgpu) 客户端下载运行时经 `SHA256SUMS.txt` 强校验后原子解压到数据目录的 `runtimes/` 下,并在调用子进程时统一将 `XDG_CONFIG_HOME`、`XDG_DATA_HOME`、`XDG_CACHE_HOME` 与 `REIMS_CTL_QEMU` 重定向到数据目录内,不污染用户主目录或系统盘。自动构建产物先作为 GitHub 预发布进入 `alpha` 通道;只有在真实 Windows 宿主机跑通环境检查、启动进入桌面、截屏与正常关机冒烟并经人工确认后,才晋升为默认提供的 `stable` 正式版。