decompress natives when making launch script

This commit is contained in:
huangyuhui
2018-02-02 10:53:59 +08:00
parent 7ea2b57ece
commit 7675347889

View File

@@ -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"))