From da47c1229ebc9fb4d52d91b3795423f73510a47c Mon Sep 17 00:00:00 2001 From: Ole-Martin Bratteng <1681525+omBratteng@users.noreply.github.com> Date: Thu, 28 Oct 2021 09:40:07 +0200 Subject: [PATCH] ci: Generate a sha256sum file for each zip and tar file generated (#543) * feat: git ignore builds and generated archives * feat: generate a sha256sum file for each zip and tar file generated --- .gitignore | 1 + scripts/build_funcs.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a263e4d..73f6e93 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ data/ node_modules/ .DS_Store ./tusd +tusd_*_* diff --git a/scripts/build_funcs.sh b/scripts/build_funcs.sh index 897d9df..4fec442 100755 --- a/scripts/build_funcs.sh +++ b/scripts/build_funcs.sh @@ -30,6 +30,7 @@ function makezip { local dir="tusd_${os}_${arch}" zip "$dir.zip" "$dir/tusd$ext" LICENSE.txt README.md + sha256sum "$dir.zip" > "$dir.zip.sha256" } function maketar { @@ -40,6 +41,7 @@ function maketar { local dir="tusd_${os}_${arch}" tar -czf "$dir.tar.gz" "$dir/tusd" LICENSE.txt README.md + sha256sum "$dir.tar.gz" > "$dir.tar.gz.sha256" } function makedep {