Some small corrections

This commit is contained in:
Ziver Koc 2021-02-01 01:32:56 +01:00
parent bfaca84c7d
commit 2eb62ac0a8

View file

@ -51,7 +51,7 @@ public class MultiPlatformBinaryManager {
/**
*
* @param root The root directory where all the binaries are located
* @param binary The name of the binary.
* @param binary The name of the binary. (Without a file extension)
* @return the path to the binary for the current hw platform
*/
public static File getPath(File root, String binary) {
@ -83,6 +83,10 @@ public class MultiPlatformBinaryManager {
default: arch = System.getProperty("os.arch").toLowerCase(); break;
}
switch (OSAbstractionLayer.getInstance().getOSType()) {
case Windows: binary += ".exe"; break;
}
String platform = os + "-" + arch;
File platformPath = new File(root, platform);
return new File(platformPath, binary);