Prune dist cache before early exit and fix source logging

This commit is contained in:
2026-04-27 00:45:01 +02:00
parent b0e7f4a816
commit 1a64595ed2
2 changed files with 23 additions and 19 deletions
+4
View File
@@ -6,3 +6,7 @@
- Kept `https://dl.gitea.com/gitea/version.json` as a fallback because it may lag behind published releases.
- Added explicit support for overriding the target version with `./build.sh <version>` or `GITEA_VERSION=<version> ./build.sh`.
- Added runtime logging so `build.sh` prints which version source was used.
- Changed `build.sh` to stage package contents in `build/<version>/...` so repository files are not modified during a build.
- Removed tracked Gitea binaries and PhpStorm project files from the repository and added ignore rules for local-only files.
- Added pruning of stale `dist/<arch>/gitea-*` cache files before each run, including runs that abort because the current release is already built.
- Fixed version-source logging after cache pruning so `Version source:` is populated correctly again.