mirror of
https://github.com/OpenBluetoothToolbox/SimpleBLE
synced 2025-10-14 02:08:22 +08:00
Fix version
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -377,7 +377,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "simplersble"
|
||||
version = "0.10.1"
|
||||
version = "0.10.1-dev1"
|
||||
dependencies = [
|
||||
"cmake",
|
||||
"cxx",
|
||||
|
@@ -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"
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user