Installation
Install electron-builder as a development dependency in your Electron project.Package Manager Installation
Choose your preferred package manager to install electron-builder:electron-builder should always be installed as a development dependency (using
--save-dev or --dev flag) since it’s only needed during the build process.Yarn 3 Configuration
Yarn 3 uses PnP by default, but electron-builder still requiresnode-modules. Add the following configuration to your .yarnrc.yaml file:
.yarnrc.yaml
node_modules directory structure instead of PnP.
This is a known limitation tracked in yarnpkg/berry#4804.
System Requirements
Node.js Version
electron-builder requires Node.js 14.0.0 or higher. You can check your Node.js version by running:Platform-Specific Requirements
macOS
macOS
- macOS 10.13 or later recommended for building macOS apps
- Xcode Command Line Tools (for code signing):
xcode-select --install
Windows
Windows
- Windows 7 or later
- No additional tools required (electron-builder downloads necessary tools automatically)
Linux
Linux
- Most modern Linux distributions are supported
- For building certain formats (rpm, deb, etc.), electron-builder will download required tools automatically
- Docker images are available for CI/CD builds
Verification
After installation, verify that electron-builder is correctly installed:Next Steps
Quick Start Guide
Now that electron-builder is installed, follow the quick start guide to configure your first build