mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-08-02 03:36:49 +08:00
fix import path lack of protocol in product package on windows 11
This commit is contained in:
@@ -23,6 +23,7 @@ export async function initPuppeteer () {
|
||||
) {
|
||||
const electron = await import('electron')
|
||||
const runtimeDependencies = await import(
|
||||
'file://' +
|
||||
path.resolve(
|
||||
electron.app.getAppPath(),
|
||||
'..',
|
||||
|
||||
@@ -20,6 +20,7 @@ const getPuppeteerManagerModule = async () => {
|
||||
} else {
|
||||
puppeteerManager = (
|
||||
await import(
|
||||
'file://' +
|
||||
path.resolve(
|
||||
electron.app.getAppPath(),
|
||||
'..',
|
||||
|
||||
@@ -10,6 +10,7 @@ export default async function findAndLocateExistedChromiumExecutable() {
|
||||
} else {
|
||||
findChrome = (
|
||||
await import(
|
||||
'file://' +
|
||||
path.resolve(
|
||||
electron.app.getAppPath(),
|
||||
'..',
|
||||
|
||||
Reference in New Issue
Block a user