Skip to content

Commit

Permalink
Update build script to add checksum for each binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tr4cks committed Dec 2, 2023
1 parent ca9f6e5 commit 2c2b849
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ for arch in "${architectures[@]}"; do

# Add the checksum to the checksums.txt file
echo "$checksum *$binary_name" >> "$checksums_file"

# Save the original output of sha256sum to a .sha256 file
(cd "$output_dir" && sha256sum "$binary_name" > "$binary_name.sha256")
done

# Display a message indicating that the process is complete
echo "Binaries successfully generated in the $output_dir directory."
echo "Checksums saved in the $checksums_file file."
echo "Binaries, checksum files, and checksums.txt successfully generated in the $output_dir directory."

0 comments on commit 2c2b849

Please sign in to comment.