1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

dont hardcode keyid

This commit is contained in:
Jeff Becker 2022-11-02 09:32:31 -04:00
parent 88b5a84df3
commit 0bb58b4ac0
No known key found for this signature in database
GPG key ID: 025C02EE3A092F2D

View file

@ -1,8 +1,9 @@
#!/usr/bin/env bash
#
# create signed release tarball with submodules bundled
# usage: ./contrib/tarball.sh [keyid]
#
repo=$(readlink -e $(dirname $0)/..)
branch=$(test -e $repo/.git/ && git rev-parse --abbrev-ref HEAD)
out="lokinet-$(git describe --exact-match --tags $(git log -n1 --pretty='%h') 2> /dev/null || ( echo -n $branch- && git rev-parse --short HEAD)).tar.xz"
git-archive-all -C $repo --force-submodules $out && rm -f $out.sig && (gpg -u jeff@lokinet.io --sign --detach $out &> /dev/null && gpg --verify $out.sig)
git-archive-all -C $repo --force-submodules $out && rm -f $out.sig && (gpg -u ${1:-jeff@lokinet.io} --sign --detach $out &> /dev/null && gpg --verify $out.sig)