diff --git a/mods/extras-rolling.jar b/mods/extras.jar similarity index 55% rename from mods/extras-rolling.jar rename to mods/extras.jar index 5be6b11..4c8a8b6 100644 Binary files a/mods/extras-rolling.jar and b/mods/extras.jar differ diff --git a/scripts/fetch_mods.sh b/scripts/fetch_mods.sh index 483844b..ed48851 100755 --- a/scripts/fetch_mods.sh +++ b/scripts/fetch_mods.sh @@ -9,13 +9,11 @@ compile_gradle () { # fetch_git_repo_and_compile_gradle sounded too long rm -rf mod_files/ } -fetch_github_releases () { - tag="$(curl "https://github.com/$1/releases?q=$2&expanded=true" | grep -oE '"/'$1'/releases/tag/[^"]+"' | cut -f 6 -d '/' | tr -d '"')" - jars="$(curl -L -H 'Accept: application/vnd.github+json' https://api.github.com/repos/$1/releases/tags/$tag | grep -oE '"https://github.com/'$1'/[^"]+\.jar"' | tr -d '"')" - curl -OJL "$(echo $jars | awk '{print length($0)"\t"$0}' | sort -n | cut -f2- | head -n 1)" -} - mkdir fetched_mods cd fetched_mods -fetch_github_releases 'FabricMC/fabric' '20w14infinite' \ No newline at end of file +# Fetch mods +compile_gradle 'https://code.chipmunk.land/infiniteserver/extras.git' + +# Normalize filenames +mv extras-*.jar extras.jar