From f5d042719385bd783acd7c50cbf2ccd3c53f04cc Mon Sep 17 00:00:00 2001 From: Eric Wheeler Date: Wed, 14 Aug 2024 14:17:02 -0700 Subject: [PATCH] github: fix build-deb-packages --- .github/workflows/build-deb-packages.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-deb-packages.yml b/.github/workflows/build-deb-packages.yml index ed008cb..b94d9dc 100644 --- a/.github/workflows/build-deb-packages.yml +++ b/.github/workflows/build-deb-packages.yml @@ -25,7 +25,19 @@ jobs: run: | sudo apt-get update sudo apt-get install -y build-essential autoconf automake libtool \ - libgtk-3-dev libglib2.0-dev gettext gettext autopoint desktop-file-utils devscripts fakeroot lintian + libgtk-3-dev libglib2.0-dev gettext desktop-file-utils devscripts fakeroot lintian autopoint dh-make + + - name: Prepare Debian Packaging + run: | + # Initialize debian directory structure if it doesn't exist + if [ ! -d "debian" ]; then + dh_make --createorig -y --single --native --packagename xnec2c_1.0 + fi + + # Optionally modify the debian/changelog file if needed + echo "xnec2c (1.0) unstable; urgency=low" > debian/changelog + echo " * Initial release." >> debian/changelog + echo " -- Your Name $(date -R)" >> debian/changelog - name: Build the DEB package using debuild run: |