From 8c5f0406220fe163b8bf84045954376c2ac7fff7 Mon Sep 17 00:00:00 2001 From: Gabe Berke-Williams Date: Mon, 2 Sep 2019 14:52:03 -0700 Subject: [PATCH] Robustly get the current version --- bin/build-release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/build-release b/bin/build-release index e413875..4e8ecde 100755 --- a/bin/build-release +++ b/bin/build-release @@ -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