fixes to version.sh
Some checks failed
continuous-integration/drone/push Build is failing

also reset cargo.toml...
This commit is contained in:
Jochen Maes 2023-11-01 08:56:36 +01:00
parent a392f5755c
commit e2f31a5e75
2 changed files with 3 additions and 2 deletions

View File

@ -3,7 +3,7 @@ name = "mouse"
authors = ["Jochen Maes <jochen@sejo-it.be>"]
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

View File

@ -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