


Infer the platform and arch from the host, in this example, darwin platform and 圆4 arch.Infer the appVersion from the version in package.json.Infer the appname from the productName in package.json.Use the current directory for the sourcedir.To build a package from the current directory and for the current platform execute. To build an application for a platform you’ll need to execute the following command in terminal / command prompt.Įlectron-packager -platform= -arch=
Electron cross compile mac on linux install#
We will install electron-packager globally with You can install it globally or as a dev dependency. In order to build and package your app, you need to install electron-packager first.
Electron cross compile mac on linux how to#
In this article you are going to learn how to create a release of your Electron app for different platforms (Windows, Mac, Linux) and in all architectures (x32, 圆4) using the electron packager module. You have no clue, how to do that? No worries! So you are ready to create your first release. Following part 1 – 5 of the Electron tutorial you’re probably ready with the design, preparation and debugging of your app.
