Skip to content

Releases: electron/packager

v19.0.1

20 Oct 18:16
5e1a9b2

Choose a tag to compare

19.0.1 (2025-10-20)

Bug Fixes

v19.0.0

15 Oct 21:12
0c9235b

Choose a tag to compare

19.0.0 (2025-10-15)

Electron Packager 19 introduces many breaking changes in an effort to modernize the codebase.

BREAKING CHANGES

Node.js 22

This package now requires Node.js >=22.12.0.

ESM

This package is now ESM-only.

Note

CommonJS projects can still consume this module via the require(esm) feature added to Node 22.

asar is enabled by default

By default, the asar option is now set to unpack native node modules.

const opts = {
  asar: {
    unpack: '**/{.**,**}/**/*.node'
  }
}

Note

This is equivalent to the behaviour out of the box with any Electron Forge v7 template.

Note

In Electron Packager 19, this is also equivalent to asar: true.

derefSymlinks is enabled by default

This was incorrectly documented in most previous versions of Electron Packager. See #1818.

Hooks are promisified and take in a single object argument

Electron Packager's various lifecycle hooks have changed their shape in two ways:

  • Hook arguments are now properties on a single JavaScript object rather than individual positional args.
  • The done callback arg was removed in favour of making hooks asynchronous.

For a trivial example:

// Electron Packager 18
const opts = {
  afterExtract: [
    (buildPath, electronVersion, platform, arch, callback) => {
      setTimeout(() => {
        console.log({ buildPath, electronVersion, platform, arch });
        callback();
      }, 1000);
    },
  ],
};

// Electron Packager 19
const opts = {
  afterExtract: [
    async ({ buildPath, electronVersion, platform, arch }) => {
      await new Promise((resolve) => {
        setTimeout(() => {
          console.log({ buildPath, electronVersion, platform, arch });
          resolve();
        }, 1000);
      });
    },
  ],
};

What's Changed

Full Changelog: v18.4.4...v19.0.0

v18.4.4

27 Aug 21:35
579f742

Choose a tag to compare

18.4.4 (2025-08-27)

Bug Fixes

v18.4.3

27 Aug 17:40
1b76f8a

Choose a tag to compare

18.4.3 (2025-08-27)

Bug Fixes

  • skip universal target for non-darwin platforms (#1817) (1b76f8a)

v18.4.2

14 Aug 21:10
6b39b49

Choose a tag to compare

18.4.2 (2025-08-14)

Bug Fixes

  • add @malept/cross-spawn-promise to dependencies (#1810) (6b39b49)

v18.4.1

13 Aug 20:31
cb6f816

Choose a tag to compare

18.4.1 (2025-08-13)

Bug Fixes

  • add pnpm-lock.yaml to default ignore list (#1811) (cb6f816)

v18.4.0

04 Aug 21:53
ddb4aa6

Choose a tag to compare

18.4.0 (2025-08-04)

Features

  • support Icon Composer files as icon input for macOS (#1806) (ddb4aa6)

v18.3.6

12 Nov 22:10
6270eeb

Choose a tag to compare

18.3.6 (2024-11-12)

Bug Fixes

  • use target platform path separators for asar integrity keys (#1781) (6270eeb)

v18.3.5

11 Sep 03:33
0c8cce2

Choose a tag to compare

18.3.5 (2024-09-11)

Bug Fixes

v18.3.4

20 Aug 18:13
a4fc14b

Choose a tag to compare

18.3.4 (2024-08-20)

Bug Fixes

  • include asar integrity when using --prebuilt-asar (#1763) (18b0c69)