Skip to content

Commit

Permalink
Make the build script a bit friendlier
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed Sep 1, 2019
1 parent 7ba8274 commit 699d99c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions bin/build-release
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ name="candle-${candle_version}"
export MACOSX_DEPLOYMENT_TARGET=10.7
export TARGET=x86_64-apple-darwin

cargo build --release --target "$TARGET" --locked
cargo build --quiet --release --target "$TARGET" --locked

mkdir -p releases
rm -rf releases/"$name"
cd releases
mkdir "$name"
cp ../target/$TARGET/release/candle "$name"
tar czvf "$name".tar.gz "$name"
tar czf "$name".tar.gz "$name"
rm -rf "$name"

echo "Version: $candle_version"
echo "Sha256 sum:"
sha256sum "$name".tar.gz | cut -d ' ' -f1

0 comments on commit 699d99c

Please sign in to comment.