Modified build script to make signing optional
This commit is contained in:
parent
8bc211d413
commit
09ff9f6e86
|
@ -2,12 +2,12 @@
|
|||
|
||||
if [[ -z "${DEB_EMAIL}" ]]; then
|
||||
DEB_EMAIL="$1"
|
||||
DPKG_BUILD_OPTS=-k"$DEB_EMAIL"
|
||||
fi
|
||||
|
||||
if [[ -z "${DEB_EMAIL}" ]]; then
|
||||
echo "E-mail address required for packaging signing with gpg key!"
|
||||
echo "Usage: ./build-deb.sh EMAIL"
|
||||
exit 1
|
||||
DEB_EMAIL="none@none.com"
|
||||
DPKG_BUILD_OPTS="-us -uc"
|
||||
fi
|
||||
|
||||
TORCH_VERSION=$(git describe --tags --abbrev=0)
|
||||
|
@ -31,4 +31,4 @@ cd "$PROJECT" || exit
|
|||
export USER
|
||||
USER=$(whoami)
|
||||
dh_make --createorig -e "$DEB_EMAIL" -s -y
|
||||
dpkg-buildpackage -k"$DEB_EMAIL"
|
||||
dpkg-buildpackage $DPKG_BUILD_OPTS
|
||||
|
|
Loading…
Reference in New Issue
Block a user