#!/bin/bash -x if [ "" = "$1" ]; then echo "Usage: " echo " ./release-linux.sh version" exit 1 fi cargo clean cargo build --release gzip -c ../target/release/libpact_verifier.so > ../target/release/libpact_verifier-linux-x86_64-$1.so.gz openssl dgst -sha256 -r ../target/release/libpact_verifier-linux-x86_64-$1.so.gz > ../target/release/libpact_verifier-linux-x86_64-$1.so.gz.sha256