# Changelog ## 2026-04-27 - Switched automatic Gitea version detection to prefer the official GitHub releases API. - 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 ` or `GITEA_VERSION= ./build.sh`. - Added runtime logging so `build.sh` prints which version source was used. - Changed `build.sh` to stage package contents in `build//...` 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//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.