fix linux command
This commit is contained in:
0
bsdiff/linux/bsdiff
Normal file → Executable file
0
bsdiff/linux/bsdiff
Normal file → Executable file
0
bsdiff/linux/bspatch
Normal file → Executable file
0
bsdiff/linux/bspatch
Normal file → Executable file
BIN
bsdiff/mac/bsdiff
Executable file
BIN
bsdiff/mac/bsdiff
Executable file
Binary file not shown.
BIN
bsdiff/mac/bspatch
Executable file
BIN
bsdiff/mac/bspatch
Executable file
Binary file not shown.
@@ -58,9 +58,11 @@ public class CreateDiffPatchFile {
|
|||||||
String command;
|
String command;
|
||||||
if (os.contains("win")) {
|
if (os.contains("win")) {
|
||||||
command = "bsdiff" + File.separator + "win" + File.separator + "bsdiff.exe";
|
command = "bsdiff" + File.separator + "win" + File.separator + "bsdiff.exe";
|
||||||
} else if (os.contains("nix") || os.contains("mac")) {
|
} else if (os.contains("linux") ) {
|
||||||
command = "bsdiff" + File.separator + "linux" + File.separator + "bsdiff";
|
command = "bsdiff" + File.separator + "linux" + File.separator + "bsdiff";
|
||||||
} else {
|
}else if ( os.contains("mac")) {
|
||||||
|
command = "bsdiff" + File.separator + "mac" + File.separator + "bsdiff";
|
||||||
|
} else {
|
||||||
throw new UnsupportedOperationException("Unsupported OS");
|
throw new UnsupportedOperationException("Unsupported OS");
|
||||||
}
|
}
|
||||||
File file = new File(command);
|
File file = new File(command);
|
||||||
|
|||||||
Reference in New Issue
Block a user