fix: strip leading 'v' from version in build-deb.sh unconditionally
CI / test (push) Failing after 12m28s

Debian versions must start with a digit. When called via 'make deb',
VERSION is passed from Makefile (git describe output includes 'v' prefix).
The strip was previously only done inside the auto-detection branch,
so 'make deb' produced invalid versions like 'v2026.07.30-2-g05604a8-1'.

Now VERSION= runs after the version is determined, regardless
of whether it came from an argument or auto-detection.
This commit is contained in:
2026-07-31 15:24:39 -04:00
parent 05604a8f12
commit 210d27f9c4
+2 -1
View File
@@ -7,9 +7,10 @@ ARCH="${2:-$(dpkg --print-architecture 2>/dev/null || echo "amd64")}"
if [[ -z "$VERSION" ]]; then if [[ -z "$VERSION" ]]; then
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev") VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
VERSION="${VERSION#v}"
fi fi
VERSION="${VERSION#v}"
if ! command -v dpkg-deb &>/dev/null; then if ! command -v dpkg-deb &>/dev/null; then
echo "Error: dpkg-deb not found. Install with: sudo apt install dpkg" >&2 echo "Error: dpkg-deb not found. Install with: sudo apt install dpkg" >&2
exit 1 exit 1