Basic bash script to generate a pack.json file for an already existing folder of emoji image files.
Execute the script with a directory string as an argument
$ make-pack.sh $directorye.g.
$ make-pack.sh /var/lib/akkoma/static/emoji/New_PackBy default the script only recognizes .png, .gif, and .webp files, you can easily add other extensions by editing the if statement in the script, if needed.