electron builder.Interface.Configuration
Electron-Builder / electron-builder / Configuration
Configuration Options
Extends¶
Properties¶
apk?¶
readonlyoptionalapk:null|LinuxTargetSpecificOptions
appId?¶
readonlyoptionalappId:null|string
The application id. Used as CFBundleIdentifier for MacOS and as Application User Model ID for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.
Default¶
com.electron.${name}
Overrides¶
PlatformSpecificBuildOptions.appId
appImage?¶
readonlyoptionalappImage:null|AppImageOptions
AppImage options.
appx?¶
readonlyoptionalappx:null|AppXOptions
buildDependenciesFromSource?¶
optionalbuildDependenciesFromSource:boolean
Whether to build the application native dependencies from source.
Default¶
false
buildNumber?¶
readonlyoptionalbuildNumber:null|string
The build number. Maps to the --iteration flag for builds using FPM on Linux.
If not defined, then it will fallback to BUILD_NUMBER or TRAVIS_BUILD_NUMBER or APPVEYOR_BUILD_NUMBER or CIRCLE_BUILD_NUM or BUILD_BUILDNUMBER or CI_PIPELINE_IID env.
buildVersion?¶
readonlyoptionalbuildVersion:null|string
The build version. Maps to the CFBundleVersion on macOS, and FileVersion metadata property on Windows. Defaults to the version.
If buildVersion is not defined and buildNumber (or one of the buildNumber envs) is defined, it will be used as a build version (version.buildNumber).
copyright?¶
readonlyoptionalcopyright:null|string
The human-readable copyright line for the app.
Default¶
Copyright © year ${author}
deb?¶
readonlyoptionaldeb:null|DebOptions
Debian package options.
directories?¶
readonlyoptionaldirectories:null|MetadataDirectories
disableSanityCheckAsar?¶
readonlyoptionaldisableSanityCheckAsar:boolean
Whether to disable sanity check asar package (useful for custom electron forks that implement their own encrypted integrity validation)
Default¶
false
dmg?¶
readonlyoptionaldmg:null|DmgOptions
macOS DMG options.
downloadAlternateFFmpeg?¶
readonlyoptionaldownloadAlternateFFmpeg:boolean
Whether to download the alternate FFmpeg library from Electron’s release assets and replace the default FFmpeg library prior to signing
electronBranding?¶
readonlyoptionalelectronBranding:ElectronBrandingOptions
The branding used by Electron’s distributables. This is needed if a fork has modified Electron’s BRANDING.json file.
electronCompile?¶
readonlyoptionalelectronCompile:boolean
Whether to use electron-compile to compile app. Defaults to true if electron-compile in the dependencies. And false if in the devDependencies or doesn’t specified.
electronDist?¶
readonlyoptionalelectronDist:string|CustomElectronDistributable
Returns the path to custom Electron build (e.g. ~/electron/out/R). Zip files must follow the pattern electron-v${version}-${platformName}-${arch}.zip, otherwise it will be assumed to be an unpacked Electron app directory
electronDownload?¶
readonlyoptionalelectronDownload:ElectronDownloadOptions
The electron-download options.
electronVersion?¶
optionalelectronVersion:null|string
The version of electron you are packaging for. Defaults to version of electron, electron-prebuilt or electron-prebuilt-compile dependency.
extends?¶
optionalextends:null|string|string[]
The name of a built-in configuration preset (currently, only react-cra is supported) or any number of paths to config files (relative to project dir).
The latter allows to mixin a config from multiple other configs, as if you Object.assign them, but properly combine files glob patterns.
If react-scripts in the app dependencies, react-cra will be set automatically. Set to null to disable automatic detection.
extraMetadata?¶
readonlyoptionalextraMetadata:any
Inject properties to package.json.
flatpak?¶
readonlyoptionalflatpak:null|FlatpakOptions
Flatpak options.
forceCodeSigning?¶
readonlyoptionalforceCodeSigning:boolean
Whether to fail if the application is not signed (to prevent unsigned app if code signing configuration is not correct).
Default¶
false
Overrides¶
PlatformSpecificBuildOptions.forceCodeSigning
framework?¶
readonlyoptionalframework:null|string
The framework name. One of electron, proton, libui. Defaults to electron.
freebsd?¶
readonlyoptionalfreebsd:null|LinuxTargetSpecificOptions
includePdb?¶
readonlyoptionalincludePdb:boolean
Whether to include PDB files.
Default¶
false
includeSubNodeModules?¶
optionalincludeSubNodeModules:boolean
Whether to include all of the submodules node_modules directories
Default¶
false
launchUiVersion?¶
readonlyoptionallaunchUiVersion:null|string|boolean
libui-based frameworks only The version of LaunchUI you are packaging for. Applicable for Windows only. Defaults to version suitable for used framework version.
linux?¶
readonlyoptionallinux:null|LinuxConfiguration
Options related to how build Linux targets.
mac?¶
readonlyoptionalmac:null|MacConfiguration
Options related to how build macOS targets.
mas?¶
readonlyoptionalmas:null|MasConfiguration
MAS (Mac Application Store) options.
masDev?¶
readonlyoptionalmasDev:null|MasConfiguration
MAS (Mac Application Store) development options (mas-dev target).
nativeRebuilder?¶
readonlyoptionalnativeRebuilder:null|"legacy"|"sequential"|"parallel"
Use legacy app-builder binary for installing native dependencies, or @electron/rebuild in sequential or parallel compilation modes.
Default¶
sequential
nodeGypRebuild?¶
readonlyoptionalnodeGypRebuild:boolean
Whether to execute node-gyp rebuild before starting to package the app.
Don’t use npm (neither .npmrc) for configuring electron headers. Use electron-builder node-gyp-rebuild instead.
Default¶
false
nodeVersion?¶
readonlyoptionalnodeVersion:null|string
libui-based frameworks only The version of NodeJS you are packaging for.
You can set it to current to set the Node.js version that you use to run.
npmArgs?¶
readonlyoptionalnpmArgs:null|string|string[]
Additional command line arguments to use when installing app native deps.
npmRebuild?¶
readonlyoptionalnpmRebuild:boolean
Whether to rebuild native dependencies before starting to package the app.
Default¶
true
nsis?¶
readonlyoptionalnsis:null|NsisOptions
nsisWeb?¶
readonlyoptionalnsisWeb:null|NsisWebOptions
p5p?¶
readonlyoptionalp5p:null|LinuxTargetSpecificOptions
pacman?¶
readonlyoptionalpacman:null|LinuxTargetSpecificOptions
pkg?¶
readonlyoptionalpkg:null|PkgOptions
macOS PKG options.
portable?¶
readonlyoptionalportable:null|PortableOptions
productName?¶
readonlyoptionalproductName:null|string
As name, but allows you to specify a product name for your executable which contains spaces and other special characters not allowed in the name property.
If not specified inside of the build configuration, productName property defined at the top level of package.json is used. If not specified at the top level of package.json, name property is used.
removePackageKeywords?¶
readonlyoptionalremovePackageKeywords:boolean
Whether to remove keywords field from package.json files.
Default¶
true
removePackageScripts?¶
readonlyoptionalremovePackageScripts:boolean
Whether to remove scripts field from package.json files.
Default¶
true
rpm?¶
readonlyoptionalrpm:null|LinuxTargetSpecificOptions
snap?¶
readonlyoptionalsnap:null|SnapOptions
Snap options.
squirrelWindows?¶
readonlyoptionalsquirrelWindows:null|SquirrelWindowsOptions
win?¶
readonlyoptionalwin:null|WindowsConfiguration
Options related to how build Windows targets.