From bd1cd17490253f509c7745d9ebd77036bebf13a9 Mon Sep 17 00:00:00 2001 From: Chaim Marcus Date: Thu, 26 Mar 2026 18:49:22 +0000 Subject: [PATCH] chore: auto-update README version from manifest on build build.sh now updates the version in README.md from manifest.json before creating the ZIP package. Co-Authored-By: Claude Opus 4.6 (1M context) --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index 6c1e690..0154fd2 100755 --- a/build.sh +++ b/build.sh @@ -4,6 +4,11 @@ set -euo pipefail VERSION=$(python3 -c "import json; print(json.load(open('manifest.json'))['version'])") MODULE=$(python3 -c "import json; m=json.load(open('manifest.json')); print(m.get('module', m['name']))") ZIPNAME="${MODULE}-${VERSION}.zip" + +# Update version in README.md if it exists +if [[ -f README.md ]]; then + sed -i "s/\*\*גרסה:\*\* [^ |]*/\*\*גרסה:\*\* ${VERSION}/" README.md +fi echo "Building $ZIPNAME..." rm -f "$ZIPNAME" zip -r "$ZIPNAME" manifest.json files/ \