Skip to content

The only downloader you need. 下载器的集大成者。

fix(i18n): rcc 固定用 zlib 压缩

XiaoYouChRb9f0368a2590
diff --git a/scripts/sync_i18n_res.py b/scripts/sync_i18n_res.py
index c2935eca..7bca4268 100644
--- a/scripts/sync_i18n_res.py
+++ b/scripts/sync_i18n_res.py
@@ -245,8 +245,9 @@ def buildAndroidFallbackStrings(locales: list[str]) -> None:
def buildResources() -> None:
# 格式 2 起记录文件修改时间,CI 每次 checkout 都会让 .rcc 变化
+ # Linux 版 rcc 默认用 zstd,但格式 1 读不出 zstd 条目,v4.5.9 因此丢了译文
subprocess.run([
- findTool("pyside6-rcc"), "--binary", "--format-version", "1",
+ findTool("pyside6-rcc"), "--binary", "--format-version", "1", "--compress-algo", "zlib",
"-o", RESOURCES_RCC.as_posix(),
QRC_PATH.as_posix(),
], cwd=REPO, check=True)