From e42111a8af5ee9eb5606c161552d5f9c0497da8d Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Fri, 22 Dec 2023 21:42:03 +0530 Subject: [PATCH] Fix bump_version.sh to commit, clean-up after desktop app version bump --- scripts/bump_version.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/bump_version.sh b/scripts/bump_version.sh index 561953dd7..c4ee09405 100755 --- a/scripts/bump_version.sh +++ b/scripts/bump_version.sh @@ -12,6 +12,7 @@ do # Bump Desktop app to current version cd $project_root/src/interface/desktop sed -E -i.bak "s/version\": \"(.*)\",/version\": \"$current_version\",/" package.json + rm *.bak # Bump Obsidian plugin to current version cd $project_root/src/interface/obsidian @@ -37,6 +38,7 @@ do # Commit changes and tag commit for release git add \ + $project_root/src/interface/desktop/package.json \ $project_root/src/interface/obsidian/package.json \ $project_root/src/interface/obsidian/manifest.json \ $project_root/src/interface/obsidian/versions.json \ @@ -52,6 +54,11 @@ do next_version=$(touch bump.txt && git add bump.txt && hatch version | sed 's/\.dev.*//g') git rm --cached -- bump.txt && rm bump.txt + # Bump Desktop app to next version + cd $project_root/src/interface/desktop + sed -E -i.bak "s/version\": \"(.*)\",/version\": \"$current_version\",/" package.json + rm *.bak + # Bump Obsidian plugins to next version cd $project_root/src/interface/obsidian sed -E -i.bak "s/version\": \"(.*)\",/version\": \"$next_version\",/" package.json @@ -69,6 +76,7 @@ do # Commit changes git add \ + $project_root/src/interface/desktop/package.json \ $project_root/src/interface/obsidian/package.json \ $project_root/src/interface/obsidian/manifest.json \ $project_root/src/interface/obsidian/versions.json \