diff --git a/index.toml b/index.toml index 3ddf82a..544af6e 100644 --- a/index.toml +++ b/index.toml @@ -1859,4 +1859,4 @@ hash = "c01cba7e02d8c421c4d68b272e55e5789a35b06cc6581ee2520fd15560bca0d9" [[files]] file = "update-modlist" -hash = "5052936ebb80ec662b22fb0a25dfcf36c156eb52f47a364900d6e1f002e211b7" +hash = "85592a937dff61936a0ca86aa1fff7494b91712ca03afa7f12256853dd9ceb5e" diff --git a/pack.toml b/pack.toml index 07bed9e..f400350 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "2cb5b62afb9edc25723bc9641a52ec463203ceccd3a6fa2586aa74ce3472e653" +hash = "e4bb614072897fad3638721d5cc441e360ed968415f8b787da75a1b1244c182b" [versions] forge = "43.2.11" diff --git a/update-modlist b/update-modlist index ed7d164..d801341 100755 --- a/update-modlist +++ b/update-modlist @@ -1,5 +1,11 @@ #!/bin/sh echo Updating modlist... -find mods -type f -name "*.pw.toml" -print0 | xargs -0 -I{} -P16 tomlq -r '"
[" + .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 +find mods -type f -name "*.pw.toml" -print0 \ + | xargs -0 -I{} -P16 \ + tomlq -r '"
[" + .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.