linux key contains set of options instructing electron-builder on how it should build Linux targets. These options applicable for any Linux target.
electron-builder docker image can be used to build Linux targets on any platform.
Base Linux Configuration
string | TargetConfiguration
Target package type: list of
AppImage, flatpak, snap, deb, rpm, freebsd, pacman, p5p, apk, 7z, zip, tar.xz, tar.lz, tar.gz, tar.bz2, dir.Please do not put an AppImage into another archive like a .zip or .tar.gz.string
The path to icon set directory or one png file, relative to the build resources or to the project directory. The icon filename must contain the size (e.g. 32x32.png) of the icon.By default will be generated automatically based on the macOS icns file.
string
The short description.
string
As description from application package.json, but allows you to specify different for Linux.
string
The application category.
string[]
The mime types in addition to specified in the file associations. Use it if you don’t want to register a new mime type, but reuse existing.
LinuxDesktopFile
The Desktop file
string[]
The executable parameters. Pass to executableName
Debian Package Options
The top-leveldeb key contains set of options instructing electron-builder on how it should build Debian package.
All LinuxTargetSpecificOptions can be also specified in the deb to customize Debian package.
string[]
Package dependencies.If need to support Debian,
libappindicator1 should be removed, it is deprecated in Debian.If need to support KDE, gconf2 and gconf-service should be removed as it’s no longer used by GNOME.string[]
string
The package category.
LinuxTargetSpecificOptions
APK, FreeBSD, Pacman, P5P and RPM Options The top-levelapk, freebsd, pacman, p5p and rpm keys contains set of options instructing electron-builder on how it should build corresponding Linux target.
string[]
Package dependencies.
rpmdefaults to["gtk3", "libnotify", "nss", "libXScrnSaver", "(libXtst or libXtst6)", "xdg-utils", "at-spi2-core", "(libuuid or libuuid1)"]pacmandefaults to["c-ares", "ffmpeg", "gtk3", "http-parser", "libevent", "libvpx", "libxslt", "libxss", "minizip", "nss", "re2", "snappy", "libnotify", "libappindicator-gtk3"]
'gz' | 'bzip2' | 'xz' | 'lzo'
The compression type.
string
The path to the icon file.
string
The package category.
string
The name of the package.
string
The vendor.
string
The maintainer.
string
File path to script to be passed to FPM for
--after-install arg.string
File path to script to be passed to FPM for
--after-remove arg.string
File path to custom AppArmor profile (Ubuntu 24+)
string[]
Advanced only The fpm options.Example:
["--before-install=build/deb-preinstall.sh", "--after-upgrade=build/deb-postinstall.sh"]string
The short description.
string
As description from application package.json, but allows you to specify different for Linux.
string
The application category.
string[]
The mime types in addition to specified in the file associations. Use it if you don’t want to register a new mime type, but reuse existing.
LinuxDesktopFile
The Desktop file
string[]
The executable parameters. Pass to executableName