Skip to content

v2.0.1-beta.6

Pre-release
Pre-release

Choose a tag to compare

@StarAwA117 StarAwA117 released this 16 Nov 14:20
· 8 commits to main since this release

MCWSLoader 2.0.1-beta.6

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

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

修复 Android 卡在“正在启动本地服务” / Fix Android startup hang

  • 修复独立包中 tsx 已删除但 package.json 仍声明它,启动时触发 npm install 并永远不启动 API 的问题
    Fixed the standalone package declaring tsx after removing it. This made main.ts run npm install at boot instead of starting the API.
  • 修复 UI 进程不加载 libnode.so 后仍调用 JNI 的 getCurrentABIName / registerNodeDataDirPath,导致 node_flutter 插件初始化失败的问题
    Fixed node_flutter calling JNI getCurrentABIName / registerNodeDataDirPath in a UI process that intentionally does not load libnode.so.
  • 修复 Android 13+ 未授予通知权限时直接拒绝启动前台服务的问题
    Fixed the foreground service being rejected before startup when POST_NOTIFICATIONS was not granted on Android 13+.
  • 修复资源复制失败时初始化信号量不释放,waitForInit() 永久阻塞的问题
    Fixed the init semaphore not being released when asset copying failed, which blocked waitForInit() forever.
  • 资源复制缓冲从 1 KB 提升到 64 KB,首次启动更快
    Increased the asset copy buffer from 1 KB to 64 KB.
  • 预生成 dir.list / file.list,避免对 1000+ 文件递归调用 AssetManager.list
    Precomputed asset lists avoid recursive AssetManager.list calls.
  • 修复 NodeService 重复启动导致 node::Start 二次初始化并崩溃
    Fixed duplicate NodeService starts invoking node::Start twice.
  • 修复 START_STICKY 用空路径重启 NodeService 的崩溃循环
    Fixed the empty-intent START_STICKY crash loop.
  • 启动失败后点击重试会重新轮询 API,而不是直接返回
    Retry now polls the API again after a startup timeout.

WebUI 回到 Flutter / WebUI returns to Flutter

独立版不再维护一套原生页面,改为 Flutter WebView 渲染现有 Vue WebUI。

The standalone app no longer uses a separate native page set. Flutter WebView now renders the existing Vue WebUI.

  • WebUI 从 Flutter assets 以 file:// 加载
    WebUI loads from Flutter assets through file://.
  • 不启动 WebUI 静态服务器
    No static WebUI server is started.
  • 本地 API 仍只监听 127.0.0.1:50100
    The local API still listens only on 127.0.0.1:50100.
  • 独立版使用 hash 路由和单文件经典脚本,避免 file:// 下的 ES module CORS 问题
    Standalone uses hash routing and a single classic script to avoid file:// ES module CORS.
  • 将整个 WebUI 脚本内联进 index.html,避免 Android WebView 默认禁止 file:// 页面加载外部脚本导致白屏
    Inline the entire WebUI bundle into index.html. Android WebView blocks file-to-file script requests by default, which caused a blank screen.
  • 使用 loadHtmlString 并以 http://127.0.0.1:50100/ 作为页面 origin,API 请求变为同源;仍然不启动静态页面服务器
    Load the inline document with a loopback HTTP origin via loadHtmlString. API calls are same-origin while no static page server is started.
  • 将内联脚本放到 </body> 之前,确保 Vue 挂载时 #app 已存在
    Move the inline script before </body> so Vue mounts after #app exists.
  • 修复内联脚本时 String.replace 把 JS 中的 $& 展开成 </body>,导致语法错误和纯色页面
    Fixed String.replace expanding $& in the minified script into </body>, which caused a syntax error and a blank page.
  • 允许 loopback API 接受 Origin: null / file://,并支持预检请求
    Loopback API accepts Origin: null / file:// and handles preflight requests.
  • 支持浅色 Star 和 Catppuccin Mocha 主题
    Supports the Star light theme and Catppuccin Mocha.

关于页面 / About page

WebUI 侧边栏最后新增“关于”页面:

A new About page is the last item in the WebUI sidebar:

  • 作者 GitHub
    Author GitHub
  • 项目地址
    Project repository
  • GPL-3.0 协议
    GPL-3.0 license
  • 应用和 Node.js 版本
    App and Node.js versions
  • 技术栈、文档、问题反馈链接
    Technology stack, wiki and issue links

普通 WebUI 和独立 WebUI 使用同一页面。
The normal WebUI and standalone WebUI use the same page.

平台 / Platforms

  • Android arm64 APK
  • Windows x64
  • Linux x64
  • macOS arm64

四个平台的 CI 构建均已通过。
CI builds for all four platforms pass.

兼容性 / Compatibility

从 2.0.1-beta.1 或 2.0.0 升级不需要迁移数据。
No data migration is required from 2.0.1-beta.1 or 2.0.0.

完整变更 / Full changelog: v2.0.1-beta.1...v2.0.1-beta.6