From 6b4398aa1ca31ec73ab71b73ecc6f7f203ba8c58 Mon Sep 17 00:00:00 2001 From: hjwforever Date: Mon, 12 Aug 2024 11:12:42 +0800 Subject: [PATCH] fix: fix build --- package.json | 5 +---- src/main/index.js | 6 +++--- yarn.lock | 35 +---------------------------------- 3 files changed, 5 insertions(+), 41 deletions(-) diff --git a/package.json b/package.json index 4f4f94d..ef0c314 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,6 @@ "@babel/preset-env": "^7.12.11", "@babel/register": "^7.12.10", "@babel/runtime": "^7.12.5", - "@playwright/test": "^1.24.2", "@types/fs-extra": "^9.0.6", "@types/node": "^14.14.22", "babel-eslint": "^9.0.0", @@ -174,7 +173,6 @@ "electron": "^26.6.10", "electron-builder": "^24.13.3", "electron-devtools-vendor": "^1.1.0", - "electron-playwright-helpers": "^1.2.0", "esbuild-loader": "^2.19.0", "eslint": "^6.8.0", "eslint-config-standard": "^14.1.1", @@ -195,7 +193,6 @@ "mini-css-extract-plugin": "1.3.4", "multispinner": "^0.2.1", "node-loader": "^1.0.2", - "playwright": "^1.24.2", "portfinder": "^1.0.28", "prettier": "^2.7.0", "sass": "1.32.5", @@ -234,7 +231,7 @@ } }, "volta": { - "node": "20.16.0", + "node": "18.20.4", "yarn": "1.22.21" } } diff --git a/src/main/index.js b/src/main/index.js index f45577f..3dca780 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -73,9 +73,9 @@ function onAppReady() { }) }) if (!registerSucceed) console.error('Failed to register protocol') - protocol.interceptFileProtocol('file', (request, callback) => { - callback(request) - }) + // protocol.interceptFileProtocol('file', (request, callback) => { + // callback(request) + // }) } // 禁止缓存 app.isReady() ? onAppReady() : app.on('ready', onAppReady) diff --git a/yarn.lock b/yarn.lock index ada1388..45b122f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1160,7 +1160,7 @@ buffer "^6.0.3" events "^3.3.0" -"@electron/asar@^3.2.1", "@electron/asar@^3.2.4": +"@electron/asar@^3.2.1": version "3.2.10" resolved "https://registry.yarnpkg.com/@electron/asar/-/asar-3.2.10.tgz#615cf346b734b23cafa4e0603551010bd0e50aa8" integrity sha512-mvBSwIBUeiRscrCeJE1LwctAriBj65eUDm0Pc11iE5gRwzkmsdbS7FnZ1XUWjpSeQWL1L5g12Fc/SchPM9DUOw== @@ -1879,13 +1879,6 @@ resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@playwright/test@^1.24.2": - version "1.46.0" - resolved "https://registry.yarnpkg.com/@playwright/test/-/test-1.46.0.tgz#ccea6d22c40ee7fa567e4192fafbdf2a907e2714" - integrity sha512-/QYft5VArOrGRP5pgkrfKksqsKA6CEFyGQ/gjNe6q0y4tZ1aaPfq4gIjudr1s3D+pXyrPRdsy4opKDrjBabE5w== - dependencies: - playwright "1.46.0" - "@popperjs/core@^2.9.2": version "2.11.8" resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" @@ -4699,13 +4692,6 @@ electron-osx-sign@^0.6.0: minimist "^1.2.0" plist "^3.0.1" -electron-playwright-helpers@^1.2.0: - version "1.7.1" - resolved "https://registry.yarnpkg.com/electron-playwright-helpers/-/electron-playwright-helpers-1.7.1.tgz#1e63f8b9da91787ffabe13f0a770c35811e8a9d3" - integrity sha512-S9mo7LfpERgub2WIuYVPpib4XKFeAqBP+mxYf5Bv7E0B5GUB+LUbSj6Fpu39h18Ar635Nf9nQYTmypjuvaYJng== - dependencies: - "@electron/asar" "^3.2.4" - electron-publish@23.6.0: version "23.6.0" resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-23.6.0.tgz#ac9b469e0b07752eb89357dd660e5fb10b3d1ce9" @@ -5896,11 +5882,6 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - fsevents@^1.2.7: version "1.2.13" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-1.2.13.tgz#f325cb0455592428bcf11b383370ef70e3bfcc38" @@ -8823,20 +8804,6 @@ pkg-up@^3.1.0: dependencies: find-up "^3.0.0" -playwright-core@1.46.0: - version "1.46.0" - resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.46.0.tgz#2336ac453a943abf0dc95a76c117f9d3ebd390eb" - integrity sha512-9Y/d5UIwuJk8t3+lhmMSAJyNP1BUC/DqP3cQJDQQL/oWqAiuPTLgy7Q5dzglmTLwcBRdetzgNM/gni7ckfTr6A== - -playwright@1.46.0, playwright@^1.24.2: - version "1.46.0" - resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.46.0.tgz#c7ff490deae41fc1e814bf2cb62109dd9351164d" - integrity sha512-XYJ5WvfefWONh1uPAUAi0H2xXV5S3vrtcnXe6uAOgdGi3aSpqOSXX08IAjXW34xitfuOJsvXU5anXZxPSEQiJw== - dependencies: - playwright-core "1.46.0" - optionalDependencies: - fsevents "2.3.2" - please-upgrade-node@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942"