Skip to content

v2.0.0-beta.6

Pre-release
Pre-release

Choose a tag to compare

@StarAwA117 StarAwA117 released this 15 Nov 02:35
· 82 commits to main since this release

MCWSLoader 2.0.0-beta.6

⚠️ 测试版 / Beta:升级前请备份 config.json、permission.json、mods/ 和自定义 Mod。

Beta: Back up config.json, permission.json, mods/ and custom Mods before upgrading.

完整文本本地化 / Full text localization

  • 所有 9 个内置 Mod 都已加入 texts 目录。
    All nine bundled Mods now ship texts directories.
  • 所有 tell 和 tellAll 消息都通过 this.rawtext 读取文本。
    Every tell and tellAll message now goes through this.rawtext.
  • 命令介绍、参数说明、帮助列表全部本地化。
    Command descriptions, parameter help and help listings are localized.
  • 终端启动、连接、关闭和 Mod 加载输出全部本地化。
    Terminal startup, connection, shutdown and Mod loading output is localized.
  • Mod manifest 的 name 和 description 可以使用文本键。
    Mod manifest name and description can use text keys.
  • WebUI Mod 配置字段支持 config. 前缀的本地化键名。
    WebUI Mod config fields support localized config. keys.
  • 支持 zh_CN.lang、zh_TW.lang 和 en_US.lang。
    Supports zh_CN.lang, zh_TW.lang and en_US.lang.
  • 语言设置和主题设置一样,只在保存成功后切换。
    Language and theme settings now apply only after a successful save.

示例 / Example:

{
  "uuid": "Spam",
  "name": "pack.name",
  "description": "pack.description"
}
pack.name=Spam tool
pack.description=Spam, advertisements and attack helpers

审计与修复 / Audit and fixes

  • 更新流程不再执行破坏性的 git reset --hard。
    Update checkout no longer performs a destructive git reset --hard.
  • 更新依赖安装使用 --ignore-scripts。
    Update dependency installation uses --ignore-scripts.
  • mods_config.json 改为原子写入并限制为 0600。
    mods_config.json is written atomically with 0600 permissions.
  • 文本键 manifest 导入时使用 uuid 生成目录名。
    Text-key manifests use uuid for the import folder name.
  • 前端语言按钮不再点击即切换,避免配置与界面不一致。
    Frontend language buttons no longer switch immediately, avoiding config/UI mismatches.
  • 更多网络、文件、HTTP 和内部错误会转换为可读提示。
    More network, file, HTTP and internal errors are mapped to readable messages.

升级 / Upgrade

git pull
npm install
npm start

从 2.0.0-beta.5 升级无需额外迁移。
No extra migration is required from 2.0.0-beta.5.

完整变更 / Full changelog: v2.0.0-beta.5...v2.0.0-beta.6