From 4fc5c8c3b16e40ab1fe9b699e723c0f9c1cddfe4 Mon Sep 17 00:00:00 2001 From: geekgeekrun Date: Sun, 25 Feb 2024 16:27:25 +0800 Subject: [PATCH] fix import path lack of protocol in product package on windows 11 --- packages/geek-auto-start-chat-with-boss/index.mjs | 1 + .../check-and-download-puppeteer-executable.ts | 1 + .../check-and-locate-existed-chromium-executable.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/packages/geek-auto-start-chat-with-boss/index.mjs b/packages/geek-auto-start-chat-with-boss/index.mjs index 3a2a7ff..95eec78 100644 --- a/packages/geek-auto-start-chat-with-boss/index.mjs +++ b/packages/geek-auto-start-chat-with-boss/index.mjs @@ -23,6 +23,7 @@ export async function initPuppeteer () { ) { const electron = await import('electron') const runtimeDependencies = await import( + 'file://' + path.resolve( electron.app.getAppPath(), '..', diff --git a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer-executable.ts b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer-executable.ts index d5d5068..0bfc016 100644 --- a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer-executable.ts +++ b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-download-puppeteer-executable.ts @@ -20,6 +20,7 @@ const getPuppeteerManagerModule = async () => { } else { puppeteerManager = ( await import( + 'file://' + path.resolve( electron.app.getAppPath(), '..', diff --git a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-locate-existed-chromium-executable.ts b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-locate-existed-chromium-executable.ts index 094eae9..8596d86 100644 --- a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-locate-existed-chromium-executable.ts +++ b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/check-and-locate-existed-chromium-executable.ts @@ -10,6 +10,7 @@ export default async function findAndLocateExistedChromiumExecutable() { } else { findChrome = ( await import( + 'file://' + path.resolve( electron.app.getAppPath(), '..',