Fix release body version substitution: correct docs path typo (#668)

* Initial plan

* fix: update patch.py to include version in file description and Docker annotations

- Modified add_nuitka_file_description() to accept version parameter and append it to description
- Updated Docker build annotations to include version-specific description
- Removed hardcoded file-description from Windows standalone build in publish.yml
- Version now correctly appears in descriptions (e.g., [v4.1.0]) instead of "latest"

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

* chore: revert unintended Python 2 compatibility removal

Restore systemd.py and http.py to previous state. These files were accidentally modified during testing of patch.py script.

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

* docs: add solution summary for version description fix

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

* fix: restore Python 2 compatibility code in systemd.py and http.py

Properly restore the Python 2/3 compatibility try-except blocks that were accidentally removed during testing.

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

* fix: correct path to release.md for GitHub release body updates

Fix typo in patch.py where it references 'doc/release.md' instead of 'docs/release.md'. This caused the release body to always show 'latest' instead of the actual version tag because the file was never found and updated.

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

* revert: remove Nuitka description changes, keep only docs path fix

As requested, reverted all changes except the single-line fix changing 'doc' to 'docs' in patch.py line 468. This ensures only the GitHub release body version substitution fix is included.

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

* Fix release body version substitution: correct docs path typo

Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: NewFuture <6290356+NewFuture@users.noreply.github.com>
Co-authored-by: New Future <NewFuture@users.noreply.github.com>
This commit is contained in:
Copilot
2026-01-30 07:08:35 +00:00
committed by GitHub
co-authored by NewFuture New Future
parent d1d8870a9a
commit a336bf2d9b
+1 -1
View File
@@ -451,7 +451,7 @@ def main():
exit(1)
elif mode == "release":
# 同步修改 docs/release.md 的版本与链接
release_md_path = os.path.join(ROOT, "doc", "release.md")
release_md_path = os.path.join(ROOT, "docs", "release.md")
if os.path.exists(release_md_path):
replace_links_for_release_in_file(
release_md_path, version, label="docs/release.md", tag=os.environ.get("GITHUB_REF_NAME")