From c24a802e2f0ef63e1ce7e09be9a4ee37b3f2e4d7 Mon Sep 17 00:00:00 2001 From: modmuss Date: Sun, 15 Oct 2023 10:45:14 +0100 Subject: [PATCH] Rename .jnilib natives to .dylib (#956) --- src/main/java/net/fabricmc/loom/task/ExtractNativesTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/fabricmc/loom/task/ExtractNativesTask.java b/src/main/java/net/fabricmc/loom/task/ExtractNativesTask.java index 0086ec47a..4fa344429 100644 --- a/src/main/java/net/fabricmc/loom/task/ExtractNativesTask.java +++ b/src/main/java/net/fabricmc/loom/task/ExtractNativesTask.java @@ -40,6 +40,8 @@ public ExtractNativesTask() { for (File nativeFile : getProject().getConfigurations().getByName(Constants.Configurations.MINECRAFT_NATIVES).getFiles()) { from(getProject().zipTree(nativeFile), copySpec -> { copySpec.exclude("META-INF/**"); + // Fix pre LWJGL 3 versions on Macos. See: https://github.com/FabricMC/fabric-loom/issues/955 + copySpec.rename(s -> s.replace(".jnilib", ".dylib")); }); }