npm / electron-updater
electron-updater
What changed in electron-updater 5 to 27, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.
163 breaking9 security3 deprecations19 new APIs and options16 behavior and defaults1 tooling20 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initelectron-updater 27201 changes
Breaking changes 159
Setting this environment variable now fails the build; electron-builder is instead excluded by default from copied node_modules.
Allows catalog signatures to be accepted again through autoUpdater, or per release through win.allowCatalogSignature in a signed latest.yml.
Missing production dependencies now fail the build by default. Set true for v26 warn-only behavior or list specific names to allow; missing optional dependencies remain allowed.
The update feed written to app-update.yml now follows the update-writing targets, which can affect which feed installed applications poll.
Removed as an AppImage tools override; use toolsets.appimage instead.
The default --no-sandbox argument is injected only for the legacy FUSE2 runtime; explicitly set appImage.executableArgs to disable the Chromium sandbox unconditionally.
The option is removed; desktop integration is handled automatically by AppImageLauncher.
The appimage toolset value 1.0.2 is retired.
ASAR options are consolidated under asar; asar: true remains valid but is redundant.
The ordering file is now applied: listed files are packed first in file order, ahead of the default dependencies-first layout; a missing file fails the build.
The former asarUnpack option moves under asar.unpack, including platform-specific options such as mac.asar.unpack.
Replaces
autoInstallOnAppQuit; update app code to use the renamed setting.Adds manual, onQuit, and onNextLaunch install modes. The default onQuit preserves prior behavior; onNextLaunch defers installation until the next launch.
The property is removed without a compatibility alias and replaced by autoInstallEvent.
S3 publishing no longer reads AWS_PROFILE; select a profile through awsCredentials instead.
S3 publishing now requires an explicit credential source; supported values are env, profile, and sso-role-chain, with no ambient-source fallback.
Overrides must return a success result object; returning null is now treated as verification failure and blocks installs on next launch.
A Bitbucket token without a username is now sent as Bearer authentication; set BITBUCKET_USERNAME for credentials requiring Basic authentication.
ASAR options are consolidated under this key. Former flat options move into it, and platform-level asar replaces the root asar object.
When a platform defines asar, it replaces the root asar object entirely; migration merges former root values to preserve the v26 result.
The hyphenated root-level option is removed and moved to mac.helperBundleId.
Native-module options move under this new object; buildDependenciesFromSource, nodeGypRebuild, and npmRebuild are nested here.
Replaces nativeRebuilder and accepts only "sequential" or "parallel"; native modules are always rebuilt with @electron/rebuild.
This deprecated option is removed; migrate-schema converts it to the inverse nativeModules.buildDependenciesFromSource value.
Removed; use CI_COMMIT_TAG to provide the release tag. A build still setting CI_BUILD_TAG fails.
Removed as an FPM executable override; use toolsets.fpm instead.
No longer selects alternate NSIS resources; use toolsets.nsis. The old variable only warns and has no effect.
The custom NSIS binary option is removed and must be supplied through a unified toolsets.nsis bundle.
The setting moves to installerDebugLogging on nsis or nsisWeb; portable has no equivalent.
This DEBUG setting no longer has any effect; DEBUG=electron-builder logs every command that is run.
Root-level directories in package.json is removed; move it under build.directories.
The option is removed; use an explicit fileOptions.files glob to include files excluded by default.
Defaults to true, so web-installer updates are rejected unless it is false; v27+ nsis-web installs opt in automatically.
The default DMG volume filesystem changes from HFS+ to APFS. Set filesystem to HFS+ explicitly if you must support macOS versions before 10.13.
Resolves with an object containing
updateFileandpackageFile, so app code relying on its previous result must be updated.Removed as a 7-Zip executable override; use toolsets.sevenZip instead.
Renamed and no longer read; use ELECTRON_BUILDER_DANGEROUSLY_ALLOW_HTTP to permit non-localhost plain-HTTP mirror or download-override URLs.
The Electron download cache is no longer configured with a config key; set this environment variable instead.
Replaces ELECTRON_BUILDER_BINARIES_ALLOW_HTTP; set it to true to permit non-localhost plain-HTTP mirror or download-override URLs.
Removed as an icon-conversion tools bundle override; use toolsets.icons instead.
A built-in command automatically rewrites configuration for v27, including static and reducible programmatic configs; --dry-run previews changes.
Removed as an NSIS compiler bundle override; use toolsets.nsis instead.
Removed as an NSIS resources and plugins directory override; use toolsets.nsis instead.
No longer overrides osslsigncode; use toolsets.winCodeSign. The old variable only warns and has no effect.
No longer overrides rcedit; use toolsets.winCodeSign. The old variable only warns and has no effect.
No longer overrides the Windows SDK or signtool kit directory; use toolsets.winCodeSign. The old variable only warns and has no effect.
Removed as a Wine bundle directory override; use toolsets.wine instead.
The previous production-dependency hard error is removed, but this package is not excluded by default and will ship inside the app if declared as a production dependency.
The previous production-dependency hard error is removed, but this package is not excluded by default and will ship inside the app if declared as a production dependency.
The configuration option is removed; projects relying on electron-compile must migrate to a modern build tool.
The electronDownload configuration is migrated to electronGet, with mirror moved under mirrorOptions.
This replaces electronDownload and is reshaped to @electron/get options.
The force field is removed because @electron/get v5 has no equivalent; clear the cache or use a fresh ELECTRON_BUILDER_CACHE path to force a re-download.
The default compatibility range is now >=2.16; pin a legacy-inclusive range only for legacy embedded updaters.
The default compatibility range is now >=7, so builds write binary block maps for electron-updater 7 and later; ranges including electron-updater 6 retain gzipped JSON maps and warn.
Desktop-entry field codes in executableArgs are now quoted into the launcher and reach the app literally; remove them and configure linux.desktop.entry.Exec if you relied on a field code to receive opened files.
Linux targets other than flatpak now ship and launch through a generated shell script; the desktop entry points to it, with executableArgs and forceX11 injected into the launcher.
Absolute or output-escaping destination paths now throw InvalidConfigurationError instead of copying files outside the packaged app.
Absolute or output-escaping destination paths now throw InvalidConfigurationError instead of copying files outside the packaged app.
NSIS installers now register each file association under a generated, unique ProgID derived from productName and the app GUID, rather than using the association name or extension verbatim.
files, extraResources, and extraFiles are nested under fileOptions at the root and per platform.
This replaces includePdb and defines the default PDB exclusion behavior, including explicit values to preserve layered configuration overrides.
A list replaces defaults rather than extending them; use "default" to retain the built-in exclusions, and null or omission uses those defaults.
Invalid entries, !default, and removal-only lists fail configuration validation before packing.
A matching files pattern now includes .pdb files; use an exclusion pattern or add !pdb to excludedExts to keep them out.
Flatpak builds are now driven natively by electron-builder instead of depending on @malept/flatpak-bundler, and require flatpak 1.12.4+ and flatpak-builder 1.2.2+.
Without flatpak.finishArgs, the app gets Downloads access instead of read/write access to the whole home directory; add narrower grants or restore the needed permissions.
The default base version changes from 20.08 to 26.08.
Destinations must remain inside the app prefix; paths that escape it, including through symlinks, now fail the build.
A directory can no longer be copied onto a symlink to a directory; the build fails instead of copying through the link.
When finishArgs is unset, the default permissions grant access to Downloads instead of the whole home directory, and include notification talk-name only for the Electron base app before 23.08.
The default runtime version changes from 20.08 to 26.08.
Links must remain inside the app prefix; paths that escape it, including through symlinks, now fail the build.
For Electron 16 to 37, useWaylandFlags now adds only --ozone-platform=wayland; from Electron 38 it adds nothing. Electron 12 to 15 and unknown versions still get both flags.
For Electron 16 to 37 this option no longer adds --enable-features=UseOzonePlatform; add the flag to flatpak.executableArgs if needed.
The framework option is removed; Electron is the only supported target framework.
With a non-GitHub provider, suffixed channels now generate update files for their lower channels too; set this to false to retain single-file publishing.
The GitHub option is removed; use tagNamePrefix to control the tag prefix.
The option is replaced by fileOptions.excludedExts; PDB files are excluded by default.
Per-machine NSIS updates started with elevate.exe are not automatically installed on the next launch; call this method to install them.
Per-machine NSIS and NSIS-web builds now set this field in update info, so electron-updater starts updates with elevate.exe.
No longer includes legacy top-level
pathandsha512; app code readinginfo.pathorinfo.sha512should useinfo.files[0].The Exec command now runs a generated *-launcher script, affecting custom desktop, AppArmor, and MIME tooling that hard-codes the command.
Removed as a Linux-tools-mac bundle override; use toolsets.linuxToolsMac instead.
Field codes in executableArgs are now literal; remove %F and %U and use linux.desktop.entry.Exec instead.
The flag is removed and syncing is always on; set or omit desktopName to control the installed filename.
This is the replacement location for the removed build.helper-bundle-id option.
macOS signing configuration is consolidated under mac.sign, with signIgnore moving to sign.ignore.
Replaces the old signIgnore option using the canonical @electron/osx-sign name.
macOS signing options move under a single sign object on mac, mas, and masDev; the object is a typed pass-through to @electron/osx-sign.
A custom signing function or module path can no longer coexist with sibling signing fields because sign is a single union.
macOS signing configuration moves to mac.sign.
Universal macOS options including mergeASARs, singleArchFiles, and x64ArchFiles are consolidated under mac.universal.
The bundled default now grants only allow-jit; apps that need the other entitlements must add them in their entitlement plist files.
No longer overrides mksquashfs for legacy snap builds; use toolsets.appimage. The old variable only warns and has no effect.
The msi option replaces squirrelWindows.noMsi with inverse semantics.
Native-module options move to nativeModules.
No longer skips native rebuilds for targets whose platform differs from the host; the rebuild instead uses target prebuilt binaries and logs a warning.
Controls target-format verification of .node addons after packing; mismatches fail by default, while warn logs mismatches and false skips the check.
Native-module options are grouped under nativeModules, and nativeRebuilder is replaced by rebuildMode; the legacy rebuilder is removed.
Packages are filtered by package.json cpu and os fields against the target architecture and platform on every build; incompatible packages are excluded.
v27 requires Node.js 22.12.0 or later, so update local environments, CI, Docker images, and any declared engines range.
This configuration option is removed.
The option is removed and replaced by nativeModules.buildDependenciesFromSource, with inverse semantics.
This configuration option is removed.
The ProgID format changed, so custom NSIS scripts that hard-code the old format need updating.
The installer verifies its app package, affecting workflows that use a package file from another build.
This is the NSIS location for installer debug logging; enabling it requires a log-enabled custom NSIS bundle.
http-parser was removed from the default pacman depends; add it explicitly if the app needs it.
http-parser is removed from the default pacman depends list.
Custom providers using credential headers must override this with the feed URL or null; otherwise downloads fail with
ERR_UPDATER_FEED_BASE_URL_NOT_DECLARED.Providers with publishAutoUpdate: false are skipped when choosing the embedded feed if a later provider receives the manifest; if every provider opts out, the first is still embedded.
electron-updater 7 matches publisherName entries as distinguished names; bare names never match. Entries may list only the certificate attributes to compare, and invalid entries produce a warning and an ERR_UPDATER_INVALID_SIGNATURE failure.
electron-updater 7 rejects updates when app-update.yml, dev-app-update.yml, or the updateConfigPath file has no publisherName. Custom signature-verification callbacks are not called without one.
electron-updater 7 rejects updates whose app-update.yml has no publisherName.
Now takes an options object, requiring app code to update calls to this API.
This replaces nativeRebuilder under nativeModules; the legacy rebuilder value is removed.
For dotted S3 bucket names without a region, region lookup now occurs only when publishing; builds that do not publish leave region unset.
Resource editing always runs, including when signing is disabled; there is no equivalent option to skip it.
Installs with an embedded public key reject unsigned manifests with ERR_UPDATER_MANIFEST_NOT_SIGNED; switching to unsigned manifests after shipping signed ones stops those installs from updating.
Removed as a signtool.exe path override; configure signing through win.sign and toolsets.winCodeSign.
The snap config key is removed and restructured to snapcraft with an explicit base.
Core24 snaps now launch with --no-sandbox by default; vetted publishers can request allow-sandbox explicitly.
Including "default" in plugs now merges the full default set, including browser-support and, without the gnome extension, content-snap plugs; omit it to replace defaults.
The former snap configuration is restructured under snapcraft and requires an explicit base.
When core24 plugs is unset, snaps now request browser-support without allow-sandbox; apps whose publisher has been granted that attribute must request it explicitly to keep Chromium's sandbox.
The default entry now expands to the full default plug set, including applicable content-snap plugs; additional entries are merged and deduplicated by plug name.
The SnapOptions export is removed.
The option is removed; use toolsets.squirrel to pin a version or supply a custom bundle with the required layout.
The noMsi boolean is removed in favor of its inverse, msi.
This configuration option is removed.
Toolset environment-variable overrides are removed; configure custom tool bundles with ToolsetCustom objects on the relevant toolsets key instead.
The "1.0.2" pin is no longer offered; migrate-schema rewrites it to "1.0.3".
This unified toolset bundle replaces customNsisBinary and customNsisResources, providing access to both the NSIS binary and resources.
Use this setting to pin the Squirrel toolset version or provide a custom/local bundle; custom bundles follow normal provisioning.
Null toolset entries are rejected by schema validation; unset entries use latest.
Unset or "latest" now fetches WiX 3.14.1 with native arm64 MSIs.
requestHeaders and addAuthHeader credentials, along with the feed URL query, are not sent to downloads on another origin.
Credential headers and the feed URL query are sent only to the feed's origin. Downloads on another origin need their own authentication, such as a pre-signed URL.
The exported TypeScript path field is now optional; code reading it should use info.files[0].url instead.
The exported TypeScript sha512 field is now optional; code reading it should use info.files[0].sha512 instead.
Publishing now requires signed update manifests unless updateManifest is disabled; configure the signing key or opt out of signed manifests.
When explicitly set, the key list must include a key used to sign the update manifests; a publishing build now fails at build start if it does not.
When updateManifest.publicKey is configured, it must list a key used by the build unless signing keys outside the trust list are explicitly allowed.
Removed; supply a custom FPM through toolsets.fpm. On Windows, an FPM-based target now requires that explicit configuration.
Removed with no environment-variable replacement; configure signing through win.sign and the winCodeSign toolset.
Removed; host-installed Wine is now the default, so the variable can be dropped.
This renamed signature-verification method returns a result object with success or failure and an optional message, rather than null or a string.
This option is removed from GithubOptions and GitlabOptions.
Windows signing is unified under win.sign as a discriminated union supporting signtool, hsm, pkcs11, and azure.
Azure signing's arbitrary extra keys are replaced by an explicit additionalMetadata object.
Windows publisherName must be a distinguished name; a bare name now fails the build, and electron-updater 7 never matches it.
Custom signing hooks must now set publisherName, which is never derived from a certificate for a hook.
The custom Windows signing hook moves here from win.signtoolOptions.sign.
The option is removed; false maps to win.sign: false, while resource editing always runs.
electron-updater 7 rejects Windows updates whose app-update.yml has no publisherName; configure it, sign the build, or disable update-code-signature verification.
NSIS updates are installed only when PowerShell verifies them; unverifiable signatures and catalog signatures are rejected unless catalog-signature opt-in is enabled.
The NSIS updater now installs only when Windows positively verifies the update signature. Verification failures fail closed; catalog signatures are rejected unless explicitly allowed.
Fails closed: an NSIS update that PowerShell cannot verify is rejected instead of installed with a warning.
Security 5
Adds an AppUpdater flag to enforce GPG signature checks when installing .deb or .rpm auto-updates; it defaults to true.
Allows a valid catalog signature when its signer matches publisherName and the verified file is the update file. It defaults to false.
The installer verifies its own copied package against the expected SHA-512; mismatches or failures to copy an explicit --package-file abort installation before removing the installed version, and the local package is left in place.
electron-updater verifies Ed25519-signed update manifests against a trust list embedded in the app before downloading.
Assign a native verifier in the first electron-updater 7 release if PowerShell may be blocked; later such installs cannot receive the release that adds it.
Deprecations 3
files, extraResources, and extraFiles move under fileOptions at the root and in platform sections. Flat keys still apply at runtime with a warning.
The API was renamed; a shim remains until v28. Apps that set it or subclasses that redeclare _verifyUpdateCodeSignature should update their code.
Renames the protected verifier member; subclasses assigning the old name retain compatibility through a deprecated accessor, with a caveat for class-field redeclarations.
New APIs and options 15
Set this to true for a deliberate cutover release signed with an old trusted key while embedding only the new key; the build publishes and logs a warning.
Adds app-defined verification of the downloaded file on every path that can lead to an install.
The deb, rpm, and pacman depends settings now accept the default keyword, allowing projects to extend the built-in dependency list instead of replacing it.
Adds an exported result type naming the downloaded installer and, for NSIS web installers, the optional package file.
An optional manifest field supplies a blockmap URL separate from the installer URL, supporting pre-signed installer URLs. It follows the origin rule and is covered by the manifest signature when present.
Passes extra arguments to flatpak-builder, flatpak build-export, and flatpak build-bundle, enabling builds in unprivileged containers.
Adds a build option to exclude directly declared production dependencies from copied node_modules; defaults to electron and electron-builder.
Set identity to null, or sign to null, to skip signing.
The nsis-web installer verifies its app package; this option opts out of that verification.
Adds an opt-in Cloudflare R2 S3-compatible publish provider with matching electron-updater support.
The options object can defer installation until the next application launch instead of spawning the installer on quit.
The update-downloaded event payload now includes packageFile for web installers alongside downloadedFile.
The hsm and pkcs11 signing modes are introduced in beta; HSM uses signtool on Windows, while PKCS#11 works cross-platform.
A code-signed Windows build that writes app-update.yml needs a publisher name; set this for a custom win.sign.sign hook or a certificate without a CN.
Can be set to false when updates are not Authenticode-signed.
Behavior and default changes 14
The appimage version value 1.0.2 is retired and migrates to 1.0.3.
The boolean remains valid and maps to an empty options object at runtime, but is redundant because ASAR is enabled by default.
Bitbucket publishing uses Basic auth when a username is present and Bearer auth when it is absent; app passwords and API tokens need a username.
The DMG filesystem now defaults to APFS; choose HFS+ only when supporting macOS versions before 10.13.
An explicit include glob that names default-excluded files now overrides the matching default exclusion.
If a flat key and its fileOptions counterpart are set on the same object, fileOptions wins and the build warns about the conflict.
Flatpak install and update commands now use --noninteractive instead of --assumeyes.
The default permissions omit the notifications talk-name in applicable configurations; add it to finishArgs or users can grant it with flatpak override.
Suffixed channels now also generate the corresponding alpha channel file, such as alpha-arm64.yml for beta-arm64.
Per-machine NSIS builds set this in update info, causing updates to start with
elevate.exe; withautoInstallEvent: "onNextLaunch", apps callinstallPendingUpdateIfAvailable().The ASAR integrity digest is embedded by default; set this option to false when signing or modifying the app after afterPack, or merging separately built architectures yourself.
The default is derived from the target: mas-dev builds use development, while other builds use distribution; an explicit value wins.
Azure Trusted Signing uses the faster signtool /dlib path by default when winCodeSign is unset, null, latest, or at least 1.3.0; older versions use the legacy PowerShell path.
Credentials stay on the feed's origin; serve downloads from that origin or use pre-signed URLs when another origin requires credentials.
Tooling 1
The electron-builder ecosystem migrates to native ES modules; CJS require() continues to work on supported Node.js versions.
Fixes and other changes 4
Use this standard GitLab CI variable to provide the release tag in place of CI_BUILD_TAG.
Unlike the GitHub field, the GitLab option remains functional and continues to control the tag prefix.
Call this when using autoInstallEvent: "onNextLaunch" with NSIS per-machine builds.
An empty tagNamePrefix is now honored, producing unprefixed version tags.
electron-updater 620 changes
Security 4
Differential download requests follow redirects themselves, limit credential headers to same-origin targets, start each multi-range request at the update URL, and follow at most 10 redirects per request.
Redirects to non-HTTP(S) URLs are rejected instead of throwing an uncaught exception.
Stale cached blockmaps are removed when a download produces no new blockmap, keeping the cached blockmap consistent with the cached installer and preventing poisoned differential downloads.
The auto-update flow is hardened against relative paths in PATH, path traversals, and environment variable intercepts.
New APIs and options 2
Provides a custom verification function interface for alternatives to PowerShell-based NSIS signature verification.
Introduces deb and rpm auto-updates as a beta feature.
Behavior and default changes 2
Console logs for autoupdate checks were removed, changing the output produced during those checks.
Download-progress events are now emitted when downloading with the multiple range differential downloader.
Fixes and other changes 12
A cached block map that does not end at the cached installer's size is ignored, and the installed version's block map is fetched from the server to avoid planning a differential download against another release.
Missing and path-valued cached update file names are now rejected.
Multi-range differential downloads now handle bare LF line endings, header terminators split across chunks, and later batches that exceed the watchdog grace period.
Fixes holistic field detection for SHA-256 hash redaction.
The full changelog now includes only release notes up to the latest release.
Fixes the GitLab auth token mismatch between fetching channel YAML and making API requests.
Filters draft releases when determining the latest version for private GitHub releases.
Releases with non-semver tags are ignored when collecting the full changelog.
Uses the appropriate electron-updater cache directory on macOS.
Fixes support for PowerShell constrained language mode.
Updated processes inherit stdio.
Adds a reject in the Windows verifySignature function's handleError handler.
electron-updater 510 changes
Breaking changes 4
Bintray support was removed because the service was sunset.
Authentication is now forced for the local mac squirrel update server.
Certificate validation on Windows now checks the full DN.
Signature verification failures on Windows now fail fast.
New APIs and options 2
Channel support was added for GitHub with prereleases.
Webinstaller files can now be disabled to distinguish them from actual installers.
Fixes and other changes 4
Checks for app-update.yml are removed when auto-updates are not supported.
Fixes were made for server authentication in MacUpdater.
Replacing fs/promises with fs-extra supports legacy Electron versions that use Node.js 12 and below.
Update file paths disregard injected wildcards, and backslash path separators are stripped on Windows.