Skip to content

Commit 7c20b13

Browse files
committed
Added script to publish to ppa launchpad
1 parent 8aeb42b commit 7c20b13

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish-apt.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
chmod 700 ~/.gnupg
4747
cat > ~/.gnupg/gpg.conf << 'GPGCONF'
4848
pinentry-mode loopback
49-
no-tty
5049
GPGCONF
5150
cat > ~/.gnupg/gpg-agent.conf << 'AGENTCONF'
5251
allow-loopback-pinentry

scripts/build-source-package.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,16 @@ EOF
120120
GPG_WRAPPER="$(pwd)/gpg-sign.sh"
121121
cat > "${GPG_WRAPPER}" << 'WRAPPER'
122122
#!/bin/sh
123-
exec gpg --no-tty --pinentry-mode loopback "$@"
123+
exec gpg --pinentry-mode loopback --passphrase '' "$@"
124124
WRAPPER
125125
chmod +x "${GPG_WRAPPER}"
126126

127-
# Build the signed source package
128-
# -d skips build dependency checks since we ship pre-built binaries
129-
# -p specifies GPG wrapper for non-interactive signing
127+
# Build the unsigned source package (-d skips build dependency checks since we ship pre-built binaries)
130128
cd "${SOURCE_DIR}"
131-
debuild -S -sa -d -p"${GPG_WRAPPER}" -k"${GPG_KEY_ID}"
129+
debuild -S -sa -d -us -uc
130+
131+
# Sign the source package separately using our GPG wrapper
132+
DEBSIGN_PROGRAM="${GPG_WRAPPER}" debsign -k"${GPG_KEY_ID}" "../${PACKAGE_NAME}_${VERSION}-1~${DISTRO}_source.changes"
132133
cd ..
133134

134135
echo "==> Source package built successfully for ${DISTRO}"

0 commit comments

Comments
 (0)