Skip to content

Commit

Permalink
refactor: 优化文件名判断
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Jun 28, 2024
1 parent 4a3918a commit 479e908
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ private static String install(String file, String workdir) {
continue;
}
String filename = entry.getName();
if (filename.startsWith(" __MACOSX") || filename.endsWith(".DS_Store")) {
if (filename.contains(" __MACOSX") || filename.endsWith(".DS_Store")) {
continue;
}
if (filename.endsWith("/")) {
Expand All @@ -100,7 +100,7 @@ private static String install(String file, String workdir) {
StandardOpenOption.WRITE)) {
StreamUtils.copy(zip, output);
}
String _fileName=copyToFile.getName();
String _fileName = copyToFile.getName();
if (_fileName.equals("MediaServer") ||
//windows
_fileName.equals("MediaServer.exe")) {
Expand Down

0 comments on commit 479e908

Please sign in to comment.