From e2f31a5e75a8d9b113e8aee5ad80f7492258f942 Mon Sep 17 00:00:00 2001 From: Jochen Maes Date: Wed, 1 Nov 2023 08:56:36 +0100 Subject: [PATCH] fixes to version.sh also reset cargo.toml... --- Cargo.toml | 2 +- version.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 665cc7f..167ddff 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "mouse" authors = ["Jochen Maes "] description = "Information gatherer for systems." # this will be overwritten during builds! so ignore -version = "v0.1.3-next-" +version = "0.0.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/version.sh b/version.sh index 591fc9e..beb611c 100755 --- a/version.sh +++ b/version.sh @@ -7,7 +7,8 @@ ADC=${DRONE_COMMIT:0:7} if [[ "${LTCOMMIT}" == "${ADC}" ]]; then VERSION="${DRONE_TAG##v}" else - VERSION="${LTAG}-next-${ADV}" + VERSION="${LTAG##v}-next-${ADV}" fi sed -i "s/0\\.0\\.0/${VERSION}/" Cargo.toml +cat Cargo.toml