From d1fdc75d84619a1bf65ed2239ad8668de8e38705 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Sun, 4 Aug 2019 19:58:05 +0200 Subject: [PATCH] Generate index.json as well --- gen.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gen.sh b/gen.sh index cac39d9..df30bd7 100755 --- a/gen.sh +++ b/gen.sh @@ -2,6 +2,16 @@ FILELIST=`find . -type f -iname '*.png' -exec sh -c 'x=${0#./}; printf "%s:%s|" ${x%.svg.png} $x' {} \;` -jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<<"${FILELIST%|}">blobfox.json +jq -Rn 'input | split("|") | map(split(":") | { key: .[0], value: .[1] }) | from_entries' <<< "${FILELIST%|}" > blobfox.json zip blobfox.zip *.png + +CHECKSUM=`sha256sum -z blobfox.zip | awk '{ print $1 }'` + +printf '{ + "src": "https://git.pleroma.social/pleroma/emoji-index/raw/master/packs/blobfox.zip", + "src_sha256": "%s", + "license": "Apache 2.0", + "files": "blobfox.json", + "description": "Like Blobcat, except with foxes" +}' $CHECKSUM > index.json