diff --git a/contrib/release-scripts/release.sh b/contrib/release-scripts/release.sh index 9c29299..c4b6879 100755 --- a/contrib/release-scripts/release.sh +++ b/contrib/release-scripts/release.sh @@ -7,6 +7,8 @@ D=$(realpath "$0") D=$(dirname "$D") cd "$D" +export TZ=UTC + mkdir -p build export WINEARCH=win64 @@ -66,13 +68,11 @@ export PATH=$OPATH # compress stuff cd "$D/out" -export TZ=UTC -tar --portability --no-acls --no-selinux --no-xattrs --owner root:0 --group=root:0 --sort=name -c -f $SV.tar $SV -zopfli -c $SV.tar > $SV.tar.gz -zstd -19 -f $SV.tar -o $SV.tar.zst -rm $SV.tar +tar --portability --no-acls --no-selinux --no-xattrs --owner root:0 --group=root:0 --sort=name -c -f $SV-src.tar $SV +zopfli -c $SV-src.tar > $SV-src.tar.gz +zstd -19 -f $SV-src.tar -o $SV-src.tar.zst +rm $SV-src.tar zip -9 -X -r $SV-w32.zip $SV-w32 zip -9 -X -r $SV-w64.zip $SV-w64 - diff --git a/contrib/release-scripts/sign.sh b/contrib/release-scripts/sign.sh new file mode 100755 index 0000000..597e89c --- /dev/null +++ b/contrib/release-scripts/sign.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +if [ x"$1" = x ] +then + echo "Usage: $0 key-id" >&2 + exit 1 +fi + +D=$(realpath "$0") +D=$(dirname "$D") +cd "$D" + +cd out + +gpg --detach-sign -u "$1" mkp224o-*-src.tar.gz +gpg --detach-sign -u "$1" mkp224o-*-src.tar.zst +gpg --detach-sign -u "$1" mkp224o-*-w32.zip +gpg --detach-sign -u "$1" mkp224o-*-w64.zip