From 479e908a80db4a53936ca360803945bd7dd5eb8d Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 28 Jun 2024 16:13:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zlmedia/runner/process/EmbeddedProcessMediaRuntime.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zlmedia4j-native/src/main/java/org/jetlinks/zlmedia/runner/process/EmbeddedProcessMediaRuntime.java b/zlmedia4j-native/src/main/java/org/jetlinks/zlmedia/runner/process/EmbeddedProcessMediaRuntime.java index a9910f4..f6a034c 100644 --- a/zlmedia4j-native/src/main/java/org/jetlinks/zlmedia/runner/process/EmbeddedProcessMediaRuntime.java +++ b/zlmedia4j-native/src/main/java/org/jetlinks/zlmedia/runner/process/EmbeddedProcessMediaRuntime.java @@ -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("/")) { @@ -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")) {