|
@@ -14,6 +14,7 @@ import org.slf4j.LoggerFactory;
|
|
|
import java.io.BufferedReader;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStreamReader;
|
|
|
+import java.util.Arrays;
|
|
|
|
|
|
/**
|
|
|
* @author: fengdesheng
|
|
@@ -38,7 +39,6 @@ public class ElectronUtils {
|
|
|
if (path.indexOf(":") > 0 && path.startsWith("/")) {
|
|
|
path = path.replaceFirst("/", "");
|
|
|
}
|
|
|
-
|
|
|
String[] cmd = new String[]{WIN_PREFIX + String.format(script, url, path)};
|
|
|
return executeCommand(cmd, "GBK");
|
|
|
} else {
|
|
@@ -50,6 +50,7 @@ public class ElectronUtils {
|
|
|
"Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &",
|
|
|
"cd /usr/local/nodejs/node_global/bin", cmd
|
|
|
};
|
|
|
+ log.debug(Arrays.toString(commands));
|
|
|
return executeCommand(commands, "UTF-8");
|
|
|
}
|
|
|
}
|