diff --git a/MCSRExternalModCompiler.py b/MCSRExternalModCompiler.py index c6e25726..c04ce0e3 100644 --- a/MCSRExternalModCompiler.py +++ b/MCSRExternalModCompiler.py @@ -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 @@ -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 = { @@ -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) diff --git a/legal-mods/atum/1.21.2-1.21.4/atum-1.3.0+1.21.3.jar b/legal-mods/atum/1.21.2-1.21.4/atum-1.3.0+1.21.3.jar new file mode 100644 index 00000000..cb1e22db Binary files /dev/null and b/legal-mods/atum/1.21.2-1.21.4/atum-1.3.0+1.21.3.jar differ diff --git a/legal-mods/fabricproxy-lite/1.21/FabricProxy-Lite-2.9.0.json b/legal-mods/fabricproxy-lite/1.21-1.21.3/FabricProxy-Lite-2.9.0.json similarity index 100% rename from legal-mods/fabricproxy-lite/1.21/FabricProxy-Lite-2.9.0.json rename to legal-mods/fabricproxy-lite/1.21-1.21.3/FabricProxy-Lite-2.9.0.json diff --git a/legal-mods/fast_reset/1.19.4-1.21.1/fast-reset-1.4.3+1.19.4-1.20.6.jar b/legal-mods/fast_reset/1.19.4-1.21.4/fast-reset-1.4.3+1.19.4-1.20.6.jar similarity index 100% rename from legal-mods/fast_reset/1.19.4-1.21.1/fast-reset-1.4.3+1.19.4-1.20.6.jar rename to legal-mods/fast_reset/1.19.4-1.21.4/fast-reset-1.4.3+1.19.4-1.20.6.jar diff --git a/legal-mods/krypton/1.20.5-1.21/krypton-0.2.7.json b/legal-mods/krypton/1.20.5-1.20.6/krypton-0.2.7.json similarity index 100% rename from legal-mods/krypton/1.20.5-1.21/krypton-0.2.7.json rename to legal-mods/krypton/1.20.5-1.20.6/krypton-0.2.7.json diff --git a/legal-mods/krypton/1.21-1.21.3/krypton-0.2.8.json b/legal-mods/krypton/1.21-1.21.3/krypton-0.2.8.json new file mode 100644 index 00000000..e900b1e7 --- /dev/null +++ b/legal-mods/krypton/1.21-1.21.3/krypton-0.2.8.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/fQEb0iXm/versions/Acz3ttTp/krypton-0.2.8.jar", + "hash": "5f8cf96c79bfd4d893f1d70da582e62026bed36af49a7fa7b1e00fb6efb28d9ad6a1eec147020496b4fe38693d33fe6bfcd1eebbd93475612ee44290c2483784" +} \ No newline at end of file diff --git a/legal-mods/lithium/1.21.1/lithium-fabric-0.14.3-snapshot+mc1.21.1-build.92.json b/legal-mods/lithium/1.21.1/lithium-fabric-0.14.3-snapshot+mc1.21.1-build.92.json new file mode 100644 index 00000000..3a541930 --- /dev/null +++ b/legal-mods/lithium/1.21.1/lithium-fabric-0.14.3-snapshot+mc1.21.1-build.92.json @@ -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" +} \ No newline at end of file diff --git a/legal-mods/lithium/1.21.1/lithium-fabric-mc1.21.1-0.13.0.json b/legal-mods/lithium/1.21.1/lithium-fabric-mc1.21.1-0.13.0.json deleted file mode 100644 index 3857d579..00000000 --- a/legal-mods/lithium/1.21.1/lithium-fabric-mc1.21.1-0.13.0.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/5szYtenV/lithium-fabric-mc1.21.1-0.13.0.jar", - "hash": "d4bd9a9cc37daad8828aa4fa9ca20e4f89d10e30cf6daf4546ef4cf4a684ba21ea0865a9c23cef9d1f4348e9ba4aca9aaca3db9f99534fc610fa78a5ca0bf151" -} \ No newline at end of file diff --git a/legal-mods/lithium/1.21.2-1.21.3/lithium-fabric-0.14.3+mc1.21.3.json b/legal-mods/lithium/1.21.2-1.21.3/lithium-fabric-0.14.3+mc1.21.3.json new file mode 100644 index 00000000..25cb59e6 --- /dev/null +++ b/legal-mods/lithium/1.21.2-1.21.3/lithium-fabric-0.14.3+mc1.21.3.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/pZRO3EKX/lithium-fabric-0.14.3%2Bmc1.21.3.jar", + "hash": "31ad08427ac50dd54cd2215c29452bd20430ce13f2bd8f4bdb8a6e2f6222b83df47d5727edac721f9397fa296db2998f9aa3eabe2c4c5d45619f8b5b00cd21fc" +} \ No newline at end of file diff --git a/legal-mods/lithium/1.21.4/lithium-fabric-0.14.3+mc1.21.4.json b/legal-mods/lithium/1.21.4/lithium-fabric-0.14.3+mc1.21.4.json new file mode 100644 index 00000000..f92a8adb --- /dev/null +++ b/legal-mods/lithium/1.21.4/lithium-fabric-0.14.3+mc1.21.4.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/t1FlWYl9/lithium-fabric-0.14.3%2Bmc1.21.4.jar", + "hash": "1a4eafbdcee3886d33c04aa462d13a8c1e345ff492001add262476585b78327a2d016e56385bced869615bc97161a34a0a716f5f579c8c1d7080b278f4f11183" +} \ No newline at end of file diff --git a/legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.0.json b/legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.0.json deleted file mode 100644 index e6c62e3b..00000000 --- a/legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.0.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/NTZCh7rb/lithium-fabric-mc1.21-0.13.0.jar", - "hash": "f5b9ec43c05ac3de29e8bc24e28ae34bc91a48ad1235f70635165a699322dbe2b8c071655b1af392c2fb318bde5bfa4959798b837f3c2885a9a7a1f735680ed1" -} \ No newline at end of file diff --git a/legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.1.json b/legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.1.json new file mode 100644 index 00000000..0cf14434 --- /dev/null +++ b/legal-mods/lithium/1.21/lithium-fabric-mc1.21-0.13.1.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/gvQqBUqZ/versions/M7RXiitG/lithium-fabric-mc1.21-0.13.1.jar", + "hash": "c42a3813398fc9cb99b9b8fdfc9af89fbce3245c1c5d54cd08edc05e519d3c1ee149c00f745a3a0eb216f3d1836ea35b4910f58e6312ea065e17e57422853217" +} \ No newline at end of file diff --git a/legal-mods/optifabric/1.0-1.2.5/optifabric-2.3.4+b1.7.3-1.14.4.jar b/legal-mods/optifabric/1.0-1.2.5/optifabric-2.3.4+b1.7.3-1.14.4.jar new file mode 100644 index 00000000..04a1fcaa Binary files /dev/null and b/legal-mods/optifabric/1.0-1.2.5/optifabric-2.3.4+b1.7.3-1.14.4.jar differ diff --git a/legal-mods/optifabric/1.3-1.13.2/optifabric-2.3.2+1.3-1.13.2.jar b/legal-mods/optifabric/1.3-1.13.2/optifabric-2.3.2+1.3-1.13.2.jar deleted file mode 100644 index cc1bdbe1..00000000 Binary files a/legal-mods/optifabric/1.3-1.13.2/optifabric-2.3.2+1.3-1.13.2.jar and /dev/null differ diff --git a/legal-mods/optifabric/1.3-1.13.2/optifabric-2.3.4+1.3-1.13.2.jar b/legal-mods/optifabric/1.3-1.13.2/optifabric-2.3.4+1.3-1.13.2.jar new file mode 100644 index 00000000..5ffb3f6f Binary files /dev/null and b/legal-mods/optifabric/1.3-1.13.2/optifabric-2.3.4+1.3-1.13.2.jar differ diff --git a/legal-mods/planifolia/1.19-1.21.1/planifolia-1.1.1+1.19-1.21.jar b/legal-mods/planifolia/1.19-1.21/planifolia-1.1.1+1.19-1.21.jar similarity index 100% rename from legal-mods/planifolia/1.19-1.21.1/planifolia-1.1.1+1.19-1.21.jar rename to legal-mods/planifolia/1.19-1.21/planifolia-1.1.1+1.19-1.21.jar diff --git a/legal-mods/planifolia/1.21.1/planifolia-1.1.1+1.21.1.jar b/legal-mods/planifolia/1.21.1/planifolia-1.1.1+1.21.1.jar new file mode 100644 index 00000000..2fc6a91e Binary files /dev/null and b/legal-mods/planifolia/1.21.1/planifolia-1.1.1+1.21.1.jar differ diff --git a/legal-mods/planifolia/1.21.2-1.21.4/planifolia-1.1.1+1.21.3.jar b/legal-mods/planifolia/1.21.2-1.21.4/planifolia-1.1.1+1.21.3.jar new file mode 100644 index 00000000..3b00e561 Binary files /dev/null and b/legal-mods/planifolia/1.21.2-1.21.4/planifolia-1.1.1+1.21.3.jar differ diff --git a/legal-mods/setspawnmod/1.19-1.21.1/setspawnmod-4.0.0+1.19-1.21.jar b/legal-mods/setspawnmod/1.19-1.21.4/setspawnmod-4.1.0+1.19-1.21.4.jar similarity index 61% rename from legal-mods/setspawnmod/1.19-1.21.1/setspawnmod-4.0.0+1.19-1.21.jar rename to legal-mods/setspawnmod/1.19-1.21.4/setspawnmod-4.1.0+1.19-1.21.4.jar index 2479d5dc..7860ba32 100644 Binary files a/legal-mods/setspawnmod/1.19-1.21.1/setspawnmod-4.0.0+1.19-1.21.jar and b/legal-mods/setspawnmod/1.19-1.21.4/setspawnmod-4.1.0+1.19-1.21.4.jar differ diff --git a/legal-mods/sleepbackground/1.21.2-1.21.4/sleepbackground-3.9.1-1.21.3.jar b/legal-mods/sleepbackground/1.21.2-1.21.4/sleepbackground-3.9.1-1.21.3.jar new file mode 100644 index 00000000..186c785c Binary files /dev/null and b/legal-mods/sleepbackground/1.21.2-1.21.4/sleepbackground-3.9.1-1.21.3.jar differ diff --git a/legal-mods/sodium/1.20.5/sodium-fabric-0.5.8+mc1.20.5.json b/legal-mods/sodium/1.20.5/sodium-fabric-0.5.8+mc1.20.5.json new file mode 100644 index 00000000..87abf68e --- /dev/null +++ b/legal-mods/sodium/1.20.5/sodium-fabric-0.5.8+mc1.20.5.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/AANobbMI/versions/hLV8Q8uu/sodium-fabric-0.5.8%2Bmc1.20.5.jar", + "hash": "f0649d23fc89adefba6bc653258ccc30cee69b5e7951bcb90fb4426bf053eb38e7c5acdf078f173b5a4a759d7175e02b3e6c9d41609c2dddcdab33f810cb78d4" +} \ No newline at end of file diff --git a/legal-mods/sodium/1.20.5-1.20.6/sodium-fabric-0.5.11+mc1.20.6.json b/legal-mods/sodium/1.20.6/sodium-fabric-0.5.11+mc1.20.6.json similarity index 100% rename from legal-mods/sodium/1.20.5-1.20.6/sodium-fabric-0.5.11+mc1.20.6.json rename to legal-mods/sodium/1.20.6/sodium-fabric-0.5.11+mc1.20.6.json diff --git a/legal-mods/sodium/1.21-1.21.1/sodium-fabric-0.5.11+mc1.21.json b/legal-mods/sodium/1.21-1.21.1/sodium-fabric-0.5.11+mc1.21.json deleted file mode 100644 index 124d68ad..00000000 --- a/legal-mods/sodium/1.21-1.21.1/sodium-fabric-0.5.11+mc1.21.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "link": "https://cdn.modrinth.com/data/AANobbMI/versions/RncWhTxD/sodium-fabric-0.5.11%2Bmc1.21.jar", - "hash": "a8a4520c2891e6a3c891b0b5c1106c29851a97c8e5a0131fe94cdcdfd755b679ce55dbaeafd14638ef7987b8efcd32619209aba4460762027f1a2ebe121a4046" -} \ No newline at end of file diff --git a/legal-mods/sodium/1.21-1.21.1/sodium-fabric-0.6.2+mc1.21.1.json b/legal-mods/sodium/1.21-1.21.1/sodium-fabric-0.6.2+mc1.21.1.json new file mode 100644 index 00000000..44c50302 --- /dev/null +++ b/legal-mods/sodium/1.21-1.21.1/sodium-fabric-0.6.2+mc1.21.1.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/AANobbMI/versions/6b5IXmYv/sodium-fabric-0.6.2%2Bmc1.21.1.jar", + "hash": "9c2c299620f1df26e331e9d0c686416c70736cfdf932e8c04fa75e02fd99f82474b0b8ffebc0036a5279f14820d9d4ad904a7e1b7baa42b2cb3e0de1972cf059" +} \ No newline at end of file diff --git a/legal-mods/sodium/1.21.2-1.21.3/sodium-fabric-0.6.2+mc1.21.3.json b/legal-mods/sodium/1.21.2-1.21.3/sodium-fabric-0.6.2+mc1.21.3.json new file mode 100644 index 00000000..9eaae402 --- /dev/null +++ b/legal-mods/sodium/1.21.2-1.21.3/sodium-fabric-0.6.2+mc1.21.3.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/AANobbMI/versions/xy8qdzcb/sodium-fabric-0.6.2%2Bmc1.21.3.jar", + "hash": "011ea53439ee5cfcdb538a267d6328fec1352efd5a351f743f55d67a22f7ce66b8a428d871e6efbee931b6d7fde3f936c28f8b681e8012bac1c62db646b8d869" +} \ No newline at end of file diff --git a/legal-mods/sodium/1.21.4/sodium-fabric-0.6.2+mc1.21.4.json b/legal-mods/sodium/1.21.4/sodium-fabric-0.6.2+mc1.21.4.json new file mode 100644 index 00000000..ad9e95c5 --- /dev/null +++ b/legal-mods/sodium/1.21.4/sodium-fabric-0.6.2+mc1.21.4.json @@ -0,0 +1,4 @@ +{ + "link": "https://cdn.modrinth.com/data/AANobbMI/versions/joBzVWtR/sodium-fabric-0.6.2%2Bmc1.21.4.jar", + "hash": "227a051609855a88027b93832d20624b4a0161a6b541d0fc651911c680d5e2f64b834fa7931eb5faed8cea24b75f493ccf3e0b5d0216f7c4fe05ebe09d2d216f" +} \ No newline at end of file diff --git a/legal-mods/standardsettings/1.21.2-1.21.4/standardsettings-1.2.4+1.21.3.jar b/legal-mods/standardsettings/1.21.2-1.21.4/standardsettings-1.2.4+1.21.3.jar new file mode 100644 index 00000000..5685bcb0 Binary files /dev/null and b/legal-mods/standardsettings/1.21.2-1.21.4/standardsettings-1.2.4+1.21.3.jar differ diff --git a/legal-mods/state-output/1.18.2-1.21.1/state-output-1.2.0+1.18.2-1.21.jar b/legal-mods/state-output/1.18.2-1.21.4/state-output-1.2.0+1.18.2-1.21.jar similarity index 100% rename from legal-mods/state-output/1.18.2-1.21.1/state-output-1.2.0+1.18.2-1.21.jar rename to legal-mods/state-output/1.18.2-1.21.4/state-output-1.2.0+1.18.2-1.21.jar