diff --git a/HMCLCore/src/main/java/org/jackhuang/hmcl/launch/DefaultLauncher.java b/HMCLCore/src/main/java/org/jackhuang/hmcl/launch/DefaultLauncher.java index 3c109757c..982c6ea8e 100644 --- a/HMCLCore/src/main/java/org/jackhuang/hmcl/launch/DefaultLauncher.java +++ b/HMCLCore/src/main/java/org/jackhuang/hmcl/launch/DefaultLauncher.java @@ -283,6 +283,8 @@ public class DefaultLauncher extends Launcher { public void makeLaunchScript(File scriptFile) throws IOException { boolean isWindows = OperatingSystem.WINDOWS == OperatingSystem.CURRENT_OS; + decompressNatives(); + if (isWindows && !FileUtils.getExtension(scriptFile).equals("bat")) throw new IOException("The extension of " + scriptFile + " is not 'bat' in Windows"); else if (!isWindows && !FileUtils.getExtension(scriptFile).equals("sh"))