#!/bin/bash

set -e

DIR="./bin"
rm -f $DIR/*.zip

for file in $(ls $DIR)
do
  fin=$DIR/$file
  fout=$DIR/$file.zip
  shasum -a 256 $fin
  zip -9 -q -j $fout $fin
done
#!/bin/bash

set -e

DIR="./bin"
rm -f $DIR/*.zip

for file in $(ls $DIR)
do
  fin=$DIR/$file
  fout=$DIR/$file.zip
  zip -9 -q -j $fout $fin
  shasum -a 256 $fout
done
Print SHA256 of the zip archive, not the binary
Print SHA256 of the zip archive, not the binary
