mirror of https://github.com/crytic/echidna
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
359 B
13 lines
359 B
5 years ago
|
TAG="$1"
|
||
|
OS="$(lsb_release -is)-$(lsb_release -rs)"
|
||
|
echo "Building binary..."
|
||
|
echo "Compressing binary.."
|
||
|
REPO="echidna-test"
|
||
|
BIN="$(stack path --local-install-root)/bin/$REPO"
|
||
|
echo $BIN
|
||
|
BUNDLE_NAME="$REPO-$TAG-$OS.tar.gz"
|
||
|
cp "$BIN" "./$REPO"
|
||
|
chmod +x "./$REPO"
|
||
|
env GZIP=-9 tar -czf "$BUNDLE_NAME" "$REPO"
|
||
|
shasum -a 256 "$BUNDLE_NAME" > "$BUNDLE_NAME.sha256"
|