mkrelease.sh: add --notar

This commit is contained in:
Harald Hoyer 2018-09-13 10:58:26 +02:00
parent c275d3c6d8
commit d6f7aec884

View file

@ -14,6 +14,7 @@ TEMP=$(
getopt -o '' \ getopt -o '' \
--long certdir: \ --long certdir: \
--long nosign \ --long nosign \
--long notar \
--long help \ --long help \
-- "$@" -- "$@"
) )
@ -36,6 +37,10 @@ while true; do
NOSIGN="1" NOSIGN="1"
shift 1; continue shift 1; continue
;; ;;
'--notar')
NOTAR="1"
shift 1; continue
;;
'--help') '--help')
usage usage
exit 0 exit 0
@ -65,6 +70,6 @@ IMAGE="${BASEDIR}/$(jq -r '.name' ${JSON})-$(jq -r '.version' ${JSON})"
[[ -f sha512sum.txt.sig ]] || gpg2 --detach-sign sha512sum.txt [[ -f sha512sum.txt.sig ]] || gpg2 --detach-sign sha512sum.txt
) )
if ! [[ -e "$IMAGE".tgz ]]; then if ! [[ $NOTAR ]] && ! [[ -e "$IMAGE".tgz ]]; then
tar cf - -C "${IMAGE%/*}" "${IMAGE##*/}" | pigz -c > "$IMAGE".tgz tar cf - -C "${IMAGE%/*}" "${IMAGE##*/}" | pigz -c > "$IMAGE".tgz
fi fi