mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
9 lines
470 B
Bash
9 lines
470 B
Bash
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# create signed release tarball with submodules bundled
|
||
|
#
|
||
|
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 --sign --detach $out &> /dev/null && gpg --verify $out.sig)
|