Skip to content

Commit

Permalink
legacy-fixes 1.0.1 and reformat some files
Browse files Browse the repository at this point in the history
  • Loading branch information
BluCobalt committed Aug 18, 2023
1 parent bc0855e commit fbf673d
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 120 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
out/*
.idea/
.idea/
*.jar
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "legacy-fixes"]
path = legacy-fixes
url = https://github.com/Legacy-Fabric/legacy-fixes
11 changes: 4 additions & 7 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import zipfile

loader: str = "0.14.21"
loader: str = "0.14.22"
legacy_fixes: str = "legacy-fixes-1.0.1.jar"
lwjgl3: str = "3.1.6"
lwjgl2: str = "2.9.4-nightly-20150209"
Expand All @@ -15,7 +15,8 @@ def mkdir_if_not_exists(path: str):


class Generator:
def __init__(self, loader_version: str, minecraft_version: str, lwjgl_version: str, lwjgl_patch: str, path: str = "temp"):
def __init__(self, loader_version: str, minecraft_version: str, lwjgl_version: str, lwjgl_patch: str,
path: str = "temp"):
self.lwjgl_version: str = lwjgl_version
self.minecraft_version: str = minecraft_version
self.loader_version: str = loader_version
Expand Down Expand Up @@ -83,7 +84,7 @@ def create_zip(self):

if not self.lwjgl_version.startswith("3"):
z.write("temp/patches/org.lwjgl.lwjgl.json",
"patches/org.lwjgl.json")
"patches/org.lwjgl.json")

if self.minecraft_version == "1.8.9" or self.minecraft_version == "1.7.10" or self.minecraft_version == "1.6.4" or self.minecraft_version == "1.5.2" or self.minecraft_version == "1.4.7" or self.minecraft_version == "1.3.2":
z.write(f"temp/.minecraft/mods/{legacy_fixes}", f".minecraft/mods/{legacy_fixes}")
Expand Down Expand Up @@ -123,7 +124,3 @@ def cleanup(self):
g = Generator(loader, version, lwjgl_version, lwjgl_patch)
g.prepare_skeleton()
g.create_zip()

# g = Generator(loader, "1.13.2", lwjgl3)
# g.prepare_skeleton()
# g.create_zip()
7 changes: 7 additions & 0 deletions generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
cd legacy-fixes/
./gradlew clean build
cd ..
cp legacy-fixes/build/libs/*.jar .
./generate.py

1 change: 1 addition & 0 deletions legacy-fixes
Submodule legacy-fixes added at 3b7095
20 changes: 10 additions & 10 deletions skel/patches/net.fabricmc.intermediary.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"formatVersion": 1,
"+libraries": [
{
"name": "net.legacyfabric:intermediary:${minecraft_version}",
"url": "https://maven.legacyfabric.net/"
}
],
"name": "Intermediary Mappings",
"uid": "net.fabricmc.intermediary",
"version": "${minecraft_version}"
"formatVersion": 1,
"+libraries": [
{
"name": "net.legacyfabric:intermediary:${minecraft_version}",
"url": "https://maven.legacyfabric.net/"
}
],
"name": "Intermediary Mappings",
"uid": "net.fabricmc.intermediary",
"version": "${minecraft_version}"
}
204 changes: 102 additions & 102 deletions skel/patches/org.lwjgl.lwjgl.json
Original file line number Diff line number Diff line change
@@ -1,105 +1,105 @@
{
"formatVersion": 1,
"libraries": [
{
"downloads": {
"classifiers": {
"natives-linux": {
"sha1": "7ff832a6eb9ab6a767f1ade2b548092d0fa64795",
"size": 10362,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar"
},
"natives-linux-arm32": {
"sha1": "f3c455b71c5146acb5f8a9513247fc06db182fd5",
"size": 4521,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm32/raw/lwjgl-2.9.4/jinput-platform-2.0.5-natives-linux.jar"
},
"natives-linux-arm64": {
"sha1": "42b388ccb7c63cec4e9f24f4dddef33325f8b212",
"size": 10932,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm64/raw/lwjgl-2.9.4/jinput-platform-2.0.5-natives-linux.jar"
},
"natives-osx": {
"sha1": "53f9c919f34d2ca9de8c51fc4e1e8282029a9232",
"size": 12186,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar"
},
"natives-osx-arm64": {
"sha1": "5189eb40db3087fb11ca063b68fa4f4c20b199dd",
"size": 10031,
"url": "https://github.com/r58Playz/jinput-m1/raw/main/plugins/OSX/bin/jinput-platform-2.0.5.jar"
},
"natives-windows": {
"sha1": "385ee093e01f587f30ee1c8a2ee7d408fd732e16",
"size": 155179,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar"
}
}
},
"extract": {
"exclude": [
"META-INF/"
]
},
"name": "net.java.jinput:jinput-platform:2.0.5",
"natives": {
"linux": "natives-linux",
"linux-arm32": "natives-linux-arm32",
"linux-arm64": "natives-linux-arm64",
"osx": "natives-osx",
"osx-arm64": "natives-osx-arm64",
"windows": "natives-windows"
}
},
{
"downloads": {
"artifact": {
"sha1": "39c7796b469a600f72380316f6b1f11db6c2c7c4",
"size": 208338,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar"
}
},
"name": "net.java.jinput:jinput:2.0.5"
},
{
"downloads": {
"artifact": {
"sha1": "e12fe1fda814bd348c1579329c86943d2cd3c6a6",
"size": 7508,
"url": "https://libraries.minecraft.net/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar"
}
},
"name": "net.java.jutils:jutils:1.0.0"
},
{
"extract": {
"exclude": [
"META-INF/"
]
},
"name": "org.lwjgl.lwjgl:lwjgl-platform:${lwjgl_patch}",
"url": "https://maven.legacyfabric.net/",
"natives": {
"linux": "natives-linux",
"linux-arm32": "natives-linux",
"linux-arm64": "natives-linux",
"osx": "natives-osx",
"osx-arm64": "natives-osx",
"windows": "natives-windows"
}
},
{
"name": "org.lwjgl.lwjgl:lwjgl:${lwjgl_patch}",
"url": "https://maven.legacyfabric.net/"
},
{
"name": "org.lwjgl.lwjgl:lwjgl_util:${lwjgl_patch}",
"url": "https://maven.legacyfabric.net/"
"formatVersion": 1,
"libraries": [
{
"downloads": {
"classifiers": {
"natives-linux": {
"sha1": "7ff832a6eb9ab6a767f1ade2b548092d0fa64795",
"size": 10362,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar"
},
"natives-linux-arm32": {
"sha1": "f3c455b71c5146acb5f8a9513247fc06db182fd5",
"size": 4521,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm32/raw/lwjgl-2.9.4/jinput-platform-2.0.5-natives-linux.jar"
},
"natives-linux-arm64": {
"sha1": "42b388ccb7c63cec4e9f24f4dddef33325f8b212",
"size": 10932,
"url": "https://github.com/theofficialgman/lwjgl3-binaries-arm64/raw/lwjgl-2.9.4/jinput-platform-2.0.5-natives-linux.jar"
},
"natives-osx": {
"sha1": "53f9c919f34d2ca9de8c51fc4e1e8282029a9232",
"size": 12186,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-osx.jar"
},
"natives-osx-arm64": {
"sha1": "5189eb40db3087fb11ca063b68fa4f4c20b199dd",
"size": 10031,
"url": "https://github.com/r58Playz/jinput-m1/raw/main/plugins/OSX/bin/jinput-platform-2.0.5.jar"
},
"natives-windows": {
"sha1": "385ee093e01f587f30ee1c8a2ee7d408fd732e16",
"size": 155179,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-windows.jar"
}
}
],
"name": "LWJGL 2",
"type": "release",
"uid": "org.lwjgl",
"version": "${lwjgl_patch}",
"volatile": true
},
"extract": {
"exclude": [
"META-INF/"
]
},
"name": "net.java.jinput:jinput-platform:2.0.5",
"natives": {
"linux": "natives-linux",
"linux-arm32": "natives-linux-arm32",
"linux-arm64": "natives-linux-arm64",
"osx": "natives-osx",
"osx-arm64": "natives-osx-arm64",
"windows": "natives-windows"
}
},
{
"downloads": {
"artifact": {
"sha1": "39c7796b469a600f72380316f6b1f11db6c2c7c4",
"size": 208338,
"url": "https://libraries.minecraft.net/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar"
}
},
"name": "net.java.jinput:jinput:2.0.5"
},
{
"downloads": {
"artifact": {
"sha1": "e12fe1fda814bd348c1579329c86943d2cd3c6a6",
"size": 7508,
"url": "https://libraries.minecraft.net/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar"
}
},
"name": "net.java.jutils:jutils:1.0.0"
},
{
"extract": {
"exclude": [
"META-INF/"
]
},
"name": "org.lwjgl.lwjgl:lwjgl-platform:${lwjgl_patch}",
"url": "https://maven.legacyfabric.net/",
"natives": {
"linux": "natives-linux",
"linux-arm32": "natives-linux",
"linux-arm64": "natives-linux",
"osx": "natives-osx",
"osx-arm64": "natives-osx",
"windows": "natives-windows"
}
},
{
"name": "org.lwjgl.lwjgl:lwjgl:${lwjgl_patch}",
"url": "https://maven.legacyfabric.net/"
},
{
"name": "org.lwjgl.lwjgl:lwjgl_util:${lwjgl_patch}",
"url": "https://maven.legacyfabric.net/"
}
],
"name": "LWJGL 2",
"type": "release",
"uid": "org.lwjgl",
"version": "${lwjgl_patch}",
"volatile": true
}

0 comments on commit fbf673d

Please sign in to comment.