diff options
Diffstat (limited to 'lwjgl')
-rw-r--r-- | lwjgl/1.16.2-fabric/api/1.16.2-fabric.api | 0 | ||||
-rw-r--r-- | lwjgl/build.gradle.kts | 24 | ||||
-rw-r--r-- | lwjgl/root.gradle.kts | 4 |
3 files changed, 19 insertions, 9 deletions
diff --git a/lwjgl/1.16.2-fabric/api/1.16.2-fabric.api b/lwjgl/1.16.2-fabric/api/1.16.2-fabric.api new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lwjgl/1.16.2-fabric/api/1.16.2-fabric.api diff --git a/lwjgl/build.gradle.kts b/lwjgl/build.gradle.kts index fcc5511..925fb4d 100644 --- a/lwjgl/build.gradle.kts +++ b/lwjgl/build.gradle.kts @@ -16,7 +16,7 @@ val mod_name: String by project val mod_version: String by project val mod_id: String by project -version = "1.0.0-alpha5" +version = "1.0.0-alpha8" repositories { maven("https://repo.polyfrost.cc/releases") @@ -50,19 +50,27 @@ dependencies { shadeRuntimeOnly("org.lwjgl:lwjgl:$lwjgl:natives-macos") shadeRuntimeOnly("org.lwjgl:lwjgl-stb:$lwjgl:natives-macos") shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:$lwjgl:natives-macos") + shadeRuntimeOnly("org.lwjgl:lwjgl:$lwjgl:natives-macos-arm64") + shadeRuntimeOnly("org.lwjgl:lwjgl-stb:$lwjgl:natives-macos-arm64") + shadeRuntimeOnly("org.lwjgl:lwjgl-tinyfd:$lwjgl:natives-macos-arm64") } shadeCompileOnly("org.lwjgl:lwjgl-nanovg:$lwjgl") { - isTransitive = platform.isLegacyForge + isTransitive = false } shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:$lwjgl:natives-windows") { - isTransitive = platform.isLegacyForge + isTransitive = false } shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:$lwjgl:natives-linux") { - isTransitive = platform.isLegacyForge + isTransitive = false } shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:$lwjgl:natives-macos") { - isTransitive = platform.isLegacyForge + isTransitive = false + } + // force 3.3.1 for this, because + // if the user is actually running M1+, LWJGL must be 3.3.0+ + shadeRuntimeOnly("org.lwjgl:lwjgl-nanovg:3.3.1:natives-macos-arm64") { + isTransitive = false } } @@ -70,10 +78,10 @@ tasks { named<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>("shadowJar") { archiveClassifier.set("") configurations = listOf(shadeCompileOnly, shadeRuntimeOnly) - exclude("META-INF/versions/**") - exclude("**/module-info.class") - exclude("**/package-info.class") if (platform.isLegacyForge) { + exclude("META-INF/versions/**") + exclude("**/module-info.class") + exclude("**/package-info.class") relocate("org.lwjgl", "org.lwjgl3") { include("org.lwjgl.PointerBuffer") include("org.lwjgl.BufferUtils") diff --git a/lwjgl/root.gradle.kts b/lwjgl/root.gradle.kts index d2dc0c7..2c4ada8 100644 --- a/lwjgl/root.gradle.kts +++ b/lwjgl/root.gradle.kts @@ -10,7 +10,9 @@ plugins { preprocess { "1.8.9-forge"(10809, "srg") { "1.12.2-forge"(11202, "srg") { - "1.16.2-forge"(11602, "srg") + "1.16.2-forge"(11602, "srg") { + "1.16.2-fabric"(11602, "yarn") + } } } }
\ No newline at end of file |