File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -120,15 +120,16 @@ EOF
120120GPG_WRAPPER=" $( pwd) /gpg-sign.sh"
121121cat > " ${GPG_WRAPPER} " << 'WRAPPER '
122122#!/bin/sh
123- exec gpg --no-tty -- pinentry-mode loopback "$@"
123+ exec gpg --pinentry-mode loopback --passphrase '' "$@"
124124WRAPPER
125125chmod +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)
130128cd " ${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"
132133cd ..
133134
134135echo " ==> Source package built successfully for ${DISTRO} "
You can’t perform that action at this time.
0 commit comments