electron-macos-desktop

Build and configure macOS Electron apps with sandboxing, entitlements, and DMG distribution.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/itsimonfredlingjack/ELECTRON-prompt-builder --skill electron-macos-desktop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electron-macos-desktop
Source: https://github.com/itsimonfredlingjack/ELECTRON-prompt-builder/tree/main/.cursor/skills/electron-macos-desktop
Command: npx skills add https://github.com/itsimonfredlingjack/ELECTRON-prompt-builder --skill electron-macos-desktop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of building and securing native macOS Electron applications, ensuring robust sandboxing, proper code signing, and efficient distribution.

Core Features & Use Cases

  • Secure Sandboxing: Implements essential security defaults for BrowserWindow to protect against vulnerabilities.
  • IPC Management: Defines a secure Inter-Process Communication pattern using preload scripts and main process handlers.
  • Sensitive Data Storage: Integrates safeStorage for encrypting sensitive information like API keys.
  • macOS Distribution: Provides electron-builder configuration for creating signed DMG files with necessary entitlements.
  • Use Case: When developing a desktop application with Electron for macOS, you need to ensure it's secure, handles sensitive data properly, and can be distributed as a native DMG.

Quick Start

Configure your Electron app for macOS by implementing the security defaults and IPC patterns outlined in this skill.

Frequently Asked Questions about electron-macos-desktop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure secure sandboxing for an Electron app on macOS?

Secure sandboxing for an Electron app on macOS is configured by applying essential security defaults to BrowserWindow instances. This protects the main and renderer processes against vulnerabilities by restricting system access.

What is the best way to encrypt API keys in an Electron desktop app?

The best way to encrypt API keys in an Electron desktop app is using the safeStorage API. It securely stores sensitive information by integrating native macOS encryption mechanisms into your application workflow.

How do I set up secure IPC patterns between Electron main and renderer processes?

Secure IPC patterns are set up by using preload scripts to expose a controlled API surface to the renderer process. Electron main process handlers then validate and process these specific IPC requests safely.

Does electron-builder support creating signed DMG files for macOS distribution?

Yes, electron-builder supports creating signed DMG files for macOS distribution. It provides configuration options to attach necessary entitlements and code signing certificates required for native macOS app deployment.

Why do I need entitlements for macOS Electron applications?

Entitlements are needed for macOS Electron applications to declare specific system permissions required during sandboxing. They allow securely signed apps to access restricted system resources while maintaining strict content security policies.