Pre Merge pull request !99 from 柠檬冲水/N/A
This commit is contained in:
commit
51e05e0151
|
@ -35,11 +35,9 @@ if (process.platform == "linux" || process.platform == "android") {
|
|||
if (chromiumPath) {
|
||||
skipDownload = true;
|
||||
executablePath = realpathSync(chromiumPath);
|
||||
console.info("[Chromium] start");
|
||||
break;
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Failed to get Chromium path:", error);
|
||||
} catch {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +57,6 @@ if (process.platform == "linux" || process.platform == "android") {
|
|||
if (existsSync(item)) {
|
||||
skipDownload = true;
|
||||
executablePath = item;
|
||||
console.info("[Chromium] start");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -68,7 +65,6 @@ if (process.platform == "linux" || process.platform == "android") {
|
|||
* arm64/arrch64
|
||||
*/
|
||||
if (arch == "arm64" || arch == "aarch64") {
|
||||
console.info("[arm64/aarch64] system");
|
||||
skipDownload = true;
|
||||
}
|
||||
} else if (process.platform == "win32" && existsSync(win32Edge)) {
|
||||
|
@ -77,7 +73,6 @@ if (process.platform == "linux" || process.platform == "android") {
|
|||
*/
|
||||
skipDownload = true;
|
||||
executablePath = win32Edge;
|
||||
console.info("[Win32 Edge] start");
|
||||
}
|
||||
/**
|
||||
* @type {import("puppeteer").Configuration}
|
||||
|
|
Loading…
Reference in New Issue