Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions MCSRExternalModCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def version_to_int(version_string: str) -> int:
return total


def compile_folder_for_modrinth_mod(project_name: str, modid: str = None):
def compile_folder_for_modrinth_mod(project_name: str, modid: str = None, release_only: bool = False):
if modid is None:
modid = project_name

Expand All @@ -109,7 +109,11 @@ def compile_folder_for_modrinth_mod(project_name: str, modid: str = None):

versions: list[ModrinthVersions.ModrinthVersion] = ModrinthVersions.getVersions(
project, project.versions)

for v in versions:
if "fabric" not in v.loaders or (release_only and v.versionType != "release"):
continue

url = v.files[0]["url"]
hash = v.files[0]["hashes"]["sha512"]
vdata = {
Expand Down Expand Up @@ -172,4 +176,7 @@ def compile_folder_for_modrinth_mod(project_name: str, modid: str = None):
modid = None
if len(sys.argv) >= 3:
modid = sys.argv[2]
compile_folder_for_modrinth_mod(project_name, modid)
release_only = False
if len(sys.argv) >= 4 and (sys.argv[3] == "--release-only" or sys.argv[3] == "-r"):
release_only = True
compile_folder_for_modrinth_mod(project_name, modid, release_only)
Binary file not shown.
4 changes: 4 additions & 0 deletions legal-mods/krypton/1.21-1.21.3/krypton-0.2.8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/fQEb0iXm/versions/Acz3ttTp/krypton-0.2.8.jar",
"hash": "5f8cf96c79bfd4d893f1d70da582e62026bed36af49a7fa7b1e00fb6efb28d9ad6a1eec147020496b4fe38693d33fe6bfcd1eebbd93475612ee44290c2483784"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/9xfJi96s/lithium-fabric-0.14.3-snapshot%2Bmc1.21.1-build.92.jar",
"hash": "d46a47c4ac7372b5bae629e5910a20eff5b3064053d2441760aa8c42095d8173a85d6fbb624ffc10c68fc954579630c56f55dbcf392fb0253b5c3ffd096ee0a0"
}
4 changes: 0 additions & 4 deletions legal-mods/lithium/1.21.1/lithium-fabric-mc1.21.1-0.13.0.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/pZRO3EKX/lithium-fabric-0.14.3%2Bmc1.21.3.jar",
"hash": "31ad08427ac50dd54cd2215c29452bd20430ce13f2bd8f4bdb8a6e2f6222b83df47d5727edac721f9397fa296db2998f9aa3eabe2c4c5d45619f8b5b00cd21fc"
}
4 changes: 4 additions & 0 deletions legal-mods/lithium/1.21.4/lithium-fabric-0.14.3+mc1.21.4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/t1FlWYl9/lithium-fabric-0.14.3%2Bmc1.21.4.jar",
"hash": "1a4eafbdcee3886d33c04aa462d13a8c1e345ff492001add262476585b78327a2d016e56385bced869615bc97161a34a0a716f5f579c8c1d7080b278f4f11183"
}
4 changes: 0 additions & 4 deletions legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.0.json

This file was deleted.

4 changes: 4 additions & 0 deletions legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/M7RXiitG/lithium-fabric-mc1.21-0.13.1.jar",
"hash": "c42a3813398fc9cb99b9b8fdfc9af89fbce3245c1c5d54cd08edc05e519d3c1ee149c00f745a3a0eb216f3d1836ea35b4910f58e6312ea065e17e57422853217"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions legal-mods/sodium/1.20.5/sodium-fabric-0.5.8+mc1.20.5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/AANobbMI/versions/hLV8Q8uu/sodium-fabric-0.5.8%2Bmc1.20.5.jar",
"hash": "f0649d23fc89adefba6bc653258ccc30cee69b5e7951bcb90fb4426bf053eb38e7c5acdf078f173b5a4a759d7175e02b3e6c9d41609c2dddcdab33f810cb78d4"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/AANobbMI/versions/6b5IXmYv/sodium-fabric-0.6.2%2Bmc1.21.1.jar",
"hash": "9c2c299620f1df26e331e9d0c686416c70736cfdf932e8c04fa75e02fd99f82474b0b8ffebc0036a5279f14820d9d4ad904a7e1b7baa42b2cb3e0de1972cf059"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/AANobbMI/versions/xy8qdzcb/sodium-fabric-0.6.2%2Bmc1.21.3.jar",
"hash": "011ea53439ee5cfcdb538a267d6328fec1352efd5a351f743f55d67a22f7ce66b8a428d871e6efbee931b6d7fde3f936c28f8b681e8012bac1c62db646b8d869"
}
4 changes: 4 additions & 0 deletions legal-mods/sodium/1.21.4/sodium-fabric-0.6.2+mc1.21.4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"link": "https://cdn.modrinth.com/data/AANobbMI/versions/joBzVWtR/sodium-fabric-0.6.2%2Bmc1.21.4.jar",
"hash": "227a051609855a88027b93832d20624b4a0161a6b541d0fc651911c680d5e2f64b834fa7931eb5faed8cea24b75f493ccf3e0b5d0216f7c4fe05ebe09d2d216f"
}
Binary file not shown.