Skip to content

Commit

Permalink
Build source-only package for launchpad
Browse files Browse the repository at this point in the history
Former-commit-id: 1b8ae91
  • Loading branch information
tkashkin committed Oct 6, 2018
1 parent 5421262 commit f56791f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,16 @@ build_deb()
cd "$_ROOT"
sed "s/\$VERSION/$_DEB_VERSION/g; s/\$DISTRO/$_DEB_TARGET_DISTRO/g; s/\$DATE/`date -R`/g" "debian/changelog.in" > "debian/changelog"
export DEB_BUILD_OPTIONS="nostrip nocheck"
dpkg-buildpackage -us -uc
if [[ -e "$_SCRIPTROOT/launchpad/passphrase" && -n "$keys_enc_secret" ]]; then
dpkg-buildpackage -S -sa -us -uc
set +e
debsign -p"gpg1 --no-use-agent --passphrase-file $_SCRIPTROOT/launchpad/passphrase --batch" -S -k2744E6BAF20BA10AAE92253F20442B9273408FF9 ../*.changes
rm "$_SCRIPTROOT/launchpad/passphrase"
echo "[scripts/build.sh] Uploading package to launchpad"
dput -u -c "$_SCRIPTROOT/launchpad/dput.cf" "gamehub_$_DEB_TARGET_DISTRO" ../*.changes
set -e
fi
dpkg-buildpackage -us -uc
mkdir -p "build/$_BUILD_IMAGE"
cp ../*.deb "build/$_BUILD_IMAGE/GameHub-$_VERSION-amd64.deb"
cd "$_ROOT"
Expand Down

0 comments on commit f56791f

Please sign in to comment.