Install
openclaw skills install electronBuild Electron desktop apps with secure architecture and common pitfall avoidance.
openclaw skills install electronnodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromisecontextIsolation: true is mandatory — separates preload context from renderereval() or new Function() in renderer — defeats all security boundariescontextBridge.exposeInMainWorld() is the only safe bridge — raw ipcRenderer exposure is vulnerablewebPreferences locked after window creation — can't enable nodeIntegration latershow: false then ready-to-show — prevents white flash, looks more nativeelectron-rebuild after every Electron upgrade — version mismatch = runtime crashapp.setAppUserModelId() — silent failure without itfile:// protocol — use custom protocol (app://) or local server--universal flag — ships both Intel and ARMwin.destroy() explicitly when donebackgroundThrottling: false if timers matter when minimized--inspect flag, connect via chrome://inspectwebContents.openDevTools() or keyboard shortcutelectron-log for persistent logs — console.log vanishes on restart