fix(frontend): 同步关于页版本号#382
Merged
JefferyHcool merged 1 commit intoMay 26, 2026
Merged
Conversation
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.
改动概述
让前端关于页版本号从构建时注入的应用版本读取,不再在页面中硬编码
BiliNote v2.0.0。为什么
About 页版本号此前写死为
2.0.0,发版或 Docker 镜像构建时容易与实际应用版本不一致。做了什么
__APP_VERSION__。BillNote_frontend/src-tauri/tauri.conf.json读取版本号。VITE_APP_VERSION覆盖构建版本。BiliNote v{appVersion}。测试方式
CI=true npx -y pnpm@9.15.0 install --frozen-lockfile && npx -y pnpm@9.15.0 build。当前前端包未提供typecheckscript,按构建验证处理。fix/frontend-about-version分支打包/运行验证,About 页版本显示修复正常。回归风险
风险较低。改动集中在前端构建时版本注入和 About 页展示;若
tauri.conf.json读取失败,会回退为0.0.0。Docker 构建路径新增版本参数,需关注 CI/Docker 构建是否正常传递。Checklist
feature/*/fix/*/release/*/hotfix/*)develop;线上紧急 →master;发版 → 见 §4.3)type(scope): subject格式(CONTRIBUTING.md §5.1).env/ 大型二进制