From c000259c724723a4b950328a9c2174f3b1e04884 Mon Sep 17 00:00:00 2001 From: Matti Airas Date: Sat, 22 Nov 2025 12:18:46 +0200 Subject: [PATCH] fix(ci): use PACKAGE_NAME from workflow or debian/control in rename script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same fix as for generate-changelog.sh - the script had a hardcoded package name "halpi2-daemon" instead of using the PACKAGE_NAME env var or reading from debian/control. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/scripts/rename-packages.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/rename-packages.sh b/.github/scripts/rename-packages.sh index b8763c1..2a06c53 100755 --- a/.github/scripts/rename-packages.sh +++ b/.github/scripts/rename-packages.sh @@ -37,8 +37,10 @@ if [ -z "$VERSION" ] || [ -z "$DISTRO" ] || [ -z "$COMPONENT" ]; then exit 1 fi -# Package name and architecture -PACKAGE_NAME="halpi2-daemon" +# Package name - use PACKAGE_NAME env var (from workflow) or read from debian/control +if [ -z "${PACKAGE_NAME:-}" ]; then + PACKAGE_NAME=$(grep "^Source:" debian/control | cut -d: -f2 | tr -d ' ') +fi ARCH="arm64" OLD_NAME="${PACKAGE_NAME}_${VERSION}_${ARCH}.deb"