13 lines
740 B
Shell
Executable file
13 lines
740 B
Shell
Executable file
#!/usr/bin/env bash
|
|
# Rebuilds the zip, regenerates index.json pointing at Forgejo raw links, commits and pushes.
|
|
# Valenced repository URL: https://archlinux.tail7c4f5e.ts.net/git/astar76/cookie-glass-valenced/raw/branch/main/index.json
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
tools/package.sh
|
|
export PATH="$HOME/.cache/valenced/bun-linux-x64:$PATH"
|
|
bun node_modules/.bin/valenced-plugin generate-index --dist dist \
|
|
--base-url https://archlinux.tail7c4f5e.ts.net/git/astar76/cookie-glass-valenced/raw/branch/main/dist \
|
|
--out index.json
|
|
git add -A
|
|
git commit -qm "${1:-Publish $(python3 -c "import json;print(json.load(open('themes/cookie-glass/manifest.json'))['version'])")}" || true
|
|
git push -q -o repo.private=false origin main
|