-
Notifications
You must be signed in to change notification settings - Fork 51
/
release.sh
executable file
·30 lines (24 loc) · 1.04 KB
/
release.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p gitAndTools.hub coreutils
root="$(cd "$(dirname "${BASH_SOURCE[0]}")" && git rev-parse --show-toplevel)"
nano_s_tarball=$("$root/nix/build.sh" -A "nano.s.release.all" "$@")
nano_x_tarball=$("$root/nix/build.sh" -A "nano.x.release.all" "$@")
cp -f $nano_s_tarball nano-s-release.tar.gz
cp -f $nano_x_tarball nano-x-release.tar.gz
# hub release create \
# -a $nano_s_tarball'#'nano-s-release.tar.gz \
# -a $nano_x_tarball'#'nano-x-release.tar.gz \
# -F -
echo '## Checksums'
echo '### nano-s-release.tar.gz'
echo 'Type | Value'
echo '-- | --'
echo "MD5 | $(md5sum nano-s-release.tar.gz | cut -f1 -d' ')"
echo "SHA256 | $(sha256sum nano-s-release.tar.gz | cut -f1 -d' ')"
echo "SHA512 | $(sha512sum nano-s-release.tar.gz | cut -f1 -d' ')"
echo '### nano-x-release.tar.gz'
echo 'Type | Value'
echo '-- | --'
echo "MD5 | $(md5sum nano-x-release.tar.gz | cut -f1 -d' ')"
echo "SHA256 | $(sha256sum nano-x-release.tar.gz | cut -f1 -d' ')"
echo "SHA512 | $(sha512sum nano-x-release.tar.gz | cut -f1 -d' ')"