From 1f29dbc549dc1abe5de295e55728576b1a0c8a6b Mon Sep 17 00:00:00 2001 From: lklimek <842586+lklimek@users.noreply.github.com> Date: Mon, 1 Jul 2024 17:20:52 +0200 Subject: [PATCH] chore: release rs-tenderdash-abci 1.0.0 for tenderdash 1.0.0 (#83) --- abci/Cargo.toml | 2 +- proto-compiler/Cargo.toml | 2 +- proto/Cargo.toml | 2 +- proto/build.rs | 2 +- scripts/release.sh | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/abci/Cargo.toml b/abci/Cargo.toml index 890056a..26eadee 100644 --- a/abci/Cargo.toml +++ b/abci/Cargo.toml @@ -1,5 +1,5 @@ [package] -version = "1.0.0-dev.1" +version = "1.0.0" name = "tenderdash-abci" edition = "2021" license = "Apache-2.0" diff --git a/proto-compiler/Cargo.toml b/proto-compiler/Cargo.toml index 1ed692b..33333b4 100644 --- a/proto-compiler/Cargo.toml +++ b/proto-compiler/Cargo.toml @@ -1,5 +1,5 @@ [package] -version = "1.0.0-dev.1" +version = "1.0.0" name = "tenderdash-proto-compiler" authors = ["Informal Systems ", "Dash Core Group"] edition = "2021" diff --git a/proto/Cargo.toml b/proto/Cargo.toml index 62f3984..16fbf37 100644 --- a/proto/Cargo.toml +++ b/proto/Cargo.toml @@ -1,5 +1,5 @@ [package] -version = "1.0.0-dev.1" +version = "1.0.0" name = "tenderdash-proto" edition = "2021" license = "Apache-2.0" diff --git a/proto/build.rs b/proto/build.rs index 515f79c..1e652ee 100644 --- a/proto/build.rs +++ b/proto/build.rs @@ -4,7 +4,7 @@ use tenderdash_proto_compiler::GenerationMode; fn main() { // default Tenderdash version to use if TENDERDASH_COMMITISH is not set - const DEFAULT_VERSION: &str = "v1.0.0-dev.2"; + const DEFAULT_VERSION: &str = "v1.0.0"; // check if TENDERDASH_COMMITISH is already set; if not, set it to the current // version diff --git a/scripts/release.sh b/scripts/release.sh index e78f496..e0d4534 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -79,11 +79,11 @@ sed -i "s/^\s*const DEFAULT_VERSION: &str = \".*\";/const DEFAULT_VERSION: \&str cargo fmt -- ./proto/build.rs 2>/dev/null if [ -d "$PLATFORM_DIR" ]; then - rs_tenderdash="git = \"https:\/\/github.com\/dashpay\/rs-tenderdash-abci\", version = \"$rs_tenderdash_abci_version\"" + rs_tenderdash="git = \"https:\/\/github.com\/dashpay\/rs-tenderdash-abci\", version = \"$rs_tenderdash_abci_version\", tag = \"v$rs_tenderdash_abci_version\"" echo "INFO: Updating references to tenderdash-abci / tenderdash-proto in $PLATFORM_DIR" - sed -i "s/^tenderdash-abci = { git = .*, version = [^,\}]*/tenderdash-abci = { $rs_tenderdash/" "${PLATFORM_DIR}"/packages/*/Cargo.toml - sed -i "s/^tenderdash-proto = { git = .*, version = [^,\}]*/tenderdash-proto = { $rs_tenderdash/" "${PLATFORM_DIR}"/packages/*/Cargo.toml + sed -i "s/^tenderdash-abci = { git = .*, version = [^,\}]*, tag = [^,\}]*/tenderdash-abci = { $rs_tenderdash/" "${PLATFORM_DIR}"/packages/*/Cargo.toml + sed -i "s/^tenderdash-proto = { git = .*, version = [^,\}]*, tag = [^,\}]*/tenderdash-proto = { $rs_tenderdash/" "${PLATFORM_DIR}"/packages/*/Cargo.toml else echo "WARN: Dash Platform not found in $PLATFORM_DIR, skipping" fi