Run Obsidian version script in bump_version.sh to write to versions.json

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
This commit is contained in:
Debanjum Singh Solanky 2024-06-23 08:16:42 +05:30
parent c7c32a7467
commit 57a36967bf

View file

@ -18,8 +18,10 @@ do
# Bump Obsidian plugin to current version # Bump Obsidian plugin to current version
cd $project_root/src/interface/obsidian cd $project_root/src/interface/obsidian
cp $project_root/versions.json .
npm version $version_type 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 # Bump Emacs package to current version
cd ../emacs cd ../emacs
@ -58,8 +60,10 @@ do
# Bump Obsidian plugin to current version # Bump Obsidian plugin to current version
cd $project_root/src/interface/obsidian cd $project_root/src/interface/obsidian
cp $project_root/versions.json .
npm version $current_version 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 # Bump Emacs package to current version
cd ../emacs cd ../emacs
@ -101,6 +105,9 @@ do
# Bump Obsidian plugins to next version # Bump Obsidian plugins to next version
cd $project_root/src/interface/obsidian cd $project_root/src/interface/obsidian
npm version $next_version 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 # Bump Emacs package to next version
cd $project_root/src/interface/emacs cd $project_root/src/interface/emacs