project-sekai-cursors: init

This commit is contained in:
uku 2025-06-05 12:02:01 +02:00
parent b730a1516e
commit 63a165b801
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
4 changed files with 117 additions and 0 deletions

View file

@ -0,0 +1,26 @@
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p curl jq
# shellcheck shell=bash
set -euo pipefail
groups=("VirtualSinger" "leoneed" "MMJ" "VBS" "WxS" "N25")
for group in "${groups[@]}"; do
tmpfile=$(mktemp)
curl -o "$tmpfile" "https://www.colorfulstage.com/upload_images/media/Download/ani%20file-animation-${group}.zip"
hash=$(nix-hash --sri --flat --type sha256 "$tmpfile")
updatedContent=$(jq ".\"$group-ani\" = \"$hash\"" ./hashes.json)
echo -E "$updatedContent" > ./hashes.json
done
for group in "${groups[@]}"; do
tmpfile=$(mktemp)
curl -o "$tmpfile" "https://www.colorfulstage.com/upload_images/media/Download/cur%20file-static-${group}.zip"
hash=$(nix-hash --sri --flat --type sha256 "$tmpfile")
updatedContent=$(jq ".\"$group-cur\" = \"$hash\"" ./hashes.json)
echo -E "$updatedContent" > ./hashes.json
done