fix linux command

This commit is contained in:
TongTongStudio
2025-04-09 01:19:55 +08:00
parent 4fddefd78d
commit c51c2416ef
5 changed files with 4 additions and 2 deletions

0
bsdiff/linux/bsdiff Normal file → Executable file
View File

0
bsdiff/linux/bspatch Normal file → Executable file
View File

BIN
bsdiff/mac/bsdiff Executable file

Binary file not shown.

BIN
bsdiff/mac/bspatch Executable file

Binary file not shown.

View File

@@ -58,9 +58,11 @@ public class CreateDiffPatchFile {
String command;
if (os.contains("win")) {
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";
} else {
}else if ( os.contains("mac")) {
command = "bsdiff" + File.separator + "mac" + File.separator + "bsdiff";
} else {
throw new UnsupportedOperationException("Unsupported OS");
}
File file = new File(command);