feat: add plugin store index
- Add store.json for plugin listing - Auto-generate store.json in CI workflow
This commit is contained in:
22
scripts/generate-store.sh
Executable file
22
scripts/generate-store.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
STORE_FILE="$REPO_ROOT/store.json"
|
||||
|
||||
echo "["
|
||||
|
||||
first=true
|
||||
for manifest in "$REPO_ROOT"/plugins/*/manifest.json; do
|
||||
[ -f "$manifest" ] || continue
|
||||
|
||||
if [ "$first" = true ]; then
|
||||
first=false
|
||||
else
|
||||
echo ","
|
||||
fi
|
||||
|
||||
cat "$manifest"
|
||||
done
|
||||
|
||||
echo "]"
|
||||
Reference in New Issue
Block a user