From f54568a60b1253bc1902c00c557e4db7307f3fc2 Mon Sep 17 00:00:00 2001 From: ansible Date: Wed, 11 Mar 2026 00:55:24 +0800 Subject: [PATCH] Update debrepo template --- .gitea/workflows/build-deb.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build-deb.yaml b/.gitea/workflows/build-deb.yaml index c2fecb4..b93b74f 100644 --- a/.gitea/workflows/build-deb.yaml +++ b/.gitea/workflows/build-deb.yaml @@ -20,10 +20,11 @@ jobs: PKG_NAME="${GITHUB_REPOSITORY##*/}" echo "Building ${PKG_NAME} version ${VERSION}" - # Update version in debian/changelog if it exists - if [ -f debian/changelog ]; then - sed -i "1s/([^)]*)/($VERSION)/" debian/changelog - fi + # Update version in control file + sed -i "s/^Version:.*/Version: ${VERSION}/" debian/control + + # dpkg-deb requires uppercase DEBIAN directory + mv debian DEBIAN dpkg-deb --build --root-owner-group . "../${PKG_NAME}_${VERSION}_amd64.deb" echo "DEB_FILE=$(ls ../*.deb)" >> "$GITHUB_ENV"