From 87676442875d5176ff5c7d96ad1e2bf74201f2d1 Mon Sep 17 00:00:00 2001 From: C J Silverio Date: Sat, 3 Feb 2024 23:15:38 -0800 Subject: [PATCH] chore: update vcpkg.json when tagging a new version --- justfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index d3b0871e..d5e5c44b 100644 --- a/justfile +++ b/justfile @@ -71,7 +71,9 @@ tag VERSION: sed -i -e 's/set(VERSION [0-9][0-9]*\.[0-9]*\.[0-9]*\(\.[0-9]*\)/set(VERSION {{VERSION}}\1/' CMakeLists.txt # update the lock file #cargo check - git commit CMakeLists.txt Cargo.toml Cargo.lock -m "v{{VERSION}}" + jq '."version-string" = "{{VERSION}}"' vcpkg.json > vcpkg.tmp + mv vcpkg.tmp vcpkg.json + git commit CMakeLists.txt Cargo.toml vcpkg.json -m "v{{VERSION}}" git tag "v{{VERSION}}" echo "Release tagged for version v{{VERSION}}"