[中] 更新器下载缓存从不清理
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start at windows/updater/Updater.cs:173-200 where DownloadOne writes cache/<sha256>.zip, and note that only the .part file is deliberately kept for resume. Then read windows/updater/Program.cs:82 to find where a download is declared installed — that is the point after which the finished ZIP can be deleted (or pruned to the last N). Finish by adding a sentence to docs/自动更新.md; done means the installed package's ZIP is gone while .part resume files still behave as before. Verify by two consecutive update installs and inspecting %LOCALAPPDATA%\BirdLock\updates\downloads.
Written by the indexing model from the issue text.
Description
位置:windows/updater/Updater.cs:173-200;windows/updater/Program.cs:82
现象:DownloadOne 把完成包存成 cache/<sha256>.zip,成功后没有任何删除或修剪。.part 保留是续传需要,但完整 ZIP 在安装成功后已无用,每轮大版本更新都会在 %LOCALAPPDATA%\BirdLock\updates\downloads 留下数百 MB。
复现:连续两次安装更新后查看该目录。
建议:安装成功后删除对应 cache/<sha256>.zip,或只保留最近 N 个;docs/自动更新.md 也补一句说明。
来源:2026-11-15 全仓只读审计,PR #7 未包含此项。 未在 Windows 实机复现,复现路径由代码审计推得。
- 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
All issues in cyandee/BirdLock
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day