this repo has no description

Compare changes

Choose any two refs to compare.

+3 -2
.github/workflows/build.yml
···
name: Build Pack
on:
+
workflow_dispatch:
push:
paths:
- "x256/**"
···
- name: Install Dependencies
run: |
sudo apt-get update
-
sudo apt-get install -y jq zip
+
sudo apt-get install -y jq
- name: Build Pack ZIP
run: bash scripts/generate-pack.sh
···
uses: actions/upload-artifact@v4
with:
name: neoduke
-
path: neoduke.zip
+
path: output/
+2 -11
scripts/generate-pack.sh
···
mkdir -p output
META_JSON="{\"metaVersion\": 2, \"host\": \"@wetdry.world\", \"exportedAt\": \"$(date -u +"%Y-%m-%dT%H:%M:%SZ")\", \"emojis\": []}"
-
PACK_JSON="{\"files\": {}, \"pack\": {}, \"count\": 0}"
EMOJI_ARRAY=$(mktemp)
-
FILES_OBJECT=$(mktemp)
echo "$META_JSON" | jq . > "$EMOJI_ARRAY"
-
echo "$PACK_JSON" | jq . > "$FILES_OBJECT"
for FILE in x256/*.png; do
[ -e "$FILE" ] || continue
···
fileName: $fileName,
emoji: {
name: $name,
-
category: $name,
+
category: "neoduke",
license: "CC BY-NC-SA 4.0",
aliases: []
}
}')
jq --argjson emojiEntry "$EMOJI_ENTRY" '.emojis += [$emojiEntry]' "$EMOJI_ARRAY" > tmp.json && mv tmp.json "$EMOJI_ARRAY"
-
jq --arg key "$FILE_BASE" --arg value "$FILE_NAME" '.files[$key] = $value | .count += 1' "$FILES_OBJECT" > tmp.json && mv tmp.json "$FILES_OBJECT"
cp "$FILE" "output/$FILE_NAME"
done
mv "$EMOJI_ARRAY" "output/meta.json"
-
mv "$FILES_OBJECT" "output/pack.json"
-
cp "LICENSE.txt" "output/LICENSE.txt"
-
-
cd output
-
zip -r "../neoduke.zip" ./*
-
cd ..
+
cp "LICENSE.txt" "output/LICENSE.txt"
x256/neoduke.png

This is a binary file and will not be displayed.

x256/neoduke_0_0.png

This is a binary file and will not be displayed.

x256/neoduke_amongus.png

This is a binary file and will not be displayed.

x256/neoduke_angel.png

This is a binary file and will not be displayed.

x256/neoduke_angry.png

This is a binary file and will not be displayed.

x256/neoduke_ballin.png

This is a binary file and will not be displayed.

x256/neoduke_bird_flip.png

This is a binary file and will not be displayed.

x256/neoduke_book.png

This is a binary file and will not be displayed.

x256/neoduke_box.png

This is a binary file and will not be displayed.

x256/neoduke_cofe.png

This is a binary file and will not be displayed.

x256/neoduke_confused.png

This is a binary file and will not be displayed.

x256/neoduke_cry.png

This is a binary file and will not be displayed.

x256/neoduke_floof.png

This is a binary file and will not be displayed.

x256/neoduke_foxmask.png

This is a binary file and will not be displayed.

x256/neoduke_gun.png

This is a binary file and will not be displayed.

x256/neoduke_hug.png

This is a binary file and will not be displayed.

x256/neoduke_hyper.png

This is a binary file and will not be displayed.

x256/neoduke_legs.png

This is a binary file and will not be displayed.

x256/neoduke_peek.png

This is a binary file and will not be displayed.

x256/neoduke_santa.png

This is a binary file and will not be displayed.

x256/neoduke_santa_cofe.png

This is a binary file and will not be displayed.

x256/neoduke_sign_aaa.png

This is a binary file and will not be displayed.

x256/neoduke_sign_no.png

This is a binary file and will not be displayed.

x256/neoduke_sign_nya.png

This is a binary file and will not be displayed.

x256/neoduke_sign_thx.png

This is a binary file and will not be displayed.

x256/neoduke_sign_yes.png

This is a binary file and will not be displayed.

x256/neoduke_sign_yip.png

This is a binary file and will not be displayed.

x256/neoduke_thumbs_up.png

This is a binary file and will not be displayed.

x256/neoduke_woozy.png

This is a binary file and will not be displayed.