Repository navigation
Conversation
2026-11-15 真机事故:v2.5.2 → v2.5.3 点「重启并安装」两次都失败, 窗口重启回来还是 2.5.2,日志只有一句「[警告] 上次更新到 2.5.3 没生效」。 根因不在更新流程本身:MAA.exe 加载了发布目录里的 _internal\VCRUNTIME140.dll 与 VCRUNTIME140_1.dll(PyInstaller 把包内目录 前插进 PATH,MAA 目录自己没带 CRT,就沿 PATH 捞到我们这份)。MAA 不退, 这两个文件就锁着,robocopy /MIR 回 rc=9 → 脚本整体回滚 → 版本没变。 - 新增 precheck():点「重启并安装」前先看 MAA.exe 在不在跑,在跑直接返回 「请先关闭 MAA」,不再让用户白重启一次(install() 里解压之前调用) - install.ps1:_internal 镜像失败重试 4 次(间隔 2 秒,给占用方释放时间); 仍失败就按 (0x00000020) 这类十六进制码从 robocopy 日志里挑出错误行写进 install-error.txt——不认「错误 / ERROR」字样,日志跟着系统语言走 - on_start():上次没装成时把 install-error.txt 的原因带进 lastInstall.error, 前端提示从「没有生效」变成「没有生效:替换 _internal 失败 rc=9(…VCRUNTIME140.dll)」 - _launch_env() 的 PATH 归一化补上尾斜杠与 sys._MEIPASS,别让 MAA 再从包内捞 CRT - 冒烟 B22 补断言:安装脚本必须重试、必须留 robocopy 明细、install() 必须先预检, 且 MAA 在跑时 precheck() 要点名 MAA Co-authored-by: HuiParu <171644868+HuiParu@users.noreply.github.com>
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.
重新发布 v2.5.3。
上一版 v2.5.3 的自更新存在缺陷:MAA.exe 会加载发布目录里的
_internal/VCRUNTIME140*.dll,MAA 不退出就锁着这两个文件,robocopy /MIR回 rc=9,脚本整体回滚,用户看到「更新完版本没变」。该版本 Release 与 tag 已删除,此版本包含修复。包含:
_internal被占用要能说出是谁build/work/,成功后随中间产物清理CI 会按 PR 标题打 tag、冒烟、打包 zip 并发布 Release。