[中] 版本号与更新说明文件名在多处硬编码
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- build-system, release
Research direction
Start by reading VERSION and scripts/build_app.sh around line 51 to see how 1.10.0 and 更新说明-1.10.0.md are used today, then check windows/BirdLock.spec:26 and windows/birdlock/core/workspace.py:102 for the same literal. On the app side, trace Sources/BirdLockApp/Views/ReleaseNotesView.swift:7,9 and windows/birdlock/app/main_window.py:507 to find where __version__ / AppDocs.appVersion are already available. Done means the release-notes filename is derived from VERSION and the build fails when the matching notes file is missing, the UI titles read the version at runtime, and creatorVersion is a parameter supplied by the caller.
Written by the indexing model from the issue text.
Description
位置:scripts/build_app.sh:51、windows/BirdLock.spec:26、Sources/BirdLockApp/Views/ReleaseNotesView.swift:7,9、windows/birdlock/app/main_window.py:507、windows/birdlock/core/workspace.py:102
现象:1.10.0 与 更新说明-1.10.0.md 分别写死在构建脚本、spec、更新说明标题与文件名、以及工程的 creatorVersion。VERSION 是约定的唯一版本来源,但下次升版时构建不会失败,而是继续把旧说明打进包、显示旧标题、写入过期 creatorVersion。
建议:由 VERSION 派生说明文件名并在缺失时失败;UI 标题用 __version__ / AppDocs.appVersion;creatorVersion 由调用方传入。
来源:2026-11-15 全仓只读审计,PR #7 未包含此项。
- Dominant language
- Swift
- Stars
- 2
- Forks
- 2
- Avg merge
- 1h 11m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cyandee/BirdLock
-
Difficulty 2/5 Under an hour Newbie friendliness 62/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100