Fix build checksum filename (#136)

This commit is contained in:
Sung Won Cho 2018-10-14 15:22:38 +10:00 committed by GitHub
commit 04f4538945
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,20 +59,34 @@ build() {
popd
}
get_buildname() {
os=$1
echo "dnote_${version}_${os}_amd64"
}
calc_checksum() {
os=$1
shasum -a 256 "$TMP/$os/dnote" >> "$TMP/dnote_${version}_checksums.txt"
pushd "$TMP/$os"
buildname=$(get_buildname "$os")
mv dnote "$buildname"
shasum -a 256 "$buildname" >> "$TMP/dnote_${version}_checksums.txt"
mv "$buildname" dnote
popd
}
build_tarball() {
os=$1
buildname=$(get_buildname "$os")
pushd "$TMP/$os"
cp "$basedir/LICENSE" .
cp "$basedir/README.md" .
tar -zcvf "../dnote_${version}_${os}_amd64.tar.gz" ./*
tar -zcvf "../${buildname}.tar.gz" ./*
popd
}