decompress natives when making launch script
This commit is contained in:
@@ -283,6 +283,8 @@ public class DefaultLauncher extends Launcher {
|
|||||||
public void makeLaunchScript(File scriptFile) throws IOException {
|
public void makeLaunchScript(File scriptFile) throws IOException {
|
||||||
boolean isWindows = OperatingSystem.WINDOWS == OperatingSystem.CURRENT_OS;
|
boolean isWindows = OperatingSystem.WINDOWS == OperatingSystem.CURRENT_OS;
|
||||||
|
|
||||||
|
decompressNatives();
|
||||||
|
|
||||||
if (isWindows && !FileUtils.getExtension(scriptFile).equals("bat"))
|
if (isWindows && !FileUtils.getExtension(scriptFile).equals("bat"))
|
||||||
throw new IOException("The extension of " + scriptFile + " is not 'bat' in Windows");
|
throw new IOException("The extension of " + scriptFile + " is not 'bat' in Windows");
|
||||||
else if (!isWindows && !FileUtils.getExtension(scriptFile).equals("sh"))
|
else if (!isWindows && !FileUtils.getExtension(scriptFile).equals("sh"))
|
||||||
|
|||||||
Reference in New Issue
Block a user