electron-build

Build Electron app installers for Windows, macOS, and Linux.

1|Updated Oct 8, 2025
One-click install
npx skills add https://github.com/fattits30-dev/Justice-Companion --skill electron-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electron-build
Source: https://github.com/fattits30-dev/Justice-Companion/tree/main/.claude/skills/electron-build
Command: npx skills add https://github.com/fattits30-dev/Justice-Companion --skill electron-build

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires electron-builder, electron-rebuild, better-sqlite3.

What problem does it solve?

This Skill simplifies the complex process of building Electron applications for multiple platforms, especially when dealing with native modules. It automates the intricate toolchain and version compatibility requirements, saving developers significant time and effort.

Core Features & Use Cases

  • Multi-Platform Builds: Generates production-ready installers for Windows (.exe), macOS (.dmg), and Linux (.AppImage, .deb).
  • Native Module Handling: Orchestrates the necessary rebuilds for better-sqlite3 to ensure compatibility with the Electron runtime.
  • Build Validation: Automatically checks for correct Node.js versions and dependency setup to prevent common build failures.
  • Use Case: When preparing a production release, Claude automatically handles the intricate process of building your Electron app for Windows, macOS, and Linux, including rebuilding native modules, so you get ready-to-distribute installers without manual headaches.

Quick Start

Build for all supported platforms (Windows, macOS, Linux)

pnpm build

Build specifically for Windows

pnpm build:win

Rebuild native modules for Electron runtime (critical for success)

pnpm rebuild:electron