更新运行时资源查找路径

This commit is contained in:
cat-shark
2026-06-20 18:37:46 +08:00
parent c703229518
commit b8a6f0c649
10 changed files with 60 additions and 20 deletions
+2 -3
View File
@@ -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'];