diff --git a/scripts/electron-main.cjs b/scripts/electron-main.cjs index dae7d395..37072077 100644 --- a/scripts/electron-main.cjs +++ b/scripts/electron-main.cjs @@ -18,7 +18,7 @@ Menu.setApplicationMenu(null); // Gleiche Flags wie scripts/chromium-shell.sh — WebGPU liegt unter Linux // hinter --enable-unsafe-webgpu, und WebGPU braucht das Vulkan-Backend. app.commandLine.appendSwitch("enable-unsafe-webgpu"); -app.commandLine.appendSwitch("enable-features", "Vulkan"); +app.commandLine.appendSwitch("enable-features", "Vulkan,VulkanFromANGLE,DefaultANGLEVulkan"); const DEV_URL = "http://localhost:5187"; const isDev = !app.isPackaged; diff --git a/scripts/electron-shell.sh b/scripts/electron-shell.sh index d287fffc..14a14ac6 100755 --- a/scripts/electron-shell.sh +++ b/scripts/electron-shell.sh @@ -19,7 +19,8 @@ if server_is_up; then echo "electron-shell: Dev-Server läuft bereits auf ${URL}." else echo "electron-shell: starte Vite-Dev-Server (Port ${PORT}) …" - npm run dev >/tmp/cad-electron-shell-dev.log 2>&1 & + # vite direkt starten: bei "npm run dev" wäre $! nur npm, und vite bliebe beim Beenden übrig. + node_modules/.bin/vite >/tmp/cad-electron-shell-dev.log 2>&1 & DEV_SERVER_PID=$! ATTEMPTS=0