@electron/packager
    Preparing search index...

    Function packager

    • Bundles Electron-based application source code with a renamed/customized Electron executable and its supporting files into folders ready for distribution.

      Briefly, this function:

      • finds or downloads the correct release of Electron
      • uses that version of Electron to create a app in <out>/<appname>-<platform>-<arch>

      Parameters

      • opts: Options

        Options to configure packaging.

      Returns Promise<string[]>

      A Promise containing the paths to the newly created application bundles.

      import { packager } from '@electron/packager'

      async function bundleElectronApp(options) {
      const appPaths = await packager(options)
      console.log(`Electron app bundles created:\n${appPaths.join("\n")}`)
      }