Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

修复 EU 本地化插件 (EU Localization Plugin)#5

Merged
toraidl merged 1 commit into
toraidl:mainfrom
jkfujr:main
Mar 18, 2026
Merged

修复 EU 本地化插件 (EU Localization Plugin)#5
toraidl merged 1 commit into
toraidl:mainfrom
jkfujr:main

Conversation

@jkfujr

@jkfujr jkfujr commented Mar 17, 2026

Copy link
Copy Markdown
Contributor
  1. 优化前置检查逻辑 (check_prerequisites):

    • 现在优先检查是否传入了 --eu-bundle 参数。
    • 解决了因缺失 is_port_eu_rom 标志导致插件静默跳过的问题,确保用户显式指定资源包时插件必定运行。
  2. 增强日志输出 (_replace_eu_apps):

    • 新增 _get_apk_version 方法,利用 aapt2 提取 APK 版本信息。
    • 在替换应用时,输出 Target APK 与 EU Bundle APK 的版本号对比(例如 [Target: x.x -> Bundle: y.y]),便于排查版本不匹配问题。

因为前次pr在提交前就执行过了ruff check --fix, 导致前次pr冲突的文件很多, 我就直接同步清理掉上次更新,其次又因为我的机子已经刷好本地化的包在用了, 就先这样, 其他调整等到我下次闲的没事刷机再看看(((

1. 优化前置检查逻辑 (check_prerequisites):
   - 现在优先检查是否传入了 `--eu-bundle` 参数。
   - 解决了因缺失 `is_port_eu_rom` 标志导致插件静默跳过的问题,确保用户显式指定资源包时插件必定运行。

2. 增强日志输出 (_replace_eu_apps):
   - 新增 `_get_apk_version` 方法,利用 aapt2 提取 APK 版本信息。
   - 在替换应用时,输出 Target APK 与 EU Bundle APK 的版本号对比(例如 `[Target: x.x -> Bundle: y.y]`),便于排查版本不匹配问题。
@toraidl toraidl merged commit 4e6ade4 into toraidl:main Mar 18, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants