From 210d27f9c4a912693edb5d970424cde2e8521f75 Mon Sep 17 00:00:00 2001 From: Daniel Arroyo Date: Fri, 31 Jul 2026 15:24:39 -0400 Subject: [PATCH] fix: strip leading 'v' from version in build-deb.sh unconditionally 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. --- scripts/build-deb.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-deb.sh b/scripts/build-deb.sh index 111ba35..2b514bc 100755 --- a/scripts/build-deb.sh +++ b/scripts/build-deb.sh @@ -7,9 +7,10 @@ ARCH="${2:-$(dpkg --print-architecture 2>/dev/null || echo "amd64")}" if [[ -z "$VERSION" ]]; then VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev") - VERSION="${VERSION#v}" fi +VERSION="${VERSION#v}" + if ! command -v dpkg-deb &>/dev/null; then echo "Error: dpkg-deb not found. Install with: sudo apt install dpkg" >&2 exit 1