Repository navigation
fix(mfw): 差量包换用另一处原生库目录时改要全量包,预检实际加载一次 MaaFramework - #1986
Merged
qiyinxi merged 2 commits intoNov 14, 2026
Merged
Conversation
MAA_bbb 发行包同时带 maafw/ 与 runtimes/win-x64/ 两份原生库,导入时只留了 maafw/。 v1.13.20 只升级了 runtimes/win-x64/(5.14.3 -> 5.16.0),Mirror 酱差量包只带改过的 十几个 DLL;按版本取高 runner 换到 runtimes/win-x64,没改过的依赖(opencv、onnxruntime 等)都不在,MaaFramework.dll 每次运行都加载失败。预检只查项目 Python 的 agent,没拦住。 - 差量包套完后 runner 要用的原生库目录换了地方,抛 DeltaNativeRelocationError (原因链上是 UpdateApplyError),登记前回退全量包。 - 预检在独立子进程里按 runner 的方式加载一次新版本的 MaaFramework.dll, 确定加载不了就放弃这次更新、继续用当前版本;检查本身出问题一律放行。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
maafw/(5.14.3)和runtimes/win-x64/两份原生库,导入时只留了maafw/。v1.13.20 只升级了runtimes/win-x64/(5.16.0),Mirror 酱差量包里只有改过的十几个 DLL。runner 按版本取高换到runtimes/win-x64,opencv、onnxruntime 等没改过的依赖都不在,每次运行都报Could not find module ...\runtimes\win-x64\MaaFramework.dll (or one of its dependencies)。DeltaNativeRelocationError(原因链上是UpdateApplyError),在登记前由 feat(update): 支持 MAA、MaaEnd 与 MFW 家族选择全量或增量更新 #1949 的回退改要全量包。MaaFramework.dll。确定加载不了就放弃这次更新、继续用当前版本;检查本身出问题(起不来、超时、非 Windows)一律放行。测试与验证
.venv\Scripts\python.exe -m pytest tests -q:2087 passed、1 skipped(跑完后只给错误单独定义了类型、去掉报错末尾的句号,之后 MaaFW 相关测试重跑通过)。改动文件ruff format/ruff check通过。maafw/的当前版本和只带runtimes/win-x64改动文件的差量包:去掉修复时只下差量包、新版本缺依赖(红),修复后先下差量、再下全量,新版本原生库目录完整(绿)。预检的加载检查另有一条 Windows 专属用例。15fffce99,Windows 11,Python 3.12(项目锁定环境)。MaaFramework.dll+MaaToolkit.dll时被拒,报错与用户日志一致。