Skip to content

Commit

Permalink
Run Obsidian version script in bump_version.sh to write to versions.json
Browse files Browse the repository at this point in the history
This handles updates from manifest.json minAppVersion field to the
versions.json file.

The minAppVersion field is for the minimum Obsidian app version
supported by a Khoj plugin version
  • Loading branch information
debanjum committed Jun 23, 2024
1 parent c7c32a7 commit 57a3696
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ do

# Bump Obsidian plugin to current version
cd $project_root/src/interface/obsidian
cp $project_root/versions.json .
npm version $version_type
# append current version, min Obsidian app version from manifest to versions json
cp $project_root/versions.json .
npm run version # run Obsidian version script

# Bump Emacs package to current version
cd ../emacs
Expand Down Expand Up @@ -58,8 +60,10 @@ do

# Bump Obsidian plugin to current version
cd $project_root/src/interface/obsidian
cp $project_root/versions.json .
npm version $current_version
# append current version, min Obsidian app version from manifest.json to versions.json
cp $project_root/versions.json .
npm run version # run Obsidian version script

# Bump Emacs package to current version
cd ../emacs
Expand Down Expand Up @@ -101,6 +105,9 @@ do
# Bump Obsidian plugins to next version
cd $project_root/src/interface/obsidian
npm version $next_version
# append next version, min Obsidian app version from manifest to versions json
git rm --cached -- versions.json
npm run version # run Obsidian version script

# Bump Emacs package to next version
cd $project_root/src/interface/emacs
Expand Down

0 comments on commit 57a3696

Please sign in to comment.