Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / electron-builder configuration file
Schema registry

electron-builder configuration file

electron-build configuration file

electron-builder.json

Check your file against this schema

Opens the validator with this schema already loaded. Paste your electron-builder.json and it validates in your browser — nothing is uploaded.

Validate a electron-builder.json → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
$schemanull | stringJSON Schema for this document.
afterAllArtifactBuildanyOfThe function (or path to file or module id) to be [run after all artifacts are build](#afterAllArtifactBuild).
afterPackanyOfThe function (or path to file or module id) to be [run after pack](#afterpack) (but before pack into distributable format and sign).
afterSignanyOfThe function (or path to file or module id) to be [run after pack and sign](#aftersign) (but before pack into distributable format).
apkanyOf
appIdnull | stringThe application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as
default: "com.electron.${name}"
appImageanyOfAppImage options.
appxanyOf
artifactBuildCompletedanyOfThe function (or path to file or module id) to be run on artifact build completed.
artifactBuildStartedanyOfThe function (or path to file or module id) to be run on artifact build start.
artifactNamenull | stringThe [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName}-${version}.${ext}` (some target can have other defaults, see corresponding options).
asaranyOfWhether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/). Node modules, that must be unpacked, will be detected automatically, you
default: true
asarUnpackanyOfA [glob patterns](/file-patterns) relative to the [app directory](#MetadataDirectories-app), which specifies which files to unpack when creating the [asar](http://electron.atom.io/docs/tutorial/application-packaging/) archive.
beforeBuildanyOfThe function (or path to file or module id) to be run before dependencies are installed or rebuilt. Works when `npmRebuild` is set to `true`. Resolving to `false` will skip dependencies install or rebuild. If provided and `node_modules`
buildDependenciesFromSourcebooleanWhether to build the application native dependencies from source.
default: false
buildVersionnull | stringThe build version. Maps to the `CFBundleVersion` on macOS, and `FileVersion` metadata property on Windows. Defaults to the `version`. If `TRAVIS_BUILD_NUMBER` or `APPVEYOR_BUILD_NUMBER` or `CIRCLE_BUILD_NUM` or `BUILD_NUMBER` or
compressionanyOfThe compression level. If you want to rapidly test build, `store` can reduce build time significantly. `maximum` doesn't lead to noticeable size difference, but increase build time.
default: "normal"
copyrightnull | stringThe human-readable copyright line for the app.
default: "Copyright © year ${author}"
cscKeyPasswordnull | string
cscLinknull | string
debanyOfDebian package options.
detectUpdateChannelbooleanWhether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.
default: true
directoriesanyOf
dmganyOfmacOS DMG options.
electronCompilebooleanWhether to use [electron-compile](http://github.com/electron/electron-compile) to compile app. Defaults to `true` if `electron-compile` in the dependencies. And `false` if in the `devDependencies` or doesn't specified.
electronDiststringThe path to custom Electron build (e.g. `~/electron/out/R`).
electronDownloadobject
electronDownload.archstring
electronDownload.cachenull | stringThe [cache location](https://github.com/electron-userland/electron-download#cache-location).
electronDownload.customDirnull | string
electronDownload.customFilenamenull | string
electronDownload.isVerifyChecksumboolean
electronDownload.mirrornull | stringThe mirror.
electronDownload.platformstring
one of: "darwin", "linux", "mas", "win32"
electronDownload.strictSSLboolean
electronDownload.versionstring
electronUpdaterCompatibilitynull | stringThe [electron-updater compatibility](/auto-update#compatibility) semver range.
electronVersionnull | stringThe version of electron you are packaging for. Defaults to version of `electron`, `electron-prebuilt` or `electron-prebuilt-compile` dependency.
extendsnull | stringThe name of a built-in configuration preset or path to config file (relative to project dir). Currently, only `react-cra` is supported. If `react-scripts` in the app dependencies, `react-cra` will be set automatically. Set to `null` to
extraFilesanyOf
extraMetadataanyInject properties to `package.json`.
extraResourcesanyOf
fileAssociationsanyOfThe file associations.
filesanyOf
forceCodeSigningbooleanWhether to fail if app will be not code signed.
frameworknull | stringThe framework name. One of `electron`, `proton-native`, `libui`. Defaults to `electron`.
freebsdanyOf
generateUpdatesFilesForAllChannelsbooleanPlease see [Building and Releasing using Channels](https://github.com/electron-userland/electron-builder/issues/1182#issuecomment-324947139).
default: false
iconnull | string
includePdbbooleanWhether to include PDB files.
default: false
launchUiVersionnull | 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.
linuxanyOfOptions related to how build Linux targets.
macanyOfOptions related to how build macOS targets.
masanyOfMAS (Mac Application Store) options.
msianyOf
muonVersionnull | stringThe version of muon you are packaging for.
nodeGypRebuildbooleanWhether to execute `node-gyp rebuild` before starting to package the app. Don't [use](https://github.com/electron-userland/electron-builder/issues/683#issuecomment-241214075)
default: false
nodeVersionnull | 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.
npmArgsanyOfAdditional command line arguments to use when installing app native deps.
npmRebuildbooleanWhether to [rebuild](https://docs.npmjs.com/cli/rebuild) native dependencies before starting to package the app.
default: true
npmSkipBuildFromSourceboolean
nsisanyOf
nsisWebanyOf
onNodeModuleFileanyOfThe function (or path to file or module id) to be [run on each node module](#onnodemodulefile) file.
p5panyOf
pacmananyOf
pkganyOfmacOS PKG options.
portableanyOf
productNamenull | stringAs [name](#Metadata-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](https://docs.npmjs.com/files/package.json#name).
protocolsanyOfThe URL protocol schemes.
protonNodeVersionnull | string
publishanyOf
readonlybooleanWhether to fail if the application is not signed (to prevent unsigned app if code signing configuration is not correct).
default: false
releaseInfoobject
releaseInfo.releaseDatestringThe release date.
releaseInfo.releaseNamenull | stringThe release name.
releaseInfo.releaseNotesnull | stringThe release notes.
releaseInfo.releaseNotesFilenull | stringThe path to release notes file. Defaults to `release-notes-${platform}.md` (where `platform` it is current platform — `mac`, `linux` or `windows`) or `release-notes.md` in the [build resources](#MetadataDirectories-buildResources).
remoteBuildbooleanWhether to build using Electron Build Service if target not supported on current OS.
default: true
removePackageScriptsbooleanWhether to remove `scripts` field from `package.json` files.
default: true
rpmanyOf
snapanyOfSnap options.
squirrelWindowsanyOf
targetanyOf
winanyOfOptions related to how build Windows targets.

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$refJSON Schema Core, draft 2020-12§8.2.3.1 — Direct References with "$ref"
additionalPropertiesJSON Schema Core, draft 2020-12§10.3.2.3 — "additionalProperties"
anyOfJSON Schema Core, draft 2020-12§10.2.1.2 — "anyOf"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
requiredJSON Schema Validation, draft 2020-12§6.5.3 — "required"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas