PlatformSpecificBuildOptions
Base interface for all platform-specific options. Source:packages/app-builder-lib/src/options/PlatformSpecificBuildOptions.ts:95
Common Properties
The application ID. Used as
CFBundleIdentifier for macOS and Application User Model ID for Windows (NSIS only).The artifact file name template. Defaults to
${productName}-${version}.${ext}.Available variables:${name}- Package name${productName}- Product name${version}- Version${ext}- File extension${os}- OS name${arch}- Architecture${channel}- Update channel
"${productName}-${version}-${arch}.${ext}"The executable name. Defaults to
productName. Note: On Linux, this would constitute a breaking change.The compression level:
store- No compression (fastest, largest)normal- Standard compression (default)maximum- Maximum compression (slowest, smallest)
File Patterns
Glob patterns for files to include in the app package.Example:
Files to copy into the app’s resources directory.macOS:
Contents/Resources
Windows/Linux: resourcesFiles to copy into the app’s content directory.macOS:
Contents
Windows/Linux: Root directoryASAR Options
Whether to package source code into an ASAR archive. Can be
true, false, or options object.Glob patterns for files to unpack from ASAR archive.Example:
"**/node_modules/sharp/**/*"Associations
File associations for the app.
URL protocol schemes.
Publishing
Publishing configuration. Can be a single config or array of configs.Example (GitHub):Example (Multiple providers):
Whether to infer update channel from version pre-release components. E.g., version
1.0.0-beta.1 sets channel to beta.Whether to generate update files for all channels.
Release information.
Other Options
Build targets for this platform.Example:
Electron locales to keep. By default, all locales are included.Example:
["en", "en-US", "fr"]The electron-updater compatibility semver range.Example:
">=2.16"MacConfiguration
Options for building macOS applications.The application category. See Apple documentation.Example:
"public.app-category.developer-tools"macOS targets.Supported targets:
dmg- DMG installer (default)zip- ZIP archivepkg- PKG installermas- Mac App Storemas-dev- Mac App Store (development)
The name of certificate to use when signing. Consider using environment variables instead.
Path to application icon (
.icns file).Path to entitlements file.
Path to child entitlements file.
Whether to enable hardened runtime (required for notarization).
Whether to run Gatekeeper assessment.
Notarization options. Set to
false to disable.WindowsConfiguration
Options for building Windows applications.Windows targets.Supported targets:
nsis- NSIS installer (default)nsis-web- NSIS web installerportable- Portable executableappx- AppX (Windows Store)msi- MSI installersquirrel- Squirrel.Windows
Path to application icon (
.ico file).Publisher name for AppX packages.
Path to certificate file (
.pfx).Certificate password. Consider using environment variable
WIN_CSC_KEY_PASSWORD.Signing hash algorithms.
Custom signing function or path to custom signing script.
LinuxConfiguration
Options for building Linux applications.Linux targets.Supported targets:
AppImage- AppImage package (default)snap- Snap packagedeb- Debian packagerpm- RPM packagepacman- Pacman packageflatpak- Flatpak package
The application category.Example:
"Development", "Graphics", "Network"Path to application icon (PNG or ICNS).
Short description (max 80 characters).
Full description.
Desktop file entries.