更新运行时资源查找路径
This commit is contained in:
@@ -59,9 +59,8 @@ export function getPlaywrightChromiumPath(): string | undefined {
|
||||
const runtimePath = getRuntimeBundlePath('playwright');
|
||||
const basePaths = [
|
||||
runtimePath,
|
||||
path.join(process.resourcesPath || app.getAppPath(), 'extra/common/playwright'),
|
||||
path.join(app.getAppPath(), 'resources/extra/common/playwright'),
|
||||
path.join(app.getAppPath(), 'electron/resources/extra/common/playwright'),
|
||||
path.join(app.getAppPath(), 'packaging/vendor/playwright'),
|
||||
path.join(process.cwd(), 'packaging/vendor/playwright'),
|
||||
].filter(Boolean);
|
||||
|
||||
const chromiumVersions = ['chromium-1200'];
|
||||
|
||||
Reference in New Issue
Block a user