summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2022-01-03 10:32:17 +0100
committerLinus Färnstrand <faern@faern.net>2022-01-03 10:32:17 +0100
commit0b1be80393d9ef62c4e88b977462fbb242e5dd94 (patch)
treec0c88034e426f4fc021c6619ae4402af30f29bb7
parent69a521173f0ab355538c0abe2ea42a7a4e00229b (diff)
downloadmullvadvpn-0b1be80393d9ef62c4e88b977462fbb242e5dd94.tar.xz
mullvadvpn-0b1be80393d9ef62c4e88b977462fbb242e5dd94.zip
Only use --locked in releases, not all signed builds
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 85044646c8..7aee2eb91c 100755
--- a/build.sh
+++ b/build.sh
@@ -117,9 +117,6 @@ if [[ "$SIGN" == "true" ]]; then
exit 1
fi
- # Will not allow an outdated lockfile when signing the build
- CARGO_ARGS+=(--locked)
-
if [[ "$(uname -s)" == "Darwin" || "$(uname -s)" == "MINGW"* ]]; then
log_info "Configuring environment for signing of binaries"
if [[ -z ${CSC_LINK-} ]]; then
@@ -154,6 +151,9 @@ fi
if [[ "$IS_RELEASE" == "true" ]]; then
log_info "Removing old Rust build artifacts..."
cargo clean
+
+ # Will not allow an outdated lockfile in releases
+ CARGO_ARGS+=(--locked)
else
PRODUCT_VERSION="$PRODUCT_VERSION-dev-${current_head_commit_hash:0:6}"