Browse Source

Modified build script to make signing optional

master
B.J. Dweck 11 months ago
parent
commit
09ff9f6e86
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      build-deb.sh

+ 4
- 4
build-deb.sh View File

@ -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="[email protected]"
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…
Cancel
Save