

If you specify -all instead, bundles for all valid combinations of target.platform and -arch can be omitted, in two cases: Use that version of Electron to create an app in /- (this can be customized via an optional flag).Find or download the correct release of Electron.Note: npx can be substituted for yarn or npm exec depending on what package manager and Running Electron Packager from the command line has this basic form: npx electron-packager -platform= -arch= JavaScript API usage can be found in the API documentation. A Windows executable is bundled in that Node package and needs to be run in order for thisįunctionality to work, so on non-Windows host platforms (not including WSL), Building Windows apps from non-Windows platformsīuilding an Electron app for the Windows target platform requires editing the Electron.exe file.Ĭurrently, Electron Packager uses node-rcedit to accomplish
#ELECTRON API DOCUMENTATION INSTALL#
It is not recommended to install electron-packager globally. This module requires Node.js 10.0 or higher to run. app bundle can only be signed when building on a host macOS platform.

* Note for macOS / Mac App Store target bundles: the.

Supported PlatformsĮlectron Packager is known to run on the following host platforms: Platform, target arch, and Electron version (files named electron-v$.zip). A zipped, minimal ElectronĪpplication is approximately the same size as the zipped prebuilt binary for a given target Note that packaged Electron applications can be relatively large. Internally), or one of the related Electron tools, which utilizesĮlectron Packager-created folders as a basis.
#ELECTRON API DOCUMENTATION CODE#
Source code with a renamed Electron executable and supporting files into folders ready for distribution.įor creating distributables like installers and Linux packages, consider using either Electron exe, etc.) via JavaScript or the command line.Įlectron Packager is a command line tool and Node.js library that bundles Electron-based application Package your Electron app into OS-specific bundles (.
