diff --git a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/index.ts b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/index.ts index 109dcc1..4cf7df4 100644 --- a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/index.ts +++ b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/index.ts @@ -118,7 +118,7 @@ export const getAnyAvailablePuppeteerExecutable = async (): Promise { +export async function findAndLocateUserInstalledChromiumExecutableSync(): Promise { const exceptChromiumMainVersion = Number(EXPECT_CHROMIUM_BUILD_ID.split('.')[0]) // For windows, try to find Edge(chromium) if (os.platform() === 'win32') { @@ -193,7 +193,7 @@ export async function findAndLocateExistedChromiumExecutableSync(): Promise { +export async function findAndLocateUserInstalledChromiumExecutable(): Promise { return new Promise((resolve, reject) => { const worker: Worker = new CheckAndLocateExistedChromiumExecutableWorker() worker.once('message', (data) => { diff --git a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/worker/find-and-locate-existed-chromium-executable.ts b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/worker/find-and-locate-existed-chromium-executable.ts index 66a34f9..cb08de0 100644 --- a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/worker/find-and-locate-existed-chromium-executable.ts +++ b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/utils/puppeteer-executable/worker/find-and-locate-existed-chromium-executable.ts @@ -1,8 +1,8 @@ import { parentPort } from 'node:worker_threads' -import { findAndLocateExistedChromiumExecutableSync } from '../index' +import { findAndLocateUserInstalledChromiumExecutableSync } from '../index' ;(async () => { try { - const result = await findAndLocateExistedChromiumExecutableSync() + const result = await findAndLocateUserInstalledChromiumExecutableSync() parentPort?.postMessage({ type: 'RESULT', data: result