Skip to content

Commit

Permalink
Robustly get the current version
Browse files Browse the repository at this point in the history
  • Loading branch information
gabebw committed Sep 2, 2019
1 parent f2c1c8a commit 8c5f040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/build-release
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

candle_version=$(grep 'version =' Cargo.toml | sed -e 's/version = //' -e 's/"//g')
candle_version=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].version')
name="candle-${candle_version}"

export MACOSX_DEPLOYMENT_TARGET=10.7
Expand Down

0 comments on commit 8c5f040

Please sign in to comment.