diff --git a/package.json b/package.json index 1d7ea9b0..8b383e4f 100644 --- a/package.json +++ b/package.json @@ -64,9 +64,6 @@ "overrides": { "typescript": "~4.9.5", "node-gyp": "10.0.1" - }, - "patchedDependencies": { - "electron-mocha": "patches/electron-mocha.patch" } }, "engines": { diff --git a/patches/electron-mocha.patch b/patches/electron-mocha.patch deleted file mode 100644 index 72e738a4..00000000 --- a/patches/electron-mocha.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff --git a/bin/electron-mocha b/bin/electron-mocha -index 038b2a00322cfaf98824ff33729b917c80d12828..30ed87458181ae7b7efe2970726b2eedd25f2138 100755 ---- a/bin/electron-mocha -+++ b/bin/electron-mocha -@@ -35,7 +35,7 @@ function run (electron) { - ...process.argv.slice(2) - ] - -- let child = spawn(electron, args) -+ let child = spawn(electron, args, { shell: process.platform === 'win32' }) - - // stdio 'inherit' not work reliably in Renderer! - child.stdout.pipe(process.stdout) -diff --git a/lib/main.js b/lib/main.js -index b8d0f8e80a86318d2a90fac3332514adda379ad9..0e1d55c3a996ddf0b5c8d98da8f04339da34788d 100644 ---- a/lib/main.js -+++ b/lib/main.js -@@ -54,7 +54,8 @@ app.on('quit', () => { - detached: true, - stdio: 'ignore', - env: { ELECTRON_RUN_AS_NODE: 1 }, -- cwd: __dirname -+ cwd: __dirname, -+ shell: process.platform === 'win32' - }) - child.unref() - }) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 64728bea..6b465877 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,11 +8,6 @@ overrides: typescript: ~4.9.5 node-gyp: 10.0.1 -patchedDependencies: - electron-mocha: - hash: c4pa7rsg6atg3nmsnc7zhtvcny - path: patches/electron-mocha.patch - importers: .: @@ -74,7 +69,7 @@ importers: version: 33.2.1 electron-mocha: specifier: ^13.0.1 - version: 13.0.1(patch_hash=c4pa7rsg6atg3nmsnc7zhtvcny) + version: 13.0.1 eslint: specifier: ^8.57.1 version: 8.57.1 @@ -4935,7 +4930,7 @@ snapshots: jsbn: 0.1.1 safer-buffer: 2.1.2 - electron-mocha@13.0.1(patch_hash=c4pa7rsg6atg3nmsnc7zhtvcny): + electron-mocha@13.0.1: dependencies: ansi-colors: 4.1.3 electron-window: 0.8.1