feat(i18n): 简体中文汉化 + fix: 修复无法退出并禁用自动更新 - #274
Open
Six95827 wants to merge 2 commits into
Open
Conversation
added 2 commits
September 1, 2026 22:52
- I18nProvider 简体中文词条全面补全(+899 行): 大陆用语修正(OpenCC 繁体机械转换残留)、补齐缺失 UI key (toast/工具提示/设置项/快捷键名等) - 新增汉化辅助脚本:localize-zhcn.cjs(词条修正与生成)、 check-zhcn.cjs(完整性/重复/残留英文校验)、 analyze-i18n.cjs(UI 字符串覆盖分析)
窗口关闭链路修复(点 X / 任务栏关闭无响应):
- capabilities 补上 process:allow-exit 与 core:window:allow-destroy 权限,
使前端 exit(0) 与回退 destroy() 能真正生效
安装版 0xC0000135 崩溃修复:
- resources 改为对象形式 {"resources/*.dll": ""},ffmpeg DLL 直接落
安装根目录,修复加载器找不到 DLL 导致的启动崩溃
- bin/ffmpeg、bin/ffprobe 由文本 wrapper 替换为真实 gyan.dev FFmpeg
8.1.2 full-shared 可执行文件(630KB/228KB)
- ffmpeg 共享库 DLL(avcodec/avfilter 等约 265MB)超出 GitHub 100MB
单文件上限,不入库(见 .gitignore);README 已补充 Windows NSIS
构建所需的 DLL 获取与放置说明
禁用自动更新(防止上游更新恢复已修复的退出 bug):
- 移除 tauri-plugin-updater:Cargo.toml/Cargo.lock 依赖、
lib.rs 插件注册、tauri.conf.json 配置段、capabilities updater 权限
- 前端删除 3 秒自动检查定时器,updaterService 改为永久禁用短路,
仅保留手动检查按钮入口
- 移除 @tauri-apps/plugin-updater npm 包
构建环境配套:
- Cargo.toml 增加 profile build-override debug=false(规避 LNK1318
PDB/mspdbsrv 问题)
- .gitignore 忽略本地工具链残留(.cargo/.llvm-bin/.llvm-pkg2/
llvm-installer.exe)、ffmpeg DLL 目录与 .workbuddy 项目数据
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.
简体中文汉化 + 关闭/安装包修复 + 禁用自动更新
① feat(i18n): 完善简体中文语言包
I18nProvider简体中文词条全面补全(+899 行):修正 OpenCC 繁体机械转换残留的大陆用语,补齐缺失 UI key(toast/工具提示/设置项/快捷键名等)scripts/localize-zhcn.cjs(词条修正与生成)、check-zhcn.cjs(完整性/重复/残留英文校验)、analyze-i18n.cjs(UI 字符串覆盖分析)② fix: 修复窗口无法退出并彻底禁用自动更新
窗口关闭链路修复(点 X / 任务栏关闭无响应):
process:allow-exit与core:window:allow-destroy权限,使前端exit(0)与回退destroy()能真正生效安装版 0xC0000135 崩溃修复:
resources改为对象形式{"resources/*.dll": ""},ffmpeg DLL 直接落安装根目录,修复加载器找不到 DLL 导致的启动崩溃bin/ffmpeg、bin/ffprobe由文本 wrapper 替换为真实 gyan.dev FFmpeg 8.1.2 full-shared 可执行文件src-tauri/resources/(README 已补充获取与放置说明)禁用自动更新(防止上游更新恢复已修复的退出 bug):
tauri-plugin-updater:Cargo 依赖、插件注册、tauri.conf.json 配置段、capabilities 权限updaterService改为永久禁用短路,仅保留手动检查按钮入口@tauri-apps/plugin-updaternpm 包构建环境配套:
profile build-override debug=false(规避 LNK1318 PDB/mspdbsrv 问题).gitignore忽略本地工具链残留与 ffmpeg DLL 目录