fix import path lack of protocol in product package on windows 11

This commit is contained in:
geekgeekrun
2024-02-25 16:27:25 +08:00
parent 8edcff501a
commit 4fc5c8c3b1
3 changed files with 3 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ export async function initPuppeteer () {
) {
const electron = await import('electron')
const runtimeDependencies = await import(
'file://' +
path.resolve(
electron.app.getAppPath(),
'..',

View File

@@ -20,6 +20,7 @@ const getPuppeteerManagerModule = async () => {
} else {
puppeteerManager = (
await import(
'file://' +
path.resolve(
electron.app.getAppPath(),
'..',

View File

@@ -10,6 +10,7 @@ export default async function findAndLocateExistedChromiumExecutable() {
} else {
findChrome = (
await import(
'file://' +
path.resolve(
electron.app.getAppPath(),
'..',