mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:10:45 +00:00
refactor: hide browser chrome platform finders
This commit is contained in:
@@ -538,7 +538,7 @@ export function findChromeExecutableMac(): BrowserExecutable | null {
|
||||
return findFirstExecutable(candidates);
|
||||
}
|
||||
|
||||
export function findGoogleChromeExecutableMac(): BrowserExecutable | null {
|
||||
function findGoogleChromeExecutableMac(): BrowserExecutable | null {
|
||||
return findFirstChromeExecutable([
|
||||
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
|
||||
path.join(os.homedir(), "Applications/Google Chrome.app/Contents/MacOS/Google Chrome"),
|
||||
@@ -573,7 +573,7 @@ export function findChromeExecutableLinux(): BrowserExecutable | null {
|
||||
return findFirstExecutable(candidates);
|
||||
}
|
||||
|
||||
export function findGoogleChromeExecutableLinux(): BrowserExecutable | null {
|
||||
function findGoogleChromeExecutableLinux(): BrowserExecutable | null {
|
||||
return findFirstChromeExecutable([
|
||||
"/usr/bin/google-chrome",
|
||||
"/usr/bin/google-chrome-stable",
|
||||
@@ -654,7 +654,7 @@ export function findChromeExecutableWindows(): BrowserExecutable | null {
|
||||
return findFirstExecutable(candidates);
|
||||
}
|
||||
|
||||
export function findGoogleChromeExecutableWindows(): BrowserExecutable | null {
|
||||
function findGoogleChromeExecutableWindows(): BrowserExecutable | null {
|
||||
const localAppData = process.env.LOCALAPPDATA ?? "";
|
||||
const programFiles = process.env.ProgramFiles ?? "C:\\Program Files";
|
||||
const programFilesX86 = process.env["ProgramFiles(x86)"] ?? "C:\\Program Files (x86)";
|
||||
|
||||
Reference in New Issue
Block a user