mirror of
https://github.com/dnote/dnote
synced 2026-03-14 22:45:50 +01:00
Fix build checksum filename (#136)
This commit is contained in:
parent
332fd8f8ca
commit
04f4538945
1 changed files with 16 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue