You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
podmack/update-modlist

12 lines
488 B
Bash

#!/bin/sh
echo Updating modlist...
find mods -type f -name "*.pw.toml" -print0 \
| xargs -0 -I{} -P16 \
tomlq -r '"<br>[" + .name + "](" +
(.update | (select(.modrinth) | map("https://modrinth.com/mod/" + .["mod-id"])[0]) //
(select(.curseforge) | map("https://legacy.curseforge.com/projects/" + (.["project-id"] | tostring))[0]))
+ ")"' {} \
| sort > Modlist.md
printf "$(cat README.template.md)" "$(cat Modlist.md)" > README.md
echo Update complete.