Build Electron desktop apps with secure architecture and common pitfall avoidance.
nodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromiseeval() 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 laterready-to-show — prevents white flash, looks more nativeapp.setAppUserModelId() — silent failure without itfile:// protocol — use custom protocol (app://) or local server--universal flag — ships both Intel and ARMwin.destroy() explicitly when done--inspect flag, connect via INLINECODE17webContents.openDevTools() or keyboard shortcut该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 electron-1776420004 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 electron-1776420004 技能
skillhub install electron-1776420004
文件大小: 2.02 KB | 发布时间: 2026-4-17 20:04