fix: harden the Electron 43 release runtime

Upgrade Electron, electron-builder, and electron-updater to patched versions, align the supported Node.js toolchain, and preserve secure file drops through the context-isolated webUtils bridge.

Cover the Electron 43 file-path migration with a real temporary-file drag-and-drop regression test and retain zero-vulnerability lockfile resolution.
This commit is contained in:
Sucukdeluxe
2026-08-10 13:01:21 +02:00
parent d599593966
commit 3f0c075859
8 changed files with 1234 additions and 1719 deletions
+1 -2
View File
@@ -402,8 +402,7 @@ function initCutterDragDrop(): void {
// First video-ish file wins
const allowed = /\.(mp4|mkv|ts|mov|avi)$/i;
const file = files.find((f) => allowed.test(f.name)) || files[0];
// Electron extends File with .path even with contextIsolation:true
const filePath = (file as unknown as { path?: string }).path || '';
const filePath = window.api.getPathForFile(file);
if (!filePath) return;
const loader = (window as unknown as { loadCutterFromPath?: (p: string) => Promise<void> }).loadCutterFromPath;