npm / app-builder-lib
app-builder-lib
What changed in app-builder-lib 25 to 26, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
5 breaking3 security2 deprecations24 new APIs and options3 performance17 behavior and defaults10 tooling81 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initapp-builder-lib 26120 changes
Breaking changes 3
The legacy setting now routes to @electron/rebuild sequential mode.
Removes preflight checks because the TrustedSigning module has its own logging.
The default value of disable_wayland now depends on the Electron version to support Electron versions greater than 38.
Security 3
electron-updater: Uncontrolled search path elements within
AppImagebuilt byapp-builder-libHardens generated-file output, argument construction, and download validation.
A CLI action can clear the electron-builder default cache directory; environment variable overrides are intentionally ignored for security.
Deprecations 1
The release warns about implicit publishing in CI.
New APIs and options 14
Adds an opt-in flag to align the installed .desktop filename with desktopName and StartupWMClass; it will become the default in v27.
Makes the Wine 11 bundle available through the toolsets.wine setting; the legacy 4.0.1 bundle remains the default on macOS.
On Linux with legacy config, setting USE_SYSTEM_WINE=true uses system wine instead.
Adds a configuration option to skip ASAR integrity computation.
Adds toolset configuration for makensis.
Adds the
snapcraftconfiguration property, including support for core24 snapcraft, while maintaining backward compatibility.Per-target squashfs algorithm overrides are added, alongside a fix to compression mapping.
A configuration property allows disabling signing without disabling executable editing.
Pass release notes to the GitHub or GitLab release body with this option.
Pass a release name to GitHub or GitLab releases with this option.
Adds the optional
capabilitiesconfiguration property.Adds an option for explicitly controlling DMG filesystem size.
Adds support for dmgbuild's badge-icon configuration.
The environment variable allows local NSIS resources to be used.
Performance 3
Toolset archives are persisted in a predictable cache path so repeated builds and offline environments skip the @electron/get network round-trip.
Package resolution is memoized and downward search is skipped in a flat virtual store.
Optimizes duplicate checking in the asar packager using Set.
Behavior and default changes 17
Replaces png2icons with wasm-vips Lanczos3 resampling for high-quality icon conversion.
A timeout is added to spawnAndWriteWithOutput.
DMG builds now support the APFS filesystem.
Linux desktop entries now use
desktopNamefrompackage.jsonforStartupWMClass.AppImage builds now bundle FUSE2 runtime libraries for x64 and ia32, matching the Go implementation.
Missing platform-specific optional packages now produce a warn-level log with an actionable suggestion to add them to optionalDependencies.
Adds locking for operations using system utilities that do not support parallelism, such as hdiutil and WiX.
Update info now has a deterministic ordering of files.
Mac entitlement files can now be linked from outside the workspace.
Additional validation covers compression levels, vendor toolsets, and invalid configurations.
electronDownload now uses the official electron/get package, providing better support for mirrors.
When necessary, the application now starts with --no-sandbox.
NSIS detects the Windows version and excludes Windows 7 compatibility logic when it is not needed.
Flatpak executableArgs now uses configuration.
Platform-specific build options can now override top-level publish configuration.
Allows negative patterns in signExts as signing overrides.
Icon Composer icons are supported for macOS.
Tooling 9
When signAndEditExecutable is false, the tool logs an actionable hint to use signExecutable: false to preserve icon and metadata.
Provides better error messaging when the Electron version in devDependencies or the electronVersion property is not pinned.
The legacy toolset is replaced with v1.0.0 for macOS deb/tar builds that package or extract Linux archives.
Adds support for pnpm v11.
Support for a static appimage runtime is added via a new toolset.
Latest artifacts for win-codesign tooling can now be pulled from electron-builder-binaries.
Updates dmgbuild and migrates to a portable dmgbuild Python bundle.
Adds bun node module collector support.
Supports corepack and the packageManager field.
Fixes and other changes 70
Uses native zip on macOS to preserve .framework symlinks and fix Squirrel.Mac auto-update validation.
Retries package installation on transient network errors.
The configured launchUiVersion string is now respected.
Signing is skipped when no certificate is found, and ad-hoc signing with hardenedRuntime now produces a warning.
Nested dependencies are now properly resolved when nodeLinker is set to hoisted.
A CJS resolver is used to reliably resolve package subpaths in pnpm projects.
Unloads the AppArmor profile when removing.
Restores getToolPath() on WindowsSignToolManager and improves the public API.
Suppresses expected npm list stderr from user-visible warnings when collecting dependencies for Yarn projects using resolutions.
Validates makensis stderr and installer file size after build to catch truncated output caused by low disk space.
Accepts transitive dependencies resolved outside their declared range by package manager overrides.
Corrects the path used by update-alternatives --remove.
NSIS web builds no longer append the architecture macro to paths with explicit URLs.
NSIS now uses exact findstr /B matching to avoid false-positive “app cannot be closed” dialogs when a sibling process name contains the app name.
Properly parses and passes through mas configs to overwrite mac config when the target is mas or mas-dev.
Stops incorrectly converting the INSTDIR runtime variable to double-$$.
Fixes applying the
electronLanguagesoption for the Mac platform.Safely copies the UserProgramFiles path.
Avoids using the system path for the cache when the user is
systemor the path issystem32.Its internal got downloader now respects HTTP and HTTPS proxies.
The resolved artifact URL is always passed through to avoid environment variable overrides.
Collector paths containing spaces are now wrapped in a .bat on Windows.
Cache corruption and extraction detection prevents malformed 7z extractions.
On macOS, extraFiles are copied to the productFilename .app instead of Electron.app.
The signing queue recovers after transient errors.
Fixes bundling source files when using extraMetadata.name with Yarn Berry.
Includes the workspace root when checking for installed dependencies, preventing infinite npm install recursion when run from a workspace member's postinstall in npm workspaces.
Properly resolves package version-to-path mappings within the pnpm virtual store.
Fixes node module collection failures when the package manager executable's path contains spaces.
The AppImage hashbang uses /usr/bin/env so it works on non-FHS distributions.
A patched AppImage toolset bundle entry resolves issues on Ubuntu 25.1.0.
Binary downloads now respect the custom binaries mirror instead of falling back to electron_mirror.
Package name and version parsing now correctly splits scoped packages that use link paths.
On Windows, the app exe is regenerated when the asar header changes so asar integrity properly matches.
Filtering now uses startsWith matching for more generous electronLanguages matches.
The node module collector now handles pnpm deduped dependencies correctly.
Fixes mksquashfs ENOENT errors when appimage tool paths are relative.
Fixes the MIME type directory in AppDir.
Reads the package key instead of package from, preventing package-version strings from being mislabeled.
The msiWrapped target now throws a more helpful error.
Fixes Windows build failures when the Node.js path contains spaces.
Fixes stdio redirects in the
update-alternativeinvocation.Improves detection of npm duplicate entries and correlates
_dependenciesagainst duplicateddependencies; the npm collector also covers Yarn Berry.Fixes the badge-icon property.
Allows $INSTDIR to be removed in NSIS.
Fixes the pnpm collector returning zero modules.
Fixes Windows builds failing with spawn EINVAL after a Node.js security fix.
Aliased packages are packaged with the correct name.
Default macOS appPlist keys can now be deleted by setting them to Nullish in extendInfo.
Fixes “Invalid string length” errors during node module collection with pnpm.
Parent directories of unpacked files are post-processed to avoid overeager unpacking.
The app directory is searched before the package directory, respecting two-package.json project setups.
A signing queue for the Windows packager avoids concurrent signing with AzureTrustedSigning.
Disabling Corepack strict mode, with an optional override, allows npm list to work in Yarn Berry and Bun project setups.
Adds support for Yarn Berry _dependencies when extracting the dependency graph.
Ensures the dependency graph is extracted in the correct order.
Checks whether custom NSIS and/or NSIS resource paths contain only whitespace.
Package versions are validated when traversing directories in search of a matching node module.
Sets the correct hostArchitectures in the distribution XML to support arm64-only MAS submissions.
Corrects the types for makeUniversalApp, including using undefined instead of null.
Uses projectRoot instead of workspaceRoot for the yarn*berry package manager.
Checks yarn hoisted mode for each node module, accounting for Yarn Classic not permanently hoisting modules.
Allows the home directory when it is symlinked from /var/home.
Returns the actual path in hoisted mode instead of a virtual path.
Passes workspaceRoot when forwarding projectRootPath to electron/rebuild.
Properly collects ESM node_modules when building with Node.js 16 or later.
Uses JSON output to parse Yarn Berry configuration, accommodating output variations across versions 2–4.
On macOS, handles an undefined certificate password by falling back to an empty string.
Fixes the import used for detecting CI.
Fixes the uninstaller's handling of the silent flag.
app-builder-lib 2525 changes
Breaking changes 2
Updates the appx identityName for Windows 10.
Adds the electron/rebuild implementation with legacy, parallel, and sequential modes; the default is set to use electron/rebuild.
Deprecations 1
The legacy altool notarization API is deprecated.
New APIs and options 10
Adds support for passing additional arguments to macOS signing.
Adds support for passing additional Light arguments to the MSI target.
Adds a build-process hook with the same payload interface as beforePack and afterPack.
The environment variable is used when notarizing with APPLE_ID.
Adds an option to disable the ASAR sanity check, allowing encrypted ASARs.
Adds a configuration option for setting the MaxVersionTested field in the appx manifest.
Adds a configuration option for setting the MinVersion field in the appx manifest.
Adds the music category to the Linux category options.
Packager subclasses are now exported from the main electron-builder types.
Adds functionality to publish artifacts without performing the rest of the build process.
Tooling 1
The app-builder-bin version was updated to its 5.0-alpha release.
Fixes and other changes 11
Files within ASARs are ordered to produce smaller incremental updates.
Writes the ASAR integrity resource on Windows.
Fixes codeSigningInfo not responding when its arguments change.
Folders named constructor are now included in ASAR archives.
Treats an empty cscLink string the same as null.
Moves disableSanityCheckPackage within checkFileInPackage so it does not bypass checks for non-ASAR usage.
Fixes @electron/remote being placed wrongly into Windows app.asar.
Uses the appInfo description as the primary source for FileDescription on Windows.
Fixes an unstable hdiutil retry mechanism.
Adds a retry mechanism for macOS code signing with electron/osx-sign.
Replaces SYSTEMROOT with $SYSDIR.