From a3338c443f1400e4e3360cd52e223b996db6680e Mon Sep 17 00:00:00 2001 From: shum Date: Tue, 9 Sep 2025 15:25:08 +0000 Subject: [PATCH] scripts/reproduce-builds: calculate hash of source tarball --- scripts/simplex-chat-reproduce-builds.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/simplex-chat-reproduce-builds.sh b/scripts/simplex-chat-reproduce-builds.sh index c7d9170c4a..aad0756d6b 100755 --- a/scripts/simplex-chat-reproduce-builds.sh +++ b/scripts/simplex-chat-reproduce-builds.sh @@ -165,6 +165,9 @@ done # If everything is still okay, compute checksums file if [ "${bad}" = 0 ]; then + curl -L "${repo}/archive/refs/tags/${TAG}.tar.gz" -o "$init_dir/$TAG-$repo_name/from-source/source_code.tar.gz" + curl -L "${repo}/archive/refs/tags/${TAG}.zip" -o "$init_dir/$TAG-$repo_name/from-source/source_code.zip" + sha256sum "${path_bin}"/from-source/* | sed -e "s|$PWD/||g" -e 's|from-source/||g' -e "s|-$repo_name||g" > "${path_bin}/_sha256sums" printf 'Checksums computed - %s\n' "${path_bin}/_sha256sums"