Some small corrections
This commit is contained in:
parent
bfaca84c7d
commit
2eb62ac0a8
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue