mirror of
https://github.com/NaiboWang/EasySpider.git
synced 2025-04-16 08:16:55 +08:00
Update main.js about execute.bat name
This commit is contained in:
parent
ee4a077630
commit
8f5d7a3a52
@ -86,11 +86,11 @@ console.log(process.arch);
|
|||||||
if (process.platform === "win32" && process.arch === "ia32") {
|
if (process.platform === "win32" && process.arch === "ia32") {
|
||||||
driverPath = path.join(__dirname, "chrome_win32/chromedriver_win32.exe");
|
driverPath = path.join(__dirname, "chrome_win32/chromedriver_win32.exe");
|
||||||
chromeBinaryPath = path.join(__dirname, "chrome_win32/chrome.exe");
|
chromeBinaryPath = path.join(__dirname, "chrome_win32/chrome.exe");
|
||||||
execute_path = path.join(__dirname, "chrome_win32/execute.bat");
|
execute_path = path.join(__dirname, "chrome_win32/execute_win32.bat");
|
||||||
} else if (process.platform === "win32" && process.arch === "x64") {
|
} else if (process.platform === "win32" && process.arch === "x64") {
|
||||||
driverPath = path.join(__dirname, "chrome_win64/chromedriver_win64.exe");
|
driverPath = path.join(__dirname, "chrome_win64/chromedriver_win64.exe");
|
||||||
chromeBinaryPath = path.join(__dirname, "chrome_win64/chrome.exe");
|
chromeBinaryPath = path.join(__dirname, "chrome_win64/chrome.exe");
|
||||||
execute_path = path.join(__dirname, "chrome_win64/execute.bat");
|
execute_path = path.join(__dirname, "chrome_win64/execute_win64.bat");
|
||||||
} else if (process.platform === "darwin") {
|
} else if (process.platform === "darwin") {
|
||||||
driverPath = path.join(__dirname, "chromedriver_mac64");
|
driverPath = path.join(__dirname, "chromedriver_mac64");
|
||||||
chromeBinaryPath = path.join(
|
chromeBinaryPath = path.join(
|
||||||
@ -101,7 +101,7 @@ if (process.platform === "win32" && process.arch === "ia32") {
|
|||||||
} else if (process.platform === "linux") {
|
} else if (process.platform === "linux") {
|
||||||
driverPath = path.join(__dirname, "chrome_linux64/chromedriver_linux64");
|
driverPath = path.join(__dirname, "chrome_linux64/chromedriver_linux64");
|
||||||
chromeBinaryPath = path.join(__dirname, "chrome_linux64/chrome");
|
chromeBinaryPath = path.join(__dirname, "chrome_linux64/chrome");
|
||||||
execute_path = path.join(__dirname, "chrome_linux64/execute.sh");
|
execute_path = path.join(__dirname, "chrome_linux64/execute_linux64.sh");
|
||||||
}
|
}
|
||||||
console.log(driverPath, chromeBinaryPath, execute_path);
|
console.log(driverPath, chromeBinaryPath, execute_path);
|
||||||
let language = "en";
|
let language = "en";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user