From 0f5853a398055a66e63c59514287a37490e1a4b6 Mon Sep 17 00:00:00 2001 From: qiyinxi Date: Thu, 5 Nov 2026 21:30:46 +0100 Subject: [PATCH 01/11] =?UTF-8?q?=E5=9B=9E=E5=BD=92=E5=88=AB=E5=86=8D?= =?UTF-8?q?=E8=90=BD=E5=88=B0=E7=94=9F=E4=BA=A7=E7=AB=AF=E5=8F=A3=E6=AE=B5?= =?UTF-8?q?=EF=BC=9A=E7=AE=A1=E7=90=86=E5=99=A8=E5=BF=85=E9=A1=BB=E7=BB=99?= =?UTF-8?q?=E3=80=81=E6=A0=B8=E5=AF=B9=20port=5Fbase=EF=BC=8C=E6=98=9F?= =?UTF-8?q?=E9=93=81=E7=AB=AF=E5=8F=A3=E7=A7=BB=E5=87=BA=2020000=20?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 0.38 回归撞到两次: - regress.ps1 不传 -Manager 时用了本机配置里留着的旧管理器(0.2.0,不认 portBase), 测试根的实例开到了生产的 20000 段。现在 -Manager 必须给、不从本机配置取;单独跑某一项 要设 MODAVD_REGRESS_MANAGER。开测试根的实例前用 modavd list --json 核对 port_base: 没有这个字段(旧版)、和 mas-avd.json 的 portBase 不一致、是 20000,都停下不开机。 - game-real.ps1 把星铁的控制台端口写死成 20040(生产段)。改成 20120,四个游戏的端口 可以用本机配置 GamePorts 覆盖;控制台端口和 +1、+2 落在 20000–20049 或碰 5037、 20049、20050 就停。 tests/tooling-guards.ps1 覆盖这几道守卫,CI 里跑。 --- .github/workflows/check.yml | 3 + README.en.md | 6 +- README.md | 6 +- items/common.ps1 | 57 ++++++++++++----- items/game-real.ps1 | 7 ++- items/ime-pkg.ps1 | 1 - items/port-guard.ps1 | 10 +++ items/upgrade.ps1 | 5 +- local.example.psd1 | 7 ++- regress.ps1 | 7 ++- tests/tooling-guards.ps1 | 121 ++++++++++++++++++++++++++++++++++++ 11 files changed, 200 insertions(+), 30 deletions(-) create mode 100644 items/port-guard.ps1 create mode 100644 tests/tooling-guards.ps1 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 8fd58f4..c8a27b6 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -38,5 +38,8 @@ jobs: - name: Check disk usage parsing and install safeguards shell: pwsh run: ./tests/created-disk-usage.ps1 + - name: Check the manager requirement, port_base check and game port guard + shell: pwsh + run: ./tests/tooling-guards.ps1 - name: Scan tracked files for private identity and paths run: python3 .modavd/scripts/privacy.py . diff --git a/README.en.md b/README.en.md index 0c3995e..7b3d555 100644 --- a/README.en.md +++ b/README.en.md @@ -49,8 +49,8 @@ By default the output goes to `\regress--