Fix version

This commit is contained in:
Kevin Dewald
2025-05-29 11:25:02 -07:00
parent 3c613b90b4
commit c6edaa8221
3 changed files with 5 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -377,7 +377,7 @@ dependencies = [
[[package]]
name = "simplersble"
version = "0.10.1"
version = "0.10.1-dev1"
dependencies = [
"cmake",
"cxx",

View File

@@ -2,7 +2,7 @@
edition = "2021"
name = "simplersble"
version = "0.10.1"
version = "0.10.1-dev1"
license = "BUSL-1.1"
description = "The all-in-one Bluetooth library that makes it easy to add wireless connectivity to your projects."
readme = "simplersble/README.md"

View File

@@ -48,7 +48,7 @@ check_cargo_version_match() {
# Extract the version line from Cargo.toml
local cargo_version=$2
echo "- Cargo.toml consistent with VERSION file?"
if [[ "$cargo_version" == "$version_file" ]]; then
if [[ "$cargo_version" == "$version_file"* ]]; then
echo " OK"
return 0
else
@@ -93,6 +93,8 @@ assert_return_value 'validate_version_format "1.1"' 1 || exit 1
assert_return_value 'validate_version_format "1.1.1"' 0 || exit 1
assert_return_value 'check_cargo_version_match "1.1.1" "1.1.2"' 1 || exit 1
assert_return_value 'check_cargo_version_match "1.1.1" "1.1.1"' 0 || exit 1
assert_return_value 'check_cargo_version_match "1.1.1" "1.1.1-dev1"' 0 || exit 1
assert_return_value 'check_cargo_version_match "1.1.1" "1.1.2-dev1"' 1 || exit 1
assert_return_value 'check_tag_version_match "1.1.1" "1.1.2" "1.1.1"' 1 || exit 1
assert_return_value 'check_tag_version_match "1.1.1" "1.1.1" "1.1.1"' 0 || exit 1
assert_return_value 'check_tag_version_match "" "1.1.1" "1.1.1"' 1 || exit 1